stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
[gnulib.git] / ChangeLog
blob16fafe4d0b2a216ecd5d121b8845c4b53277a1bd
1 2021-01-01  Bruno Haible  <bruno@clisp.org>
3         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
4         * modules/stddef (Depends-on): Add extensions.
6 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8         canonicalize: remove NARROW_ADDRESSES optimization
9         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
10         Remove, and remove all uses, as the optimization is arguably not
11         worth the extra complexity.  Suggested by Adhemerval Zanella in:
12         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
14 2021-01-01  Bruno Haible  <bruno@clisp.org>
16         stddef: Try harder to get max_align_t defined on OpenBSD.
17         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
19 2021-01-01  Bruno Haible  <bruno@clisp.org>
21         aligned_alloc: Fix test failure on OpenBSD 6.8.
22         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
23         _ISOC11_SOURCE.
24         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
25         comment.
27 2021-01-01  Bruno Haible  <bruno@clisp.org>
29         posixtm tests: Disable part of the test on plaforms where it fails.
30         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
32 2021-01-01  Bruno Haible  <bruno@clisp.org>
34         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
35         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
36         Solaris 11 OmniOS.
37         * tests/test-c32isprint.c (main): Likewise.
38         * tests/test-c32ispunct.c (main): Likewise.
40 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
42         libc-config: port to Sun C 5.9
43         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
44         definition.  It’s not needed for Gnulib and elicits a diagnostic
45         from Sun C 5.9 Patch 124867-12 2009/11/22.
47 2021-01-01  Bruno Haible  <bruno@clisp.org>
49         quotearg tests: Avoid test failures on Solaris 11.
50         * modules/quotearg-tests (Makefile.am): Set host_os in
51         TESTS_ENVIRONMENT.
52         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
53         directory that contains the .mo file.
55 2021-01-01  Bruno Haible  <bruno@clisp.org>
57         maint: Update copyright notices in --version output.
58         List the most recent year in which changes were made, per
59         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
60         * build-aux/declared.sh (func_version): Say 2019.
61         * build-aux/libtool-next-version (func_version): Likewise.
62         * build-aux/run-test (func_version): Likewise.
63         * check-module (COPYRIGHT_NOTICE): Say 2012.
64         * lib/git-merge-changelog.c (main): Say 2020.
66 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
68         filename: change filename.h comment to LGPLv2.1+
69         * lib/filename.h: Change license notice to match what should be in
70         glibc, and what modules/filename specifies.  This is to simplify
71         syncing with glibc.
73         doc: mention year-0 bugs in Solaris etc.
74         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
75         * doc/posix-functions/localtime.texi:
76         * doc/posix-functions/localtime_r.texi:
77         * doc/posix-functions/mktime.texi:
78         Mention year-0 bugs in localtime etc.
80 2020-12-31  Bruno Haible  <bruno@clisp.org>
82         ptsname_r: Fix test failure on Solaris.
83         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
84         the device.
86 2020-12-31  Bruno Haible  <bruno@clisp.org>
88         posixtm tests: Disable part of the test on plaforms where it fails.
89         * tests/test-posixtm.c (T): Disable two tests on Solaris.
91 2020-12-31  Bruno Haible  <bruno@clisp.org>
93         poll tests: Avoid test failure on AIX.
94         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
95         shutdown" test on AIX.
96         * doc/posix-functions/poll.texi: Mention the AIX bug.
98 2020-12-31  Bruno Haible  <bruno@clisp.org>
100         poll tests: Avoid test failure on BSD and Solaris systems.
101         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
102         "expecting POLLHUP after shutdown" test on all platforms except Linux.
104 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
106         fnmatch: merge from glibc + proposal
107         This merges the change proposed by Adhemerval Zanella in:
108         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
109         which fixes a Gnulib bug that led to a failed assert.
110         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
111         check that it stays nonnegative.  Use __flexarr instead of
112         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
113         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
115         glob: merge proposed glibc changes
116         This merges the change proposed by Adhemerval Zanella in:
117         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
118         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
120 2020-12-31  Bruno Haible  <bruno@clisp.org>
122         memalign: Work around Solaris bug.
123         * lib/memalign.c: New file.
124         * m4/memalign.m4: New file.
125         * modules/memalign (Files): Add them.
126         (Depends-on): Add malloc-h.
127         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
128         memalign.c. Set module indicator.
129         (Include): Include <malloc.h> unconditionally.
130         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
132         malloc-h: Add tests.
133         * tests/test-malloc-h.c: New file.
134         * modules/malloc-h-tests: New file.
135         * tests/test-malloc-h-c++.cc: New file.
136         * modules/malloc-h-c++-tests: New file.
138         malloc-h: New module.
139         * lib/malloc.in.h: New file.
140         * m4/malloc_h.m4: New file.
141         * modules/malloc-h: New file.
142         * doc/glibc-headers/malloc.texi: New file.
143         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
145 2020-12-31  Bruno Haible  <bruno@clisp.org>
147         unistd: Fix portability warnings.
148         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
150 2020-12-31  Bruno Haible  <bruno@clisp.org>
152         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
153         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
154         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
155         * lib/utime.c: Include <errno.h>.
157 2020-12-30  Karl Berry  <karl@freefriends.org>
159         config: srclistvars doc.
160         * config/srclistvars.sh: doc a couple of unusual source repo urls.
162 2020-12-30  Bruno Haible  <bruno@clisp.org>
164         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
165         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
166         with no errno.
167         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
168         EINVAL.
170 2020-12-29  Jim Meyering  <meyering@fb.com>
172         regex-tests: tweak to avoid a clang-10 warning
173         * tests/test-regex.c: Compare with explicit zero, rather than
174         as boolean to avoid this from clang-10:
175         test-regex.c:315:9: error: converting the result of '<<' to a \
176           boolean always evaluates to true \
177           [-Werror,-Wtautological-constant-compare]
178         if (! REG_STARTEND)
180         hash: add casts-to-float to avoid clang-10 warnings
181         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
182         to avoid this warning from clang-10 (for use in grep):
183           hash.c:501:11: error: implicit conversion from 'unsigned long' \
184             to 'float' changes value from 18446744073709551615 to \
185             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
186           if (SIZE_MAX <= new_candidate)
187         (hash_insert_if_absent): Likewise.
189 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
191         canonicalize: fix size overflow treatment
192         This also has some minor cleanups.
193         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
194         stddef.h, since the code no longer refers directly to ptrdiff_t.
195         * lib/canonicalize-lgpl.c (realpath_stk):
196         * lib/canonicalize.c (canonicalize_filename_mode_stk):
197         Treat size overflow like other out-of-memory.
198         * lib/canonicalize.c: No need to include stdlib.h, since
199         the code no longer refers to stdlib.h functions (other
200         than those that canonicalize.h must declare).
201         * lib/canonicalize.c (canonicalize_filename_mode_stk):
202         Do not bother terminating the string result on error.
204 2020-12-29  Bruno Haible  <bruno@clisp.org>
206         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
207         * lib/gl_list.hh: Include <stdlib.h>.
208         * lib/gl_map.hh: Likewise.
209         * lib/gl_omap.hh: Likewise.
210         * lib/gl_set.hh: Likewise.
211         * lib/gl_oset.hh: Likewise.
213 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
215         canonicalize: fix ptrdiff_t overflow bug
216         Problem reported by Adhemerval Zanella in:
217         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
218         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
219         Include intprops.h.
220         (NARROW_ADDRESSES): New constant.
221         * lib/canonicalize-lgpl.c (realpath_stk):m
222         * lib/canonicalize.c (canonicalize_filename_mode_stk):
223         Work even if strlen (END) does not fit in idx_t, or if adding
224         N to it overflows.
225         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
226         Add intprops.
228 2020-12-28  Bruno Haible  <bruno@clisp.org>
230         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
232         acl_is_expected_elfclass, use 'expr', not 'test'.
234 2020-12-28  Bruno Haible  <bruno@clisp.org>
236         ptsname_r: Fix a compiler warning on Solaris.
237         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
239 2020-12-28  Bruno Haible  <bruno@clisp.org>
241         gnulib-tool: Fix logic whether to add a dummy.c.
242         * gnulib-tool (func_remove_if_blocks): New function.
243         (func_modules_add_dummy): Use it to eliminate all conditional statements
244         from the automake snippet.
246 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
248         faccessat: revert recent EOVERFLOW change
249         I misunderstood the glibc source code.  Deduced from
250         Adhemerval Zanella’s proposed glibc patch in:
251         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
252         * doc/posix-functions/faccessat.texi: It is not a problem.
253         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
254         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
255         * lib/faccessat.c: Revert to simpler version now that
256         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
257         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
258         Remove.  All uses removed.
259         * modules/canonicalize, modules/canonicalize-lgpl (Files):
260         Remove m4/faccessat.m4.
262         canonicalize-lgpl: accommodate picky cpp
263         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
264         case preprocessor is picky.  Reported by Adhemerval Zanella in:
265         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
267         canonicalize: simplify via scratch_buffer_dupfree
268         * config/srclist.txt: Adjust accordingly.
269         * lib/canonicalize-lgpl.c (realpath_stk):
270         * lib/canonicalize.c (canonicalize_filename_mode_stk):
271         Simplify by using scratch_buffer_dupfree.
272         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
273         * lib/malloc/scratch_buffer_dupfree.c: New file.
274         * modules/scratch_buffer (Files, Depends-on):
275         Add malloc/scratch_buffer_dupfree.c.
277 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
279         regex: remove glibc21.m4
280         It doesn’t seem to be needed any more; at least, I couldn’t
281         reproduce the circa-2013 problem.  Perhaps the recent
282         --conditional-dependencies fixes have removed the need for it.
283         * m4/glibc21.m4: Remove.  All uses removed.
285 2020-12-26  Bruno Haible  <bruno@clisp.org>
287         gnulib-tool: Make --conditional-dependencies work with --with-tests.
288         Reported by Paul Eggert in
289         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
290         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
291         dependencies like func_emit_lib_Makefile_am.
293 2020-12-26  Bruno Haible  <bruno@clisp.org>
295         execvpe: Make dependency to stdbool explicit.
296         * lib/execvpe.c: Include <stdbool.h>.
297         * modules/execvpe (Depends-on): Add stdbool.
299         execlp: Add tests.
300         * tests/test-execlp-main.c: New file.
301         * tests/test-execlp.sh: New file.
302         * modules/execlp-tests: New file.
304         execlp: New module.
305         * lib/execlp.c: New file.
306         * m4/execlp.m4: New file.
307         * modules/execlp: New file.
308         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
309         new module.
311         execle: Add tests.
312         * tests/test-execle-main.c: New file.
313         * tests/test-execle.sh: New file.
314         * modules/execle-tests: New file.
316         execle: New module.
317         * lib/execle.c: New file.
318         * m4/execle.m4: New file.
319         * modules/execle: New file.
320         * doc/posix-functions/execle.texi: Mention more Windows problems and the
321         new module.
323         execl: Add tests.
324         * tests/test-execl-main.c: New file.
325         * tests/test-execl.sh: New file.
326         * modules/execl-tests: New file.
328         execl: New module.
329         * lib/execl.c: New file.
330         * m4/execl.m4: New file.
331         * modules/execl: New file.
332         * doc/posix-functions/execl.texi: Mention more Windows problems and the
333         new module.
335         execv: Add tests.
336         * tests/test-execv-main.c: New file.
337         * tests/test-execv.sh: New file.
338         * modules/execv-tests: New file.
340         execv: New module.
341         * lib/execv.c: New file.
342         * m4/execv.m4: New file.
343         * modules/execv: New file.
344         * doc/posix-functions/execv.texi: Mention more Windows problems and the
345         new module.
347         execvp: Add tests.
348         * tests/test-execvp-main.c: New file.
349         * tests/test-execvp.sh: New file.
350         * modules/execvp-tests: New file.
352         execvp: New module.
353         * lib/execvp.c: New file.
354         * m4/execvp.m4: New file.
355         * modules/execvp: New file.
356         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
357         new module.
359         execvpe: Add tests.
360         * tests/test-execvpe-main.c: New file.
361         * tests/test-execvpe.sh: New file.
362         * modules/execvpe-tests: New file.
364         execvpe: New module.
365         * lib/execvpe.c: New file.
366         * m4/execvpe.m4: New file.
367         * modules/execvpe: New file.
368         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
369         new module.
371         execve: Add tests.
372         * tests/test-exec-child.c: New file.
373         * tests/test-execve-main.c: New file.
374         * tests/test-execve.sh: New file.
375         * modules/execve-tests: New file.
377         execve: New module.
378         * lib/execve.c: New file.
379         * m4/execve.m4: New file.
380         * modules/execve: New file.
381         * doc/posix-functions/execve.texi: Mention more Windows problems and the
382         new module.
384         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
385         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
386         execvpe): Add declarations for the new modules.
387         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
388         execv, execve, execvp, execvpe are declared.
389         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
390         REPLACE_EXEC*.
391         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
392         REPLACE_EXEC*.
393         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
394         execlp, execv, execve, execvp, execvpe.
396 2020-12-26  Bruno Haible  <bruno@clisp.org>
398         stack: Fix typo in comments.
399         * lib/stack.h: Fix typo in comments.
401 2020-12-26  Bruno Haible  <bruno@clisp.org>
403         bitset: Fix conflict with 'free-posix' module.
404         * lib/bitset/base.h: Include <stdlib.h>.
406 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
408         idx: change idx.h comment to LGPLv2.1+
409         * lib/idx.h: Change license notice to match what should be in glibc.
410         gnulib-tool will change it as appropriate anyway, so this is just
411         to simplify syncing with glibc.
413 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
415         MODULES.html.sh: Update after 2020-12-19 change.
416         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
418 2020-12-25  Bruno Haible  <bruno@clisp.org>
420         Make it possible to turn off the mkdir override on Windows.
421         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
422         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
424         GNULIB_MDA_MKDIR.
425         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
426         GNULIB_MDA_MKDIR.
427         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
428         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
430         Make it possible to turn off each of the Windows oldnames workarounds.
431         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
432         oldnames workarounds through a GNULIB_MDA_<func> symbol.
433         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
434         * lib/search.in.h (lfind, lsearch): Likewise.
435         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
436         Likewise.
437         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
438         * lib/string.in.h (memccpy, strdup): Likewise.
439         * lib/sys_stat.in.h (chmod, umask): Likewise.
440         * lib/time.in.h (tzset): Likewise.
441         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
442         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
443         read, rmdir, swab, unlink, write): Likewise.
444         * lib/utime.in.h (utime): Likewise.
445         * lib/wchar.in.h (wcsdup): Likewise.
446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
447         GNULIB_MDA_<func> symbols.
448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
449         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
454         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
456         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
457         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
458         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
459         symbols.
460         * modules/math (Makefile.am): Likewise.
461         * modules/search (Makefile.am): Likewise.
462         * modules/stdio (Makefile.am): Likewise.
463         * modules/stdlib (Makefile.am): Likewise.
464         * modules/string (Makefile.am): Likewise.
465         * modules/sys_stat (Makefile.am): Likewise.
466         * modules/time (Makefile.am): Likewise.
467         * modules/unistd (Makefile.am): Likewise.
468         * modules/utime-h (Makefile.am): Likewise.
469         * modules/wchar (Makefile.am): Likewise.
471 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
473         canonicalize, canonicalize-lgpl: remove lint
474         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
475         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
476         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
477         Sort shared include directives, for consistency.
478         (IF_LINT): New macro.
479         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
480         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
481         New macros.
482         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
483         * lib/canonicalize.c (canonicalize_filename_mode_stk):
484         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
486 2020-12-24  Bruno Haible  <bruno@clisp.org>
488         spawn-pipe: Use posix_spawn by default on native Windows.
489         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
490         (create_pipe): Use it to decide among the two possible implementations.
491         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
493 2020-12-24  Bruno Haible  <bruno@clisp.org>
495         unistd-safer: Implement pipe_safer on native Windows.
496         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
497         * modules/unistd-safer (Depends-on): Add pipe-posix.
499 2020-12-24  Bruno Haible  <bruno@clisp.org>
501         execute: Use posix_spawn by default on native Windows.
502         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
503         (execute): Use it to decide among the two possible implementations.
505 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
507         canonicalize-lgpl: merge proposed libc changes
508         This merges the changes proposed for glibc in:
509         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
510         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
511         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
512         unconditionally.
513         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
514         (ISSLASH) [_LIBC]: Remove.
516 2020-12-24  Bruno Haible  <bruno@clisp.org>
518         posix_spawn-internal: Implement for native Windows.
519         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
520         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
521         do_dup2, do_close): New functions.
522         (__spawni): Implement on native Windows.
523         * modules/posix_spawn-internal (Depends-on): Add filename,
524         concat-filename, findprog-in, malloca, windows-spawn.
525         * doc/posix-functions/posix_spawn.texi: Update.
526         * doc/posix-functions/posix_spawnp.texi: Likewise.
528 2020-12-24  Bruno Haible  <bruno@clisp.org>
530         windows-spawn: Export another auxiliary function.
531         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
532         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
533         extracted from spawnpvech.
534         (spawnpvech): Use it.
536 2020-12-24  Bruno Haible  <bruno@clisp.org>
538         windows-spawn: Export some more auxiliary functions.
539         * lib/windows-spawn.h: Include <stdbool.h>.
540         (struct inheritable_handles): New type.
541         (init_inheritable_handles, compose_handles_block,
542         free_inheritable_handles): New declarations.
543         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
544         New functions, based on spawnvech.
545         (free_inheritable_handles): New function.
546         (spawnpvech): Use them.
548 2020-12-24  Bruno Haible  <bruno@clisp.org>
550         windows-spawn: Export another auxiliary function.
551         * lib/windows-spawn.h (compose_envblock): New declaration.
552         * lib/windows-spawn.c (compose_envblock): New function, extracted from
553         spawnpvech.
554         (spawnpvech): Use it.
556 2020-12-24  Bruno Haible  <bruno@clisp.org>
558         windows-spawn: Export an auxiliary function.
559         * lib/windows-spawn.h (compose_command): New declaration.
560         * lib/windows-spawn.c (compose_command): New function, extracted from
561         spawnpvech.
562         (spawnpvech): Use it.
564 2020-12-24  Bruno Haible  <bruno@clisp.org>
566         posix_spawn* tests: Add support for native Windows.
567         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
568         like Cygwin.
569         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
570         SIGHUP and SIGPIPE. On native Windows, don't call
571         posix_spawnattr_setsigmask.
572         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
573         * tests/test-posix_spawn-fchdir.c (main): Likewise.
574         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
575         output from Cygwin's 'pwd' program.
576         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
577         executable-shell-script part of the test.
578         * tests/test-posix_spawnp-script.c (main): Likewise.
579         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
580         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
581         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
582         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
583         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
584         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
585         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
586         test the POSIX_SPAWN_PORTED conditional.
587         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
588         Define the POSIX_SPAWN_PORTED conditional here.
590 2020-12-24  Bruno Haible  <bruno@clisp.org>
592         sh-filename: Add support for native Windows.
593         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
595 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
597         careadlinkat: improve warning line number
598         This propagates an idea first used in canonicalize-lgpl.
599         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
600         New macro.
601         (careadlinkat): Use it.
603         linkat: use eloop-threshold
604         * lib/linkat.c: Include eloop-threshold.h.
605         Do not include sys/param.h.
606         (MAXSYMLINKS): Remove.
607         (link_follow, linkat_follow): Use __eloop_threshold instead
608         of MAXSYMLINKS.
609         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
610         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
612         canonicalize-lgpl: use eloop-threshold
613         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
614         (MAXSYMLINKS, __eloop_threshold): Remove.
615         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
617         eloop-threshold: new module
618         * config/srclist.txt: Add a comment about it.
619         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
621         canonicalize: prefer faccessat to stat
622         A proper faccessat doesn't have the EOVERFLOW problem, and can be
623         more efficient as it needn't gather data from the filesystem to
624         fill in struct stat.  So use stat only if faccessat is absent,
625         or when checking for symlink loops in canonicalize.c.
626         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
627         Include fcntl.h, for AT_EACCESS.
628         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
629         (file_accessible): New function, based on faccessat but with
630         a fallback to stat and with an EOVERFLOW workaround.
631         (dir_check): Use it.
632         (dir_suffix): New static constant.
633         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
634         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
635         (__faccessat) [!_LIBC]: Define.
636         (realpath_stk): Use dir_suffix now.
637         * lib/canonicalize.c (canonicalize_filename_mode_stk):
638         If logical, don't check each component's existence; just check
639         at the end, as that's enough.
640         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
641         (gl_CANONICALIZE_LGPL_SEPARATE):
642         Require gl_FUNC_FACCESSAT_EOVERFLOW,
643         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
644         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
645         as the code does not use HAVE_READLINK.
646         * modules/canonicalize, modules/canonicalize-lgpl (Files):
647         Add m4/faccessat.m4, m4/lstat.m4.
648         (Depends-on): Add fcntl-lh.
650         faccessat: work around F_OK EOVERFLOW bug
651         * doc/posix-functions/faccessat.texi: Mention the problem.
652         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
653         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
654         for F_OK and EOVERFLOW, which means we can return 0.
655         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
656         (gl_FUNC_FACCESSAT): Use it.
658         stat failing with EOVERFLOW implies existence
659         * lib/euidaccess.c (euidaccess):
660         * lib/file-has-acl.c (file_has_acl):
661         * lib/link.c (link, rpl_link):
662         * lib/mkdir.c (rpl_mkdir):
663         * lib/mkfifo.c (rpl_mkfifo):
664         * lib/mknod.c (rpl_mknod):
665         * lib/ptsname_r.c (__ptsname_r):
666         * lib/symlink.c (rpl_symlink):
667         * lib/symlinkat.c (rpl_symlinkat):
668         * lib/unlink.c (rpl_unlink):
669         * lib/unlinkat.c (rpl_unlinkat):
670         * lib/utime.c (utime):
671         If stat fails with EOVERFLOW the file exists, so treat it that way
672         in file-existence tests that do not need struct stat values.
674         canonicalize-lgpl: remove freea macro
675         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
677         canonicalize, canonicalize-lgpl: fix symlink bug
678         Problem reported by Adhemerval Zanella in:
679         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
680         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
681         (suffix_requires_dir_check, dir_check): New functions.
682         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
683         closer to the related GCC diagnostics.
684         * lib/canonicalize-lgpl.c (realpath_stk):
685         * lib/canonicalize.c (canonicalize_file_mode_stk):
686         Use them to fix a bug with .../symlink-to-regular-file/ etc.
687         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
688         (realpath_stk): New function,
689         with the contents of the old __realpath and a new scratch buffer arg.
690         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
691         (__realpath): Use it.
692         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
693         Add test cases for the bugs.
695 2020-12-24  Bruno Haible  <bruno@clisp.org>
697         execute: Treat signalled processes like wait-process does.
698         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
699         (execute): Recognize the case where the exit code indicates a signalled
700         child process.
701         * tests/test-execute-main.c (main): Update expected test result.
702         * modules/execute (Depends-on): Add sys_wait.
704 2020-12-24  Bruno Haible  <bruno@clisp.org>
706         windows-spawn: Improve errno upon failure on native Windows.
707         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
708         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
709         * tests/executable-script.sh: New file.
710         * tests/test-posix_spawn-script.c (main): Also try executing
711         executable-script.sh.
712         * tests/test-posix_spawnp-script.c (main): Likewise.
713         * tests/test-execute-script.c (main): Likewise.
714         * tests/test-spawn-pipe-script.c (main): Likewise.
715         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
716         * modules/posix_spawnp-tests (Files): Likewise.
717         * modules/execute-tests (Files): Likewise.
718         * modules/spawn-pipe-tests (Files): Likewise.
720 2020-12-24  Bruno Haible  <bruno@clisp.org>
722         findprog-in: Improve errno upon failure on native Windows.
723         * lib/findprog-in.c (find_in_given_path): If the file basename has no
724         dot and the search with a suffix returned no result, do also a search
725         without a suffix, and set errno = ENOEXEC if we find a file in this way.
726         * tests/test-spawn-pipe-script.c (main): Update expected errno.
728 2020-12-23  Bruno Haible  <bruno@clisp.org>
730         posix_spawn, posix_spawnp: Fix execution of scripts.
731         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
732         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
733         or posix_spawnp allows unsecure execution of scripts.
734         * doc/posix-functions/posix_spawn.texi: Document the script execution
735         problem.
736         * doc/posix-functions/posix_spawnp.texi: Likewise.
738 2020-12-23  Bruno Haible  <bruno@clisp.org>
740         Add unit tests regarding execution of scripts.
741         * tests/executable-script: New file.
742         * tests/executable-shell-script: New file.
743         * tests/test-posix_spawn-script.c: New file.
744         * tests/test-posix_spawnp-script.c: New file.
745         * tests/test-execute-script.c: New file.
746         * tests/test-spawn-pipe-script.c: New file.
747         * modules/posix_spawn-tests (Files): Add
748         tests/test-posix_spawn-script.c, tests/executable-script,
749         tests/executable-shell-script.
750         (Makefile.am): Compile and run test-posix_spawn-script.
751         * modules/posix_spawnp-tests (Files): Add
752         tests/test-posix_spawnp-script.c, tests/executable-script,
753         tests/executable-shell-script.
754         (Makefile.am): Compile and run test-posix_spawnp-script.
755         * modules/execute-tests (Files): Add tests/test-execute-script.c,
756         tests/executable-script, tests/executable-shell-script.
757         (Makefile.am): Compile and run test-execute-script.
758         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
759         tests/executable-script, tests/executable-shell-script.
760         (Makefile.am): Compile and run test-spawn-pipe-script.
762 2020-12-23  Bruno Haible  <bruno@clisp.org>
764         Don't execute scripts without '#!' marker through /bin/sh.
765         This reflects the change done in glibc through
766         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
767         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
768         * lib/spawni.c (internal_function): Remove macro.
769         (script_execute): Remove function.
770         (__spawni): Don't invoke script_execute.
771         * lib/execute.c (execute): Disable the ENOEXEC handling.
772         * lib/spawn-pipe.c (create_pipe): Likewise.
773         * NEWS: Mention the change.
775 2020-12-23  Bruno Haible  <bruno@clisp.org>
777         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
778         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
779         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
780         * lib/spawni.c (__spawni): Update function parameters.
782 2020-12-23  Bruno Haible  <bruno@clisp.org>
784         posix_spawn tests: Add two more tests.
785         * tests/test-posix_spawn-inherit0.c: New file, based on
786         tests/test-posix_spawn-open2.c.
787         * tests/test-posix_spawn-inherit1.c: New file, based on
788         tests/test-posix_spawn-open2.c.
789         * modules/posix_spawn-tests (Files): Add them.
790         (Depends-on): Add fflush.
791         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
792         test-posix_spawn-inherit1.
794 2020-12-23  Bruno Haible  <bruno@clisp.org>
796         posix_spawn tests: Add another test.
797         * tests/test-posix_spawn-open2.c: New file, based on
798         tests/test-posix_spawn-open1.c.
799         * modules/posix_spawn-tests (Files): Add it.
800         (Makefile.am): Compile and run test-posix_spawn-open1.
802 2020-12-20  Bruno Haible  <bruno@clisp.org>
804         Remove support for broken <wchar.h> in AIX 3.
805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
807 2020-12-20  Bruno Haible  <bruno@clisp.org>
809         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
810         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
811         * lib/mbchar.h: Likewise.
812         * lib/mbiter.h: Likewise.
813         * lib/mbuiter.h: Likewise.
814         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
815         * lib/mbfile.h: Don't include <time.h>.
816         * lib/mbswidth.h: Update comment.
817         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
818         <wchar.h>.
819         * lib/wctype.in.h: Likewise.
820         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
821         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
822         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
823         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
824         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
825         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
826         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
827         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
828         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
829         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
830         AC_FUNC_MBRTOWC): Likewise.
831         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
832         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
833         Likewise.
834         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
835         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
836         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
838         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
840         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
841         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
842         Likewise.
843         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
844         gl_WCSRTOMBS_NULL): Likewise.
845         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
846         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
847         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
849         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
850         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
851         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
852         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
853         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
854         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
856 2020-12-20  Bruno Haible  <bruno@clisp.org>
858         isnanf: Fix autoconf test.
859         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
861 2020-12-20  Bruno Haible  <bruno@clisp.org>
863         Remove some of the support for obsolete IRIX 4 and 5.
864         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
865         libsun.
866         * tests/init.sh (setup_): Don't talk about IRIX 5.
868 2020-12-20  Bruno Haible  <bruno@clisp.org>
870         filemode: Remove Cray support.
871         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
872         (filemodestring): Don't produce an 'M' type.
873         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
874         * m4/st_dm_mode.m4: Remove file.
875         * modules/filemode (Files): Remove it.
877 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
879         free-posix: assume glibc 2.33 fixes this.
880         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
881         Use compile-time test rather than guessing for cross-builds.
883 2020-12-20  Bruno Haible  <bruno@clisp.org>
885         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
886         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
887         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
888         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
890 2020-12-20  Bruno Haible  <bruno@clisp.org>
892         float: Fix compilation error when gnulib's float.h exists twice.
893         Reported by Santiago Vila <sanvila@unex.es>.
894         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
896 2020-12-19  Bruno Haible  <bruno@clisp.org>
898         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
899         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
900         Don't trust _POSIX_VERSION for this test.
902 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
904         free-posix: port to GNU/Linux
905         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
906         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
907         other GNU/Linux hosts.
909 2020-12-19  Bruno Haible  <bruno@clisp.org>
911         free-posix: Add tests.
912         * tests/test-free.c: New file.
913         * tests/macros.h (ASSERT_NO_STDIO,
914         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
915         WRITE_TO_STDERR): New macros.
916         * modules/free-posix-tests: New file.
918 2020-12-18  Bruno Haible  <bruno@clisp.org>
920         free-posix: Add C++ declaration test.
921         * tests/test-stdlib-c++.cc (free): New declaration.
923 2020-12-18  Bruno Haible  <bruno@clisp.org>
925         free-posix: New module, renamed from 'free'.
926         * modules/free-posix: Renamed from modules/free.
927         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
929         not GNULIB_FREE.
930         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
931         GNULIB_FREE.
932         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
933         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
934         what it does.
935         * NEWS: Mention that module 'free' no longer exists.
936         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
937         * modules/canonicalize-lgpl (Depends-on): Likewise.
939 2020-12-18  Bruno Haible  <bruno@clisp.org>
941         free: Remove support for obsolete platforms.
942         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
943         CANNOT_FREE_NULL.
944         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
945         * modules/free (Description): Update.
946         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
948 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
950         intprops: port to ICC 2021.1 Beta 20201112
951         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
952         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
953         Add a clause for other compilers that claim to support
954         __builtin_mul_overflow_p, since we might as well find out about
955         slackers other than Clang and ICC.
956         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
957         like older GCCs even when it claims to be a newer one.
959 2020-12-18  Bruno Haible  <bruno@clisp.org>
961         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
962         Reported by Stefan Liebler <stli@linux.ibm.com> in
963         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
964         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
965         GCC 5.x and 6.x.
966         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
967         GCC 5.x and 6.x.
969 2020-12-17  Bruno Haible  <bruno@clisp.org>
971         free: Fix warning.
972         Reported by Pádraig Brady <P@draigBrady.com> in
973         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
974         * lib/stdlib.in.h (free): New declaration.
975         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
976         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
977         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
978         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
979         'free' as a macro here.
980         * modules/free (Depends-on): Add stdlib.
981         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
983 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
985         canonicalize-lgpl: fix AIX test failures
986         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
987         Problem reported by Bruno Haible in:
988         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
989         * lib/canonicalize-lgpl.c: Include sys/stat.h.
990         (__realpath): When testing a file name ending in '/', use stat
991         rather than readlink, so that it does the right thing on AIX.
992         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
994         canonicalize: omit second readlink when not needed
995         * lib/canonicalize.c (canonicalize_filename_mode_stk):
996         Omit second readlink when (can_exist != CAN_MISSING
997         && startlen != 0 && !logical).  Simplify.
999         canonicalize: remove arbitrary 8192-byte limit
1000         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1001         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1002         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1003         using scratch buffers.  Lessen the number of differences between
1004         the two source files, to simplify this and future maintenance.
1005         * lib/canonicalize-lgpl.c (__realpath):
1006         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1007         Use scratch buffers instead of malloc and malloca.  This avoids
1008         the need for alloca, and avoids the need for malloc in most cases.
1009         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1010         easier to compare, e.g., by sorting include files and by switching
1011         to the GNU convention of calling file names "file names", not
1012         "path names".  Include stdbool.h, scratch_buffer.h.
1013         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1014         (malloca) [_LIBC]: Remove.
1015         [!_LIBC]: Do not include malloca.h.
1016         (get_path_max): New function, so that pathconf is called only in
1017         the rare and dubious case when when RESOLVED is not null and
1018         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1019         file name, as we care about the longest file name starting from
1020         "/" (not from the input file name), and POSIX does not specify
1021         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1022         not defined, do not worry about overriding a path_max of 0, and do
1023         not let path_max exceed IDX_MAX.
1024         (__realpath): Remove an assumption that file name components
1025         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1026         the Hurd, presumably).
1027         When allocating the result, allocate it to just the right size;
1028         this costs nothing when the result is smaller than 1023 bytes,
1029         and for larger results it's probably worth the CPU to call realloc,
1030         as canonicalize.c already does.
1031         * lib/canonicalize.c: Include attribute.h.
1032         Do not include pathmax.h or xgetcwd.h.
1033         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1034         work on platforms with no fixed limit.
1035         (canonicalize_filename_mode_stk): New function, with
1036         the content of the old canonicalize_filename_mode.
1037         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1038         since the scratch buffers now do memory management for us.
1039         Use rawmemchr instead of adding strlen.
1040         Use mempcpy instead of mempcpy + size.
1041         Assume free preserves errno.
1042         (canonicalize_filename_mode): Use it.
1043         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1044         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1045         scratch_buffer, stdbool, xalloc-die.
1046         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1047         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1049         canonicalize-lgpl: simplify merge to glibc
1050         This patch lessens the differences between git glibc
1051         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1052         The (perhaps wishful) goal is to make them identical.
1053         * lib/canonicalize-lgpl.c [!_LIBC]:
1054         Include <libc-config.h>, not config.h.
1055         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1056         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1057         Do not include alloca.h, since we use malloca now.
1058         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1059         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1060         freea so that the mainline code can be kept #ifdef free.
1061         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1062         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1063         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1064         __eloop_threshold.  All uses of their definiens changed.
1065         (SIZE_MAX): Remove; no longer needed.
1066         (alloc_failed): Remove, and remove all instances.
1067         No need for alloc_failed now that free preserves errno.
1068         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1069         the glibc tradition and is safer when the 2nd argument is null.
1070         Use __rawmemchr instead of strchr.
1071         Use __mempcpy where appropriate.
1072         Simplify test for overflow so that it does not need SIZE_MAX.
1073         Do not preserve errno around free or freea calls; no longer needed.
1074         Mark __realpath with libc_hidden_def.
1075         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1076         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1077         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1079         free: preserve errno
1080         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1081         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1082         platforms that do not preserve errno.
1083         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1084         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1085         * modules/free (configure.ac): Also replace 'free' if
1086         it does not preserve errno.
1088         idx: simplify IDX_MAX, remove IDX_WIDTH
1089         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1090         to UNSIGNED_IDX_T.
1091         (IDX_WIDTH): Remove, since it’s not used and its value
1092         arguably should be PTRDIFF_WIDTH anyway.
1094 2020-12-16  Bruno Haible  <bruno@clisp.org>
1096         posix_spawn_file_actions_addfchdir-tests: Rename test.
1097         * tests/test-posix_spawn-fchdir.c: Renamed from
1098         tests/test-posix_spawn5.c.
1099         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1100         Update.
1102         posix_spawn_file_actions_addchdir-tests: Rename test.
1103         * tests/test-posix_spawn-chdir.c: Renamed from
1104         tests/test-posix_spawn4.c.
1105         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1106         Update.
1108         posix_spawn-tests: Rename test.
1109         * tests/test-posix_spawn-open1.c: Renamed from
1110         tests/test-posix_spawn3.c.
1111         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1113         posix_spawnp-tests: Rename test.
1114         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1115         tests/test-posix_spawn2.c.
1116         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1117         tests/test-posix_spawn2.in.sh.
1118         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1120         posix_spawnp-tests: Rename test.
1121         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1122         tests/test-posix_spawn1.c.
1123         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1124         tests/test-posix_spawn1.in.sh.
1125         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1127 2020-12-14  Bruno Haible  <bruno@clisp.org>
1129         findprog-in: Allow overriding the current directory.
1130         * lib/findprog.h (find_in_given_path): Add directory argument.
1131         * lib/findprog-in.c (find_in_given_path): Likewise.
1132         * lib/execute.c (execute): Update caller.
1133         * lib/spawn-pipe.c (create_pipe): Likewise.
1134         * lib/windows-spawn.c (spawnpvech): Likewise.
1135         * NEWS: Mention the change.
1137 2020-12-14  Bruno Haible  <bruno@clisp.org>
1139         posix_spawn-internal: Make better use of 'const'.
1140         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1141         of argv and envp.
1142         * lib/spawni.c (__spawni, script_execute): Likewise.
1143         * lib/spawn.c (posix_spawn): Update caller.
1144         * lib/spawnp.c (posix_spawnp): Likewise.
1146 2020-12-14  Bruno Haible  <bruno@clisp.org>
1148         spawn: Make it compile on native Windows.
1149         * modules/spawn (Depends-on): Add signal-h.
1151 2020-12-14  Bruno Haible  <bruno@clisp.org>
1153         windows-spawn: Avoid shadowing a variable.
1154         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1156 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1158         string: port memchr macro to AIX 7.2 XLC
1159         Its <string.h> defines a memchr macro to help inlining.
1160         * lib/string.in.h (memchr): #undef before #defining.
1162         canonicalize: fix AIX test failures
1163         Problem reported by Bruno Haible in:
1164         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1165         * lib/canonicalize.c (canonicalize_filename_mode):
1166         When testing a file name ending in '/', use stat rather than
1167         readlink, so that it does the right thing on AIX.
1168         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1169         recent changes in the Gnulib readlink module.
1171         Assume readlink/readlinkat ERANGE fix
1172         * lib/areadlink-with-size.c (areadlink_with_size):
1173         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1174         * lib/careadlinkat.c (readlink_stk):
1175         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1176         since the Gnulib readlink and readlinkat modules now fix that.
1178         getcwd: port to AIX
1179         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1180         in case our sys/stat.h #defined a function macro with the same name.
1182         readlink, readlinkat: add ERANGE portability
1183         Fix some portability issues with Gnulib's readlink and readlinkat,
1184         notably mostly working around the ERANGE problem in AIX and HP-UX.
1185         * doc/posix-functions/readlink.texi:
1186         * doc/posix-functions/readlinkat.texi:
1187         ERANGE problem is mostly fixed now.  Mention AIX problem with
1188         trailing / and EINVAL.  Lessen differences between these two files.
1189         * lib/readlink.c (rpl_readlink):
1190         * lib/readlinkat.c (rpl_readlinkat):
1191         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1192         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1193         Lessen spurious differences between the readlink and readlinkat code.
1194         * lib/readlinkat.c (rpl_readlinkat):
1195         Fix bug where stat was used where fstatat was intended.
1196         * m4/readlink.m4 (gl_FUNC_READLINK):
1197         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1198         to identify readlink problems more precisely.  All uses changed.
1199         Guess no on AIX or HP-UX for this variable.
1200         Add check for whether readlink truncates results,
1201         and define new macro READLINK_TRUCATE_BUG accordingly.
1202         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1203         Also check gl_cv_func_readlink_trailing_slash when deciding
1204         whether to replace readlinkat.
1205         * modules/readlinkat (Depends-on): Most dependencies are also
1206         needed if replacing readlinkat.  fstatat is different, as it
1207         is needed only if replacing an existing readlinkat.
1209 2020-12-13  Bruno Haible  <bruno@clisp.org>
1211         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1212         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1213         the stdin_handle and/or stdout_handle.
1215 2020-12-12  Bruno Haible  <bruno@clisp.org>
1217         Fix gnulib-tool error when some modules occur in tests/.
1218         * doc/gnulib.texi (Specification): Update statistics.
1219         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1220         (Using AC_LIBOBJ): New section.
1221         * check-AC_LIBOBJ: New file.
1222         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1223         * modules/fopen-gnu (Files): Add lib/fopen.c.
1224         * modules/memmem (Files): Add lib/memmem.c.
1225         * modules/renameat (Files): Add lib/at-func2.c.
1226         * modules/strcasestr (Files): Add lib/strcasestr.c.
1227         * modules/strstr (Files): Add lib/strstr.c.
1229 2020-12-11  Bruno Haible  <bruno@clisp.org>
1231         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1232         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1233         elements of argv.
1234         * lib/sh-quote.c (shell_quote_argv): Likewise.
1235         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1236         the return type.
1237         * lib/windows-spawn.c (prepare_spawn): Likewise.
1238         * lib/os2-spawn.h (prepare_spawn): Likewise.
1239         * lib/os2-spawn.c (prepare_spawn): Likewise.
1240         * lib/execute.h (execute): Does not need write access to the elements of
1241         prog_argv.
1242         * lib/execute.c (execute): Likewise.
1243         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1244         Likewise.
1245         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1246         create_pipe_out): Likewise.
1247         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1248         Likewise.
1249         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1250         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1251         * lib/javaexec.h (execute_fn): Does not need write access to the
1252         elements of prog_argv.
1253         * lib/javaexec.c (execute_java_class): Update variable types and remove
1254         casts to 'char *'.
1255         * lib/csharpexec.h (execute_fn): Does not need write access to the
1256         elements of prog_argv.
1257         * lib/csharpexec.c (execute_csharp_using_mono,
1258         execute_csharp_using_sscli): Update variable types and remove casts to
1259         'char *'.
1260         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1261         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1262         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1263         is_jikes_present): Update variable types and remove casts to 'char *'.
1264         * lib/javaversion.c (execute_and_read_line): Does not need write access
1265         to the elements of prog_argv.
1266         * lib/csharpcomp.c (compile_csharp_using_mono,
1267         compile_csharp_using_sscli): Update variable types and remove casts to
1268         'char *'.
1269         * tests/test-sh-quote.c (main): Update variable types and remove casts
1270         to 'char *'.
1271         * tests/test-execute-main.c (main): Update variable types and remove
1272         casts to 'char *'.
1273         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1274         remove casts to 'char *'.
1275         * NEWS: Mention the changes.
1277 2020-12-11  Bruno Haible  <bruno@clisp.org>
1279         execute-tests: Fix compilation error with MSVC.
1280         * tests/test-execute-child.c (is_device): With _fstat, use
1281         'struct _stat', not 'struct stat'.
1283 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1285         vararrays: just use 2.70
1286         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1287         and later, since Autoconf 2.70 matches Gnulib now.
1289         sys_types: just use 2.70
1290         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1291         Reindent to match Autoconf sources.
1292         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1294         stdint: port to Autoconf 2.70
1295         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1296         instead of assuming that AC_INCLUDES_DEFAULT does it.
1297         The old code relied on AC_INCLUDES_DEFAULT being called
1298         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1299         but this does not occur in Autoconf 2.70.
1301         pid_t.m4: just use 2.70
1302         * m4/pid_t.m4 (AC_TYPE_PID_T):
1303         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1305         largefile: just use 2.70
1306         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1307         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1309         AC_C_RESTRICT: update from Autoconf
1310         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1311         as a prerequisite, not 2.69c, since 2.70 is now out.
1312         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1313         Try __restrict__ before __restrict.
1315         extensions: update from Autoconf
1316         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1317         Provide a default implementation for Autoconf 2.69 or earlier.
1318         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1319         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1321         alloca: update from Autoconf
1322         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1323         Trivial update to match Autoconf 2.70.
1325 2020-12-11  Bruno Haible  <bruno@clisp.org>
1327         memchr: Work around memory overrun bug on AIX 7.2.
1328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1329         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1331 2020-12-11  Bruno Haible  <bruno@clisp.org>
1333         execute-tests: Fix compilation error on AIX in 32-bit mode.
1334         * tests/test-execute-child.c: In order to get the original definition of
1335         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1336         include the system's <sys/stat.h> and use it before including other
1337         header files.
1339 2020-12-10  Bruno Haible  <bruno@clisp.org>
1341         windows-spawn: Relicense under LGPLv2+.
1342         * modules/windows-spawn (License): Change to LGPLv2+.
1344 2020-12-10  Bruno Haible  <bruno@clisp.org>
1346         execute, spawn-pipe: Fix memory leak on native Windows.
1347         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1348         * lib/windows-spawn.c: Don't include xalloc.h.
1349         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1350         prepare_spawn.
1351         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1352         elements of *new_argv together.
1353         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1354         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1355         * lib/os2-spawn.c: Don't include xalloc.h.
1356         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1357         elements of *new_argv together.
1358         * lib/execute.c: Include xalloc.h.
1359         (execute): Check return value of prepare_spawn. Free the memory
1360         allocated by prepare_spawn.
1361         * modules/execute (Depends-on): Add xalloc-die.
1362         * lib/spawn-pipe.c: Include xalloc.h.
1363         (create_pipe): Check return value of prepare_spawn. Free the memory
1364         allocated by prepare_spawn.
1365         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1367 2020-12-10  Bruno Haible  <bruno@clisp.org>
1369         findprog-in: Relicense under LGPLv2+.
1370         Paul Smith's approval is in
1371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1372         * modules/findprog-in (License): Change to LGPLv2+.
1374 2020-12-10  Bruno Haible  <bruno@clisp.org>
1376         findprog-in: Don't exit upon out-of-memory.
1377         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1378         code.
1379         * lib/findprog-in.c: Don't include xalloc.h.
1380         (find_in_given_path): Call concatenated_filename, not
1381         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1382         return NULL with errno set.
1383         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1384         concat-filename, strdup-posix, malloc-posix.
1386 2020-12-09  Bruno Haible  <bruno@clisp.org>
1388         fmaf: Work around a bug on FreeBSD 12.2/arm.
1389         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1390         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1392 2020-12-09  Bruno Haible  <bruno@clisp.org>
1394         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1395         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1396         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1397         * lib/glthread/threadlib.c: Include <errno.h>.
1398         (glthread_in_use): For FreeBSD, provide an alternative implementation
1399         that uses pthread_key_create.
1401 2020-12-09  Bruno Haible  <bruno@clisp.org>
1403         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1404         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1405         not 'isnan'.
1407 2020-12-08  Bruno Haible  <bruno@clisp.org>
1409         std-gnu11: Make compatible with Autoconf 2.70.
1410         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1411         use.
1413 2020-12-08  Bruno Haible  <bruno@clisp.org>
1415         argp: Avoid undefined behaviour when invoking qsort().
1416         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1417         Reported by Jeffrey Walton <noloader@gmail.com> in
1418         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1419         * lib/argp-help.c (group_cmp): Remove third argument.
1420         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1421         upon hol_cluster_cmp.
1422         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1423         (hol_entry_cmp): Rewritten to implement a total order.
1425 2020-12-08  Bruno Haible  <bruno@clisp.org>
1427         argp: Improve comments.
1428         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1429         null pointer.
1430         (struct hol_entry): Fix comment regarding sort order of group.
1431         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1432         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1433         (hol_cluster_is_child, argp_hol): Move functions.
1434         (HOL_ENTRY_PTRCMP): Remove unused macro.
1436 2020-12-08  Bruno Haible  <bruno@clisp.org>
1438         argp: Don't pass invalid arguments to isspace() and isalnum().
1439         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1440         before passing it to isspace() or isalnum().
1442 2020-12-08  Bruno Haible  <bruno@clisp.org>
1444         argp: Don't rely on undefined behaviour of _tolower().
1445         Patch by Eric Blake
1446         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1447         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1448         not upper-case.  Pass correct range to tolower.
1450 2020-12-07  Bruno Haible  <bruno@clisp.org>
1452         unicodeio: Fix wrong result on FreeBSD.
1453         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1454         characters on all platforms.
1456 2020-12-07  Bruno Haible  <bruno@clisp.org>
1458         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1459         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1460         FreeBSD systems.
1462 2020-12-07  Bruno Haible  <bruno@clisp.org>
1464         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1465         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1466         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1467         trivially of sbrk is not available.
1468         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1469         exist in FreeBSD 12.2/arm64.
1470         * doc/glibc-functions/brk.texi: Likewise.
1472 2020-12-07  Bruno Haible  <bruno@clisp.org>
1474         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1475         Suggested by Zack Weinberg in
1476         <https://savannah.gnu.org/support/?110294>.
1477         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1478         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1480 2020-12-07  Bruno Haible  <bruno@clisp.org>
1482         Tweak the Windows oldnames workaround.
1483         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1484         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1485         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1486         always.
1487         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1488         * lib/stdlib.in.h (putenv): Likewise.
1490 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1492         doc: fix flat address space discussion
1493         * doc/gnulib-readme.texi (Other portability assumptions):
1494         Move the all-bits-zero assumption outside the flat address space
1495         section, since the two issues are independent.
1497         doc: document -static-libubsan more
1498         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1499         -static-libubsan a bit more.  Mostly cons.
1501 2020-12-06  Bruno Haible  <bruno@clisp.org>
1503         doc: Add more details regarding the undefined behaviour sanitizer.
1504         * doc/gnulib-readme.texi (High Quality): Describe
1505         -fsanitize-undefined-trap-on-error better.
1507 2020-12-06  Bruno Haible  <bruno@clisp.org>
1509         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1510         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1512         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1513         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1514         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1515         a preprocessor #define.
1516         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1517         * lib/search.in.h (lfind, lsearch): Likewise.
1518         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1519         Likewise.
1520         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1521         * lib/string.in.h (memccpy, strdup): Likewise.
1522         * lib/sys_stat.in.h (chmod, umask): Likewise.
1523         * lib/time.in.h (tzset): Likewise.
1524         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1525         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1526         read, rmdir, swab, unlink, write): Likewise.
1527         * lib/utime.in.h (utime): Likewise.
1528         * lib/wchar.in.h (wcsdup): Likewise.
1529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1530         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1531         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1532         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1533         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1534         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1535         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1536         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1538         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1539         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1540         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1541         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1542         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1544 2020-12-06  Bruno Haible  <bruno@clisp.org>
1546         doc: Mention some missing function declarations.
1547         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1548         AIX.
1549         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1550         FreeBSD.
1551         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1552         Cygwin.
1553         * doc/pastposix-functions/fcvt.texi: Likewise.
1554         * doc/pastposix-functions/gcvt.texi: Likewise.
1556 2020-12-06  Bruno Haible  <bruno@clisp.org>
1558         doc: Tweak example.
1559         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1560         'print'.
1562 2020-12-06  Bruno Haible  <bruno@clisp.org>
1564         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1565         * tests/test-filenamecat.c: Include idx.h.
1566         (main): Mark prefixlen as nonnegative.
1567         * modules/filenamecat-tests (Depends-on): Add idx.
1569 2020-12-06  Bruno Haible  <bruno@clisp.org>
1571         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1572         * lib/time_rz.c: Include idx.h.
1573         (save_abbr): Mark zone_size as nonnegative.
1574         * modules/time_rz (Depends-on): Add idx.
1576 2020-12-06  Bruno Haible  <bruno@clisp.org>
1578         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1579         * lib/parse-datetime.y: Include idx.h.
1580         (textint): Mark digits as nonnegative.
1581         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1582         dsts_seen, times_seen, zones_seen as nonnegative.
1583         (lookup_word): Mark wordlen as nonnegative.
1584         (yylex): Mark count as nonnegative.
1585         (parse_datetime2): Mark tzsize as nonnegative.
1586         * modules/parse-datetime (Depends-on): Add idx.
1588 2020-12-06  Bruno Haible  <bruno@clisp.org>
1590         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1591         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1592         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1593         nonnegative.
1594         * modules/fnmatch (Depends-on): Add idx.
1596 2020-12-06  Bruno Haible  <bruno@clisp.org>
1598         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1599         * lib/c-stack.c: Include idx.h.
1600         (die): Mark buflen as nonnegative.
1601         * modules/c-stack (Depends-on): Add idx.
1603 2020-12-06  Bruno Haible  <bruno@clisp.org>
1605         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1606         * lib/backupfile.c: Include idx.h.
1607         (numbered_backup): Mark base_offset as nonnegative.
1608         (backupfile_internal): Likewise.
1609         * modules/backup-rename (Depends-on): Add idx.
1610         * modules/backupfile (Depends-on): Likewise.
1612 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1614         doc: fix curved quotes issue
1615         * doc/gnulib.texi: Set txicodequoteundirected and
1616         txicodequotebacktick so that ` and ' in examples do not generate
1617         curved single quotes that do the wrong thing when cut and pasted.
1619         doc: mention static and dynamic checking
1620         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1621         for static and dynamic checking.
1623         intprops: Add INT_ADD_OK etc.
1624         * doc/intprops.texi (Checking Integer Overflow): New section.
1625         * lib/intprops.h: From a suggestion by Bruno Haible in:
1626         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1627         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1629         doc: move exotic platfroms to Target Platforms
1630         * doc/gnulib-intro.texi (Supported Platforms)
1631         (Formerly Supported Platforms, Unsupported Platforms):
1632         New subsections, split off from Target Platforms.
1633         (Unsupported Platforms): Move the exotic-platform stuff here ...
1634         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1635         section.
1637         doc: mention intptr_t etc. and IBM i
1638         * doc/gnulib-readme.texi (Other portability assumptions):
1639         Mention intptr_t and uintptr_t, and that arithmetic on them
1640         works in the usual way.
1641         (Exotic platforms): New section, containing material from
1642         the old 'Integer Portability' section.  Also mention IBM i.
1643         * doc/intprops.texi (Wraparound Arithmetic):
1644         Say that the macros work on unsigned integers too.
1645         (Integer Portability): Remove.
1647 2020-12-04  Bruno Haible  <bruno@clisp.org>
1649         utime: Fix a test failure on macOS 10.13.
1650         Reported by Martin Storsjö <martin@martin.st> in
1651         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1652         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1653         slashes on files.
1654         * lib/utime.c (utime): Add alternative implementation for Unix
1655         platforms.
1656         * modules/utime (Depends-on): Add stat.
1657         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1658         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1659         trailing-slash bug.
1660         * doc/posix-functions/open.texi: Likewise.
1661         * doc/posix-functions/stat.texi: Likewise.
1662         * doc/posix-functions/symlink.texi: Likewise.
1664 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1666         intprops: update doc and mention Unisys
1667         * doc/gnulib-readme.texi (Other portability assumptions):
1668         Also mention ptrdiff_t when talking about widths and overflow.
1669         * doc/intprops.texi (Integer Properties): Summarize new section.
1670         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1671         evaluates its argument.
1672         (Integer Bounds): Fix typo.
1673         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1674         Document that the _WRAPV macros now support pointers to unsigned
1675         integers.
1676         (Integer Range Overflow): Update SEI CERT citation.
1677         (Integer Portability): New subsection, which mentions
1678         the oddball Unisys platforms as non-Gnulib targets.
1680 2020-12-03  Bruno Haible  <bruno@clisp.org>
1682         idx: Clarify that idx_t always behaves like a signed type.
1683         Suggested by Paul Eggert in
1684         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1685         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1686         Don't test UNSIGNED_IDX_T.
1688 2020-12-03  Bruno Haible  <bruno@clisp.org>
1690         idx: New module.
1691         * lib/idx.h: New file.
1692         * modules/idx: New file.
1693         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1694         ptrdiff_t.
1695         * lib/canonicalize.c: Likewise.
1696         * modules/canonicalize-lgpl (Depends-on): Add idx.
1697         * modules/canonicalize (Depends-on): Likewise.
1699 2020-12-03  Bruno Haible  <bruno@clisp.org>
1701         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1702         Reported by Martin Storsjö <martin@martin.st> in
1703         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1704         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1705         (main): Return a different exit code at each point. Allow 100 KB extra
1706         memory consumption.
1707         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1708         doesn't work" diagnostic.
1710 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1712         canonicalize: refactor can_mode flag
1713         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1714         (multiple_bits_set): ... this new static function.  Uses changed.
1715         (canonicalize_filename_mode): Refactor for clarity to avoid
1716         modifying the CAN_MODE argument.
1718         canonicalize: prefer signed integer types
1719         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1720         (seen_triple, canonicalize_filename_mode): Prefer signed to
1721         unsigned types where either will do, as they avoid some glitches
1722         in comparisons and can trap on overflow when debugging.
1724         canonicalize: fix most of another EOVERFLOW issue
1725         * lib/canonicalize.c (canonicalize_filename_mode):
1726         Do not call stat if fewer than 20 symlinks have been traversed.
1727         This avoids EOVERFLOW failure in the common case where there
1728         are not that many symlinks, while continuing to catch loops
1729         (or fail due to EOVERFLOW) in the unusual case when there
1730         are many symlinks to traverse.
1732         canonicalize: do not assume symlinks have st_ino
1733         * lib/canonicalize.c (canonicalize_filename_mode):
1734         When checking for loops, use st_dev and st_ino from the parent
1735         directory not from the symlink, as pre-2017 POSIX says these
1736         members are not reliable for symlinks.  Couple this with START
1737         (the remaining file name to be resolved), not NAME (the whole file
1738         name with START as its suffix).
1739         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1741         canonicalize: fix EOVERFLOW bug
1742         * lib/canonicalize.c (canonicalize_filename_mode):
1743         When testing whether a directory entry is a symbolic link, or a
1744         directory or other, do not use lstat or stat or
1745         areadlink_with_size.  Just use areadlink, as this suffices and it
1746         avoids the EOVERFLOW problem that lstat and stat have.
1747         * modules/canonicalize (Depends-on): Depend on areadlink instead
1748         of areadlink-with-size and stat.
1750         canonicalize-lgpl: fix EOVERFLOW bug
1751         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1752         (__realpath): Do not use lstat.  Just use readlink, as this
1753         suffices and it avoids the EOVERFLOW problem that lstat has.
1754         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1756 2020-12-02  Bruno Haible  <bruno@clisp.org>
1758         strsignal-tests: Fix test failure on macOS 10.13.
1759         Reported by Martin Storsjö <martin@martin.st> in
1760         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1761         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1762         to be longer than the expected result.
1764 2020-12-02  Bruno Haible  <bruno@clisp.org>
1766         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1767         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1768         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1770 2020-12-02  Bruno Haible  <bruno@clisp.org>
1772         spawn-pipe: Allow caller to specify directory for the subprocess.
1773         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1774         Add directory argument.
1775         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1776         (create_pipe): Add directory argument. If specified, resolve the program
1777         file name and make it absolute, first. Pass the directory to spawnpvech
1778         and posix_spawn_file_actions_addchdir.
1779         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1780         argument.
1781         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1782         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1783         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1784         * NEWS: Mention the change.
1785         * lib/csharpcomp.c (compile_csharp_using_mono,
1786         compile_csharp_using_sscli): Update.
1787         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1788         is_gcj_43): Update.
1789         * lib/javaversion.c (execute_and_read_line): Update.
1790         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1791         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1793 2020-12-02  Bruno Haible  <bruno@clisp.org>
1795         execute: Allow caller to specify directory for the subprocess.
1796         * lib/execute.h (execute): Add directory argument.
1797         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1798         (execute): Add directory argument. If specified, resolve the program
1799         file name and make it absolute, first. Pass the directory to spawnpvech
1800         and posix_spawn_file_actions_addchdir.
1801         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1802         posix_spawn, posix_spawn_file_actions_addchdir.
1803         * tests/test-execute-main.c: Add test for passing a directory.
1804         * tests/test-execute-child.c: Likewise.
1805         * tests/test-execute.sh: Update.
1806         * modules/execute-tests (Depends-on): Add mkdir.
1807         * NEWS: Mention the change.
1808         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1809         * lib/csharpexec.c (execute_csharp_using_mono,
1810         execute_csharp_using_sscli): Update.
1811         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1812         compile_using_javac, compile_using_jikes, is_javac_present,
1813         is_jikes_present): Update.
1814         * lib/javaexec.c (execute_java_class): Update.
1816 2020-12-01  Bruno Haible  <bruno@clisp.org>
1818         vma-iter: Add support for macOS11/arm64.
1819         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1820         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1821         and by Martin Storsjö <martin@martin.st> in
1822         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1823         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1825 2020-12-01  Bruno Haible  <bruno@clisp.org>
1827         spawn-pipe: Fix handling of OS/2 kLIBC.
1828         Reported by KO Myung-Hun <komh78@gmail.com> in
1829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1830         * modules/spawn-pipe (configure.ac): Use the common idiom for
1831         recognizing the OS/2 operating system.
1833 2020-11-30  Bruno Haible  <bruno@clisp.org>
1835         execute: Fix uninitialized use of errno.
1836         * lib/execute.c (execute): Preserve errno across several system calls.
1838 2020-11-30  Bruno Haible  <bruno@clisp.org>
1840         access tests: Fix test failure on native Windows.
1841         * tests/test-access.c (main): Change permissions of f2 file before
1842         attempting to remove it.
1844 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1846         faccessat: link with $(LIB_EACCESS)
1847         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1848         module depends on euidaccess.
1850 2020-11-30  Bruno Haible  <bruno@clisp.org>
1852         execute, spawn-pipe: Make multithread-safe on native Windows.
1853         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1854         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1855         (spawnpvech): New declaration.
1856         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1857         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1858         (_): Remove macro.
1859         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1860         undup_safer_noinherit): Remove functions.
1861         (spawnpvech): New function.
1862         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1863         cloexec, dup2, error, gettext-h.
1864         * lib/execute.c: Include msvc-nothrow.h.
1865         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1866         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1867         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1868         instead of _spawnvpe.
1869         * modules/execute (Depends-on): Add msvc-nothrow.
1870         * modules/spawn-pipe (Depends-on): Likewise.
1872 2020-11-30  Bruno Haible  <bruno@clisp.org>
1874         execute, spawn-pipe: Improve documentation.
1875         * lib/execute.h: Describe progname, prog_path, prog_argv.
1876         * lib/spawn-pipe.h: Likewise.
1878 2020-11-30  Bruno Haible  <bruno@clisp.org>
1880         execute tests: Add more tests.
1881         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1882         inherited file descriptors >= 3.
1883         * tests/test-execute-child.c: Likewise.
1884         * tests/test-execute.sh: Update.
1886 2020-11-30  Bruno Haible  <bruno@clisp.org>
1888         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1889         Reported by comex <comexk@gmail.com> in
1890         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1891         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1892         don't expect an ELF header.
1894 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1896         bitset: use integer_length in table implementation
1897         * lib/bitset/table.c (tbitset_list_reverse): Use
1898         BITSET_FOR_EACH_BIT_REVERSE.
1900 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1902         bitset: use integer_length in list implementation
1903         * lib/bitset/list.c (lbitset_list_reverse): Use
1904         BITSET_FOR_EACH_BIT_REVERSE.
1906 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1908         bitset: use integer_length in vector implementation
1909         * lib/bitset/array.c (vbitset_list_reverse): Use
1910         BITSET_FOR_EACH_BIT_REVERSE.
1912 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1914         bitset: use integer_length in array implementation
1915         * modules/bitset (Depends-on): Add integer_length_l.
1916         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1917         * lib/bitset/array.c (abitset_list_reverse): Use it.
1919 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1921         bitset: style: use consistent names
1922         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1923         and 'boffset' as 'bitoff', for consistency with the other
1924         implementations.
1925         * bitset/table.c (tbitset_list_reverse): Likewise.
1927 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1929         bitset: style: sort header
1930         * lib/bitset/base.h (bitset_ffs): Rename as...
1931         (bitset_ffs_): this.
1932         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1934 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1936         bitset: tests: check BITSET_FOR_EACH_REVERSE
1937         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1938         Check BITSET_FOR_EACH_REVERSE.
1940 2020-11-29  Bruno Haible  <bruno@clisp.org>
1942         spawn-pipe tests: Fix test failure with MSVC.
1943         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1944         (gl_msvc_invalid_parameter_handler): New function.
1945         (main): Set a global invalid-parameter handler.
1946         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1948 2020-11-29  Bruno Haible  <bruno@clisp.org>
1950         execute: Add tests.
1951         * tests/test-execute.sh: New file.
1952         * tests/test-execute-main.c: New file.
1953         * tests/test-execute-child.c: New file.
1954         * modules/execute-tests: New file.
1956 2020-11-29  Bruno Haible  <bruno@clisp.org>
1958         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1959         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1960         works.
1961         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1962         fallback implementation as on Haiku.
1963         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1964         effective.
1965         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1967 2020-11-29  Bruno Haible  <bruno@clisp.org>
1969         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1970         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1971         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1972         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1973         * lib/windows-spawn.c: Remove modifications for kLIBC.
1974         * modules/spawn-pipe (Files): Add the new files.
1975         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1977 2020-11-28  Bruno Haible  <bruno@clisp.org>
1979         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1980         Reported by Paul Eggert in
1981         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1982         * m4/sparcv8+.m4: New file.
1983         * modules/sparcv8+: New file.
1984         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1986 2020-11-28  Bruno Haible  <bruno@clisp.org>
1988         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1989         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1991 2020-11-28  Bruno Haible  <bruno@clisp.org>
1993         windows-spawn: New module.
1994         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1995         implementations.
1996         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1997         * modules/windows-spawn: New file.
1998         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1999         * lib/spawn-pipe.c: Likewise.
2000         * modules/execute (Files): Remove lib/w32spawn.h.
2001         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2002         xalloc.
2003         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2004         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2005         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2006         xalloc.
2007         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2009 2020-11-27  Bruno Haible  <bruno@clisp.org>
2011         ssfmalloc tests: Port to macOS 11.
2012         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2014 2020-11-26  Bruno Haible  <bruno@clisp.org>
2016         Fix dependencies of modules that use '_exit' on native Windows.
2017         Reported by Jim Meyering in
2018         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2019         * modules/_Exit (Depends-on): Add unistd.
2020         * modules/closein (Depends-on): Likewise.
2021         * modules/closeout (Depends-on): Likewise.
2022         * modules/forkpty (Depends-on): Likewise.
2023         * modules/posix_spawn-internal (Depends-on): Likewise.
2024         * modules/savewd (Depends-on): Likewise.
2025         * modules/stat-time-tests (Depends-on): Likewise.
2027 2020-11-26  Bruno Haible  <bruno@clisp.org>
2029         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2030         * modules/raise-tests (Depends-on): Add unistd.
2031         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2033 2020-11-25  Jim Meyering  <meyering@fb.com>
2035         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2036         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2037         non-NULL, since we don't bother handing strdup failure.
2039         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2040         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2041         * tests/test-raise.c: Include unistd.h.
2042         (handler): Use _exit, not exit.
2044 2020-11-23  Bruno Haible  <bruno@clisp.org>
2046         Use the correct printf format attribute for mingw.
2047         Reported by Reuben Thomas <rrt@sc3d.org> in
2048         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2050         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2051         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2053         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2054         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2055         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2056         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2057         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2058         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2060         * modules/vasnprintf (Depends-on): Add stdio.
2061         * lib/vasnprintf.h: Include <stdio.h>.
2062         (asnprintf, vasnprintf): Use the standard printf format attribute.
2064         * modules/xvasprintf (Depends-on): Add stdio.
2065         * lib/xvasprintf.h: Include <stdio.h>.
2066         (xasprintf, xvasprintf): Use the standard printf format attribute.
2068         * modules/xprintf (Depends-on): List stdio first.
2069         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2070         depends on GNULIB_VPRINTF_POSIX.
2071         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2072         GNULIB_VFPRINTF_POSIX.
2074         * modules/c-vasnprintf (Depends-on): Add stdio.
2075         * lib/c-vasnprintf.h: Include <stdio.h>.
2076         (c_vasnprintf): Use the standard printf format attribute.
2078         * modules/c-vasprintf (Depends-on): Add stdio.
2079         * lib/c-vasprintf.h: Include <stdio.h>.
2080         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2082         * modules/c-vsnprintf (Depends-on): Add stdio.
2083         * lib/c-vsnprintf.h: Include <stdio.h>.
2084         (c_vsnprintf): Use the standard printf format attribute.
2086         * modules/c-snprintf (Depends-on): Add stdio.
2087         * lib/c-snprintf.h: Include <stdio.h>.
2088         (c_snprintf): Use the standard printf format attribute.
2090         * modules/c-xvasprintf (Depends-on): Add stdio.
2091         * lib/c-xvasprintf.h: Include <stdio.h>.
2092         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2094         * modules/error (Depends-on): Depend on stdio always.
2095         * lib/error.h: Include <stdio.h>.
2096         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2097         (error, error_at_line): Use a printf format attribute that depends on
2098         GNULIB_VFPRINTF_POSIX.
2099         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2100         _GL_ATTRIBUTE_FORMAT_PRINTF.
2102         * modules/verror (Depends-on): Add stdio.
2103         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2104         (verror, verror_at_line): Use the standard printf format attribute.
2105         * lib/verror.c: Include "error.h".
2107         * modules/argp (Depends-on): Add stdio.
2108         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2109         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2111         * modules/libtextstyle-optional (Depends-on): Add stdio.
2112         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2113         printf format attribute.
2115         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2116         format attribute.
2118 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2120         selinux-at, selinux-h: use const correct declarations
2121         * lib/se-selinux.in.h: Use const for "set" functions,
2122         to match current selinux, and support cleaner user code.
2123         * lib/selinux-at.c: Likewise.
2124         * lib/selinux-at.h: Likewise.
2126 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2128         canonicalize-lgpl: fix memory leak
2129         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2130         which could have occurred if BUF was so large that malloc was
2131         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2132         this eliminates the need to free BUF separately.
2134 2020-11-22  Bruno Haible  <bruno@clisp.org>
2136         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2137         * modules/xvasprintf (Depends-on): Add xalloc.
2138         * modules/pipe-filter-gi (Depends-on): Likewise.
2139         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2140         * modules/spawn-pipe (Depends-on): Likewise.
2142 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2144         bootstrap: add option hooks
2145         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2146         (bootstrap_option_hook): Likewise.
2147         (usage): Call bootstrap_print_option_usage_hook.
2149 2020-11-22  Bruno Haible  <bruno@clisp.org>
2151         argp: Don't break getprogname on non-glibc systems.
2152         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2153         program_invocation_name and program_invocation_short_name.
2155 2020-11-22  Bruno Haible  <bruno@clisp.org>
2157         doc: Document <link.h>.
2158         * doc/glibc-headers/link.texi: New file.
2159         * doc/gnulib.texi: Include it.
2161 2020-11-22  Bruno Haible  <bruno@clisp.org>
2163         doc: Add references to the LSB.
2164         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2165         * doc/posix-functions/*.texi: Likewise.
2167 2020-11-22  Bruno Haible  <bruno@clisp.org>
2169         doc: Fix a makeinfo warning (regression 2020-11-03).
2170         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2172 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2174         parse-datetime: fix printf format typo
2175         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2176         previous patch to this file.  Problem reported by Chris Elvidge in
2177         <https://bugs.gnu.org/44763#32>.
2179         setlocale-null-tests: work around GCC bug 44511
2180         * tests/test-setlocale_null-mt-all.c:
2181         * tests/test-setlocale_null-mt-one.c:
2182         Ignore -Wreturn-type, to work around GCC bug 44511.
2184         nl_langinfo-tests: work around GCC bug 44511
2185         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2186         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2187         Problem reported for GNU grep by Andreas Schwab
2188         <https://bugs.gnu.org/44535>.
2190         selinux-h: add stubs for selabel_open etc.
2191         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2192         because matchpathcon is deprecated in favor of selabel_open etc.,
2193         so this patch adds stubs for these functions.
2194         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2195         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2196         as it is needed for selabel_open and selinux/selinux.h declares
2197         this type here.
2198         * modules/selinux-h (Files): Add the new files.
2199         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2200         (lib_SOURCES): Add se-label.in.h, se-label.c.
2201         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2202         (selinux/label.h): New rule, mimicking selinux/context.h.
2203         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2204         (Include): Add selinux/label.h.
2206 2020-11-21  Bruno Haible  <bruno@clisp.org>
2208         Update after 'test-driver' in Automake changed.
2209         * build-aux/test-driver.diff: Rebase.
2211 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2213         read-file: remove dead assignment
2214         * lib/read-file.c (fread_file): Remove dead assignment when
2215         RF_SENSITIVE is set, flagged by clang-analyzer.
2217 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2219         bitset: tests: exercise the stats too
2221         * tests/test-bitset.c: Display the stats at the end of the test.
2222         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2223         last bin, display "256-..." rather that "256-511", since the last bin
2224         does count item greater than or equal to 256.
2226 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2228         bitset: tests: try harder to break it
2229         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2230         BITSET_LIST_SIZE.
2231         (main): Likewise.
2232         While at it, also exercise super small bitsets.
2234 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2236         bitset: use ffs where possible in the vector implementation
2237         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2239 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2241         bitset: use ffs where possible in the table implementation
2242         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2244 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2246         bitset: check empty and full bitsets
2247         * tests/test-bitset.c (check_zero, check_ones): New.
2248         (check_attributes): Use them.
2250 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2252         bitset: be sure to always return a value
2253         * lib/bitset/array.c (abitset_small_list): Always update *next and
2254         return a value.
2256 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2258         vcs-to-changelog: Expect spaces in file names
2259         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2260         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2261         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2262         tabs to spaces.
2263         (list_changes): Use tabs to identify file names.
2265 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2267         bitset: strengthen tests
2268         * tests/test-bitset.c (compare): Also check count.
2269         Deal only with random values, move the one-bit tests to...
2270         (check_one_bit): this new function.
2271         (check_attributes): Call it.
2273 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2275         bitset: fix iteration over table bitsets
2276         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2278 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2280         bitset: rename internal details for consistency
2281         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2283 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2285         bitset: test: run deterministic tests on several bitset sizes
2286         * tests/test-bitset.c (check_attributes): Run it with small and large
2287         sizes.
2289 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2291         bitset: use ffs where possible in the list implementation
2292         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2294 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2296         bitset: use ffs where possible in array implementation
2297         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2299 2020-11-17  Bruno Haible  <bruno@clisp.org>
2301         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2302         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2304         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2305         C++ mode.
2307 2020-11-17  Bruno Haible  <bruno@clisp.org>
2309         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2310         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2311         is always declared.
2312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2313         declared.
2315 2020-11-17  Bruno Haible  <bruno@clisp.org>
2317         Fix link errors on AIX.
2318         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2319         * modules/getumask (Link): Link with $(LIBTHREAD).
2320         * modules/getumask-tests (Makefile.am): Link test-getumask with
2321         $(LIBTHREAD).
2322         * modules/supersede (Link): Link with $(LIBTHREAD).
2323         * modules/supersede-tests (Makefile.am): Link test-supersede with
2324         $(LIBTHREAD).
2325         * modules/fatal-signal (Link): New section.
2326         * modules/execute (Link): New section.
2327         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2328         * modules/javaexec (Link): Link with $(LIBTHREAD).
2329         * modules/spawn-pipe (Link): New section.
2330         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2331         $(LIBTHREAD).
2332         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2333         * modules/javacomp (Link): Link with $(LIBTHREAD).
2334         * modules/javaversion (Link): Link with $(LIBTHREAD).
2335         * modules/pipe-filter-gi (Link): New section.
2336         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2337         test-pipe-filter-gi2-main with $(LIBTHREAD).
2338         * modules/pipe-filter-ii (Link): New section.
2339         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2340         test-pipe-filter-ii2-main with $(LIBTHREAD).
2341         * modules/term-style-control (Link): New section.
2342         * modules/term-style-control-tests (Makefile.am): Link
2343         test-term-style-control-hello, test-term-style-control-yes with
2344         $(LIBTHREAD).
2345         * modules/wait-process (Link): New section.
2346         * modules/nonblocking-pipe-tests (Makefile.am): Link
2347         test-nonblocking-pipe-main with $(LIBTHREAD).
2348         * modules/nonblocking-socket-tests (Makefile.am): Link
2349         test-nonblocking-socket-main with $(LIBTHREAD).
2351 2020-11-16  Bruno Haible  <bruno@clisp.org>
2353         Fix link errors on platforms with libunistring.
2354         * modules/c32isalnum (Link): New section.
2355         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2356         $(LIBUNISTRING).
2357         * modules/c32isalpha (Link): New section.
2358         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2359         $(LIBUNISTRING).
2360         * modules/c32isblank (Link): New section.
2361         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2362         $(LIBUNISTRING).
2363         * modules/c32iscntrl (Link): New section.
2364         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2365         $(LIBUNISTRING).
2366         * modules/c32isdigit (Link): New section.
2367         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2368         $(LIBUNISTRING).
2369         * modules/c32isgraph (Link): New section.
2370         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2371         $(LIBUNISTRING).
2372         * modules/c32islower (Link): New section.
2373         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2374         $(LIBUNISTRING).
2375         * modules/c32isprint (Link): New section.
2376         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2377         $(LIBUNISTRING).
2378         * modules/c32ispunct (Link): New section.
2379         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2380         $(LIBUNISTRING).
2381         * modules/c32isspace (Link): New section.
2382         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2383         $(LIBUNISTRING).
2384         * modules/c32isupper (Link): New section.
2385         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2386         $(LIBUNISTRING).
2387         * modules/c32isxdigit (Link): New section.
2388         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2389         $(LIBUNISTRING).
2390         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2391         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2392         $(LIBUNISTRING).
2394 2020-11-16  Bruno Haible  <bruno@clisp.org>
2396         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2397         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2398         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2399         * modules/getumask-tests (Makefile.am): Link test-getumask with
2400         $(LIBINTL).
2401         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2402         * modules/supersede-tests (Makefile.am): Link test-supersede with
2403         $(LIBINTL).
2404         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2405         $(LIBINTL).
2407 2020-11-16  Bruno Haible  <bruno@clisp.org>
2409         getumask: Document link dependencies.
2410         * modules/getumask (Link): New section.
2412 2020-11-16  Bruno Haible  <bruno@clisp.org>
2414         Update link dependencies in modules after 2020-09-09 change.
2415         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2416         * modules/mkdtemp (Link): Likewise.
2417         * modules/mkostemp (Link): Likewise.
2418         * modules/mkostemps (Link): Likewise.
2419         * modules/mkstemp (Link): Likewise.
2420         * modules/mkstemps (Link): Likewise.
2421         * modules/supersede (Link): Likewise.
2422         * modules/tmpfile (Link): Likewise.
2423         * modules/tmpfile-safer (Link): Likewise.
2425 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2427         getumask-tests: port to Solaris 10 etc.
2428         Problem reported by Tom Christensen in:
2429         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2430         * modules/getumask-tests (test_getumask_LDADD):
2431         Add $(LIB_CLOCK_GETTIME).
2433 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2435         bitset: use ffsl to accelerate iterations over set bits
2436         Suggested by Bruno Haible.
2437         * modules/bitset: Depend upon ffsl.
2438         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2439         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2441 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2443         bitset: more tests
2444         * tests/test-bitset.c (compare): Make it clear that the random values
2445         should not be modified.
2446         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2448 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2450         bitset: fix the copy from lbitset to other types
2451         * lib/bitset/list.c (lbitset_copy): Rename as...
2452         (lbitset_copy_): this.
2453         (lbitset_copy): New.
2454         Dispatch to heterogeneous/homogeneous copy.
2456 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2458         bitset: making debug traces more useful
2459         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2461         bitset: comment changes
2462         * lib/bitset.c: Move some documenting comments to...
2463         * lib/bitset.h: here.
2464         * lib/bitset/array.c: Fix some comments.
2466 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2468         careadlinkat: warn better about GCC bug 93644
2469         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2470         not in effect, use "#warning" to let builders know more clearly
2471         about GCC bug 93644, because the bug triggers even if no -W option
2472         is given to GCC.
2474 2020-11-13  Jim Meyering  <meyering@fb.com>
2476         hard-locale-tests: avoid a -Wstrict-prototypes warning
2477         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2478         changing "main ()" to "main (void)". This was the only case that
2479         triggered a warning when building grep with --enable-gcc-warnings.
2481 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2483         time_rz: simplify CVE-2017-7476 fix
2484         * lib/time_rz.c: Do not include limits.h; I think it was included
2485         under the mistaken impression that limits.h defines SIZE_MAX.
2486         (SIZE_MAX): Remove.
2487         (save_abbr): Put string length into a ptrdiff_t variable,
2488         so that the size comparison works naturally.  This
2489         fixes CVE-2017-7476 in a cleaner way.
2491         parse-datetime: streamline overflow checking
2492         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2493         did not work for unsigned destinations, and since time_t might
2494         be unsigned that meant it did not work for time_t destinations.
2495         This limitation of INT_ADD_WRAPV has been fixed, so we can
2496         now streamline parse-datetime.y a bit.
2497         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2498         has not been used for a while.
2499         (yylex, parse_datetime2): Assume C99 declarations after statements.
2500         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2501         to TYPE_MINIMUM.
2502         (parse_datetime2): No need for time_overflow now that
2503         INT_ADD_WRAPV works for unsigned results.
2505         parse-datetime-tests: port to Alpine Linux 3.12.1
2506         * tests/test-parse-datetime.c: Include errno.h for errno,
2507         and unistd.h for _SC_TZNAME_MAX and sysconf.
2508         (main): In the outlandishly-long time zone abbreviation test,
2509         do not exceed TZNAME_MAX as this has undefined behavior,
2510         and on Alpine Linux 3.12.1 it makes the test fail.
2512 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2514         mgetgroups: avoid warning with clang
2515         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2516         so disable -Wpointer-sign for all clang versions.
2518 2020-11-07  Bruno Haible  <bruno@clisp.org>
2520         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2521         Reported by Simon Josefsson in
2522         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2523         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2524         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2525         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2527 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2529         tests: pacify Sun C 5.9
2530         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2531         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2532         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2533         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2534         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2535         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2536         Remove unreachable ‘return NULL;’s.
2538         tests: port better to XLC 12.01
2539         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2540         even in code that is not executed, as IBM XLC 12.01 complains "The
2541         subscript -1 is less than zero."
2542         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2543         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2544         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2545         arguments than are required by the macro definition."
2547 2020-11-03  Bruno Haible  <bruno@clisp.org>
2549         aligned-malloc: Use fixes from the new modules.
2550         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2551         aligned_alloc, memalign.
2552         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2554 2020-11-03  Bruno Haible  <bruno@clisp.org>
2556         aligned_alloc: Add tests.
2557         * tests/test-aligned_alloc.c: New file.
2558         * modules/aligned_alloc-tests: New file.
2560         aligned_alloc: New module.
2561         * lib/stdlib.in.h (aligned_alloc): New declaration.
2562         * lib/aligned_alloc.c: New file.
2563         * m4/aligned_alloc.m4: New file.
2564         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2565         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2566         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2567         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2568         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2569         * modules/aligned_alloc: New file.
2570         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2571         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2572         AIX bug.
2574 2020-11-03  Bruno Haible  <bruno@clisp.org>
2576         posix_memalign: Add tests.
2577         * tests/test-posix_memalign.c: New file.
2578         * modules/posix_memalign-tests: New file.
2580         posix_memalign: New module.
2581         * lib/stdlib.in.h (posix_memalign): New declaration.
2582         * lib/posix_memalign.c: New file.
2583         * m4/posix_memalign.m4: New file.
2584         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2585         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2586         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2587         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2588         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2589         * modules/posix_memalign: New file.
2590         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2591         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2592         the OpenBSD bug.
2594 2020-11-03  Bruno Haible  <bruno@clisp.org>
2596         memalign: Add tests.
2597         * tests/test-memalign.c: New file.
2598         * modules/memalign-tests: New file.
2600         memalign: New module.
2601         * modules/memalign: New file.
2602         * doc/glibc-functions/memalign.texi: Mention the new module.
2604 2020-11-03  Bruno Haible  <bruno@clisp.org>
2606         verify tests: Fix crash with GCC (regression 2020-11-02).
2607         * tests/test-verify.c (main): Fix initializer of s.
2609 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2611         mountlist: recognize more file system types as remote
2613         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2614         "remote" file systems from stat.c in coreutils.
2616 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2618         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2619         * tests/test-verify.c (main): Initialize state variable.
2620         Reported by Bruno Haible for GCC 5.4.0.
2622 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2624         dfa.h: support inclusion from C++
2625         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2626         C++ code.  The latter was suggested by Arnold Robbins.
2628 2020-11-01  Bruno Haible  <bruno@clisp.org>
2630         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2631         * tests/test-ssfmalloc.c: Include <limits.h>.
2632         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2634 2020-11-01  Bruno Haible  <bruno@clisp.org>
2636         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2637         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2639 2020-11-01  Jim Meyering  <meyering@fb.com>
2641         dfa-tests: test for today's invalid-merge fix
2642         * tests/test-dfa-invalid-merge.sh: New file.
2643         * modules/dfa-tests (Files): Add it.
2644         (TESTS): Add it.
2646 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2648         dfa: retain sequences of similar nodes in optimization
2649         DFA was merging similar nodes when it should not.  For example,
2650         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2651         is not merged.  Problem reported by Gonzalo Padrino in
2652         https://bugs.gnu.org/44351
2653         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2654         optimization.
2656 2020-11-01  Jim Meyering  <meyering@fb.com>
2658         test-dfa-match-aux.c: accept EREs, not BREs
2659         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2660         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2662 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2664         verify tests: avoid -Wmissing-declarations warnings
2665         * tests/test-verify.c (test_assume_expressions): Add declaration.
2666         (test_assume_optimization): Likewise.
2667         (test_assume_noreturn): Likewise.
2668         (main): Move down after all other definitions.  While at it, also
2669         call test_assume_expressions and test_assume_optimization as a
2670         runtime check.
2672 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2674         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2675         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2676         Perhaps these macros should be removed, as they’re not in either
2677         POSIX or GNU.  They could be moved to stat-macros.h, which would
2678         be cleaner in some sense.
2680 2020-10-25  Bruno Haible  <bruno@clisp.org>
2682         ssfmalloc tests: Small tweaks.
2683         * tests/test-ssfmalloc.c: Add comments.
2684         (alloc_pages): Don't require PROT_EXEC bits.
2685         (block_sizes): Add more small sizes, for better coverage of
2686         ssfmalloc-bitmap.h.
2688         ssfmalloc tests: Portability to Minix.
2689         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2690         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2691         * m4/mmap-anon.m4: Update comment.
2693         ssfmalloc: Portability to AIX.
2694         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2695         (Link): New section.
2696         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2697         $(LIBTHREAD).
2699         ssfmalloc: Portability to Cygwin.
2700         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2701         (pg_offset_t): Define depending on PAGESIZE_MAX.
2702         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2703         (PAGESIZE_MAX): New macro.
2705         ssfmalloc: Fix buffer overrun in bitmap search.
2706         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2707         word *words_end.
2709 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2711         doc: mention ‘restrict’ and C++
2712         * doc/gnulib-readme.texi (C99 features assumed): Document
2713         that ‘restrict’ should be avoided in C++ code.
2715 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2717         selinux-at, selinux-h: port to SELinux 3.1
2718         The new release finally deprecated the typedef 'security_context_t',
2719         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2720         Use the simpler 'char *' instead.
2721         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2722         (lgetfilecon): Likewise.
2723         (fgetfilecon): Likewise.
2724         (map_to_failure): Likewise.
2725         (rpl_getfilecon): Likewise.
2726         (rpl_lgetfilecon): Likewise.
2727         (rpl_fgetfilecon): Likewise.
2728         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2729         (getcon): Adjust type of context parameter.
2730         (freecon): Likewise.
2731         (getfscreatecon): Likewise.
2732         (setfscreatecon): Likewise.
2733         (matchpathcon): Likewise.
2734         (getfilecon): Likewise.
2735         (lgetfilecon): Likewise.
2736         (fgetfilecon): Likewise.
2737         (setfilecon): Likewise.
2738         (lsetfilecon): Likewise.
2739         (fsetfilecon): Likewise.
2740         (security_check_context): Likewise.
2741         (security_check_context_raw): Likewise.
2742         (setexeccon): Likewise.
2743         (security_compute_create): Likewise.
2744         * lib/selinux-at.c (getfileconat): Likewise.
2745         (lgetfileconat): Likewise.
2746         (setfileconat): Likewise.
2747         (lsetfileconat): Likewise.
2748         * lib/selinux-at.h: Likewise.
2750 2020-10-19  Bruno Haible  <bruno@clisp.org>
2752         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2753         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2754         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2755         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2756         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2757         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2758         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2760 2020-10-18  Bruno Haible  <bruno@clisp.org>
2762         ssfmalloc: Add tests.
2763         * tests/test-ssfmalloc.c: New file.
2764         * modules/ssfmalloc-tests: New file.
2766         ssfmalloc: New module.
2767         * lib/ssfmalloc.h: New file.
2768         * lib/ssfmalloc-bitmap.h: New file.
2769         * modules/ssfmalloc: New file.
2771 2020-10-18  Bruno Haible  <bruno@clisp.org>
2773         wchar: Fix configure test result on some versions of AIX.
2774         Reported by Clément Chigot <clement.chigot@atos.net> in
2775         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2776         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2777         systems.
2779 2020-10-18  Bruno Haible  <bruno@clisp.org>
2781         time: Fix warning about asctime when asctime is not used.
2782         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2783         invocation.
2785 2020-10-18  Bruno Haible  <bruno@clisp.org>
2787         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2788         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2789         '_GL_ATTRIBUTE_CONST'.
2790         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2791         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2792         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2793         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2794         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2795         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2796         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2798 2020-10-18  Bruno Haible  <bruno@clisp.org>
2800         obstack: Fix a clang warning.
2801         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2803 2020-10-16  Bruno Haible  <bruno@clisp.org>
2805         hash: Rename hash_delete to hash_remove.
2806         * lib/hash.h (hash_remove): Renamed from hash_delete.
2807         (hash_delete): New declaration.
2808         * lib/hash.c (hash_remove): Renamed from hash_delete.
2809         (hash_delete): New function.
2810         * tests/test-hash.c (main): Update.
2811         * lib/fts-cycle.c (leave_dir): Likewise.
2812         * NEWS: Mention the change.
2814 2020-10-16  Bruno Haible  <bruno@clisp.org>
2816         hash, xhash: Make usable from C++.
2817         * lib/hash.h: Add extern "C".
2819 2020-10-16  Bruno Haible  <bruno@clisp.org>
2821         hash, xhash: Move comments to the .h file.
2822         * lib/hash.c: Move comments meant for the user from here...
2823         * lib/xhash.c: ... and here...
2824         * lib/hash.h: ... to here.
2826 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2828         Don't declare an intention to modify the return value of strerror.
2829         * tests/test-perror2.c (main): Assign the return value of strerror to a
2830         'const char *' variable.
2832 2020-10-11  Bruno Haible  <bruno@clisp.org>
2834         *printf: Avoid "expanded before it was required" warning.
2835         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2836         AC_DEFUN_ONCE.
2838 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2840         getprogname: Add support for OpenServer 6 and UnixWare 7.
2841         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2842         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2844 2020-10-11  Bruno Haible  <bruno@clisp.org>
2846         tests: Avoid a name clash on UnixWare.
2847         Reported by Tim Rice <tim@multitalents.net> in
2848         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2849         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2851 2020-10-11  Bruno Haible  <bruno@clisp.org>
2853         stdioext: Update comments regarding UnixWare.
2854         Reported by Tim Rice <tim@multitalents.net> in
2855         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2856         * lib/fbufmode.c: Update comments.
2857         * lib/fflush.c: Likewise.
2858         * lib/fpending.c: Likewise.
2859         * lib/fpurge.c: Likewise.
2860         * lib/freadable.h: Likewise.
2861         * lib/freadable.c: Likewise.
2862         * lib/freadahead.c: Likewise.
2863         * lib/freading.h: Likewise.
2864         * lib/freading.c: Likewise.
2865         * lib/freadptr.c: Likewise.
2866         * lib/freadseek.c: Likewise.
2867         * lib/fseeko.c: Likewise.
2868         * lib/fseterr.c: Likewise.
2869         * lib/fwritable.h: Likewise.
2870         * lib/fwritable.c: Likewise.
2871         * lib/fwriting.h: Likewise.
2872         * lib/fwriting.c: Likewise.
2874 2020-10-11  Bruno Haible  <bruno@clisp.org>
2876         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2877         Reported by Tim Rice <tim@multitalents.net> in
2878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2879         Uses the info from
2880         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2881         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2883 2020-10-11  Bruno Haible  <bruno@clisp.org>
2885         stdioext: Avoid compilation errors on UnixWare 7.
2886         Reported by Tim Rice <tim@multitalents.net> in
2887         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2888         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2889         * lib/fpurge.c: Likewise.
2890         * lib/freadable.h: Likewise.
2891         * lib/freading.h: Likewise.
2892         * lib/fwritable.h: Likewise.
2893         * lib/fwriting.h: Likewise.
2894         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2895         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2896         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2897         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2898         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2899         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2901 2020-10-11  Bruno Haible  <bruno@clisp.org>
2903         stdioext: Update comments regarding Cygwin.
2904         * lib/fpending.c: Update comments.
2905         * lib/fpurge.c: Likewise.
2906         * lib/freadable.h: Likewise.
2907         * lib/freadable.c: Likewise.
2908         * lib/freading.h: Likewise.
2909         * lib/freading.c: Likewise.
2910         * lib/fwritable.h: Likewise.
2911         * lib/fwritable.c: Likewise.
2912         * lib/fwriting.h: Likewise.
2913         * lib/fwriting.c: Likewise.
2915 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2917         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2918         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2919         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2921 2020-10-10  Bruno Haible  <bruno@clisp.org>
2923         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2924         Reported by Marc Nieper-Wißkirchen in
2925         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2926         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2927         gl_linked_iterator_from_to): Mark as 'pure'.
2928         (gl_linked_iterator_free): Mark as 'const'.
2929         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2930         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2931         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2932         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2933         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2934         (gl_tree_iterator_free): Mark as 'const'.
2935         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2936         'pure'.
2937         (gl_tree_iterator_free): Mark as 'const'.
2938         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2939         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2940         (gl_tree_iterator_free): Mark as 'const'.
2941         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2942         compare_position_threshold): Mark as 'pure'.
2943         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2944         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2945         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2946         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2947         'pure'.
2948         (gl_array_iterator_free): Mark as 'const'.
2949         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2950         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2951         (gl_array_iterator_free): Mark as 'const'.
2952         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2953         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2954         gl_array_iterator_atleast): Mark as 'pure'.
2955         (gl_array_iterator_free): Mark as 'const'.
2956         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2957         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2958         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2959         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2960         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2961         gl_carray_sortedlist_search): Mark as 'pure'.
2962         (gl_carray_iterator_free): Mark as 'const'.
2964 2020-10-10  Bruno Haible  <bruno@clisp.org>
2966         rbtree-list: Avoid possible compiler warnings.
2967         This mirrors the change of avltree-list on 2014-09-16.
2968         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2969         declaration. Add cast to void for ignored value of check_invariants.
2971 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2973         stack: New module.
2974         * MODULES.html.sh: Add entry for the stack module.
2975         * modules/stack: New file.
2976         * modules/stack-tests: New file.
2977         * lib/stack.h: New file.
2978         * tests/test-stack.c: New file.
2980 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2982         attribute: improve const, pure doc
2983         Problem reported by Marc Nieper-Wißkirchen in:
2984         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2985         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2986         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2988 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2990         thread: pacify GCC on Solaris 10
2991         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2992         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2993         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2994         where pthread_t is unsigned int.
2996 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2998         c-stack: avoid AS_IF
2999         Problem reported by Bruno Haible in:
3000         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3001         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3003         c-stack: pacify GCC 9.3.1 when using libsigsegv
3004         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3006 2020-10-04  Bruno Haible  <bruno@clisp.org>
3008         localename: Fix a couple of "unused parameter" warnings.
3009         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3010         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3011         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3012         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3013         parameter list.
3015 2020-10-04  Bruno Haible  <bruno@clisp.org>
3017         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3018         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3019         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3021         HAVE_SNPRINTF_TRUNCATION_C99.
3022         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3023         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3025 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3027         c-stack: streamline Solaris configuration
3028         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3029         the code is used only if a test for sigaltstack worked
3030         in some other way.
3031         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3032         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3033         heuristic does not work).
3034         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3035         we no longer require the libsigsegv module.
3036         (Depends-on): Depend on havelib, not libsigsegv.
3038         c-stack: stop using SIGSTKSZ
3039         It’s been proposed to stop making SIGSTKSZ an integer constant:
3040         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3041         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3042         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3043         * lib/c-stack.c (SIGSTKSZ): Remove.
3044         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3045         All uses changed.
3047         c-stack: fix libsigsegv typo
3048         Problem reported by Bruno Haible in:
3049         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3050         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3051         to be used only on Solaris (exactly where it is not needed!).
3053 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3055         MODULES.html.sh: Fix typo.
3056         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3058 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3060         version-etc: pacify Oracle Studio 12.6
3061         Without this patch, it complains: "version-etc.h", line 64:
3062         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3063         pedantic mode.
3064         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3066 2020-09-27  Bruno Haible  <bruno@clisp.org>
3068         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3069         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3070         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3071         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3072         ourselves; don't use AC_DECL_SYS_SIGLIST.
3074 2020-09-27  Bruno Haible  <bruno@clisp.org>
3076         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3077         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3078         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3079         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3080         instead of _AC_COMPUTE_INT.
3082 2020-09-27  Bruno Haible  <bruno@clisp.org>
3084         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3085         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3086         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3087         Based on a patch by Paul Eggert.
3088         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3089         test STDC_HEADERS. Assume <stdlib.h> exists.
3090         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3092 2020-09-27  Bruno Haible  <bruno@clisp.org>
3094         Enable testing of prereleases of Autoconf 2.70.
3095         Suggested by Paul Eggert in
3096         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3097         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3098         >= 2.70.
3099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3100         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3101         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3103 2020-09-27  Bruno Haible  <bruno@clisp.org>
3105         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3106         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3107         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3108         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3109         AC_PROG_CC, depending on the Autoconf version.
3111 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3113         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3114         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3115         of AC_HELP_STRING.
3116         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3118 2020-09-27  Bruno Haible  <bruno@clisp.org>
3120         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3121         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3122         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3123         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3125 2020-09-27  Bruno Haible  <bruno@clisp.org>
3127         extensions: Simplify last commit.
3128         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3129         AC_GNU_SOURCE ever.
3131 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3133         extensions: require AC_GNU_SOURCE only for <=2.63
3134         Problem reported by Gavin Smith in:
3135         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3137         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3138         shouldn’t be needed after that, and Autoconf 2.70 complains about
3139         it being obsolete.
3141 2020-09-26  Bruno Haible  <bruno@clisp.org>
3143         regex-tests: Make test more robust.
3144         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3145         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3147 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3149         regex-tests: fix possible Turkish false-alarm
3150         * modules/regex-tests (Depends-on): Add wctype-h.
3151         * tests/test-regex.c: Include wctype.h.
3152         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3153         as the Turkish regex test assumes this.
3155         regex-tests: fix test and add debug output
3156         Perhaps this will fix the recent grep test failure reported at:
3157         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3158         At least, the debug output should help narrow down the failure.
3159         * tests/test-regex.c: Include stdarg.h, stdio.h.
3160         (exit_status): New var.
3161         (report_error): New function.
3162         (main): Use it to report failures to stdout instead of merely
3163         exiting with some nonzero status.  The status info alone isn’t
3164         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3165         regex before calling re_compile_pattern, fixing a portability bug.
3167         regex: no longer match glibc
3168         * config/srclist.txt: Comment out regex_internal.c for now.
3170 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3172         regex: fix ignore-case Turkish bug
3173         * lib/regex_internal.c (build_wcs_upper_buffer):
3174         Do not assume that converting single-byte character to upper
3175         yields a single-byte character.  This is not true for Turkish,
3176         where towupper (L'i') yields L'İ', which is not single-byte.
3177         * tests/test-regex.c (main): Test for this bug.
3179         regex: port to weird isascii platforms
3180         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3182 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3184         dfa: make dfasupported a global function
3185         * lib/dfa.c (dfasupported): Rename, and make it global.
3186         Update caller.
3187         * lib/dfa.h (dfasupported): Add prototype.
3189 2020-09-20  Bruno Haible  <bruno@clisp.org>
3191         canonicalize: Add support for UNC file names on native Windows.
3192         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3193         <https://savannah.gnu.org/bugs/?59079>.
3194         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3195         extend the prefix to include the server.
3197 2020-09-20  Bruno Haible  <bruno@clisp.org>
3199         supersede: Fix test failures on native Windows.
3200         * lib/supersede.c (open_supersede): Handle non-regular files on native
3201         Windows like on Solaris.
3202         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3204 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3206         test-stdalign: test Oracle Studio better
3207         * doc/posix-headers/stdalign.texi (stdalign.h):
3208         * tests/test-stdalign.c (main):
3209         Sun Studio Bug #2125432 seems to be fixed.
3211         c-stack: output diagnostic in single 'write'
3212         * lib/c-stack.c (die): In the typical case, use just one 'write'
3213         syscall to output the diagnostic, as this lessens interleaving.
3214         (die, c_stack_action): Assume C99.
3215         * modules/c-stack (Depends-on): Add c99, mempcpy.
3217         c-stack: improve checking if !libsigsegv
3218         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3219         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3220         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3221         I found these problems while looking into this bug report:
3222         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3223         * lib/c-stack.c: Include c-stack.h first, to test interface.
3224         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3225         max_align_t, intprops.h for INT_ADD_WRAPV.
3226         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3227         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3228         for libsigsegv 2.8 and earlier since the bug should be fixed
3229         after that.
3230         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3231         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3232         Assume sprintf returns byte count; this assumption is safe now.
3233         (page_size): New static volatile variable, since sysconf isn’t
3234         documented to be async-signal-safe on Solaris.  This variable is
3235         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3236         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3237         SIGINFO_WORKS).
3238         (segv_handler): Use it if present.  Never report null pointer
3239         dereference as a stack overflow.  Check for (unlikely) unsigned
3240         and/or pointer overflow.
3241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3242         Rename cache variables to gl_cv_sys_stack_overflow_works
3243         and gl_cv_sys_xsi_stack_overflow_heuristic.
3244         All uses changed.
3245         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3246         c-stack no longer uses STACK_DIRECTION.
3247         Do not check for unistd.h, since we depend on unistd.
3248         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3249         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3250         stdbool, stddef.
3252 2020-09-20  Bruno Haible  <bruno@clisp.org>
3254         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3255         * m4/musl.m4: Revert 2020-09-19 patch.
3256         * m4/setlocale_null.m4: Likewise.
3257         * modules/setlocale-null: Likewise.
3259 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3260             Bruno Haible  <bruno@clisp.org>
3262         relocatable-prog: Fix for multiple relocatable library directories.
3263         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3264         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3265         being attached to a single one.
3267 2020-09-19  Jim Meyering  <meyering@fb.com>
3269         test-verify.c: avoid -Wshadow warnings
3270         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3271         (enum): Capitalize member names. Adjust uses.
3273 2020-09-19  Bruno Haible  <bruno@clisp.org>
3275         havelib: Avoid linking with libc.a on GNU systems.
3276         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3277         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3279         dependency_libs value of a .la file, ignore '-lc' options on GNU
3280         systems.
3282 2020-09-19  Bruno Haible  <bruno@clisp.org>
3284         Fix recognition of musl libc on Alpine Linux 3.10.
3285         Reported by Jeffrey Walton <noloader@gmail.com> in
3286         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3287         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3288         (gl_MUSL_LIBC): Require it.
3289         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3290         * modules/setlocale-null (Files): Add m4/musl.m4.
3292 2020-09-19  Bruno Haible  <bruno@clisp.org>
3294         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3295         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3296         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3297         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3298         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3299         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3300         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3301         or <threads.h>.
3302         (ITEMS, MAX_RESULT_LEN): New macros.
3303         (nl_langinfo_unlocked): New function.
3304         (gl_get_nl_langinfo_lock): New declaration.
3305         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3306         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3307         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3308         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3309         REPLACE_NL_LANGINFO.
3310         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3311         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3312         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3313         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3314         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3316 2020-09-18  Bruno Haible  <bruno@clisp.org>
3318         fsusage, getaddrinfo: Produce more regular configure output.
3319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3320         corresponding AC_MSG_RESULT.
3321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3323 2020-09-18  Bruno Haible  <bruno@clisp.org>
3325         Add back gl_SILENT.
3326         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3328 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3330         c-stack-tests: fix -fsanitize=undefined false alarm
3331         * tests/test-c-stack2.sh: Skip the test-harness self-test
3332         if ‘gcc -fsanitize=undefined’ is in use.
3334 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3336         signalblocking: simplify and remove gl_SILENT
3337         gl_SILENT was problematic because if a trap was sprung, stderr
3338         generated during the trap was lost.  Avoid the problem by
3339         removing the need for gl_SILENT.
3340         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3341         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3342         Simplify, avoiding the need for gl_SILENT while preserving the
3343         ability of the user to override the value of the cache variable,
3344         now ac_cv_func_sigprocmask.
3346 2020-09-17  Bruno Haible  <bruno@clisp.org>
3348         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3349         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3350         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3351         AS_MESSAGE_FD.
3353 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3355         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3356         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3357         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3358         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3359         Define to 0.
3360         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3361         Do not use __builtin_mul_overflow_p.
3363         libc-config: port __THROW to Ubuntu 4
3364         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3365         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3366         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3367         The GCC 3.3.4 documentation says the attribute should work, but
3368         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3369         little point or desire to research this circa-2004 platform further,
3370         so just avoid the attribute there.
3372 2020-09-17  Jim Meyering  <meyering@fb.com>
3374         test-dfa-match.sh: port timeout work-around to newer Busybox
3375         * tests/test-dfa-match.sh: Update timeout -t portability test to
3376         accommodate Busybox 1.30.0 and newer.
3378 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3380         fnmatch: adjust to match glibc fix
3381         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3382         This does not affect Gnulib; it merely keeps Gnulib and glibc
3383         closer together, to help with any eventual merge, by incorporating
3384         a recent glibc patch.  The patch and the following commentary is
3385         by Andreas Schwab.
3386         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3387         contains the index into the extra array, whereas wextra points
3388         into the extra array at this index, containing the length of the
3389         following collating sequence in the wide character representation.
3391 2020-09-16  Bruno Haible  <bruno@clisp.org>
3393         stat, fstat: Fix compilation error with old mingw headers.
3394         Reported by Eli Zaretskii <eliz@gnu.org> in
3395         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3396         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3397         define it.
3399 2020-09-16  Bruno Haible  <bruno@clisp.org>
3401         stat, fstat: Fix when compiling for versions older than Windows Vista.
3402         Reported by Eli Zaretskii <eliz@gnu.org> in
3403         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3404         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3405         that was originally set before we redefined it.
3406         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3407         (gl_PREREQ_STAT): Require it.
3408         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3410 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3412         dfa: remove dfa-heap-overrun workaround
3413         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3414         both sets map[*] and does other things.  This reverts
3415         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3416         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3417         fixed the underlying problem.
3419 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3421         dfa: avoid use of uninitialized constraint
3422         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3423         to zero here.
3424         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3425         use of an uninitialized constraint by later code when ! (flags[i]
3426         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3427         the constraint.  Problem found by running 'valgrind src/grep -E
3428         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3430         dfa: assume C99 in reorder_tokens
3431         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3433         dfa: fix dfa-heap-overrun failure
3434         * lib/dfa.c (reorder_tokens): When setting
3435         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3436         that (i < d->follows[i].elems[j].index), use two loops, one to set
3437         the map array and the other to use it.  The incorrect assumption
3438         caused some elements to be missed, and this in turn caused grep's
3439         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3440         with GCC.  I found this bug while investigating
3441         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3442         and I think the bug also occurs on GNU/Linux but with more-subtle
3443         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3444         recent changes make the bug more likely.
3446 2020-09-13  Bruno Haible  <bruno@clisp.org>
3448         parse-datetime: Make the build rule work with parallel 'make'.
3449         Reported by Daiki Ueno <ueno@gnu.org> in
3450         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3451         * modules/parse-datetime (Makefile.am): Use a phony target and the
3452         general idiom for rules that produce multiple files.
3454 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3456         getpass: Check for nonnull prompt argument while avoiding warnings.
3457         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3458         (getpass) [!_WIN32]: Print prompt only if nonnull.
3460 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3462         dfa: epsilon-closure tweaks (Bug#40634)
3463         Rename BACKWORD to BACKWARD consistently.
3464         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3465         (addtok_mb): Redo slightly to make it act more like a state machine.
3466         Check depth only when it increases.
3467         (epsclosure): Let the switch test the tokens.
3468         (dfaanalyze): Cache tindex.  Simplify position loops.
3469         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3470         only if it is not null, since we're testing that anyway.
3471         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3473 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3475         dfa: use backward set in removal of epsilon closure
3476         When removing in epsilon closure, the code searched all nodes
3477         sequentially, and this was slow for some cases.  Build a backward
3478         set before search, and only check previous position with the set.
3479         Problem reported in <https://bugs.gnu.org/40634>.
3480         * lib/dfa.c (struct dfa): New member 'epsilon'.
3481         (addtok_mb): Check whether a pattern has epsilon node or not.
3482         (epsclosure): New arg BACKWORD; caller changed.  When removing
3483         epsilon node and reconnecting, check only previous positions.
3484         Treat BEG as if it were character.
3485         (dfaanalyze): Build backward set.
3487 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3489         canonicalize: fix pointer indexing bugs
3490         Problem reported by Florian Weimer in:
3491         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3492         * lib/canonicalize-lgpl.c (__realpath):
3493         * lib/canonicalize.c (canonicalize_filename_mode):
3494         Do not generate a pointer past the end of the array.
3495         * lib/canonicalize.c (canonicalize_filename_mode):
3496         Do not use a pointer after passing it to realloc.
3498 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3500         tempname: help merge with glibc
3501         Inspired by draft patches by Adhemerval Zanella in:
3502         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3503         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3504         * lib/tempname.c: Include stdalign.h, time.h.
3505         If _LIBC, do not include random-bits.h.
3506         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3507         (RANDOM_BITS): Remove, replacing with ...
3508         (random_bits): ... this new static function.  All uses changed.
3509         Add entropy each time if getrandom is not supported.
3510         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3511         Assume 64-bit support a la C99.
3512         (try_tempname_len): Take advantage of ASLR when initializing
3513         random value.
3514         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3516         getcwd: merge recent glibc changes
3517         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3518         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3520 2020-09-06  Bruno Haible  <bruno@clisp.org>
3522         attribute: Clarify which file to include.
3523         * modules/attribute (Include): Add "attribute.h".
3525 2020-09-06  Bruno Haible  <bruno@clisp.org>
3527         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3528         * lib/pipe-filter-ii.c: Include <process.h>.
3529         * lib/pipe-filter-gi.c: Likewise.
3531 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3533         verify: avoid __builtin_assume
3534         Our latest attempt to use Clang’s __builtin_assume caused a crash
3535         in GNU Emacs that we spent quite some time tracking down as being
3536         caused by the switch to __builtin_assume.  It’s not known whether
3537         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3538         For now, play it safe and avoid __builtin_assume.
3539         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3540         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3542 2020-09-05  Bruno Haible  <bruno@clisp.org>
3544         Fix several "warning: no previous prototype for function".
3545         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3546         in front of the declaration of the lookup function in
3547         unicase/locale-languages.h.
3548         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3549         unictype/bidi_byname.h.
3550         * modules/unictype/category-byname (Makefile.am): Likewise in
3551         unictype/categ_byname.h.
3552         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3553         unictype/combiningclass_byname.h.
3554         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3555         unictype/joininggroup_byname.h.
3556         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3557         unictype/joiningtype_byname.h.
3558         * modules/unictype/property-byname (Makefile.am): Likewise in
3559         unictype/pr_byname.h.
3560         * modules/unictype/scripts (Makefile.am): Likewise in
3561         unictype/scripts_byname.h.
3562         * modules/uninorm/composition (Makefile.am): Likewise in
3563         uninorm/composition-table.h.
3565 2020-09-05  Bruno Haible  <bruno@clisp.org>
3567         select: Fix "warning: no previous prototype for function".
3568         * lib/select.c: Include <sys/select.h>.
3570 2020-09-05  Bruno Haible  <bruno@clisp.org>
3572         Use module 'c99' when needed for variadic macros with '...' syntax.
3573         * modules/crypto/sm3 (Depends-on): Add c99.
3575 2020-09-05  Bruno Haible  <bruno@clisp.org>
3577         Use module 'c99' when needed for subobject initializer syntax.
3578         * modules/tempname (Depends-on): Add c99.
3579         * modules/nstrftime-tests (Depends-on): Likewise.
3581 2020-09-05  Bruno Haible  <bruno@clisp.org>
3583         Use module 'c99' when needed for declaration-after-statement syntax.
3584         * modules/backup-rename (Depends-on): Add c99.
3585         * modules/backupfile (Depends-on): Likewise.
3586         * modules/bitset-tests (Depends-on): Likewise.
3587         * modules/bitsetv (Depends-on): Likewise.
3588         * modules/c-strtod (Depends-on): Likewise.
3589         * modules/c-strtold (Depends-on): Likewise.
3590         * modules/clean-temp (Depends-on): Likewise.
3591         * modules/copy-file (Depends-on): Likewise.
3592         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3593         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3594         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3595         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3596         * modules/crypto/md5-buffer (Depends-on): Likewise.
3597         * modules/crypto/md5-tests (Depends-on): Likewise.
3598         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3599         * modules/crypto/sha1-tests (Depends-on): Likewise.
3600         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3601         * modules/crypto/sha256-tests (Depends-on): Likewise.
3602         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3603         * modules/crypto/sha512-tests (Depends-on): Likewise.
3604         * modules/diffseq (Depends-on): Likewise.
3605         * modules/fatal-signal (Depends-on): Likewise.
3606         * modules/fchmodat (Depends-on): Likewise.
3607         * modules/fstrcmp (Depends-on): Likewise.
3608         * modules/fsusage (Depends-on): Likewise.
3609         * modules/fts (Depends-on): Likewise.
3610         * modules/fts-tests (Depends-on): Likewise.
3611         * modules/getumask (Depends-on): Likewise.
3612         * modules/git-merge-changelog (Depends-on): Likewise.
3613         * modules/hash-map (Depends-on): Likewise.
3614         * modules/hash-set (Depends-on): Likewise.
3615         * modules/lchmod (Depends-on): Likewise.
3616         * modules/libgmp-tests (Depends-on): Likewise.
3617         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3618         * modules/linkedhash-map (Depends-on): Likewise.
3619         * modules/linkedhash-set (Depends-on): Likewise.
3620         * modules/long-options (Depends-on): Likewise.
3621         * modules/mbrtoc32 (Depends-on): Likewise.
3622         * modules/memchr2-tests (Depends-on): Likewise.
3623         * modules/memmem-tests (Depends-on): Likewise.
3624         * modules/memrchr-tests (Depends-on): Likewise.
3625         * modules/mktime-internal (Depends-on): Likewise.
3626         * modules/nstrftime (Depends-on): Likewise.
3627         * modules/opendirat (Depends-on): Likewise.
3628         * modules/parse-datetime (Depends-on): Likewise.
3629         * modules/quotearg-simple-tests (Depends-on): Likewise.
3630         * modules/same (Depends-on): Likewise.
3631         * modules/supersede (Depends-on): Likewise.
3632         * modules/supersede-tests (Depends-on): Likewise.
3633         * modules/time_rz (Depends-on): Likewise.
3634         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3635         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3636         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3637         * modules/xalloc (Depends-on): Likewise.
3638         * modules/xnanosleep (Depends-on): Likewise.
3640 2020-09-05  Bruno Haible  <bruno@clisp.org>
3642         Fix "warning: array initialized from parenthesized string constant".
3643         * tests/test-memmem.c (main): Remove parentheses around string constant.
3644         * tests/test-c-strcasestr.c (main): Likewise.
3645         * tests/test-strcasestr.c (main): Likewise.
3647 2020-09-05  Bruno Haible  <bruno@clisp.org>
3649         argmatch tests: Fix ISO C compliance warning.
3650         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3651         invocation.
3653 2020-09-05  Bruno Haible  <bruno@clisp.org>
3655         uniname/uniname: Fix -Wshadow warning.
3656         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3657         * modules/uniname/uniname (Depends-on): Add c99.
3659 2020-09-05  Bruno Haible  <bruno@clisp.org>
3661         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3662         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3663         argument to size_t.
3664         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3665         n to size_t.
3667 2020-09-05  Bruno Haible  <bruno@clisp.org>
3669         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3670         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3671         u32_uctomb): Change type of last argument to ptrdiff_t.
3672         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3673         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3674         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3675         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3676         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3678 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3680         manywarnings: remove -Wchkp and -Wabi from C++ too
3681         Suggested by Reuben Thomas in:
3682         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3683         At some point somebody should merge the many other manywarnings-c.m4
3684         changes into manywarnings-c++.m4 too, e.g.,
3685         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3686         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3687         Remove -Wchkp, -Wabi.
3689 2020-08-30  Bruno Haible  <bruno@clisp.org>
3691         strerrorname_np: Add tests.
3692         * tests/test-strerrorname_np.c: New file.
3693         * modules/strerrorname_np-tests: New file.
3695         strerrorname_np: New module.
3696         * lib/string.in.h (strerrorname_np): New declaration.
3697         * lib/strerrorname_np.c: New file.
3698         * m4/strerrorname_np.m4: New file.
3699         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3700         is declared.
3701         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3702         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3703         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3704         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3705         * modules/strerrorname_np: New file.
3706         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3707         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3708         the glibc 2.32 bug.
3710 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3712         perror, strerror_r: remove unportable tests
3713         Problem reported by Florian Weimer in:
3714         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3715         * tests/test-perror2.c (main):
3716         * tests/test-strerror_r.c (main): Omit unportable tests.
3718 2020-08-26  Bruno Haible  <bruno@clisp.org>
3720         stdint, wchar, wctype-h: Change configure message.
3721         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3722         enough..." instead of "checking whether wint_t is too small...".
3724 2020-08-26  Bruno Haible  <bruno@clisp.org>
3726         time_rz: Change configure message.
3727         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3728         near extrema..." instead of "checking whether localtime loops forever
3729         near extrema...".
3731 2020-08-26  Bruno Haible  <bruno@clisp.org>
3733         stdint: Change configure message.
3734         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3735         without ISO C predefines..." instead of "checking whether stdint.h
3736         predates C++11...".
3738 2020-08-26  Bruno Haible  <bruno@clisp.org>
3740         socketlib: Change configure message.
3741         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3742         instead of "checking if we need to call WSAStartup in winsock2.h and
3743         -lws2_32...".
3745 2020-08-26  Bruno Haible  <bruno@clisp.org>
3747         include_next: Change configure message.
3748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3749         code line length is unlimited..." instead of "checking whether system
3750         header files limit the line length...".
3752 2020-08-26  Bruno Haible  <bruno@clisp.org>
3754         getcwd: Change configure message.
3755         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3756         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3757         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3759 2020-08-26  Bruno Haible  <bruno@clisp.org>
3761         chdir-long: Change configure message.
3762         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3763         system supports file names of any length..." instead of "checking
3764         whether this system has an arbitrary file name length limit...".
3765         Set gl_cv_have_unlimited_file_name_length instead of
3766         gl_cv_have_arbitrary_file_name_length_limit.
3767         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3769 2020-08-26  Bruno Haible  <bruno@clisp.org>
3771         ceill: Change configure message.
3772         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3773         instead of "checking whether ceill() breaks with small values...".
3775 2020-08-26  Bruno Haible  <bruno@clisp.org>
3777         iconv: Change configure message.
3778         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3779         with its POSIX signature..." instead of "checking for iconv
3780         declaration...". Remove K&R C support.
3782 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3784         getcwd: help the merge back into glibc
3785         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3786         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3787         The idea is to make it easier for Gnulib lib/getcwd.c to match
3788         glibc io/getcwd-generic.c.
3789         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3790         Include not-cancel.h.
3791         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3792         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3793         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3794         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3795         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3796         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3797         (__getcwd_generic): Rename from __getcwd.
3798         Use the abovementioned macros for consistency with glibc.
3799         (weak_alias): Remove.
3801 2020-08-25  Bruno Haible  <bruno@clisp.org>
3803         verify: Avoid warnings when assume(0) is used.
3804         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3805         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3806         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3807         the constant 0.
3808         * tests/test-verify.c (f): New function.
3809         (state): New type.
3810         (test_assume_expressions, test_assume_optimization,
3811         test_assume_noreturn): New functions.
3813 2020-08-25  Bruno Haible  <bruno@clisp.org>
3815         fstrcmp: Clarification regarding NOTE_ORDERED.
3816         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3818 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3820         diffseq: new option NOTE_ORDERED
3821         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3822         * NEWS: Mention this.
3823         * lib/diffseq.h (NOTE_ORDERED): New macro.
3824         (IF_LINT2): Remove; no longer needed.
3825         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3826         subproblem and iterate to do the larger.
3828 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3830         sys_types: let Autoconf 2.70 do pid_t
3831         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3832         only for Autoconf versions 2.69 and earlier, since 2.70
3833         will be fixed.
3835 2020-08-23  Bruno Haible  <bruno@clisp.org>
3837         tests: Don't assume that pid_t fits in an 'int'.
3838         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3839         of 'int'.
3840         * tests/test-nonblocking-socket-main.c (main): Likewise.
3842         sys_types: Fix definition of pid_t on 64-bit MSVC.
3843         * m4/pid_t.m4: New file.
3844         * modules/sys_types (Files): Add it.
3845         * modules/dirent (Files): Likewise.
3846         * modules/fcntl-h (Files): Likewise.
3847         * modules/sched (Files): Likewise.
3848         * modules/signal-h (Files): Likewise.
3849         * modules/spawn (Files): Likewise.
3850         * modules/sys_stat (Files): Likewise.
3851         * modules/sys_wait (Files): Likewise.
3852         * modules/termios (Files): Likewise.
3853         * modules/unistd (Files): Likewise.
3855 2020-08-23  Bruno Haible  <bruno@clisp.org>
3857         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3858         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3859         program.
3861 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3863         intprops: be consistent about +X vs X+0
3864         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3866         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3867         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3868         is a bit-field, on older GCC or non-GCC compilers where we do
3869         things ourselves instead of using __builtin_mul_overflow.
3870         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3871         to applying sizeof to a bit-field.
3872         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3873         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3875 2020-08-23  Bruno Haible  <bruno@clisp.org>
3877         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3878         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3879         via Thomas Klausner <tk@giga.or.at> in
3880         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3881         * lib/supersede.c (open_supersede): When opening an existing non-regular
3882         file on Solaris, use O_CREAT although it should not be necessary.
3884 2020-08-23  Bruno Haible  <bruno@clisp.org>
3886         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3887         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3888         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3889         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3890         variable.
3892 2020-08-23  Bruno Haible  <bruno@clisp.org>
3894         libc-config: Improve comments.
3895         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3896         cannot use clang's __diagnose_if__ here.
3898 2020-08-22  Bruno Haible  <bruno@clisp.org>
3900         verify: Do use __builtin_assume on clang.
3901         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3902         variable in a statement expression.
3904 2020-08-22  Bruno Haible  <bruno@clisp.org>
3906         sig2str: Add more signals.
3907         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3909 2020-08-22  Bruno Haible  <bruno@clisp.org>
3911         doc: Update for OpenBSD 6.0, 6.7.
3912         * doc/*/*.texi: Update.
3913         * m4/printf.m4: Update comments and cross-compilation guesses.
3914         * m4/ceill.m4: Update comments.
3915         * m4/getcwd-abort-bug.m4: Likewise.
3916         * m4/ilogb.m4: Likewise.
3917         * m4/ilogbf.m4: Likewise.
3918         * m4/langinfo_h.m4: Likewise.
3919         * m4/modf.m4: Likewise.
3920         * m4/modff.m4: Likewise.
3922 2020-08-22  Bruno Haible  <bruno@clisp.org>
3924         doc: Mention sig2str module.
3925         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3927 2020-08-21  Bruno Haible  <bruno@clisp.org>
3929         sigdescr_np: Add tests.
3930         * tests/test-sigdescr_np.c: New file.
3931         * modules/sigdescr_np-tests: New file.
3933         sigdescr_np: New module.
3934         * lib/string.in.h (sigdescr_np): New declaration.
3935         * lib/sigdescr_np.c: New file.
3936         * m4/sigdescr_np.m4: New file.
3937         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3938         declared.
3939         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3940         HAVE_SIGDESCR_NP.
3941         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3942         HAVE_SIGDESCR_NP.
3943         * modules/sigdescr_np: New file.
3944         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3945         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3947 2020-08-20  Bruno Haible  <bruno@clisp.org>
3949         sigabbrev_np: Add tests.
3950         * tests/test-sigabbrev_np.c: New file.
3951         * modules/sigabbrev_np-tests: New file.
3953         sigabbrev_np: New module.
3954         * lib/string.in.h (sigabbrev_np): New declaration.
3955         * lib/sigabbrev_np.c: New file.
3956         * m4/sigabbrev_np.m4: New file.
3957         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3958         declared.
3959         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3960         HAVE_SIGABBREV_NP.
3961         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3962         HAVE_SIGABBREV_NP.
3963         * modules/sigabbrev_np: New file.
3964         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3965         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3967 2020-08-20  Bruno Haible  <bruno@clisp.org>
3969         stdalign tests: Skip test with AIX xlclang.
3970         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3972 2020-08-20  Bruno Haible  <bruno@clisp.org>
3974         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3975         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3976         workaround as for GCC versions < 4.9.
3978 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3980         Sync up ProjectQuirks comments and documentation
3981         Transform the ProjectQuirks comments into a docstring so that it can
3982         be accessed from python as ProjectQuirks.__doc__ and harmonize
3983         descriptions with the documentation.
3984         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3985         Transform comments into a docstring.
3986         * doc/vcs-to-changelog.texi: Sync up description with comments.
3988         Split ProjectQuirks out into its own file
3989         ProjectQuirks is used by external quirks files and importing it from
3990         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3991         is cleaner to put it in its own file anyway.
3992         * build-aux/vcstocl/projectquirks.py: A new file...
3993         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3994         we move ProjectQuirks and import the file.
3996 2020-08-19  Bruno Haible  <bruno@clisp.org>
3998         uchar: Fix compilation errors in C++ mode on macOS.
3999         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4000         system header file before attempting to use 'char16_t' and 'char32_t'.
4002 2020-08-19  Bruno Haible  <bruno@clisp.org>
4004         ansi-c++-opt: Work around an autoconf macro reordering problem.
4005         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4006         section.
4008 2020-08-19  Bruno Haible  <bruno@clisp.org>
4010         math C++ tests: Fix compilation error in with GCC 10.
4011         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4012         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4013         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4015 2020-08-19  Bruno Haible  <bruno@clisp.org>
4017         uchar: Fix compilation errors in C++ mode on OpenBSD.
4018         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4019         CXX_HAS_UCHAR_TYPES is 1.
4020         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4021         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4022         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4024 2020-08-19  Bruno Haible  <bruno@clisp.org>
4026         Fix compilation errors in C++ mode on OpenBSD.
4027         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4028         OpenBSD with clang, use the approach without C preprocessor macro.
4030 2020-08-18  Bruno Haible  <bruno@clisp.org>
4032         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4033         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4034         AC_LANG_POP.
4036 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4038         verify: avoid __built_assume on Clang
4039         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4040         Clang 9 incorrectly diagnoses arguments as having side effects
4041         even when they do not.  I guess Clang 9 considers any function
4042         call as if it had a side effect here.
4044         libc-config: avoid Clang’s __diagnose_if__
4045         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4046         For now, do not use __diagnose_if__ here, as this fails
4047         on Fedora 31 with Clang 9.0.1, with diagnostic
4048         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4049         size than length of destination buffer
4050         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4051         for functions that are not called?
4053         careadlinkat: speedup for GCC 10 with GCC_LINT
4054         Inspired by a suggestion by Bruno Haible in:
4055         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4056         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4057         (readlink_stk): New function, with most of the old careadlinkat
4058         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4059         if GCC_LINT.
4060         (careadlinkat): Use the new function for everything but the
4061         stack buffer.
4063         * build-aux/gcc-warning.spec: Update comments.
4065 2020-08-17  Bruno Haible  <bruno@clisp.org>
4067         Assume autoconf >= 2.64.
4068         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4070 2020-08-17  Bruno Haible  <bruno@clisp.org>
4072         Revert autoupdate's revert.
4073         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4075 2020-08-17  Bruno Haible  <bruno@clisp.org>
4077         uchar C++ tests: Fix build error on FreeBSD 12.
4078         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4079         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4080         <cuchar> does not exist.
4082 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4084         time_rz: remove unused functions
4085         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4087         time_rz: fix issues with mktime_z failures
4088         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4089         Use a cheaper tm_yday test for failed mktime.
4091 2020-08-16  Bruno Haible  <bruno@clisp.org>
4093         intprops test: Strengthen on clang.
4094         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4096 2020-08-16  Bruno Haible  <bruno@clisp.org>
4098         nstrftime: Guide inlining also on clang.
4099         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4101 2020-08-16  Bruno Haible  <bruno@clisp.org>
4103         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4104         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4106 2020-08-16  Bruno Haible  <bruno@clisp.org>
4108         log2l: Disable MSVC workaround on clang.
4109         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4111 2020-08-16  Bruno Haible  <bruno@clisp.org>
4113         argp: Emit a warning also with clang.
4114         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4115         clang.
4117 2020-08-16  Bruno Haible  <bruno@clisp.org>
4119         libc-config: Enable __REDIRECT macro also on clang.
4120         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4121         __ASMNAME2): Define on clang like on GCC.
4123 2020-08-16  Bruno Haible  <bruno@clisp.org>
4125         regex: Use initializer shorthand syntax also with clang.
4126         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4127         with clang.
4129 2020-08-16  Bruno Haible  <bruno@clisp.org>
4131         regex: Use space optimization also with clang.
4132         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4133         with clang.
4135 2020-08-16  Bruno Haible  <bruno@clisp.org>
4137         Use _Static_assert and static_assert primitives when present on clang.
4138         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4139         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4140         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4142 2020-08-16  Bruno Haible  <bruno@clisp.org>
4144         Use 'throw ()' for optimization in C++ mode also on clang.
4145         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4146         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4147         * lib/md5.h (__THROW): Likewise.
4149 2020-08-16  Bruno Haible  <bruno@clisp.org>
4151         absolute-header: Add support for clang.
4152         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4153         HAVE_INCLUDE_NEXT expression.
4155 2020-08-16  Bruno Haible  <bruno@clisp.org>
4157         Fix "warning: implicitly declaring library function 'strcasecmp'".
4158         * lib/argp-help.c: Include <strings.h>.
4160 2020-08-16  Bruno Haible  <bruno@clisp.org>
4162         stdio: Don't break attribute 'scanf' on clang.
4163         * lib/stdio.in.h (scanf): Treat clang like GCC.
4165 2020-08-16  Bruno Haible  <bruno@clisp.org>
4167         Use __restrict also on clang.
4168         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4169         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4170         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4172 2020-08-16  Bruno Haible  <bruno@clisp.org>
4174         pthread-spin: Use GCC built-ins also on clang.
4175         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4176         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4177         also on clang.
4179 2020-08-16  Bruno Haible  <bruno@clisp.org>
4181         asyncsafe-spin tests: Update.
4182         * tests/test-asyncsafe-spin2.c: Update to match the change in
4183         lib/asyncsafe-spin.c from 2020-08-11.
4185 2020-08-16  Bruno Haible  <bruno@clisp.org>
4187         setenv: Use tree code also with clang.
4188         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4190 2020-08-16  Bruno Haible  <bruno@clisp.org>
4192         math: Optimize signbit also on clang.
4193         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4194         on clang.
4196 2020-08-16  Bruno Haible  <bruno@clisp.org>
4198         avltreehash-list, rbtreehash-list: Optimize also on clang.
4199         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4200         __builtin_expect also on clang.
4202 2020-08-16  Bruno Haible  <bruno@clisp.org>
4204         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4205         * lib/socket.c: Use WSASocketW, not WSASocketA.
4207         Fix "warning: format specifies type 'unsigned long'".
4208         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4209         argument to match the format directive.
4211         Fix "warning: no case matching constant switch condition '0'".
4212         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4214         Fix "warning: integer overflow in expression".
4215         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4216         remove a 'long' overflow.
4218         Fix "warning: "getpagesize" redefined".
4219         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4220         macro.
4222         Fix "warning: implicitly declaring library function 'strncasecmp'".
4223         * lib/strptime.c: Include <strings.h>.
4225         Fix "warning: 'snprintf' macro redefined".
4226         * lib/strerror_r.c (snprintf): Undefine before redefining.
4228         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4229         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4231         Fix "warning: '__stat64' macro redefined".
4232         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4234         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4235         * lib/stdio.in.h (printf): Treat clang like GCC.
4237         Fix "warning: attribute declaration must precede definition" with clang.
4238         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4239         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4240         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4241         on non-glibc systems.
4242         * lib/netdb.in.h (gai_strerror): Likewise.
4243         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4244         * lib/sys_stat.in.h (fstat): Likewise.
4245         * lib/utime.in.h (utime): Likewise.
4247         Fix undesired warnings.
4248         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4249         clang.
4251 2020-08-16  Bruno Haible  <bruno@clisp.org>
4253         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4254         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4255         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4256         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4257         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4259 2020-08-16  Bruno Haible  <bruno@clisp.org>
4261         Don't use Autoconf quadrigraphs.
4262         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4263         Autoconf quadrigraph.
4264         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4265         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4266         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4267         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4269         * m4/math_h.m4 (gl_MATH_H): Likewise.
4270         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4272 2020-08-16  Bruno Haible  <bruno@clisp.org>
4274         Fix quoting of AC_LANG_PROGRAM arguments.
4275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4276         arguments through [[...]].
4277         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4278         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4279         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4280         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4281         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4282         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4283         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4285         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4286         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4287         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4288         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4289         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4291 2020-08-16  Bruno Haible  <bruno@clisp.org>
4293         Assume autoconf >= 2.64.
4294         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4295         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4296         * NEWS: Mention the changed requirement.
4297         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4298         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4299         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4300         variables.
4301         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4302         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4303         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4304         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4305         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4306         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4307         Likewise.
4308         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4309         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4310         * m4/configmake.m4: Update comment.
4312 2020-08-16  Bruno Haible  <bruno@clisp.org>
4314         sys_ioctl: Simplify.
4315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4316         AC_INCLUDES_DEFAULT.
4318 2020-08-16  Bruno Haible  <bruno@clisp.org>
4320         Fix quoting of AC_LANG_SOURCE arguments.
4321         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4322         GL_NOCRASH expansion.
4323         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4324         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4325         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4326         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4327         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4329 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4331         nstrftime: be more predictable about errno
4332         This aligns nstrftime better with draft POSIX 202x strftime.
4333         * lib/nstrftime.c: Include errno.h.
4334         (width_add, __strftime_internal): Set errno on failure,
4335         and preserve it on success.  Check for mktime_z failure.
4336         * modules/nstrftime (Depends-on): Add errno.
4337         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4338         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4339         (errno_test): New test function.
4340         (main): Call it.
4342 2020-08-15  Bruno Haible  <bruno@clisp.org>
4344         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4345         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4346         from dependency analysis first.
4348 2020-08-15  Bruno Haible  <bruno@clisp.org>
4350         Determine asm output option and filename suffix for MSVC/clang.
4351         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4352         clang-cl.
4354 2020-08-15  Bruno Haible  <bruno@clisp.org>
4356         doc: Update for MSVC/clang.
4357         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4358         that MSVC 14 does not have.
4360 2020-08-15  Bruno Haible  <bruno@clisp.org>
4362         Revert autoupdate's revert.
4363         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4365 2020-08-15  Bruno Haible  <bruno@clisp.org>
4367         frexpl: Fix configuration test result on MSVC.
4368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4369         zero.
4371 2020-08-15  Bruno Haible  <bruno@clisp.org>
4373         Support compiling without -loldnames on native Windows.
4374         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4375         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4376         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4377         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4378         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4380         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4381         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4382         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4384         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4385         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4386         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4387         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4388         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4390         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4391         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4392         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4393         Likewise.
4394         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4395         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4396         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4397         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4399         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4400         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4401         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4402         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4403         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4404         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4406         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4407         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4408         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4409         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4410         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4412         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4413         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4414         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4415         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4416         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4417         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4418         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4419         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4420         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4421         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4422         test for getcwd.
4423         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4424         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4425         with GL_MDA_DEFINES.
4426         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4427         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4428         prefixed symbol.
4429         * lib/search.in.h (lfind, lsearch): Likewise.
4430         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4431         Likewise.
4432         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4433         * lib/string.in.h (memccpy, strdup): Likewise.
4434         * lib/sys_stat.in.h (chmod, umask): Likewise.
4435         * lib/time.in.h (tzset): Likewise.
4436         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4437         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4438         read, rmdir, swab, unlink, write): Likewise.
4439         * lib/utime.in.h (utime): Likewise.
4440         * lib/wchar.in.h (wcsdup): Likewise.
4441         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4442         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4443         rpl_-prefixed macro.
4444         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4445         * lib/close.c (close_nothrow): On native Windows, use _close.
4446         * lib/creat.c (orig_creat): On native Windows, use _creat.
4447         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4448         * lib/dup2.c (dup2_nothrow): Use _dup2.
4449         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4450         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4451         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4452         * lib/open.c (orig_open): On native Windows, use _open.
4453         * lib/read.c (read_nothrow): Use _read.
4454         * lib/rmdir.c: On native Windows, use _rmdir.
4455         * lib/unlink.c: On native Windows, use _unlink.
4456         * lib/write.c (write_nothrow): Use _write.
4457         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4458         undefined symbol.
4459         * lib/sys_socket.in.h (close): Likewise.
4460         * lib/sys_time.in.h (close): Likewise.
4461         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4463 2020-08-15  Bruno Haible  <bruno@clisp.org>
4465         Fix "unknown pragma ignored" warnings with clang on native Windows.
4466         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4467         * lib/cbrtf.c: Likewise.
4468         * lib/ceil.c: Likewise.
4469         * lib/floor.c: Likewise.
4470         * lib/fma.c: Likewise.
4471         * lib/fmod.c: Likewise.
4472         * lib/rint.c: Likewise.
4473         * lib/round.c: Likewise.
4474         * lib/trunc.c: Likewise.
4475         * tests/test-ceil2.c: Likewise.
4476         * tests/test-ceilf2.c: Likewise.
4477         * tests/test-floor2.c: Likewise.
4478         * tests/test-floorf2.c: Likewise.
4479         * tests/test-trunc2.c: Likewise.
4480         * tests/test-truncf2.c: Likewise.
4481         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4484 2020-08-15  Bruno Haible  <bruno@clisp.org>
4486         Fix compilation errors in C++ mode with clang on native Windows.
4487         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4488         non-glibc systems.
4489         * lib/sched.in.h (sched_yield): Likewise.
4491 2020-08-14  Bruno Haible  <bruno@clisp.org>
4493         stdnoreturn: Work around problem with MSVC/clang.
4494         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4495         system header after <stdnoreturn.h>.
4496         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4498 2020-08-14  Bruno Haible  <bruno@clisp.org>
4500         utime-h: Generate an utime.h file always.
4501         * modules/utime-h (Makefile.am): Generate utime.h always.
4502         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4503         GL_GENERATE_UTIME_H.
4505 2020-08-14  Bruno Haible  <bruno@clisp.org>
4507         mktime, mktime-internal: Remove obsolete code.
4508         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4510 2020-08-14  Bruno Haible  <bruno@clisp.org>
4512         getcwd: Remove obsolete code.
4513         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4514         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4516 2020-08-14  Bruno Haible  <bruno@clisp.org>
4518         tzset: Assume the function exists.
4519         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4520         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4521         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4522         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4523         HAVE_TZSET.
4524         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4525         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4527         nstrftime: Assume tzset exists.
4528         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4529         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4530         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4532         mktime, mktime-internal: Assume tzset exists.
4533         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4534         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4536 2020-08-14  Bruno Haible  <bruno@clisp.org>
4538         strdup: Assume the function exists.
4539         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4540         whether strdup exists.
4541         * modules/strdup (Files): Remove lib/strdup.c.
4542         (configure.ac): Don't compile strdup.c.
4543         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4544         ac_cv_func_strdup.
4545         * doc/posix-functions/strdup.texi: Update.
4546         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4547         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4548         (Depends-on): Remove unistr/u8-strlen.
4550 2020-08-13  Bruno Haible  <bruno@clisp.org>
4552         sys_random: Work around an uClibc bug.
4553         Reported by akater <nuclearspace@gmail.com>
4554         via Stefan Kangas <stefan@marxist.se>
4555         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4556         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4557         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4558         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4559         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4561 2020-08-12  Bruno Haible  <bruno@clisp.org>
4563         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4564         Reported by Florian Weimer in
4565         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4566         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4567         the level3 array to 'unsigned int'.
4568         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4569         * lib/unictype/categ_*.h: Regenerated.
4570         * lib/unictype/ctype_*.h: Regenerated.
4571         * lib/unictype/pr_*.h: Regenerated.
4572         * lib/unictype/sy_*.h: Regenerated.
4573         * lib/unicase/cased.h: Regenerated.
4574         * lib/unicase/ignorable.h: Regenerated.
4576 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4578         stdint: port intptr_t to more-recent MinGW
4579         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4580         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4581         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4582         Apparently those two macros were removed in mingwrt-3.22
4583         dated 2016-07-14.
4585 2020-08-12  Bruno Haible  <bruno@clisp.org>
4587         thread-optim: Export function-like macros only.
4588         Suggested by Paul Eggert.
4589         * lib/thread-optim.h (gl_multithreaded): New macro.
4590         (IF_MT_DECL, IF_MT): Remove macros.
4591         * doc/multithread.texi (Multithreading Optimizations): Add a small
4592         example.
4593         * lib/fatal-signal.c: Update all uses.
4594         * lib/clean-temp.c: Likewise.
4595         * lib/localename.c: Likewise.
4596         * modules/localename (Depends-on): Add stdbool.
4598 2020-08-12  Bruno Haible  <bruno@clisp.org>
4600         Revert autoupdate's revert.
4601         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4603 2020-08-11  Bruno Haible  <bruno@clisp.org>
4605         thread-optim: Fix a compiler warning.
4606         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4608 2020-08-11  Bruno Haible  <bruno@clisp.org>
4610         Use __restrict also on clang.
4611         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4612         (__restrict_arr): On clang, define like on GCC.
4613         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4614         (_Restrict_arr_): Use _Restrict_ also on clang.
4615         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4616         (_Restrict_arr_): Use _Restrict_ also on clang.
4618 2020-08-11  Bruno Haible  <bruno@clisp.org>
4620         Use flexible array syntax also on clang.
4621         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4622         define like for GCC 3.
4624 2020-08-11  Bruno Haible  <bruno@clisp.org>
4626         fcntl: On native Windows, use _setmode, not setmode.
4627         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4628         * lib/binary-io.h: Update comment.
4629         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4630         * tests/test-dup2.c: Likewise.
4631         * tests/test-dup-safer.c: Likewise.
4632         * tests/test-fcntl.c: Likewise.
4634 2020-08-11  Bruno Haible  <bruno@clisp.org>
4636         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4637         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4638         * lib/spawn-pipe.c (create_pipe): Likewise.
4639         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4640         * tests/test-nonblocking-socket-main.c (main): Likewise.
4641         * lib/wait-process.c: Update comment.
4642         * doc/posix-functions/fork.texi: Update.
4644 2020-08-11  Bruno Haible  <bruno@clisp.org>
4646         asyncsafe-spin: Use GCC built-ins also on clang.
4647         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4648         the newer GCC built-ins also on clang.
4650 2020-08-11  Bruno Haible  <bruno@clisp.org>
4652         Use expression statements also on clang.
4653         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4654         * lib/obstack.h (__extension__): Likewise.
4655         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4656         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4657         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4658         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4659         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4660         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4662 2020-08-10  Bruno Haible  <bruno@clisp.org>
4664         Use many __attribute__s with clang.
4665         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4666         on clang.
4667         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4668         New macros.
4669         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4670         on clang.
4671         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4672         also on older clang versions.
4673         (__attribute__): Don't define to empty on clang.
4674         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4675         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4676         (__attribute_const__): Use __attribute__ __const__ also on clang.
4677         (__attribute_used__): Use __attribute__ __used__ also on clang.
4678         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4679         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4680         clang.
4681         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4682         clang.
4683         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4684         also on clang.
4685         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4686         (__attribute_warn_unused_result__): Use __attribute__
4687         __warn_unused_result__ also on clang.
4688         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4689         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4690         clang >= 7.
4691         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4692         clang versions.
4693         (_Noreturn): Don't redefine on clang >= 3.5.
4694         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4695         also on clang.
4696         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4697         on clang.
4698         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4699         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4700         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4701         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4702         also on clang.
4703         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4704         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4705         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4706         also on clang.
4707         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4708         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4709         __attribute__ __noreturn__ also on clang.
4710         * lib/obstack.h (__attribute_noreturn__): Likewise.
4711         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4712         clang.
4713         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4714         always_inline also on clang.
4715         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4716         clang.
4718 2020-08-10  Bruno Haible  <bruno@clisp.org>
4720         c-ldtoastr tests: Fix test failure.
4721         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4722         is longer than 'double'.
4724 2020-08-10  Bruno Haible  <bruno@clisp.org>
4726         Revert autoupdate's revert.
4727         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4729 2020-08-09  Bruno Haible  <bruno@clisp.org>
4731         string: Fix build error in C++ mode with clang (regression from today).
4732         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4733         parameters, one for GCC, one for clang.
4734         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4735         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4736         as return type.
4738 2020-08-09  Bruno Haible  <bruno@clisp.org>
4740         ftruncate: Use _chsize, not chsize.
4741         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4742         * lib/ftruncate.c: Test HAVE__CHSIZE.
4743         (chsize_nothrow): Use _chsize, not chsize.
4745 2020-08-09  Bruno Haible  <bruno@clisp.org>
4747         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4748         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4749         clang >= 10.
4750         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4751         * lib/fts.c (FALLTHROUGH): Likewise.
4752         * tests/macros.h (FALLTHROUGH): Likewise.
4753         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4754         * config/srclist.txt: Mark it as needing sync with glibc.
4756 2020-08-09  Bruno Haible  <bruno@clisp.org>
4758         stdbool tests: Enable the stricter tests also on clang.
4759         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4760         (e): Enable the address-to-bool conversion test also on clang.
4762 2020-08-09  Bruno Haible  <bruno@clisp.org>
4764         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4765         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4767 2020-08-09  Bruno Haible  <bruno@clisp.org>
4769         Use attribute __aligned__ with clang.
4770         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4771         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4773 2020-08-09  Bruno Haible  <bruno@clisp.org>
4775         Use __alignof__ with clang.
4776         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4777         on clang.
4778         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4779         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4780         clang.
4781         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4782         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4783         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4784         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4786 2020-08-09  Bruno Haible  <bruno@clisp.org>
4788         ignore-value: Simplify on clang.
4789         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4790         workaround.
4792 2020-08-09  Bruno Haible  <bruno@clisp.org>
4794         Use __typeof__ with clang.
4795         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4796         "clang -std=gnu99".
4797         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4798         * tests/test-stdint.c (verify_same_types): Enable the check also on
4799         clang.
4801 2020-08-09  Bruno Haible  <bruno@clisp.org>
4803         Add ability to emit user-defined warnings and errors with clang.
4804         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4805         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4806         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4807         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4808         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4809         attribute for clang.
4811 2020-08-09  Bruno Haible  <bruno@clisp.org>
4813         intprops: Fix typo in comment.
4814         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4816 2020-08-09  Bruno Haible  <bruno@clisp.org>
4818         Use __builtin_signbit* with clang.
4819         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4820         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4821         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4823         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4824         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4825         not REPLACE_SIGNBIT_USING_GCC.
4827 2020-08-09  Bruno Haible  <bruno@clisp.org>
4829         Use __builtin_isnan with clang.
4830         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4831         not __builtin_isnanf. Also on clang.
4832         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4833         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4834         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4835         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4836         built-in.
4837         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4838         not __builtin_isnanl. Also on clang.
4839         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4840         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4841         * lib/math.in.h (__has_builtin): Remove macro.
4842         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4843         __builtin_isnanf. Also on clang.
4844         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4845         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4846         __builtin_isnanl. Also on clang.
4847         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4848         on clang.
4850 2020-08-09  Bruno Haible  <bruno@clisp.org>
4852         thread-optim: Fix logic error.
4853         Reported by Paul Eggert.
4854         * lib/thread-optim.h (IF_MT): Fix logic error.
4856 2020-08-08  Bruno Haible  <bruno@clisp.org>
4858         localename: Use module 'thread-optim'.
4859         * lib/localename.c: Include thread-optim.h.
4860         (struniq): Use IF_MT macro.
4861         * modules/localename (Depends-on): Add thread-optim.
4863         clean-temp: Use module 'thread-optim'.
4864         * lib/clean-temp.c: Include thread-optim.h.
4865         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4866         register_temp_file, unregister_temp_file, register_temp_subdir,
4867         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4868         close_temp, fclose_variant_temp): Use IF_MT macro.
4869         * modules/clean-temp (Depends-on): Add thread-optim.
4871         fatal-signal: Use module 'thread-optim'.
4872         * lib/fatal-signal.c: Include thread-optim.h.
4873         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4874         macro.
4875         * modules/fatal-signal (Depends-on): Add thread-optim.
4877 2020-08-08  Bruno Haible  <bruno@clisp.org>
4879         New module 'thread-optim'.
4880         * lib/thread-optim.h: New file.
4881         * modules/thread-optim: New file.
4882         * doc/multithread.texi (Multithreading Optimizations): New section.
4884 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4886         doc: more updates for glibc 2.32
4887         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4888         * doc/posix-functions/fchmodat.texi: Update.
4890 2020-08-07  Bruno Haible  <bruno@clisp.org>
4892         doc: Update for glibc 2.32.
4893         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4894         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4895         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4896         * doc/glibc-functions/sigabbrev_np.texi: New file.
4897         * doc/glibc-functions/sigdescr_np.texi: New file.
4898         * doc/glibc-functions/strerrordesc_np.texi: New file.
4899         * doc/glibc-functions/strerrorname_np.texi: New file.
4900         * doc/gnulib.texi: Include them.
4901         (Glibc sys/single_threaded.h): New section.
4902         * doc/pastposix-functions/h_errno.texi: Update.
4903         * doc/posix-functions/*.texi: Likewise.
4904         * doc/glibc-functions/*.texi: Likewise.
4906 2020-08-07  Bruno Haible  <bruno@clisp.org>
4908         alloca: No need to compile alloca.c with clang.
4909         * lib/alloca.c: Skip all code with clang.
4911         Use __builtin_alloca with clang.
4912         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4914 2020-08-06  Bruno Haible  <bruno@clisp.org>
4916         Use __builtin_assume with clang.
4917         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4918         (assume): Use __builtin_assume when available.
4920 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4922         libgmp: add <gmp/gmp.h> support
4923         * m4/libgmp.m4 (gl_LIBGMP):
4924         * modules/libgmp (configure.ac, Makefile.am):
4925         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4926         ‘#include <gmp.h>’.
4928 2020-08-06  Bruno Haible  <bruno@clisp.org>
4930         Consider that clang defines __OPTIMIZE__ like GCC does.
4931         * lib/streq.h: Define the inline functions also on clang.
4932         * lib/c-strcaseeq.h: Likewise.
4933         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4934         the GCC workaround to clang.
4936 2020-08-06  Bruno Haible  <bruno@clisp.org>
4938         safe-alloc: Remove unused code.
4939         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4941 2020-08-06  Bruno Haible  <bruno@clisp.org>
4943         Use __builtin_expect with clang everywhere.
4944         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4945         also on clang.
4947 2020-08-05  Bruno Haible  <bruno@clisp.org>
4949         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4950         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4951         built-in also on clang.
4952         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4953         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4955 2020-08-05  Bruno Haible  <bruno@clisp.org>
4957         Use __builtin_clz{,l,ll} with clang, also on Windows.
4958         * lib/integer_length.c: With clang, use the GCC built-in, not
4959         <intrin.h>.
4960         * lib/integer_length_l.c: Likewise.
4961         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4962         also on clang.
4963         * lib/vasnprintf.c (divide): Likewise.
4965 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4967         Update srclist.txt as per recent glibc changes
4968         * config/srclist.txt: Uncomment lines to reflect recent merges
4969         from Gnulib to glibc.
4971 2020-08-03  Bruno Haible  <bruno@clisp.org>
4973         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4974         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4976 2020-08-03  Bruno Haible  <bruno@clisp.org>
4978         integer_length_ll: Optimize for MSVC in 64-bit mode.
4979         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4980         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4982 2020-08-03  Bruno Haible  <bruno@clisp.org>
4984         integer_length_ll: Optimize for MSVC in 32-bit mode.
4985         * lib/integer_length_l.c: Include <intrin.h>.
4986         (integer_length): Define as inline function, like in
4987         lib/integer_length.c.
4989 2020-08-03  Bruno Haible  <bruno@clisp.org>
4991         integer_length: Optimize for MSVC.
4992         * lib/integer_length.c: Include <intrin.h>.
4993         (integer_length): With MSVC, use the _BitScanReverse built-in.
4995 2020-08-03  Bruno Haible  <bruno@clisp.org>
4997         ffsll: Optimize for MSVC in 64-bit mode.
4998         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4999         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5000         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5002 2020-08-03  Bruno Haible  <bruno@clisp.org>
5004         ffsll: Optimize for MSVC in 32-bit mode.
5005         * lib/ffsl.h: Include <intrin.h>.
5006         (ffs): Define as inline function, like in lib/ffs.c.
5008 2020-08-03  Bruno Haible  <bruno@clisp.org>
5010         ffs: Optimize for MSVC.
5011         * lib/ffs.c: Include <intrin.h>.
5012         (ffs): With MSVC, use the _BitScanForward built-in.
5014 2020-08-03  Bruno Haible  <bruno@clisp.org>
5016         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5017         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5018         variable.
5020 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5022         fopen: Avoid undesired interactions with glibc headers.
5023         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5024         __need_FILE, as the latter does not work with glibc.
5026 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5028         fcntl: document some F_SETLK errno variations
5029         * doc/posix-functions/fcntl.texi (fcntl): Document
5030         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5032 2020-08-02  Bruno Haible  <bruno@clisp.org>
5034         oset: Add an 'iterator_atleast' operation.
5035         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5036         extracted from gl_array_search_atleast.
5037         (gl_array_search_atleast): Use it.
5038         (gl_array_iterator_atleast): New function.
5039         (gl_array_oset_implementation): Use it.
5040         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5041         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5042         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5043         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5044         member.
5045         (gl_oset_iterator_atleast): New function.
5046         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5047         (gl_OSet::iterator): Add another auxiliary constructor.
5048         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5049         New functions.
5050         (main): Test also gl_oset_iterator_atleast.
5051         * tests/test-avltree_oset.c (is_at_least): New function.
5052         (main): Test also gl_oset_iterator_atleast.
5053         * tests/test-rbtree_oset.c (is_at_least): New function.
5054         (main): Test also gl_oset_iterator_atleast.
5055         * tests/test-oset-c++.cc (is_at_most): New function.
5056         (main): Test also gl_OSet::begin_atleast.
5058 2020-08-02  Bruno Haible  <bruno@clisp.org>
5060         oset-c++, omap-c++: Remove restriction for search_atleast method.
5061         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5062         a different type than the element.
5063         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5064         a different type than the key.
5066 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5068         gnumakefile: say ‘$(MAKE)’ not ‘make’
5069         * top/GNUmakefile (abort-due-to-no-makefile):
5070         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5071         This change is backported from Autoconf.
5073 2020-08-01  Bruno Haible  <bruno@clisp.org>
5075         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5076         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5077         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5078         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5079         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5080         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5082 2020-08-01  Bruno Haible  <bruno@clisp.org>
5084         libtextstyle-optional: Update tests.
5085         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5086         gl_LIBTEXTSTYLE_OPTIONAL.
5088 2020-08-01  Bruno Haible  <bruno@clisp.org>
5090         parse-datetime: Fix wrong #line statements.
5091         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5092         parse-datetime-gen.h.
5094 2020-08-01  Bruno Haible  <bruno@clisp.org>
5096         libtextstyle[-optional]: Allow requesting a minimum version.
5097         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5098         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5099         gl_LIBTEXTSTYLE_SEARCH): New macros.
5100         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5101         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5102         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5103         * modules/libtextstyle-optional (configure.ac): Don't invoke
5104         gl_LIBTEXTSTYLE_OPTIONAL.
5105         * NEWS: Mention the changes.
5107 2020-07-31  Bruno Haible  <bruno@clisp.org>
5109         _GL_CMP: Improve documentation.
5110         Reported by Paul Eggert in
5111         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5112         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5113         passed.
5115 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5117         largefile: sync with Autoconf master
5118         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5119         Avoid undefined behavior on platforms where off_t is 32 bits.
5120         See: https://bugs.debian.org/742780
5122         alloca: sync with Autoconf master
5123         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5124         Do not define if Autoconf 2.70 or later, since Autoconf master
5125         now matches us.
5127 2020-07-30  Bruno Haible  <bruno@clisp.org>
5129         unicodeio: Add comment.
5130         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5131         different iconv behaviours.
5133 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5135         Work around some Oracle Studio attribute bugs
5136         These were discovered when building bleeding-edge Emacs with
5137         Oracle Studio.
5138         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5139         Port to Oracle Studio 12.6, which mishandles __attribute__
5140         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5141         __has_attribute says they work.
5143 2020-07-29  Bruno Haible  <bruno@clisp.org>
5145         unicodeio: Fix wrong result on musl libc.
5146         Reported by A. Wilcox <awilfox@adelielinux.org> in
5147         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5148         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5149         on musl libc.
5150         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5151         * modules/unicodeio (Files): Add m4/musl.m4.
5153 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5155         fsusage, regex, stat-size: remove Cray support
5156         As near as I can make out this is actually support for UNICOS/mp,
5157         last released 2005, and Cray hasn’t supported that for years.
5158         * config/srclist.txt: Comment out regex.h for now.
5159         * lib/fsusage.c (get_fs_usage):
5160         * lib/regex.h (re_comp, re_exec):
5161         * lib/stat-size.h (ST_NBLOCKSIZE):
5162         Don’t worry about _CRAY.
5164 2020-07-29  Bruno Haible  <bruno@clisp.org>
5166         parse-datetime: Fix compilation error with bison 3.7.
5167         * modules/parse-datetime (Makefile.am): Create a generated header file
5168         parse-datetime-gen.h in the source directory. Correct #include and
5169         #line statements during preprocessing.
5171 2020-07-28  Bruno Haible  <bruno@clisp.org>
5173         fopen-gnu: Create files correctly (regression from 2020-05-24).
5174         * lib/fopen.c (rpl_open): Pass a third argument to open().
5176 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5178         xalloc-die: don’t depend on xalloc
5179         This removes a circular dependency, as xalloc depends on xalloc-die.
5180         * modules/xalloc-die (Files): Add lib/xalloc.h.
5181         (Depends-on): Remove xalloc.
5182         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5184         dfa-tests: port to MSVC
5185         Problem reported by Gisle Vanem in:
5186         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5187         Also, remove an unnecessary dependency on getprogname.
5188         * modules/dfa-tests (Depends-on): Remove getprogname.
5189         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5190         (exit_status): New static var.
5191         (dfawarn): Set it instead of exiting.
5192         Do not declare as _Noreturn, to pacify MSVC.
5193         (main): Return exit_status.
5195 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5197         argz: pacify MSVC
5198         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5199         Problem reported by Gisle Vanem.
5201         libgmp: remove dependency on havelib
5202         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5203         use the more-traditional AC_SEARCH_LIBS approach.
5204         This should work better with GNU Emacs configuration,
5205         which uses pkg-config instead of a havelib-style approach.
5206         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5207         * modules/libgmp (Depends-on): Remove havelib.
5209         libgmp: remove HAVE_GMP, LIB_GMP
5210         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5211         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5213 2020-07-26  Bruno Haible  <bruno@clisp.org>
5215         inttypes: Remove support for AIX 4.
5216         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5217         * m4/inttypes-pri.m4: Remove file.
5218         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5219         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5220         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5221         PRI_MACROS_BROKEN.
5222         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5224 2020-07-26  Bruno Haible  <bruno@clisp.org>
5226         gettimeofday: Remove workaround for Mac OS X 10.0.
5227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5228         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5229         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5230         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5231         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5232         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5233         * modules/localtime-buffer: Remove file.
5234         * lib/localtime-buffer.h: Remove file.
5235         * lib/localtime-buffer.c: Remove file.
5236         * m4/localtime-buffer.m4: Remove file.
5237         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5239 2020-07-26  Bruno Haible  <bruno@clisp.org>
5241         tzset: Remove workaround for Solaris 2.6.
5242         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5243         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5244         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5245         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5246         * lib/localtime-buffer.c: Likewise.
5247         * lib/localtime.c: Likewise.
5248         * lib/tzset.c: Don't include localtime-buffer.h.
5249         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5250         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5251         is 1.
5252         * modules/tzset (Depends-on): Remove localtime-buffer.
5254 2020-07-26  Bruno Haible  <bruno@clisp.org>
5256         expl: Simplify autoconf test.
5257         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5258         with small values..." test into the "checking whether expl works..."
5259         test.
5261 2020-07-26  Bruno Haible  <bruno@clisp.org>
5263         alloca: Remove Cray-2 and Cray Y-MP support.
5264         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5265         Enable also on Autoconf >= 2.69.
5266         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5267         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5268         i00afunc): Remove.
5270 2020-07-25  Bruno Haible  <bruno@clisp.org>
5272         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5273         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5275 2020-07-25  Bruno Haible  <bruno@clisp.org>
5277         sigprocmask: Small autoconf macro improvement.
5278         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5279         user to override the value of gl_cv_func_sigprocmask.
5280         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5282 2020-07-25  Bruno Haible  <bruno@clisp.org>
5284         Small autoconf macro improvements.
5285         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5286         override the value of gl_cv_func_working_mktime.
5287         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5288         compiler produces multi-arch binaries..." in the configure output.
5289         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5290         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5292 2020-07-25  Bruno Haible  <bruno@clisp.org>
5294         doc: Update for NetBSD 7.1, 8.0, 9.0.
5295         * doc/*/*.texi: Update.
5296         * m4/exp2l.m4: Update comments.
5297         * m4/expl.m4: Likewise.
5298         * m4/ilogb.m4: Likewise.
5299         * m4/ilogbf.m4: Likewise.
5300         * m4/log10l.m4: Likewise.
5301         * m4/logl.m4: Likewise.
5302         * m4/printf.m4: Likewise.
5303         * m4/rintl.m4: Likewise.
5304         * m4/wcwidth.m4: Likewise.
5306 2020-07-24  Bruno Haible  <bruno@clisp.org>
5308         doc: Update for Mac OS X 10.13.
5309         * doc/*/*.texi: Update.
5310         * m4/expm1l.m4: Update comments.
5311         * m4/getgroups.m4: Likewise.
5312         * m4/getlogin_r.m4: Likewise.
5313         * m4/linkat.m4: Likewise.
5314         * m4/printf.m4: Likewise.
5316 2020-07-24  Bruno Haible  <bruno@clisp.org>
5318         doc: Update for Cygwin 2.9.0.
5319         * doc/*/*.texi: Update.
5321 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5323         parse-datetime: modernize doc
5324         * doc/parse-datetime.texi: Use more-current examples.
5325         Don’t lead with 32-bit time_t, as it’s on its way out.
5326         Capitalize “Epoch” to be consistent with POSIX.
5328         timespec: remove dependence on ‘verify’
5329         * lib/timespec.h: Do not include verify.h; no longer needed.
5330         * modules/timespec (Depends-on): Remove ‘verify’.
5332         Optimize a few more three-valued comparisons
5333         * lib/timespec.h (timespec_cmp, timespec_sign):
5334         * lib/utimecmp.c (utimecmpat):
5335         Avoid conditional branches by using _GL_CMP.
5337         Fix _GL_CMP parenthesization typo
5338         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5340 2020-07-24  Bruno Haible  <bruno@clisp.org>
5342         dfa: Revert breaking gawk.
5343         Reported by Arnold Robbins <arnold@skeeve.com>.
5344         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5346 2020-07-23  Bruno Haible  <bruno@clisp.org>
5348         Optimize three-valued comparison between integers.
5349         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5350         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5351         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5352         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5353         * lib/dfa.c (compare): Likewise.
5354         * lib/fts.c (fts_compare_ino): Likewise.
5355         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5356         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5357         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5358         * lib/memcasecmp.c (memcasecmp): Likewise.
5359         * lib/memcmp2.c (memcmp2): Likewise.
5360         * lib/savedir.c (direntry_cmp_inode): Likewise.
5361         * lib/strcasecmp.c (strcasecmp): Likewise.
5362         * lib/strncasecmp.c (strncasecmp): Likewise.
5363         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5365 2020-07-23  Bruno Haible  <bruno@clisp.org>
5367         lchmod: Use /proc on Cygwin.
5368         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5370 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5372         fchmodat: Use /proc on Cygwin
5373         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5375 2020-07-21  Bruno Haible  <bruno@clisp.org>
5377         aligned-malloc: Optionally use aligned_alloc.
5378         * lib/aligned-malloc.h: Verify the alignment.
5379         (aligned_malloc): Use aligned_alloc as an alternative.
5380         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5381         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5382         'aligned-malloc' and 'pagealign_alloc'.
5384 2020-07-21  Bruno Haible  <bruno@clisp.org>
5386         aligned-malloc: Add tests.
5387         * tests/test-aligned-malloc.c: New file.
5388         * modules/aligned-malloc-tests: New file.
5390         aligned-malloc: New module.
5391         * lib/aligned-malloc.h: New file.
5392         * m4/malloc-align.m4: New file.
5393         * modules/aligned-malloc: New file.
5394         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5395         * doc/glibc-functions/memalign.texi: Likewise.
5397 2020-07-21  Bruno Haible  <bruno@clisp.org>
5399         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5400         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5401         sure PRIPTR_PREFIX is defined to "ll", not "l".
5403 2020-07-21  Bruno Haible  <bruno@clisp.org>
5405         printf-posix: Make an autoconf test more future-proof.
5406         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5407         using uintptr_t.
5409 2020-07-20  Bruno Haible  <bruno@clisp.org>
5411         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5412         * modules/list (License): Change to LGPLv2+.
5413         * modules/array-list (License): Likewise.
5414         * modules/carray-list (License): Likewise.
5415         * modules/linked-list (License): Likewise.
5416         * modules/avltree-list (License): Likewise.
5417         * modules/rbtree-list (License): Likewise.
5418         * modules/oset (License): Likewise.
5419         * modules/array-oset (License): Likewise.
5420         * modules/avltree-oset (License): Likewise.
5421         * modules/rbtree-oset (License): Likewise.
5422         * modules/omap (License): Likewise.
5423         * modules/array-omap (License): Likewise.
5424         * modules/avltree-omap (License): Likewise.
5425         * modules/rbtree-omap (License): Likewise.
5427 2020-07-20  Bruno Haible  <bruno@clisp.org>
5429         oset: Add an 'update' operation.
5430         * lib/gl_array_oset.c (gl_array_update): New function.
5431         (gl_array_oset_implementation): Use it.
5432         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5433         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5434         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5435         extracted from gl_tree_nx_add_before.
5436         (gl_tree_nx_add_before): Invoke it.
5437         (gl_tree_add_node_after): New function, extracted from
5438         gl_tree_nx_add_after.
5439         (gl_tree_nx_add_after): Invoke it.
5440         (gl_tree_remove_node_no_free): New function, extracted from
5441         gl_tree_remove_node.
5442         (gl_tree_remove_node): Invoke it.
5443         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5444         extracted from gl_tree_nx_add_before.
5445         (gl_tree_nx_add_before): Invoke it.
5446         (gl_tree_add_node_after): New function, extracted from
5447         gl_tree_nx_add_after.
5448         (gl_tree_nx_add_after): Invoke it.
5449         (gl_tree_remove_node_no_free): New function, extracted from
5450         gl_tree_remove_node.
5451         (gl_tree_remove_node): Invoke it.
5452         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5453         from gl_tree_iterator_next.
5454         (gl_tree_iterator_next): Invoke it.
5455         (gl_tree_prev_node, gl_tree_update): New functions.
5456         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5457         (gl_avltree_oset_implementation): Use gl_tree_update.
5458         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5459         (gl_rbtree_oset_implementation): Use gl_tree_update.
5460         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5461         (gl_oset_update): New function.
5462         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5463         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5464         * modules/rbtree-oset (configure.ac): Likewise.
5465         * tests/test-oset-update.h: New file.
5466         * tests/test-array_oset.c: Include test-oset-update.h.
5467         (main): Invoke test_update.
5468         * tests/test-avltree_oset.c: Likewise.
5469         * tests/test-rbtree_oset.c: Likewise.
5470         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5471         * modules/avltree-oset-tests (Files): Likewise.
5472         * modules/rbtree-oset-tests (Files): Likewise.
5473         * tests/test-oset-c++.cc (action): New function.
5474         (main): Test the 'update' member function.
5476 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5478         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5479         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5480         shell if, so that the argument to AC_CHECK_HEADERS is
5481         a simple string that does not require shell evaluation.
5482         This fixes a warning generated by Autoconf 2.69b.
5484 2020-07-12  Bruno Haible  <bruno@clisp.org>
5486         libgmp: Avoid warning when --without-libgmp is used.
5487         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5488         GCC >= 8, not for GCC >= 4.6.
5490 2020-07-12  Bruno Haible  <bruno@clisp.org>
5492         libgmp: Link to the correct shared library.
5493         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5494         * modules/libgmp (Depends-on): Add havelib.
5495         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5496         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5498 2020-07-12  Bruno Haible  <bruno@clisp.org>
5500         libgmp tests: Add some safety checks.
5501         * modules/libgmp-tests (Depends-on): Add verify.
5502         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5503         (main): Verify that gmp.h and libgmp versions match.
5505 2020-07-10  Bruno Haible  <bruno@clisp.org>
5507         unicodeio: Fix wrong result on NetBSD.
5508         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5509         characters also on NetBSD.
5511 2020-07-09  Bruno Haible  <bruno@clisp.org>
5513         unicodeio: Fix wrong result on Solaris 11.
5514         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5515         via Akim Demaille <akim.demaille@gmail.com> in
5516         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5517         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5518         characters on Solaris.
5519         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5520         UTF-8 output or the specified fallback.
5522 2020-07-08  Bruno Haible  <bruno@clisp.org>
5524         unicodeio: Add tests.
5525         * tests/test-unicodeio.c: New file.
5526         * tests/test-unicodeio1.sh: New file.
5527         * tests/test-unicodeio2.sh: New file.
5528         * tests/test-unicodeio3.sh: New file.
5529         * modules/unicodeio-tests: New file.
5531 2020-07-08  Bruno Haible  <bruno@clisp.org>
5533         unicodeio: Document link requirements.
5534         * modules/unicodeio (Link): New section.
5536 2020-07-07  Bruno Haible  <bruno@clisp.org>
5538         doc: Remove support for some very old platforms.
5539         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5540         * doc/posix-functions/memcpy.texi: Likewise.
5541         * doc/posix-functions/memmove.texi: Likewise.
5542         * doc/posix-functions/memset.texi: Likewise.
5543         * doc/posix-functions/getcwd.texi: Likewise.
5545         memchr: Remove support for some very old platforms.
5546         * m4/memchr-obsolete.m4: Remove file.
5547         * modules/memchr-obsolete: Remove file.
5548         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5549         absent. Don't define HAVE_MEMCHR.
5550         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5551         * modules/memchr (Depends-on): Remove memchr-obsolete.
5552         (configure.ac): Assume HAVE_MEMCHR is 1.
5553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5554         HAVE_MEMCHR.
5555         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5556         * doc/posix-functions/memchr.texi: Don't mention module
5557         'memchr-obsolete'.
5558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5559         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5560         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5562         dup2: Remove support for some very old platforms.
5563         * m4/dup2-obsolete.m4: Remove file.
5564         * modules/dup2-obsolete: Remove file.
5565         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5566         Don't define HAVE_DUP2.
5567         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5568         * lib/dup2.c: Likewise.
5569         * modules/dup2 (Depends-on, configure.ac): Likewise.
5570         (Depends-on): Remove dup2-obsolete.
5571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5572         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5573         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5575 2020-07-07  Bruno Haible  <bruno@clisp.org>
5577         canonicalize: Trim module dependencies.
5578         * lib/hash-triple.h: Group declarations.
5579         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5580         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5581         (STREQ): Remove macro.
5582         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5583         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5584         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5585         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5586         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5587         hash-triple-simple.
5588         * modules/file-set (Depends-on): Likewise.
5590 2020-07-07  Bruno Haible  <bruno@clisp.org>
5592         Clarify dependencies to double-slash-root.
5593         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5594         (Depends-on): Add double-slash-root.
5595         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5596         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5598 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5600         libgmp: new module
5601         The idea is to let programs simply include <gmp.h>, and
5602         so long as they live within the mini-gmp subset they need
5603         not worry about whether the GMP libraries are installed.
5604         * MODULES.html.sh: Mention it.
5605         * config/srclist.txt: Mention files copied from GMP source.
5606         * config/srclistvars.sh (GMP): New var.
5607         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5608         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5609         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5611 2020-07-05  Bruno Haible  <bruno@clisp.org>
5613         mkancesdirs: Trim module dependencies.
5614         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5615         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5617 2020-07-05  Bruno Haible  <bruno@clisp.org>
5619         getprogname: Trim module dependencies.
5620         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5621         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5622         basename-lgpl.
5624 2020-07-05  Bruno Haible  <bruno@clisp.org>
5626         filenamecat-lgpl: Trim module dependencies.
5627         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5628         dirname.h.
5629         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5630         basename-lgpl, filename.
5632 2020-07-05  Bruno Haible  <bruno@clisp.org>
5634         backupfile, backup-rename: Trim module dependencies.
5635         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5636         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5637         basename-lgpl.
5638         * modules/backup-rename (Depends-on): Likewise.
5640 2020-07-05  Bruno Haible  <bruno@clisp.org>
5642         argp: Trim module dependencies.
5643         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5644         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5646 2020-07-05  Bruno Haible  <bruno@clisp.org>
5648         basename-lgpl: New module.
5649         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5650         lib/basename-lgpl.c.
5651         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5652         <stdbool.h>, filename.h.
5653         (last_component): Rename a local variable.
5654         * lib/dirname.h: Include basename-lgpl.h.
5655         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5656         (last_component, base_len): Remove declarations.
5657         * modules/basename-lgpl: New file.
5658         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5659         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5660         (Makefile.am): Don't compile basename-lgpl.c.
5661         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5662         not 'dirname'.
5664 2020-07-05  Bruno Haible  <bruno@clisp.org>
5666         dirname, dirname-lgpl: Simplify.
5667         * m4/dirname.m4: Remove file.
5668         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5669         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5670         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5672 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5674         tests: avoid shadowing warning
5675         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5677 2020-07-05  Bruno Haible  <bruno@clisp.org>
5679         supersede: Add tests.
5680         * tests/test-supersede.c: New file.
5681         * tests/test-supersede-open.h: New file.
5682         * tests/test-supersede-fopen.h: New file.
5683         * modules/supersede-tests: New file.
5685         supersede: New module.
5686         * lib/supersede.h: New file.
5687         * lib/supersede.c: New file.
5688         * m4/supersede.m4: New file.
5689         * modules/supersede: New file.
5691 2020-07-05  Bruno Haible  <bruno@clisp.org>
5693         Add some copyright headers.
5694         * lib/dev-ino.h: Add copyright header.
5695         * lib/di-set.h: Likewise.
5696         * lib/fchown-stub.c: Likewise.
5697         * lib/file-set.h: Likewise.
5698         * lib/hash-triple.h: Likewise.
5699         * lib/idcache.h: Likewise.
5700         * lib/ino-map.h: Likewise.
5701         * lib/mkancesdirs.h: Likewise.
5702         * lib/scratch_buffer.h: Likewise.
5703         * lib/se-context.in.h: Likewise.
5704         * lib/stdopen.h: Likewise.
5705         * lib/userspec.h: Likewise.
5707 2020-07-04  Bruno Haible  <bruno@clisp.org>
5709         getrandom: Relicense under LGPLv2+.
5710         Paul Eggert's approval is in
5711         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5712         * modules/getrandom (License): Change to LGPLv2+.
5714 2020-07-04  Bruno Haible  <bruno@clisp.org>
5716         getumask: Add tests.
5717         * tests/test-getumask.c: New file.
5718         * modules/getumask-tests: New file.
5720         getumask: New module.
5721         * lib/sys_stat.in.h (getumask): New declaration.
5722         * lib/getumask.c: New file.
5723         * m4/getumask.m4: New file.
5724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5725         declared.
5726         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5727         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5728         HAVE_GETUMASK.
5729         * modules/getumask: New file.
5730         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5731         * doc/glibc-functions/getumask.texi: New file.
5732         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5734 2020-07-04  Bruno Haible  <bruno@clisp.org>
5736         clean-temp: Add support for temporary files with given mode.
5737         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5738         * lib/clean-temp.c (struct try_create_file_params): New type.
5739         (try_create_file): New function.
5740         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5741         gen_tempname.
5743 2020-07-04  Bruno Haible  <bruno@clisp.org>
5745         clean-temp: Document limitations.
5746         * lib/clean-temp.h: Document limitations.
5748 2020-07-04  Bruno Haible  <bruno@clisp.org>
5750         clean-temp: Add support for temporary files with unpredictable names.
5751         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5752         * lib/clean-temp.c: Include tempname.h.
5753         (gen_register_open_temp): New function.
5754         * modules/tempname (configure.ac): Define a module indicator.
5756 2020-07-04  Bruno Haible  <bruno@clisp.org>
5758         clean-temp: Add support for temporary files anywhere in the file system.
5759         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5760         cleanup_temporary_file): New declarations.
5761         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5762         variables.
5763         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5764         (dir_cleanup_list): Renamed from cleanup_list.
5765         (cleanup_action): Process the file_cleanup_list as well.
5766         (do_init_clean_temp): New function.
5767         (clean_temp_once): New variable.
5768         (init_clean_temp): New function.
5769         (create_temp_dir): Invoke it.
5770         (register_temporary_file, unregister_temporary_file,
5771         cleanup_temporary_file): New functions.
5772         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5773         argument.
5775 2020-07-04  Bruno Haible  <bruno@clisp.org>
5777         clean-temp: Improve comments.
5778         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5779         fwriteerror_temp, close_stream_temp): Clarify intended use.
5780         * lib/clean-temp.c: Likewise.
5782 2020-07-04  Bruno Haible  <bruno@clisp.org>
5784         clean-temp: Make multithread-safe, part 2.
5785         * lib/fatal-signal.h: Include <signal.h>.
5786         (get_fatal_signal_set): New declaration.
5787         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5788         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5789         (struct closeable_fd): New type.
5790         (fatal_signal_set): New variable.
5791         (init_fatal_signal_set): New function.
5792         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5793         (cleanup_action): Invoke asyncsafe_close instead of close.
5794         (create_temp_dir): Invoke init_fatal_signal_set.
5795         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5796         element.
5797         (unregister_fd): Remove function.
5798         (close_temp): Cleanup descriptors list on the fly. Invoke
5799         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5800         (fclose_variant_temp): New function.
5801         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5802         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5804 2020-07-04  Bruno Haible  <bruno@clisp.org>
5806         clean-temp: Make multithread-safe, part 1.
5807         * lib/clean-temp.c: Include glthread/lock.h.
5808         (cleanup_list_lock): New variable.
5809         (register_temp_file, unregister_temp_file, register_temp_subdir,
5810         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5811         (create_temp_dir): Likewise. Don't free the old array.
5812         (descriptors_lock): New variable.
5813         (register_fd, unregister_fd): Use it.
5814         * modules/clean-temp (Depends-on): Add lock.
5816 2020-07-04  Bruno Haible  <bruno@clisp.org>
5818         fatal-signal: Make multithread-safe.
5819         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5820         (do_init_fatal_signal_set): New function, extracted from
5821         init_fatal_signal_set.
5822         (fatal_signal_set_once): New variable.
5823         (init_fatal_signal_set): Use gl_once.
5825 2020-07-03  Bruno Haible  <bruno@clisp.org>
5827         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5828         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5829         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5830         <bcrypt.h>.
5832 2020-07-03  Bruno Haible  <bruno@clisp.org>
5834         dfa tests: Follow common file naming conventions.
5835         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5836         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5837         * tests/test-dfa-invalid-char-class.sh: Renamed from
5838         tests/dfa-invalid-char-class.sh. Update.
5839         * modules/dfa-tests (Files, Makefile.am): Update.
5841 2020-07-03  Bruno Haible  <bruno@clisp.org>
5843         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5844         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5845         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5847 2020-07-03  Bruno Haible  <bruno@clisp.org>
5849         asyncsafe-spin: Reduce code duplication.
5850         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5851         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5852         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5854 2020-07-03  Bruno Haible  <bruno@clisp.org>
5856         lchmod: Simplify after 2020-02-22 change.
5857         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5859 2020-07-03  Bruno Haible  <bruno@clisp.org>
5861         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5862         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5864 2020-07-03  Bruno Haible  <bruno@clisp.org>
5866         dfa: Make sure the compiler does not barf on 'inline'.
5867         * modules/dfa (configure.ac): Require AC_C_INLINE.
5869 2020-07-03  Bruno Haible  <bruno@clisp.org>
5871         bitset: Make sure the compiler does not barf on 'inline'.
5872         * modules/bitset (configure.ac): New section.
5874 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5876         manywarnings: improve port to GCC 10.1
5877         * build-aux/gcc-warning.spec: Also list warnings that are default
5878         or are enabled by already-given flags.  This lets us speed up
5879         checking for attributes, and makes the generated compilation
5880         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5881         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5882         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5883         to shell variables that may have long values.
5884         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5885         consequences of other flags, to speed up checking and
5886         shorten commands.
5888         tests: pacify gcc -fanalyzer on zerosize_ptr
5889         * tests/test-memcasecmp.c (main):
5890         * tests/test-memchr.c (main):
5891         * tests/test-memchr2.c (main):
5892         * tests/test-memcmp.c (main):
5893         * tests/test-memmem.c (main):
5894         * tests/test-memrchr.c (main):
5895         * tests/unistr/test-chr.h (main):
5896         * tests/unistr/test-cmp.h (test_cmp):
5897         Check whether zerosize_ptr returns NULL before using it.
5898         This pacifies GCC 10.1’s new fanalyzer option, and matches
5899         other uses of zerosize_ptr.
5901 2020-07-01  Bruno Haible  <bruno@clisp.org>
5903         asyncsafe-spin: Add tests.
5904         * tests/test-asyncsafe-spin1.c: New file.
5905         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5906         tests/test-pthread-spin.c.
5907         * modules/asyncsafe-spin-tests: New file.
5909 2020-07-01  Bruno Haible  <bruno@clisp.org>
5911         asyncsafe-spin: New module.
5912         * lib/asyncsafe-spin.h: New file.
5913         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5914         * modules/asyncsafe-spin: New file.
5916 2020-07-01  Bruno Haible  <bruno@clisp.org>
5918         windows-spin: Fix race condition on multiprocessor systems.
5919         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5921 2020-07-01  Bruno Haible  <bruno@clisp.org>
5923         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5924         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5925         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5926         an implementation based on other GCC built-ins.
5928 2020-07-01  Bruno Haible  <bruno@clisp.org>
5930         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5931         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5932         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5933         lock byte.
5935 2020-07-01  Bruno Haible  <bruno@clisp.org>
5937         pthread-spin: Add error checking.
5938         * lib/pthread-spin.c: Include <stdbool.h>.
5939         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5940         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5941         the unlocks.
5942         * modules/pthread-spin (Depends-on): Add stdbool.
5944 2020-07-01  Bruno Haible  <bruno@clisp.org>
5946         pthread-spin: Add tests.
5947         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5948         * modules/pthread-spin-tests: New file.
5950 2020-07-01  Bruno Haible  <bruno@clisp.org>
5952         tests: Reduce code duplication.
5953         * tests/atomic-int-posix.h: New file, extracted from
5954         tests/test-pthread-mutex.c.
5955         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5956         * tests/test-pthread-rwlock.c: Likewise.
5957         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5958         * modules/pthread-rwlock-tests (Files): Likewise.
5960 2020-07-01  Bruno Haible  <bruno@clisp.org>
5962         tests: Refactor.
5963         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5964         * tests/test-mtx.c: Include it. Remove the corresponding code.
5965         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5967 2020-07-01  Bruno Haible  <bruno@clisp.org>
5969         tests: Refactor.
5970         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5971         * tests/test-lock.c: Include it. Remove the corresponding code.
5972         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5974 2020-06-29  Bruno Haible  <bruno@clisp.org>
5976         sys_socket: Don't define socklen_t if it is already defined on mingw.
5977         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5978         <https://savannah.gnu.org/bugs/?57725>,
5979         by Rahul Das <bokul_4u@yahoo.com> in
5980         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5981         and by Eli Zaretskii <eliz@gnu.org> in
5982         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5983         * lib/sys_socket.in.h (socklen_t): Remove definition.
5985 2020-06-29  Bruno Haible  <bruno@clisp.org>
5987         alloca-opt: Fix warning on mingw.
5988         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5990         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5991         whether alloca is defined.
5993 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5995         getrandom: do not depend on ‘open’ on mingw
5996         Similarly for at-internal, getloadavg.  These modules do not call
5997         the ‘open’ function when they are compiled on mingw.  On mingw,
5998         this avoids having to compile open.c when building Emacs, which
5999         does its own thing with ‘open’.
6000         * modules/at-internal, modules/getloadavg, modules/getrandom:
6001         (Depends-on): Don’t depend on ‘open’ on mingw.
6002         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6003         * modules/getloadavg (Depends-on):
6004         Depend on intprops, open, stdbool, stdlib only if compiling
6005         getloadavg.c.
6007 2020-06-28  Bruno Haible  <bruno@clisp.org>
6009         doc: Add a note about sigprocmask vs. pthread_sigmask.
6010         * doc/posix-functions/sigprocmask.texi: Add note.
6012 2020-06-28  Bruno Haible  <bruno@clisp.org>
6014         getrandom: Fix compilation errors on older versions of mingw.
6015         Reported by Eli Zaretskii <eliz@gnu.org> in
6016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6017         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6018         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6019         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6020         BCryptGenRandom ourselves.
6022 2020-06-28  Bruno Haible  <bruno@clisp.org>
6024         clean-temp: Fix wrong errno in error message.
6025         * lib/clean-temp.c (create_temp_dir): Save errno around
6026         unblock_fatal_signals call.
6028 2020-06-27  Bruno Haible  <bruno@clisp.org>
6030         fatal-signal: Make multithread-safe.
6031         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6033 2020-06-27  Bruno Haible  <bruno@clisp.org>
6035         clean-temp: Don't force deletion of temporary files on native Windows.
6036         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6037         argument.
6038         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6039         * NEWS: Mention the change.
6040         * lib/javacomp.c (write_temp_file): Update.
6042 2020-06-27  Bruno Haible  <bruno@clisp.org>
6044         fatal-signal: Make multithread-safe.
6045         * lib/fatal-signal.c: Include glthread/lock.h.
6046         (at_fatal_signal_lock): New variable.
6047         (at_fatal_signal): Use it.
6048         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6049         (block_fatal_signals, unblock_fatal_signals): Use them.
6050         * modules/fatal-signal (Depends-on): Add lock.
6052 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6054         getloadavg: don’t depend on fopen-gnu
6055         This is for Emacs, which does not need fopen-gnu for anything else,
6056         and which would need it only on a NetBSD platform where getloadavg
6057         does not work (does that even happen?).
6058         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6059         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6061         * tests/test-getloadavg.c (main): Fix typo.
6063 2020-06-27  Bruno Haible  <bruno@clisp.org>
6065         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6066         * modules/tempname (Link): New section.
6067         * modules/mkdtemp (Link): Likewise.
6068         * modules/clean-temp (Link): Likewise.
6069         * modules/mkstemp (Link): Likewise.
6070         * modules/stdlib-safer (Link): Likewise.
6071         * modules/mkstemps (Link): Likewise.
6072         * modules/mkostemp (Link): Likewise.
6073         * modules/mkostemps (Link): Likewise.
6074         * modules/tmpfile (Link): Likewise.
6075         * modules/tmpfile-safer (Link): Likewise.
6076         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6077         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6078         $(LIB_GETRANDOM).
6079         * NEWS: Mention the changes.
6081 2020-06-27  Bruno Haible  <bruno@clisp.org>
6083         fopen-gnu: Simplify code.
6084         * lib/fopen.c: Include <stdbool.h>.
6085         (rpl_fopen): Use a single variable open_flags instead of
6086         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6087         * modules/fopen (Depends-on): Add stdbool.
6089 2020-06-26  Bruno Haible  <bruno@clisp.org>
6091         canonicalize: Improve documentation.
6092         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6093         return convention.
6095 2020-06-26  Bruno Haible  <bruno@clisp.org>
6097         xgetcwd: Improve documentation.
6098         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6100 2020-06-26  Bruno Haible  <bruno@clisp.org>
6102         getcwd: Improve documentation.
6103         * lib/getcwd.c (__getcwd): Document the failure return convention.
6105 2020-06-26  Bruno Haible  <bruno@clisp.org>
6107         fchdir: Improve documentation.
6108         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6109         convention.
6111 2020-06-26  Bruno Haible  <bruno@clisp.org>
6113         filenamecat-lgpl: Set errno upon failure.
6114         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6115         return convention.
6116         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6118 2020-06-26  Bruno Haible  <bruno@clisp.org>
6120         areadlink-with-size: Set errno upon failure.
6121         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6122         fails.
6123         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6125 2020-06-26  Bruno Haible  <bruno@clisp.org>
6127         copy-file: Shrink dependencies.
6128         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6129         qcopy-acl.
6131 2020-06-26  Bruno Haible  <bruno@clisp.org>
6133         doc: Mention declaration fixes implemented by some modules.
6134         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6135         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6136         declaration appear in <unistd.h>.
6137         * doc/posix-functions/dup.texi: Likewise.
6138         * doc/posix-functions/dup2.texi: Likewise.
6139         * doc/posix-functions/gethostname.texi: Likewise.
6140         * doc/posix-functions/isatty.texi: Likewise.
6141         * doc/posix-functions/lseek.texi: Likewise.
6142         * doc/posix-functions/unlink.texi: Likewise.
6143         * doc/posix-functions/read.texi: Mention the module 'read'.
6144         * doc/posix-functions/write.texi: Mention the effects of the module
6145         'write'.
6147 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6149         c-dtoastr, c-ldtoastr: new modules
6150         These modules provide the same functionality as the modules
6151         dtoastr and ldtoastr except for the formatting taking place in the
6152         C locale.
6153         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6154         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6155         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6156         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6157         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6158         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6159         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6160         modules/c-ldtoastr-tests: New files.
6161         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6162         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6164 2020-06-21  Bruno Haible  <bruno@clisp.org>
6166         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6167         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6169 2020-06-16  Bruno Haible  <bruno@clisp.org>
6171         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6172         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6174 2020-06-16  Bruno Haible  <bruno@clisp.org>
6176         thread, thrd: Avoid a compiler warning.
6177         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6179 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6181         windows-thread: Avoid a compiler warning.
6182         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6183         void.
6184         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6186 2020-06-15  Bruno Haible  <bruno@clisp.org>
6188         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6189         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6190         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6191         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6192         first.
6194 2020-06-06  Bruno Haible  <bruno@clisp.org>
6196         calloc-gnu tests: Avoid a test failure with clang.
6197         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6198         'volatile', to defeat compiler optimizations.
6200 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6202         getloadavg: fix double-increment bug
6203         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6204         Linux without glibc, Android, Cygwin.  This fixes a bug I
6205         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6206         Problem and fix reported by Semen Verchenko in:
6207         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6209         tempname: use getrandom, not getentropy
6210         This removes a dependency, as getentropy depends on getrandom.
6211         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6212         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6213         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6215 2020-06-01  Bruno Haible  <bruno@clisp.org>
6217         doc: New chapter 'Multithreading'.
6218         * doc/multithread.texi: New file.
6219         * doc/gnulib.texi: Include it.
6221 2020-06-01  Bruno Haible  <bruno@clisp.org>
6223         doc: Move 'Running self-tests under valgrind' section.
6224         * doc/gnulib.texi (Build Infrastructure Modules): Include
6225         valgrind-tests.texi here...
6226         (Miscellaneous Notes): ... not here.
6228 2020-06-01  Bruno Haible  <bruno@clisp.org>
6230         doc: Move 'Visual Studio Compatibility' section.
6231         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6232         here...
6233         (Build Infrastructure Modules): ... not here.
6235 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6237         doc: improve randomness discussion
6238         Inspired by comments from Jeffrey Walton in:
6239         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6240         * doc/glibc-functions/getentropy.texi (getentropy):
6241         * doc/glibc-functions/getrandom.texi (getrandom):
6242         Improve discussion of problems with "random" data,
6243         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6245 2020-06-01  Bruno Haible  <bruno@clisp.org>
6247         doc: Fix Texinfo syntax error.
6248         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6250 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6252         doc: Change '.' to '@.' where appropriate.
6253         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6254         * doc/glibc-functions/fstatfs.texi: Likewise.
6255         * doc/glibc-functions/fts_children.texi: Likewise.
6256         * doc/glibc-functions/fts_read.texi: Likewise.
6257         * doc/glibc-functions/getdirentries.texi: Likewise.
6258         * doc/glibc-functions/mkostemp.texi: Likewise.
6259         * doc/glibc-functions/mkostemps.texi: Likewise.
6260         * doc/glibc-functions/mkstemps.texi: Likewise.
6261         * doc/glibc-functions/preadv.texi: Likewise.
6262         * doc/glibc-functions/pwritev.texi: Likewise.
6263         * doc/glibc-functions/sendfile.texi: Likewise.
6264         * doc/glibc-functions/statfs.texi: Likewise.
6265         * doc/gnulib-intro.texi: Likewise.
6266         * doc/gnulib-tool.texi: Likewise.
6267         * doc/intprops.texi: Likewise.
6268         * doc/lib-symbol-visibility.texi: Likewise.
6269         * doc/licenses-texi.texi: Likewise.
6270         * doc/pastposix-functions/bcmp.texi: Likewise.
6271         * doc/pastposix-functions/bcopy.texi: Likewise.
6272         * doc/pastposix-functions/bzero.texi: Likewise.
6273         * doc/pastposix-functions/ecvt.texi: Likewise.
6274         * doc/pastposix-functions/fcvt.texi: Likewise.
6275         * doc/pastposix-functions/ftime.texi: Likewise.
6276         * doc/pastposix-functions/gcvt.texi: Likewise.
6277         * doc/pastposix-functions/getwd.texi: Likewise.
6278         * doc/pastposix-functions/index.texi: Likewise.
6279         * doc/pastposix-functions/mktemp.texi: Likewise.
6280         * doc/pastposix-functions/rindex.texi: Likewise.
6281         * doc/pastposix-functions/wcswcs.texi: Likewise.
6282         * doc/posix-functions/aio_cancel.texi: Likewise.
6283         * doc/posix-functions/aio_error.texi: Likewise.
6284         * doc/posix-functions/aio_fsync.texi: Likewise.
6285         * doc/posix-functions/aio_read.texi: Likewise.
6286         * doc/posix-functions/aio_return.texi: Likewise.
6287         * doc/posix-functions/aio_suspend.texi: Likewise.
6288         * doc/posix-functions/aio_write.texi: Likewise.
6289         * doc/posix-functions/creat.texi: Likewise.
6290         * doc/posix-functions/ctime.texi: Likewise.
6291         * doc/posix-functions/daylight.texi: Likewise.
6292         * doc/posix-functions/fgetpos.texi: Likewise.
6293         * doc/posix-functions/fopen.texi: Likewise.
6294         * doc/posix-functions/freopen.texi: Likewise.
6295         * doc/posix-functions/fseeko.texi: Likewise.
6296         * doc/posix-functions/fsetpos.texi: Likewise.
6297         * doc/posix-functions/fstatat.texi: Likewise.
6298         * doc/posix-functions/fstatvfs.texi: Likewise.
6299         * doc/posix-functions/ftello.texi: Likewise.
6300         * doc/posix-functions/ftruncate.texi: Likewise.
6301         * doc/posix-functions/getrlimit.texi: Likewise.
6302         * doc/posix-functions/lio_listio.texi: Likewise.
6303         * doc/posix-functions/localtime.texi: Likewise.
6304         * doc/posix-functions/lseek.texi: Likewise.
6305         * doc/posix-functions/mkstemp.texi: Likewise.
6306         * doc/posix-functions/mktime.texi: Likewise.
6307         * doc/posix-functions/open.texi: Likewise.
6308         * doc/posix-functions/openat.texi: Likewise.
6309         * doc/posix-functions/opendir.texi: Likewise.
6310         * doc/posix-functions/pread.texi: Likewise.
6311         * doc/posix-functions/pwrite.texi: Likewise.
6312         * doc/posix-functions/readdir.texi: Likewise.
6313         * doc/posix-functions/readdir_r.texi: Likewise.
6314         * doc/posix-functions/scandir.texi: Likewise.
6315         * doc/posix-functions/seekdir.texi: Likewise.
6316         * doc/posix-functions/setrlimit.texi: Likewise.
6317         * doc/posix-functions/statvfs.texi: Likewise.
6318         * doc/posix-functions/strftime.texi: Likewise.
6319         * doc/posix-functions/telldir.texi: Likewise.
6320         * doc/posix-functions/timezone.texi: Likewise.
6321         * doc/posix-functions/tmpfile.texi: Likewise.
6322         * doc/posix-functions/truncate.texi: Likewise.
6323         * doc/posix-functions/tzname.texi: Likewise.
6324         * doc/posix-functions/wcsftime.texi: Likewise.
6325         * doc/windows-sockets.texi: Likewise.
6327 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6329         getrandom-tests: do not assume GRND_RANDOM yields short read
6330         * tests/test-getrandom.c (main): Omit assertion that
6331         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6332         when b’s size is 100000.  This assertion fails with Linux kernel
6333         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6334         The separate blocking pool is going away in the Linux kernel, and
6335         they’ve added a flag GRND_INSECURE instead; see:
6336         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6337         The assertion was iffy anyway; what’s to prevent a kernel from
6338         lazily filling a large buffer with random bytes?
6340         read-file-test: pacify --enable-gcc-warnings
6341         * tests/test-read-file.c (test_read_file): Now static.
6343         tempname: merge from glibc and coreutils
6344         Also, merge in Gnulib’s more-recent methods of making it easier
6345         to share between Gnulib and glibc, and fix a few randomness
6346         glitches.
6347         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6348         (__set_errno): Remove; libc-config.h does that for us.
6349         Do not include <sys/time.h>.
6350         (__secure_getenv) [_LIBC]: New macro.
6351         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6352         (RANDOM_BITS): Rewrite.
6353         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6354         (random_value): New typedef.
6355         (try_file, try_dir, try_nocreate): Move up.
6356         (gen_tempname_len, try_tempname_len): New functions.
6357         (gen_tempname_len): Use a constant array rather than a switch.
6358         (try_tempname_len): Don’t assume string length fits in int.
6359         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6360         has enough entropy (it’s a bit short).
6361         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6362         (__try_tempname): Rewrite in terms of try_tempname_len.
6363         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6364         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6365         Add getentropy, libc-config.
6367 2020-05-31  Bruno Haible  <bruno@clisp.org>
6369         getrandom, getentropy: Mention the crypto/gc-random module.
6370         Suggested by Simon Josefsson in
6371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6372         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6373         crypto/gc-random module.
6374         * doc/glibc-functions/getentropy.texi: Likewise.
6376 2020-05-31  Bruno Haible  <bruno@clisp.org>
6378         getentropy: Enhance tests.
6379         * tests/test-getentropy.c (main): Add one more test.
6380         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6382 2020-05-31  Bruno Haible  <bruno@clisp.org>
6384         getentropy: Work around a macOS and Solaris problem.
6385         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6386         'getentropy' module.
6387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6388         UNISTD_H_HAVE_SYS_RANDOM_H.
6389         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6390         UNISTD_H_HAVE_SYS_RANDOM_H.
6391         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6392         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6393         problem. List more platforms.
6395 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6397         fnmatch: merge from glibc
6398         Also, merge in Gnulib’s more-recent methods of making it easier
6399         to share between Gnulib and glibc.
6400         * lib/fnmatch.c: Reorder includes to match glibc better.
6401         Include libc-config.h instead of config.h.
6402         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6403         Do not include "../locale/elem-hash.h" if _LIBC.
6404         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6405         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6406         Include intprops.h, since glibc has it now.
6407         (SIZE_MAX): Remove; use (size_t) -1 instead.
6408         Omit the "Comment out all this code" ifdef, since Gnulib
6409         has never really needed it.
6410         (STREQ): Remove; no longer used.
6411         (__libc_use_alloca, alloca, alloca_account): Define as
6412         needed if !_LIBC.
6413         (ISWCTYPE): Remove; all uses replaced by iswctype.
6414         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6415         (internal_function): Remove.  All uses removed.
6416         (STRUCT): New macro.
6417         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6418         (WMEMCMP): New macro.
6419         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6420         and <locale/weightwc.h>.
6421         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6422         __builtin_expect.  Check for integer overflow more
6423         systematically.  Account for alloca storage better when
6424         recursive.  Use strnlen instead of strlen for efficiency.
6425         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6426         (struct STRUCT): New type.
6427         (FCT, EXT): New ENDS and ALLOCA_USED args.
6428         All callers changed.
6429         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6430         Simplify by assuming WIDE_CHAR_SUPPORT.
6431         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6432         Cast cold to UCHAR to avoid signedness warning.
6433         (END): Check for invalid pattern.
6434         (EXT): Improve alloca/malloc checking (taken from glibc),
6435         and improve it some more by using intprops.h and checking
6436         for integer overflow and using bool for booleans.
6437         * lib/libc-config.h (compat_symbol): New macro.
6438         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6439         acceptable to non-GCC when a trailing semicolon is added.
6440         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6441         libc-config, strnlen.  Remove alloca.
6443 2020-05-31  Bruno Haible  <bruno@clisp.org>
6445         getrandom: Doc and test tweaks.
6446         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6447         it sets errno when failing.
6448         * tests/test-getrandom.c (main): Disable the high-quality check on those
6449         platforms on which it fails.
6450         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6451         Cygwin to the list of platforms that don't have the function. Add a note
6452         about the quality of the result.
6453         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6454         declaration; this is fixed by module 'getrandom'.
6456 2020-05-31  Bruno Haible  <bruno@clisp.org>
6458         getrandom: Add support for native Windows.
6459         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6460         <wincrypt.h>.
6461         (CRYPT_VERIFY_CONTEXT): New macro.
6462         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6463         'A'.
6464         (GetProcAddress): New macro.
6465         (BCryptGenRandomFuncType): New type.
6466         (BCryptGenRandomFunc, initialized): New variables.
6467         (initialize): New function.
6468         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6469         <wincrypt.h> API as fallback.
6470         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6471         * modules/getrandom (Link): New section.
6472         * modules/getentropy (Link): Likewise.
6473         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6474         $(LIB_GETRANDOM).
6475         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6476         $(LIB_GETRANDOM).
6477         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6478         against $(LIB_GETRANDOM).
6479         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6480         support.
6482 2020-05-31  Bruno Haible  <bruno@clisp.org>
6484         getrandom: Simplify the determination of the random number devices.
6485         Suggested by Paul Eggert in
6486         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6487         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6488         macros.
6489         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6491 2020-05-31  Bruno Haible  <bruno@clisp.org>
6493         crypto/gc-random: Fix list of crypto devices for Solaris.
6494         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6496 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6498         list: fix GCC warnings
6499         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6500         (gl_tree_next_node, gl_tree_node_nx_set_value)
6501         (gl_tree_previous_node, gl_tree_next_node):
6502         Mark unused arguments.
6503         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6504         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6505         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6507         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6508         the same variable name in nested scopes.
6510 2020-05-31  Bruno Haible  <bruno@clisp.org>
6512         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6513         Reported by Akim Demaille in
6514         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6515         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6516         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6517         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6518         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6519         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6521 2020-05-30  Bruno Haible  <bruno@clisp.org>
6523         wmemchr: Relicense under LGPLv2+.
6524         * modules/wmemchr (License): Set to LGPLv2+.
6526 2020-05-30  Bruno Haible  <bruno@clisp.org>
6528         wmempcpy: New module.
6529         Reported by Paul Eggert in
6530         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6531         * lib/wchar.in.h (wmempcpy): New declaration.
6532         * lib/wmempcpy.c: New file.
6533         * m4/wmempcpy.m4: New file.
6534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6536         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6537         HAVE_WMEMPCPY.
6538         * modules/wmempcpy: New file.
6539         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6540         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6541         * modules/mempcpy (Description): Fix typo.
6543 2020-05-30  Bruno Haible  <bruno@clisp.org>
6545         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6546         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6548 2020-05-30  Bruno Haible  <bruno@clisp.org>
6550         sys_random: Work around macOS bug.
6551         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6552         <stdlib.h> before <sys/random.h>.
6553         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6554         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6555         first.
6556         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6558 2020-05-30  Bruno Haible  <bruno@clisp.org>
6560         getrandom: Override incompatible system function on Solaris 11.
6561         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6562         * lib/getrandom.c (getrandom): When the system has getrandom, just
6563         invoke it.
6564         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6565         system's getrandom function's prototype is not the expected one.
6566         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6567         REPLACE_GETRANDOM.
6568         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6569         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6570         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6571         EAGAIN.
6572         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6573         Solaris problem.
6575 2020-05-30  Bruno Haible  <bruno@clisp.org>
6577         sys_random: Add C++ tests.
6578         * tests/test-sys_random-c++.cc: New file.
6579         * modules/sys_random-c++-tests: New file.
6580         * modules/sys_random-tests (Depends-on): Depend on it.
6582         sys_random: Add tests.
6583         * tests/test-sys_random.c: New file.
6584         * modules/sys_random-tests: New file.
6586         sys_random: New module.
6587         * lib/sys_random.in.h: Use the common idioms for overridable header
6588         files.
6589         * m4/sys_random_h.m4: New file.
6590         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6591         * modules/sys_random: New file.
6592         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6593         (Depends-on): Add sys_random.
6594         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6595         gl_UNISTD_MODULE_INDICATOR.
6596         (Makefile.am): Don't generate sys/random.h here.
6597         * doc/glibc-headers/sys_random.texi: New file.
6598         * doc/gnulib.texi: Include it.
6600 2020-05-30  Bruno Haible  <bruno@clisp.org>
6602         unistd: Remove conflicting declaration of getrandom().
6603         * lib/unistd.in.h (getrandom): Remove declaration.
6604         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6605         declared.
6606         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6607         HAVE_GETRANDOM.
6608         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6609         HAVE_GETRANDOM.
6611 2020-05-30  Bruno Haible  <bruno@clisp.org>
6613         getrandom: Add tests.
6614         * tests/test-getrandom.c: New file.
6615         * modules/getrandom-tests: New file.
6617 2020-05-30  Bruno Haible  <bruno@clisp.org>
6619         crypto/gc-random: Fix link error on MSVC.
6620         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6621         * modules/crypto/gc-random (Link): New section.
6622         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6623         $(LIB_GC_RANDOM).
6625 2020-05-30  Bruno Haible  <bruno@clisp.org>
6627         Don't assume that UNICODE is not defined.
6628         Many Windows API functions are defined differently (redirecting to a
6629         function with suffix 'W') if the application defines the macro UNICODE
6630         than by default (redirecting to a function with suffix 'A').
6631         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6632         variant with suffix 'A'.
6633         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6634         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6635         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6636         * lib/getlogin.c (GetUserName): Likewise.
6637         * lib/getlogin_r.c (GetUserName): Likewise.
6638         * lib/gettimeofday.c (LoadLibrary): Likewise.
6639         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6640         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6641         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6642         * lib/mountlist.c (GetDriveType): Likewise.
6643         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6644         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6645         Likewise.
6646         * lib/physmem.c (GetModuleHandle): Likewise.
6647         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6648         PeekMessage, DispatchMessage): Likewise.
6649         * lib/progreloc.c (GetModuleFileName): Likewise.
6650         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6651         * lib/read.c (GetNamedPipeHandleState): Likewise.
6652         * lib/readdir.c (FindNextFile): Likewise.
6653         * lib/relocatable.c (GetModuleFileName): Likewise.
6654         * lib/rename.c (MoveFileEx): Likewise.
6655         * lib/rewinddir.c (FindFirstFile): Likewise.
6656         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6657         PeekMessage, DispatchMessage): Likewise.
6658         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6659         * lib/socket.c (WSASocket): Likewise.
6660         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6661         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6662         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6663         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6664         * lib/tmpdir.c (GetTempPath): Likewise.
6665         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6666         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6667         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6668         * lib/windows-cond.c (CreateEvent): Likewise.
6669         * lib/windows-rwlock.c (CreateEvent): Likewise.
6670         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6671         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6672         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6673         * lib/write.c (GetNamedPipeHandleState): Likewise.
6675 2020-05-30  Bruno Haible  <bruno@clisp.org>
6677         physmem: Fix compilation errors on MSVC.
6678         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6679         * modules/physmem (Depends-on): Add unistd.
6681 2020-05-29  Bruno Haible  <bruno@clisp.org>
6683         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6684         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6685         LDADD a second time, after the second occurrence of libtests.a.
6686         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6688 2020-05-29  Bruno Haible  <bruno@clisp.org>
6690         fnmatch: Rely on more gnulib modules.
6691         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6692         wmempcpy, mempcpy.
6693         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6694         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6695         HAVE_MEMPCPY are all 1.
6696         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6697         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6699 2020-05-29  Bruno Haible  <bruno@clisp.org>
6701         Avoid dynamic lookup of Windows API functions when possible.
6702         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6703         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6704         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6705         (use_win32_p): Define differently.
6706         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6707         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6708         for Windows XP or higher.
6710 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6712         read-file: disable buffering if RF_SENSITIVE is set
6713         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6714         Suggested by Glenn Strauss.
6715         (fread_file): Suggest calling setvbuf before calling this
6716         function.  Suggested by Bruno Haible.
6718 2020-05-29  Bruno Haible  <bruno@clisp.org>
6720         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6721         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6722         program.
6723         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6724         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6725         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6726         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6728 2020-05-29  Bruno Haible  <bruno@clisp.org>
6730         Fix compilation error on native Windows (regression from 2020-05-28).
6731         Reported by Daiki Ueno.
6732         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6733         macro when not using dynamic loading.
6734         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6735         QueryFullProcessImageNameFunc): Likewise.
6736         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6737         GetFinalPathNameByHandleFunc): Likewise.
6739 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6741         fopen-gnu-tests: fix "\x" escape usage
6742         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6744 2020-05-28  Bruno Haible  <bruno@clisp.org>
6746         Avoid dynamic loading of Windows API functions when possible.
6747         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6748         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6749         * lib/gettimeofday.c (GetProcAddress,
6750         GetSystemTimePreciseAsFileTimeFuncType,
6751         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6752         define in a build for Windows 8 or higher.
6753         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6754         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6755         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6756         in a build for Windows Vista or higher.
6757         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6758         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6759         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6761 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6763         explicit_bzero-tests: improve -Wmissing-declarations pacification
6764         * tests/test-explicit_bzero.c: Now noinline.
6765         Suggested by Bruno Haible in:
6766         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6768 2020-05-28  Bruno Haible  <bruno@clisp.org>
6770         Fix build errors due to read-file changes (regression from 2020-05-27).
6771         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6772         invocation.
6773         * tests/test-sameacls.c (main): Likewise.
6774         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6775         read_binary_file.
6776         * tests/test-pipe-filter-ii1.c (main): Likewise.
6778 2020-05-28  Bruno Haible  <bruno@clisp.org>
6780         fts: Make more robust in multithreaded applications.
6781         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6782         * modules/fts (Depends-on): Add 'open'.
6784 2020-05-28  Bruno Haible  <bruno@clisp.org>
6786         relocatable-prog: Make more robust in multithreaded applications.
6787         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6788         relocatable-prog-wrapper.
6789         (find_executable): Pass an O_CLOEXEC flag to open().
6790         * modules/relocatable-prog (Depends-on): Add 'open'.
6792 2020-05-28  Bruno Haible  <bruno@clisp.org>
6794         getloadavg: Make more robust in multithreaded applications.
6795         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6796         Simplify use of O_CLOEXEC.
6797         * modules/getloadavg (Depends-on): Add 'open'.
6799 2020-05-28  Bruno Haible  <bruno@clisp.org>
6801         vma-iter: Make more robust in multithreaded applications.
6802         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6803         open().
6804         * modules/vma-iter (Depends-on): Add 'open'.
6806 2020-05-28  Bruno Haible  <bruno@clisp.org>
6808         truncate: Make more robust in multithreaded applications.
6809         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6811 2020-05-28  Bruno Haible  <bruno@clisp.org>
6813         pagealign_alloc: Make more robust in multithreaded applications.
6814         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6815         open().
6816         * modules/pagealign_alloc (Depends-on): Add 'open'.
6818 2020-05-28  Bruno Haible  <bruno@clisp.org>
6820         openat: Make more robust in multithreaded applications.
6821         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6823 2020-05-28  Bruno Haible  <bruno@clisp.org>
6825         at-internal: Make more robust in multithreaded applications.
6826         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6827         open().
6829 2020-05-28  Bruno Haible  <bruno@clisp.org>
6831         mountlist: Make more robust in multithreaded applications.
6832         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6833         open().
6834         * modules/mountlist (Depends-on): Add 'open'.
6836 2020-05-28  Bruno Haible  <bruno@clisp.org>
6838         login_tty: Make more robust in multithreaded applications.
6839         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6840         * modules/login_tty (Depends-on): Add 'open'.
6842 2020-05-28  Bruno Haible  <bruno@clisp.org>
6844         javacomp: Make more robust in multithreaded applications.
6845         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6846         open().
6847         * modules/javacomp (Depends-on): Add 'open'.
6849 2020-05-28  Bruno Haible  <bruno@clisp.org>
6851         getprogname: Make more robust in multithreaded applications.
6852         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6853         * modules/getprogname (Depends-on): Add 'open'.
6855 2020-05-28  Bruno Haible  <bruno@clisp.org>
6857         get_progname_of: Make more robust in multithreaded applications.
6858         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6859         open().
6860         * modules/get_progname_of (Depends-on): Add 'open'.
6862 2020-05-28  Bruno Haible  <bruno@clisp.org>
6864         get_ppid_of: Make more robust in multithreaded applications.
6865         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6866         * modules/get_ppid_of (Depends-on): Add 'open'.
6868 2020-05-28  Bruno Haible  <bruno@clisp.org>
6870         get-rusage-as: Make more robust in multithreaded applications.
6871         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6872         flag to open().
6873         * modules/get-rusage-as (Depends-on): Add 'open'.
6875 2020-05-28  Bruno Haible  <bruno@clisp.org>
6877         crypto/gc: Make more robust in multithreaded applications.
6878         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6879         * modules/crypto/gc (Depends-on): Add 'open'.
6881 2020-05-28  Bruno Haible  <bruno@clisp.org>
6883         copy-file: Make more robust in multithreaded applications.
6884         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6885         open().
6887 2020-05-28  Bruno Haible  <bruno@clisp.org>
6889         chown: Make more robust in multithreaded applications.
6890         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6892 2020-05-28  Bruno Haible  <bruno@clisp.org>
6894         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6895         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6897 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6899         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6900         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6901         specified on Windows.
6902         * tests/test-fopen-gnu.c (DATA): New define.
6903         (main): Add test for reading binary files with an 'e' flag.
6905 2020-05-27  Bruno Haible  <bruno@clisp.org>
6907         Don't assume that UNICODE is not defined.
6908         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6909         differently if the application defines the macro UNICODE.
6910         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6911         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6912         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6913         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6914         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6916 2020-05-27  Bruno Haible  <bruno@clisp.org>
6918         Improve pattern for defining _WIN32_WINNT.
6919         Newer versions of the Windows API may not only add, but also remove API
6920         functions. Therefore, when the user is e.g. building for Windows 10, we
6921         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6922         use of APIs that were present in Windows 8 but removed in Windows 10.
6923         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6924         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6925         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6926         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6927         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6929 2020-05-27  Bruno Haible  <bruno@clisp.org>
6931         javacomp: Make more robust in multithreaded applications.
6932         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6933         * modules/javacomp (Depends-on): Add fopen-gnu.
6935 2020-05-27  Bruno Haible  <bruno@clisp.org>
6937         mountlist: Make more robust in multithreaded applications.
6938         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6939         to fopen.
6940         * modules/mountlist (Depends-on): Add fopen-gnu.
6942 2020-05-27  Bruno Haible  <bruno@clisp.org>
6944         sethostname: Make more robust in multithreaded applications.
6945         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6946         * modules/sethostname (Depends-on): Add fopen-gnu.
6948 2020-05-27  Bruno Haible  <bruno@clisp.org>
6950         readutmp: Make more robust in multithreaded applications.
6951         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6952         * modules/readutmp (Depends-on): Add fopen-gnu.
6954 2020-05-27  Bruno Haible  <bruno@clisp.org>
6956         getpass: Make more robust in multithreaded applications.
6957         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6958         * modules/getpass (Depends-on): Add fopen-gnu.
6960 2020-05-27  Bruno Haible  <bruno@clisp.org>
6962         getloadavg: Make more robust in multithreaded applications.
6963         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6964         * modules/getloadavg (Depends-on): Add fopen-gnu.
6966 2020-05-27  Bruno Haible  <bruno@clisp.org>
6968         exclude: Make more robust in multithreaded applications.
6969         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6970         * modules/exclude (Depends-on): Add fopen-gnu.
6972 2020-05-27  Bruno Haible  <bruno@clisp.org>
6974         bitset: Make more robust in multithreaded applications.
6975         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6976         'e' flag to fopen.
6977         * modules/bitset (Depends-on): Add fopen-gnu.
6979 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6981         read-file: add RF_SENSITIVE flag
6982         * lib/read-file.h (RF_SENSITIVE): New define.
6983         * lib/read-file.c (fread_file, read_file): Take into account of
6984         RF_SENSITIVE flag.
6985         * modules/read-file (Depends-on): Add explicit_bzero.
6986         This adds an alternative behavior of those functions to explicitly
6987         clear the internal memory block when it becomes unused.  This is
6988         useful for reading sensitive information from a file.
6990 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6992         read-file: add flags to modify reading behavior
6993         * lib/read-file.h (RF_BINARY): New define.
6994         (fread_file, read_file): Take FLAGS argument.
6995         (read_binary_file): Remove.
6996         * lib/read-file.c (internal_read_file): Merge into ...
6997         (read_file): ... here.
6998         * modules/read-file-tests (Files): Add "tests/macros.h".
6999         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7000         * NEWS: Mention this change.
7002 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7004         doc/gnulib-intro.texi: add missing "to" in sentence
7005         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7006         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7007         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7009 2020-05-26  Bruno Haible  <bruno@clisp.org>
7011         count-one-bits: Fix MSVC specific code.
7012         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7013         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7014         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7015         using GCC.
7016         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7017         (__popcnt64): In 32-bit mode, define as an inline function.
7018         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7020 2020-05-26  Bruno Haible  <bruno@clisp.org>
7022         argz: Avoid name clashes through argz.h.
7023         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7024         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7025         * lib/argz.h: Don't use __ prefixed identifiers.
7026         (const): Remove definition.
7027         (argz_next): Remove inline definitions.
7029 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7031         read-file: make use of fopen-gnu
7032         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7033         (read_binary_file): Likewise.
7034         * modules/read-file (Depends-on): Add fopen-gnu.
7036 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7038         getentropy, getrandom: new modules
7039         * MODULES.html.sh (func_all_modules):
7040         * lib/unistd.in.h (getentropy, getrandom):
7041         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7042         * modules/unistd (unistd.h):
7043         Add support for getentropy, getrandom.
7044         * doc/glibc-functions/getentropy.texi (getentropy):
7045         * doc/glibc-functions/getrandom.texi (getrandom):
7046         These are now fixed on some platforms.
7047         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7048         * m4/getentropy.m4, m4/getrandom.m4:
7049         * modules/getentropy, modules/getentropy-tests:
7050         * modules/getrandom, modules/getrandom-tests:
7051         * tests/test-getentropy.c, tests/test-getrandom.c:
7052         New files.
7054 2020-05-25  Bruno Haible  <bruno@clisp.org>
7056         Add missing C99 dependencies.
7057         Reported by Paul Smith <psmith@gnu.org> in
7058         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7059         * modules/assert (Depends-on): Add c99.
7060         * modules/filenamecat-lgpl (Depends-on): Likewise.
7061         * modules/libc-config (Depends-on): Likewise.
7062         * modules/mktime (Depends-on): Likewise.
7063         * modules/random_r (Depends-on): Likewise.
7064         * modules/regex (Depends-on): Likewise.
7065         * modules/scratch_buffer (Depends-on): Likewise.
7066         * modules/timespec-add (Depends-on): Likewise.
7067         * modules/timespec-sub (Depends-on): Likewise.
7068         * modules/verify (Depends-on): Likewise.
7070 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7072         explicit_bzero-tests: pacify -Wmissing-declarations
7073         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7074         Now static.
7076 2020-05-24  Bruno Haible  <bruno@clisp.org>
7078         fopen-gnu: Add tests.
7079         * tests/test-fopen-gnu.c: New file.
7080         * modules/fopen-gnu-tests: New file.
7082         fopen-gnu: New module.
7083         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7084         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7085         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7086         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7087         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7088         * modules/fopen-gnu: New file.
7089         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7091 2020-05-24  Bruno Haible  <bruno@clisp.org>
7093         open, openat: Really support O_CLOEXEC.
7094         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7095         O_CLOEXEC flag to orig_open.
7096         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7097         pass a O_CLOEXEC flag to orig_openat.
7098         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7099         * modules/open-tests (Depends-on): Add fcntl.
7100         * modules/openat-tests (Depends-on): Likewise.
7101         * modules/fcntl-safer-tests (Depends-on): Likewise.
7103 2020-05-24  Bruno Haible  <bruno@clisp.org>
7105         fopen: Fix the trailing slash workaround.
7106         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7107         write access. Pass the right flags to open().
7108         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7110 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7112         assure: new macro ‘affirm’
7113         * lib/assure.h: Include verify.h.
7114         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7115         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7116         and commentary by Bruno Haible in:
7117         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7118         * modules/assure (Depends-on:): Add verify.
7120 2020-05-23  Bruno Haible  <bruno@clisp.org>
7122         calloc-gnu: Make test work in non-flat address spaces.
7123         Uses code by Paul Eggert.
7124         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7125         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7127 2020-05-23  Bruno Haible  <bruno@clisp.org>
7129         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7130         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7131         AC_RUN_IFELSE invocations.
7133 2020-05-23  Bruno Haible  <bruno@clisp.org>
7135         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7136         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7137         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7138         don't have it.
7139         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7140         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7141         don't have it.
7142         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7143         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7144         it.
7145         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7146         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7147         it.
7148         * lib/math.in.h (__has_builtin): New macro.
7149         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7150         it.
7151         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7152         it.
7153         (isnan): Don't use the builtins on clang versions that don't have
7154         __builtin_isnanf and __builtin_isnanl.
7156 2020-05-23  Bruno Haible  <bruno@clisp.org>
7158         calloc-gnu: Avoid wrong configure results with clang.
7159         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7160         'volatile', to defeat compiler optimizations.
7162 2020-05-23  Bruno Haible  <bruno@clisp.org>
7164         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7165         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7166         'long double' values by reference, with values taken from a statically
7167         allocated array.
7169 2020-05-23  Bruno Haible  <bruno@clisp.org>
7171         findprog-in: Ignore directories.
7172         Reported by Frederick Eaton via Dmitry Goncharov in
7173         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7174         * lib/findprog-in.c (find_in_given_path): When the file found is a
7175         directory, set errno to EACCES and, during a PATH search, continue
7176         searching.
7177         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7179 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7181         verify: document ‘assume’ better
7182         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7184 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7186         gendocs: Clarify licenses for templates.
7187         * doc/gendocs_template: Add a GNU All-Permissive license notice
7188         and bump Parent-Version.
7189         * doc/gendocs_template_min: Add a GNU All-Permissive license
7190         notice and copy the explanatory comment about the license notice
7191         at the bottom from gendocs_template.
7193 2020-05-21  Bruno Haible  <bruno@clisp.org>
7195         group-member: Relicense under LGPLv2+.
7196         Jim Meyering's approval is in
7197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7198         Paul Eggert's approval is in
7199         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7200         Eric Blake's approval is in
7201         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7202         * modules/group-member (License): Change to LGPLv2+.
7204 2020-05-21  Bruno Haible  <bruno@clisp.org>
7206         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7207         Reported by Tim Rühsen in
7208         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7209         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7211 2020-05-21  Bruno Haible  <bruno@clisp.org>
7213         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7214         Reported by Tim Rühsen in
7215         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7216         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7217         before returning with status 0.
7219 2020-05-21  Bruno Haible  <bruno@clisp.org>
7221         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7222         Reported by Tim Rühsen in
7223         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7224         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7226 2020-05-21  Bruno Haible  <bruno@clisp.org>
7228         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7229         Reported by Tim Rühsen in
7230         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7231         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7232         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7233         respectively.
7235 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7237         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7238         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7240 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7242         ftoastr: fix ifndef typo
7243         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7245 2020-05-19  Bruno Haible  <bruno@clisp.org>
7247         havelib: Tweak documentation.
7248         * doc/havelib.texi (Searching for Libraries): Fix typo.
7250 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7252         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7253         This was needed earlier because modules had to import the main script,
7254         but that is no longer true.  Rename the script so that it is
7255         consistent with all other scripts in gnulib and uses hyphens.
7256         * build-aux/vcs_to_changelog.py: Rename to...
7257         * build-aux/vcs-to-changelog.py: ... this.
7258         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7259         * modules/vcs-to-changelog: Likewise.
7261 2020-05-17  Bruno Haible  <bruno@clisp.org>
7263         Clarify intended usage of the license file modules.
7264         Reported by Asher Gordon <AsDaGo@posteo.net> in
7265         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7266         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7267         GNU AGPL. Explain the intended usage of the modules.
7268         * modules/fdl (Notice): Discourage use as a module.
7269         * modules/fdl-1.3 (Notice): Likewise.
7271 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7273         hash: add hash_xinsert
7274         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7276 2020-05-16  Bruno Haible  <bruno@clisp.org>
7278         findprog-lgpl: Fix link error (existing since 2008-09-02).
7279         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7280         findprog-lgpl.c, not findprog.c.
7281         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7282         XNMALLOC.
7284 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7286         c-stack: pacify -Wunused-result when DEBUG
7287         Problem reported by Marc Nieper-Wißkirchen in:
7288         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7289         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7290         Explicitly ignore write failures.
7292 2020-05-13  Jim Meyering  <meyering@fb.com>
7294         announce-gen: improve a comment
7295         * build-aux/announce-gen: Improve comment.
7297 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7299         xalloc: pacify -Wanalyzer-possible-null-argument
7300         Problem reported for GCC 10.1.0 by Bruno Haible in:
7301         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7302         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7303         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7304         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7306 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7308         careadlinkat: fix GCC 10 workaround
7309         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7310         Massage the code so that it’s closer to what it was before
7311         the GCC 10.1.0 workaround was introduced.  This fixes
7312         a loop when !buffer and the bug workaround is in effect.
7313         Remove unnecessary casts.  Defend in a different way
7314         against (buffer && !buffer_size), by adding at least 1
7315         to buf_size each time through the loop.
7317 2020-05-10  Bruno Haible  <bruno@clisp.org>
7319         doc: Mark HP-UX as unsupported.
7320         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7322 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7324         careadlinkat: limit GCC workaround
7325         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7326         10.1.0 and later, since the workaround is pretty bad and the GCC
7327         bug should get fixed.
7329 2020-05-10  Bruno Haible  <bruno@clisp.org>
7331         havelib: Enhance documentation.
7332         * doc/havelib.texi (Searching for Libraries): Mention the bad
7333         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7335 2020-05-10  Bruno Haible  <bruno@clisp.org>
7337         attribute: Clarify list of attributes.
7338         * lib/attribute.h: Reorder the list of attributes, and group them by
7339         purpose.
7341 2020-05-10  Bruno Haible  <bruno@clisp.org>
7343         string: Fix compilation error in C++ mode.
7344         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7345         _GL_WARN_ON_USE.
7346         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7347         instead of _GL_WARN_ON_USE.
7349 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7351         announce-gen: add support for dist-lzip
7352         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7354 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7356         manywarnings: port to GCC 10.1
7357         * build-aux/gcc-warning.spec:
7358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7359         Add GCC 10.1.0 warnings.
7361         careadlinkat: pacify -Wreturn-local-addr
7362         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7363         Pacify gcc 10’s -Wreturn-local-addr option.
7364         Simplify some of the later code.
7366 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7368         attribute: remove ATTRIBUTE_DEPRECATED
7369         * lib/attribute.h: Improve recently-added comments, mostly
7370         by shortening them (use active voice, etc.).
7371         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7372         Problem reported by Bruno Haible in:
7373         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7375 2020-05-09  Bruno Haible  <bruno@clisp.org>
7377         attribute: Add comments.
7378         * lib/attribute.h: Document each macro.
7380 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7382         bitset: use the attribute module
7383         * modules/bitset: Depend on 'attribute'.
7384         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7385         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7386         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7387         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7389 2020-05-09  Bruno Haible  <bruno@clisp.org>
7391         c-stack: Fix warning when DEBUG is enabled.
7392         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7393         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7394         * lib/c-stack.c: Include <stdio.h>.
7396 2020-05-09  Bruno Haible  <bruno@clisp.org>
7398         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7399         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7400         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7401         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7402         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7403         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7404         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7405         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7406         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7407         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7408         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7409         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7410         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7412 2020-05-09  Bruno Haible  <bruno@clisp.org>
7414         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7415         Reported by Akim Demaille in
7416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7417         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7418         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7419         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7421 2020-05-09  Bruno Haible  <bruno@clisp.org>
7423         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7424         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7425         that usually comes from m4/gnulib-common.m4.
7426         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7428 2020-05-09  Bruno Haible  <bruno@clisp.org>
7430         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7431         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7432         that usually comes from m4/gnulib-common.m4.
7433         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7434         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7435         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7437 2020-05-09  Bruno Haible  <bruno@clisp.org>
7439         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7440         * lib/uchar.in.h (char16_t): Define as macro if
7441         GNULIB_OVERRIDES_CHAR16_T.
7442         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7443         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7444         (gl_UCHAR_H): Invoke them.
7445         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7446         GNULIB_OVERRIDES_CHAR32_T.
7447         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7448         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7449         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7450         GNULIB_OVERRIDES_CHAR32_T.
7452 2020-05-09  Bruno Haible  <bruno@clisp.org>
7454         Macro tweaks.
7455         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7456         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7458 2020-05-08  Bruno Haible  <bruno@clisp.org>
7460         c32rtomb: Avoid compilation failure on Haiku.
7461         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7462         inline definitions.
7463         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7465 2020-05-08  Bruno Haible  <bruno@clisp.org>
7467         mbrtoc32: Avoid compilation failure on Haiku.
7468         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7469         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7470         AC_CHECK_FUNCS_ONCE.
7471         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7473 2020-05-08  Bruno Haible  <bruno@clisp.org>
7475         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7476         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7478 2020-05-08  Bruno Haible  <bruno@clisp.org>
7480         list: Update documentation.
7481         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7483         * doc/containers.texi (Container data types): Document the new list
7484         operations and their complexity.
7486 2020-05-08  Bruno Haible  <bruno@clisp.org>
7488         ignore-value tests: Use module 'attribute'.
7489         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7490         * tests/test-ignore-value.c: Include attribute.h.
7491         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7492         * modules/ignore-value-tests (Depends-on): Add attribute.
7494 2020-05-08  Bruno Haible  <bruno@clisp.org>
7496         uniname/uniname: Use module 'attribute'.
7497         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7498         * lib/uniname/uninames.h: Regenerated.
7499         * lib/uniname/uniname.c: Include attribute.h.
7500         * modules/uniname/uniname (Depends-on): Add attribute.
7502 2020-05-08  Bruno Haible  <bruno@clisp.org>
7504         c32rtomb: Use module 'attribute'.
7505         * lib/c32rtomb.c: Include attribute.h.
7506         (FALLTHROUGH): Remove macro.
7507         * modules/c32rtomb (Depends-on): Add attribute.
7509 2020-05-08  Bruno Haible  <bruno@clisp.org>
7511         xsize: Use module 'attribute'.
7512         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7513         * modules/xsize (Depends-on): Add attribute.
7515 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7517         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7519         * lib/attribute.h: Minor style fixes.
7521         Fix version-etc glitch on OpenIndiana
7522         Problem reported by Mats Erik Andersson in:
7523         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7524         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7525         that now clashes with gnulib-common.h.  All uses changed.
7527 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7529         attribute: new module
7530         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7531         * MODULES.html.sh: Add attribute.
7532         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7533         * doc/gnulib.texi (Particular Modules): Add Attributes.
7534         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7535         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7536         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7537         * lib/vasnprintf.c:
7538         Include attribute.h, and let it define FALLTHROUGH.
7539         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7540         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7541         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7542         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7543         This is a copy since Gawk doesn’t use Gnulib.
7544         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7545         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7546         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7547         Keep the existing FALLTHROUGH definition since Glibc might use it,
7548         and it does no harm to Gnulib’s FALLTHROUGH.
7549         * lib/fts_.h, lib/inttostr.h:
7550         (__GNUC_PREREQ): Remove; no longer needed.
7551         (__attribute_warn_unused_result__): Remove.  All uses
7552         replaced by _GL_ATTRIBUTE_NODISCARD.
7553         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7554         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7555         __attribute__ ((__warn_unused_result__)), for forward
7556         compatibility to C2X.
7557         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7558         _GL_ATTRIBUTE_NODISCARD.
7559         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7560         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7561         replaced by gl_COMMON_BODY’s implementation, which has a
7562         slightly different signature.
7563         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7564         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7565         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7566         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7567         No doubt all uses should be replaced, at some point.
7568         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7569         (_Noreturn): Use it.
7570         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7571         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7572         (_GL_ATTRIBUTE_COLD)
7573         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7574         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7575         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7576         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7577         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7578         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7579         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7580         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7581         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7582         (_GL_ATTRIBUTE_SENTINEL): New macros.
7583         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7584         * modules/fnmatch, modules/freopen-safer, modules/fts:
7585         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7586         * modules/quotearg, modules/savewd:
7587         * modules/unistdio/u16-u16-vasnprintf:
7588         * modules/unistdio/u16-vasnprintf:
7589         * modules/unistdio/u32-u32-vasnprintf:
7590         * modules/unistdio/u32-vasnprintf:
7591         * modules/unistdio/u8-u8-vasnprintf:
7592         * modules/unistdio/u8-vasnprintf:
7593         * modules/unistdio/ulc-vasnprintf:
7594         * modules/unistr/u8-uctomb, modules/vasnprintf:
7595         (Depends-on:): Add attribute module.
7597 2020-05-03  Bruno Haible  <bruno@clisp.org>
7599         bison: Fix today's commit.
7600         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7602 2020-05-03  Bruno Haible  <bruno@clisp.org>
7604         list-c++: Add get_first, get_last, set_first, set_last operations.
7605         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7606         set_first, set_last.
7607         * lib/gl_list.h: Tweak comments.
7609 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7611         bison: rely on bison's %require to check a version requirement
7612         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7613         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7614         enough of not.
7615         So far it is the only know Yacc tool that supports '%require'.
7616         Other yaccs will actually even choke on seeing the -o option after the
7617         input file name.
7618         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7620 2020-05-02  Bruno Haible  <bruno@clisp.org>
7622         list: Add get_first, get_last, set_first, set_last operations.
7623         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7624         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7625         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7627 2020-05-02  Bruno Haible  <bruno@clisp.org>
7629         list: Remove redundant code for remove_first and remove_last operations.
7630         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7631         remove_first, remove_last.
7632         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7633         * lib/gl_array_list.c: Revert last change.
7634         * lib/gl_carray_list.c: Likewise.
7635         * lib/gl_anylinked_list2.h: Likewise.
7636         * lib/gl_linked_list.c: Likewise.
7637         * lib/gl_linkedhash_list.c: Likewise.
7638         * lib/gl_anytree_list2.h: Likewise.
7639         * lib/gl_avltree_list.c: Likewise.
7640         * lib/gl_avltreehash_list.c: Likewise.
7641         * lib/gl_rbtree_list.c: Likewise.
7642         * lib/gl_rbtreehash_list.c: Likewise.
7643         * lib/gl_sublist.c: Likewise.
7645 2020-05-02  Bruno Haible  <bruno@clisp.org>
7647         bison-i18n: Add support for cross-compilation.
7648         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7649         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7650         via Akim Demaille <akim@lrde.epita.fr>.
7651         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7652         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7653         Don't use bison's --print-localedir option when cross-compiling.
7654         Also, fix an error message and a comment.
7656 2020-05-01  Bruno Haible  <bruno@clisp.org>
7658         list: Add remove_first and remove_last operations.
7659         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7660         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7661         * lib/gl_list.h (struct gl_list_implementation): Add fields
7662         remove_first, remove_last.
7663         (gl_list_remove_first, gl_list_remove_last): New functions.
7664         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7665         functions, based on gl_array_remove_at.
7666         (gl_array_list_implementation): Implement the new operations.
7667         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7668         New functions, based on gl_carray_remove_at.
7669         (gl_carray_list_implementation): Implement the new operations.
7670         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7671         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7672         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7673         new operations.
7674         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7675         Likewise.
7676         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7677         New functions, based on gl_tree_remove_at.
7678         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7679         new operations.
7680         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7681         Likewise.
7682         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7683         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7684         Likewise.
7685         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7686         New functions, based on gl_sublist_remove_at.
7687         (gl_sublist_list_implementation): Implement the new operations.
7688         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7689         remove_last.
7690         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7691         gl_list_remove_last.
7692         * tests/test-avltree_list.c (main): Likewise.
7693         * tests/test-avltreehash_list.c (main): Likewise.
7694         * tests/test-carray_list.c (main): Likewise.
7695         * tests/test-linked_list.c (main): Likewise.
7696         * tests/test-linkedhash_list.c (main): Likewise.
7697         * tests/test-rbtree_list.c (main): Likewise.
7698         * tests/test-rbtreehash_list.c (main): Likewise.
7700 2020-05-01  Bruno Haible  <bruno@clisp.org>
7702         parse-datetime: Fix a build failure with an older bison version.
7703         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7704         parse-datetime.tab.c if a suitable version of bison was not found.
7706 2020-05-01  Bruno Haible  <bruno@clisp.org>
7708         bison: New module.
7709         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7710         m4/parse-datetime.m4.
7711         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7712         * modules/bison: New file.
7713         * modules/parse-datetime (Files): Remove m4/bison.m4.
7714         (Depends-on): Add bison.
7716 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7718         Update users.txt.
7719         * users.txt: Add poke.
7721 2020-04-28  Bruno Haible  <bruno@clisp.org>
7723         posix_spawn_file_actions_addfchdir tests: Enhance test.
7724         * tests/test-posix_spawn5.c: Include findprog.h.
7725         (test): New function, extracted from main.
7726         (main): Invoke it. Also, invoke it with a program name such as
7727         "bin/pwd".
7728         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7729         findprog.
7731 2020-04-28  Bruno Haible  <bruno@clisp.org>
7733         posix_spawn_file_actions_addchdir tests: Enhance test.
7734         * tests/test-posix_spawn4.c: Include findprog.h.
7735         (test): New function, extracted from main.
7736         (main): Invoke it. Also, invoke it with a program name such as
7737         "bin/pwd".
7738         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7739         findprog.
7741 2020-04-28  Bruno Haible  <bruno@clisp.org>
7743         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7744         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7745         access elements of the wrong union member.
7747 2020-04-27  Bruno Haible  <bruno@clisp.org>
7749         getdate: Remove deprecated module.
7750         * modules/getdate: Remove file.
7751         * doc/getdate.texi: Remove file.
7752         * lib/getdate.h: Remove file.
7753         * NEWS: Mention the removal.
7755 2020-04-27  Bruno Haible  <bruno@clisp.org>
7757         realloc: Remove deprecated module.
7758         * modules/realloc: Remove file.
7759         * NEWS: Mention the removal.
7761 2020-04-27  Bruno Haible  <bruno@clisp.org>
7763         calloc: Remove deprecated module.
7764         * modules/calloc: Remove file.
7765         * NEWS: Mention the removal.
7767 2020-04-27  Bruno Haible  <bruno@clisp.org>
7769         malloc: Remove deprecated module.
7770         * modules/malloc: Remove file.
7771         * NEWS: Mention the removal.
7773 2020-04-27  Bruno Haible  <bruno@clisp.org>
7775         fnmatch-posix: Remove deprecated module.
7776         * modules/fnmatch-posix: Remove file.
7777         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7778         * NEWS: Mention the removal.
7780 2020-04-27  Bruno Haible  <bruno@clisp.org>
7782         pipe: Remove deprecated module.
7783         * modules/pipe: Remove file.
7784         * lib/pipe.h: Remove file.
7785         * NEWS: Mention the removal.
7787 2020-04-27  Bruno Haible  <bruno@clisp.org>
7789         getopt: Remove deprecated module.
7790         * modules/getopt: Remove file.
7791         * NEWS: Mention the removal.
7793 2020-04-27  Bruno Haible  <bruno@clisp.org>
7795         remove-dest-slash: Remove deprecated module.
7796         * modules/rename-dest-slash: Remove file.
7797         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7798         Update.
7799         * NEWS: Mention the removal.
7801 2020-04-27  Bruno Haible  <bruno@clisp.org>
7803         unictype/bidicategory-*: Remove deprecated modules.
7804         * modules/unictype/bidicategory-all: Remove file.
7805         * modules/unictype/bidicategory-byname: Remove file.
7806         * modules/unictype/bidicategory-name: Remove file.
7807         * modules/unictype/bidicategory-of: Remove file.
7808         * modules/unictype/bidicategory-test: Remove file.
7809         * MODULES.html.sh (Unicode string functions): Update.
7810         * NEWS: Mention the removals.
7812 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7814         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7815         From a suggestion by Askar Safin in:
7816         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7817         * lib/fts.c (fts_build): If file types are known, optimize
7818         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7819         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7820         non-directories.
7822 2020-04-19  Bruno Haible  <bruno@clisp.org>
7824         vasnprintf: Add support for printing wide characters using escapes.
7825         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7826         (wctomb_fallback): New function.
7827         (local_wctomb): New function.
7828         (local_wcrtomb): New function or macro.
7829         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7830         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7831         %lc.
7833 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7835         fts: remove NOSTAT_LEAF_OPTIMIZATION
7836         It caused ‘find’ and ‘du’ to dump core, and it was useful
7837         only for obsolescent Linux filesystems anyway.  Problem reported in:
7838         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7839         Quite possibly there is still a serious underlying fts bug with
7840         tight-loop-check and mutating file systems, but if so this patch
7841         should cause the bug to be triggered less often.
7842         * lib/fts.c (enum leaf_optimization): Remove
7843         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7844         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7845         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7846         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7847         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7848         Remove.  All uses removed.
7850 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7852         explicit_bzero: Improve code style.
7853         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7855 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7857         explicit_bzero: On native Windows, use SecureZeroMemory().
7858         * lib/explicit_bzero.c: Include <windows.h>.
7859         (explicit_bzero): On native Windows, use SecureZeroMemory.
7861 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7863         explicit_bzero: Use memset_s() when available.
7864         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7865         (explicit_bzero): Use memset_s when available.
7866         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7868 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7870         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7871         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7872         free() that overwrite the memory with canaries.
7874 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7876         bootstrap: recommend git submodule update --init
7877         Reported by Bruno Haible.
7878         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7879         * build-aux/bootstrap: recommand "git submodule update --init"
7880         rather than "git submodule init".
7882 2020-04-12  Bruno Haible  <bruno@clisp.org>
7884         explicit_bzero: Add tests.
7885         * tests/test-explicit_bzero.c: New file.
7886         * modules/explicit_bzero-tests: New file.
7888 2020-04-11  Bruno Haible  <bruno@clisp.org>
7890         explicit_bzero: Relicense under LGPLv2+.
7891         Approved by Paul Eggert.
7892         * modules/explicit_bzero (License): Change to LGPLv2+.
7894 2020-04-10  Bruno Haible  <bruno@clisp.org>
7896         findprog, relocatable-prog: Ignore directories during PATH search.
7897         Reported by Frederick Eaton via Dmitry Goncharov in
7898         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7900         * lib/findprog.c (find_in_path): When the file found in a PATH element
7901         is a directory, continue searching.
7902         * modules/findprog (Depends-on): Add sys_stat, stat.
7903         * modules/findprog-lgpl (Depends-on): Likewise.
7905         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7906         element is a directory, continue searching.
7907         * lib/relocwrapper.c: Update comments.
7908         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7909         (configure.ac-early): New section.
7911 2020-04-10  Bruno Haible  <bruno@clisp.org>
7913         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7914         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7915         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7916         * MODULES.html.sh: In a git-less tarball, use the date of the first
7917         ChangeLog entry.
7919 2020-04-04  Bruno Haible  <bruno@clisp.org>
7921         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7922         * m4/gettext.m4: Fix comments regarding the gettext library.
7923         * m4/intl-thread-locale.m4: Likewise.
7924         * m4/intlmacosx.m4: Likewise.
7925         * m4/lcmessage.m4: Likewise.
7926         * m4/nls.m4: Likewise.
7927         * m4/po.m4: Likewise.
7928         * m4/progtest.m4: Likewise.
7930 2020-04-04  Jim Meyering  <meyering@fb.com>
7932         maint: remove a stray inter-word space in a 6x-repeated comment
7933         Induce the changes by running this:
7934           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7935         * build-aux/announce-gen: Change "by  perl" to "by perl".
7936         * build-aux/gitlog-to-changelog: Likewise.
7937         * build-aux/prefix-gnulib-mk: Likewise.
7938         * build-aux/update-copyright: Likewise.
7939         * build-aux/useless-if-before-free: Likewise.
7940         * tests/test-update-copyright.sh: Likewise.
7942 2020-03-28  Bruno Haible  <bruno@clisp.org>
7944         Use module 'filename' instead of module 'dosname'.
7946         * lib/at-func.c: Include filename.h instead of dosname.h.
7947         * lib/unlinkat.c: Likewise.
7948         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7949         * modules/areadlinkat-with-size (Depends-on): Likewise.
7950         * modules/faccessat (Depends-on): Likewise.
7951         * modules/fchmodat (Depends-on): Likewise.
7952         * modules/fchownat (Depends-on): Likewise.
7953         * modules/fstatat (Depends-on): Likewise.
7954         * modules/mkdirat (Depends-on): Likewise.
7955         * modules/mkfifoat (Depends-on): Likewise.
7956         * modules/readlinkat (Depends-on): Likewise.
7957         * modules/selinux-at (Depends-on): Likewise.
7958         * modules/symlinkat (Depends-on): Likewise.
7959         * modules/unlinkat (Depends-on): Likewise.
7960         * modules/utimensat (Depends-on): Likewise.
7962         * lib/at-func2.c: Include filename.h instead of dosname.h.
7963         * modules/linkat (Depends-on): Add filename. Remove dosname.
7964         * modules/renameatu (Depends-on): Likewise.
7966         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7967         * lib/canonicalize-lgpl.c: Likewise.
7968         * modules/canonicalize (Depends-on): Add filename.
7969         * modules/canonicalize-lgpl (Depends-on): Likewise.
7971         * lib/dirname.h: Include filename.h instead of dosname.h.
7972         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7974         * lib/fchdir.c: Include filename.h instead of dosname.h.
7975         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7977         * lib/openat.c: Include filename.h instead of dosname.h.
7978         * modules/openat (Depends-on): Add filename. Remove dosname.
7980         * lib/rmdir.c: Include filename.h instead of dosname.h.
7981         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7983         * lib/savewd.c: Include filename.h instead of dosname.h.
7984         * modules/savewd (Depends-on): Add filename. Remove dosname.
7986         * lib/unlink.c: Include filename.h instead of dosname.h.
7987         * modules/unlink (Depends-on): Add filename. Remove dosname.
7989         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7990         * lib/relocwrapper.c: Update comments.
7992         * modules/lstat (Depends-on): Remove dosname.
7994 2020-03-28  Bruno Haible  <bruno@clisp.org>
7996         dosname: Redirect to 'filename'.
7997         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7998         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7999         * lib/dosname.h: Remove all definitions. Just include filename.h.
8000         * modules/dosname (Status, Notice): Mark as deprecated.
8001         (Depends-on): Add 'filename'.
8003 2020-03-28  Bruno Haible  <bruno@clisp.org>
8005         dosname: Change IS_RELATIVE_FILE_NAME.
8006         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8007         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8008         * NEWS: Mention the change.
8010 2020-03-28  Bruno Haible  <bruno@clisp.org>
8012         filename: Copy some definitions from module 'dosname'.
8013         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8014         (HAS_DEVICE): Document macro.
8015         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8016         (IS_ABSOLUTE_FILE_NAME): Consider
8017         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8018         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8019         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8020         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8021         IS_PATH_WITH_DIR.
8022         (DllMain): Update.
8023         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8024         IS_PATH_WITH_DIR.
8025         (find_executable): Update.
8026         * NEWS: Document the deprecations.
8028 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8030         getopt-posix: port __GETOPT_PREFIX to macOS
8031         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8032         Define to work around a problem with asm on macOS (Bug#40205).
8034 2020-03-22  Bruno Haible  <bruno@clisp.org>
8036         MODULES.html.sh: Add support for reproducible builds.
8037         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8038         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8039         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8040         current date.
8042 2020-03-22  Bruno Haible  <bruno@clisp.org>
8044         Several modules: Depend on stat.
8045         * modules/acl-permissions (Depends-on): Add stat.
8046         * modules/canonicalize (Depends-on): Likewise.
8047         * modules/file-has-acl (Depends-on): Likewise.
8048         * modules/fstat (Depends-on): Likewise.
8049         * modules/fstatat (Depends-on): Likewise.
8050         * modules/glob (Depends-on): Likewise.
8051         * modules/javacomp (Depends-on): Likewise.
8052         * modules/linkat (Depends-on): Likewise.
8053         * modules/mkdir (Depends-on): Likewise.
8054         * modules/pt_chown (Depends-on): Likewise.
8055         * modules/ptsname_r (Depends-on): Likewise.
8056         * modules/readlinkat (Depends-on): Likewise.
8057         * modules/rename (Depends-on): Likewise.
8058         * modules/renameatu (Depends-on): Likewise.
8059         * modules/tmpdir (Depends-on): Likewise.
8060         * modules/utimens (Depends-on): Likewise.
8061         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8062         * modules/same (Depends-on): Remove stat.
8064 2020-03-22  Bruno Haible  <bruno@clisp.org>
8066         acl-permissions: Improve autoconf macro.
8067         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8068         more reliably.
8070 2020-03-22  Bruno Haible  <bruno@clisp.org>
8072         file-has-acl: Fix module description.
8073         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8074         (Depends-on): Depend on acl-permissions unconditionally.
8076 2020-03-21  Bruno Haible  <bruno@clisp.org>
8078         unlink: Ensure errno also on native Windows.
8079         * modules/unlink (Depends-on): Add malloc-posix.
8081 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8083         unlink: fix malloc errno typo
8084         Problem reported by Tim Rühsen in:
8085         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8086         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8088 2020-03-16  Bruno Haible  <bruno@clisp.org>
8090         *printf-posix: Fix m4 error (regression from 2020-03-08).
8091         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8092         brackets in AC_COMPILE_IFELSE invocation.
8094 2020-03-08  Bruno Haible  <bruno@clisp.org>
8096         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8097         * modules/crypto/af_alg (Depends-on): Add fstat.
8098         * modules/renameatu (Depends-on): Likewise.
8099         * modules/same (Depends-on): Likewise.
8100         * modules/term-style-control (Depends-on): Likewise.
8102 2020-03-08  Bruno Haible  <bruno@clisp.org>
8104         *printf-posix: Document why it's overridden on some glibc systems.
8105         Reported by Adrian Bunk <bunk@stusta.de> in
8106         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8107         * doc/posix-functions/*printf.texi: Document the problem with the %n
8108         directive on some glibc systems.
8109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8110         the cross-compilation guesses accordingly.
8112 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8114         open, openat: port to (O_RDWR | O_RDONLY) != 0
8115         Potential portability problem reported by Dan Gohman in:
8116         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8117         * lib/open.c (open):
8118         * lib/openat.c (rpl_openat):
8119         Don’t assume O_RDONLY is disjoint from O_RDWR.
8121 2020-03-07  Bruno Haible  <bruno@clisp.org>
8123         openat: Fix theoretically possible issue on GNU/Hurd.
8124         Reported by Dan Gohman <sunfish@mozilla.com> in
8125         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8126         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8127         ignore the bits that are also set in O_RDONLY.
8129 2020-02-24  Bruno Haible  <bruno@clisp.org>
8131         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8132         Reported by Jens Rehsack <sno@netbsd.org> in
8133         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8134         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8135         cross-compiling.
8137 2020-02-24  Bruno Haible  <bruno@clisp.org>
8139         fcntl: Add witness of gnulib override.
8140         Reported by Jens Rehsack <sno@netbsd.org> in
8141         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8142         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8143         macros.
8145 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8147         Update users.txt.
8148         * users.txt: Add datamash, time.
8150 2020-02-23  Bruno Haible  <bruno@clisp.org>
8152         uni*/base: Use 'restrict'.
8153         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8154         from lib/regex.h.
8155         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8156         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8157         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8158         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8159         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8160         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8161         '_UC_RESTRICT'.
8162         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8163         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8164         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8165         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8166         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8167         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8168         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8169         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8170         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8171         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8172         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8173         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8174         '_UC_RESTRICT'.
8175         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8176         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8177         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8178         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8179         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8180         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8181         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8182         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8184 2020-02-23  Bruno Haible  <bruno@clisp.org>
8186         glob, spawn: Use improved '_Restrict_' definition.
8187         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8188         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8190 2020-02-23  Bruno Haible  <bruno@clisp.org>
8192         crypto/gc: Use 'restrict'.
8193         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8194         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8196         crypto/hmac-*: Use 'restrict'.
8197         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8198         'restrict'.
8199         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8200         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8201         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8202         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8204         crypto/sm3: Use 'restrict'.
8205         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8206         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8208         crypto/*-buffer: Use 'restrict'.
8209         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8210         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8212         crypto/sha512-buffer: Use 'restrict'.
8213         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8214         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8215         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8217         crypto/sha256-buffer: Use 'restrict'.
8218         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8219         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8220         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8222         crypto/sha1-buffer: Use 'restrict'.
8223         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8224         'restrict'.
8225         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8227         crypto/md5-buffer: Use 'restrict'.
8228         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8229         'restrict'.
8230         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8232         crypto/md4: Use 'restrict'.
8233         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8234         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8236         crypto/md2: Use 'restrict'.
8237         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8238         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8240         crypto/rijndael: Use 'restrict'.
8241         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8242         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8243         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8245         crypto/arctwo: Use 'restrict'.
8246         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8247         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8249         crypto/arcfour: Use 'restrict'.
8250         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8251         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8253         careadlinkat: Use 'restrict'.
8254         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8255         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8256         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8258         regex-quote: Use 'restrict'.
8259         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8260         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8262         system-quote: Use 'restrict'.
8263         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8264         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8266         sh-quote: Use 'restrict'.
8267         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8268         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8270         quotearg: Use 'restrict'.
8271         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8272         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8274         parse-datetime: Use 'restrict'.
8275         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8276         'restrict'.
8277         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8279         nstrftime: Use 'restrict'.
8280         * lib/strftime.h (nstrftime): Use 'restrict'.
8281         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8283         mbstok_r: Use 'restrict'.
8284         * lib/string.in.h (mbstok_r): Use 'restrict'.
8286         xmemcoll: Use 'restrict'.
8287         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8288         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8290         memcoll: Use 'restrict'.
8291         * lib/memcoll.h (memcoll): Use 'restrict'.
8292         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8294         vasnprintf: Use 'restrict'.
8295         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8296         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8298         c-vasnprintf: Use 'restrict'.
8299         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8300         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8302         c-vsnprintf: Use 'restrict'.
8303         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8304         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8306         c-snprintf: Use 'restrict'.
8307         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8308         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8310         astrxfrm: Use 'restrict'.
8311         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8312         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8314         amemxfrm: Use 'restrict'.
8315         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8316         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8318 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8320         fchmodat, lchmod: simplify
8321         It appears that we may have overengineered lchmod and fchmodat,
8322         in that the code was prepared for some hypothetical platforms but
8323         was so complicated that it was hard to understand.  I attempted to
8324         improve the situation by simplifying the code when this
8325         simplification should not hurt on real platforms; we can re-add
8326         complexity later to port to platforms I didn’t know about.
8327         * lib/fchmodat.c (fchmodat):
8328         * lib/lchmod.c (lchmod):
8329         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8330         around the /proc code that needs it.
8331         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8332         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8333         Do not include <config.h> twice.
8334         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8335         lchmod on any known hosts.
8336         (lchmod): Do not defer to fchmodat, so that the lchmod module
8337         need not depend on the fchmodat module (which is a circular
8338         dependency).  Do not use openat, since ‘open’ suffices.
8339         Coalesce calls to lchmod/chmod.
8340         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8341         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8342         * modules/lchmod (Depends-on, configure.ac):
8343         * modules/sys_stat (Depends-on):
8344         Do not worry about replacing lchmod, since that shouldn’t happen.
8345         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8346         Do not worry about whether lchmod works on non-symlinks,
8347         since every known lchmod works on non-symlinks.
8348         * modules/lchmod (Depends-on):
8349         Remove circular dependency on fchmodat.
8351 2020-02-22  Bruno Haible  <bruno@clisp.org>
8353         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8354         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8355         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8357 2020-02-22  Bruno Haible  <bruno@clisp.org>
8359         Use 'restrict' in all POSIX function declarations.
8360         * lib/iconv.in.h (iconv): Use 'restrict'.
8361         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8362         * lib/monetary.in.h (strfmon_l): Likewise.
8363         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8364         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8365         pthread_mutex_timedlock, pthread_rwlock_init,
8366         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8367         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8368         * lib/search.in.h (tdelete): Likewise.
8369         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8370         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8371         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8372         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8373         Likewise.
8374         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8375         strtoull): Likewise.
8376         * lib/string.in.h (strncat): Likewise.
8377         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8378         recvfrom): Likewise.
8379         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8380         * lib/time.in.h (strftime): Likewise.
8381         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8382         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8383         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8384         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8385         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8386         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8387         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8388         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8389         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8390         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8391         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8392         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8394         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8395         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8396         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8397         other *_h.m4 files.
8398         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8400 2020-02-22  Bruno Haible  <bruno@clisp.org>
8402         Update NEWS.
8403         * NEWS: Mention the last change.
8405 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8407         chmodat, chownat: new modules
8408         These are split from fchmodat, fchownat.  GNU Emacs needs the
8409         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8410         lchmodat.  Split the latter two into a new module chmodat.
8411         Similarly for fchownat.  This the same basic idea for why statat
8412         was split from fstatat on 2013-01-23.
8413         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8414         Rename from FCHMODAT_INLINE.  All uses changed.
8415         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8416         Rename from FCHOWNAT_INLINE.  All uses changed.
8417         * lib/openat.h:
8418         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8419         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8420         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8421         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8422         (configure.ac): Remove fchmodat module indicator.
8423         (Makefile.am): Omit chmodat.c.
8424         (Maintainer): Add self.
8425         * modules/fchownat: Similarly, but for chown.
8426         * tests/test-fchownat.c (BASE): Don't define if already defined.
8427         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8429 2020-02-22  Bruno Haible  <bruno@clisp.org>
8431         users.txt: Add groff.
8432         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8433         * users.txt: Add groff.
8435 2020-02-22  Bruno Haible  <bruno@clisp.org>
8437         gnulib-tool: Ensure copied files are writable.
8438         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8439         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8440         * gnulib-tool (func_ensure_writable): New function.
8441         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8442         func_create_testdir, copy-file): Invoke it after copying a file.
8444 2020-02-22  Bruno Haible  <bruno@clisp.org>
8446         users.txt: Update.
8447         * users.txt: Update URLs to projects that have moved or switched to git.
8448         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8449         over the summary view. Add gawk.
8451 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8453         largefile: remove _DARWIN_USE_64_BIT_INODE
8454         It’s not needed in currently-supported macOS versions, and was
8455         problematic anyway in MacOS X 10.5 which was the only version that
8456         could use it.  Problem reported by Peter Eisentraut in:
8457         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8458         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8459         Don’t define _DARWIN_USE_64_BIT_INODE.
8460         This syncs with Autoconf master.
8462         Add ‘extern "C"’ to count-one-bits.h etc.
8463         This ports these .h files to C++.
8464         Problem reported by Simon Marchi in:
8465         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8466         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8467         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8469 2020-02-19  Bruno Haible  <bruno@clisp.org>
8471         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8472         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8473         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8474         * lib/array-mergesort.h: Accept an optional macro definition
8475         STATIC_FROMTO.
8476         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8478 2020-02-16  Bruno Haible  <bruno@clisp.org>
8480         fchmodat: Make more future-proof.
8481         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8482         NEED_FCHMODAT_NONSYMLINK_FIX.
8483         (gl_PREREQ_FCHMODAT): New macro.
8484         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8485         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8486         without lchmod function.
8487         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8489 2020-02-16  Bruno Haible  <bruno@clisp.org>
8491         lchmod: Make more future-proof.
8492         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8493         (gl_PREREQ_LCHMOD): New macro.
8494         * lib/lchmod.c (orig_lchmod): New function.
8495         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8496         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8497         function.
8498         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8500         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8501         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8503 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8505         xnanosleep: prefer pause, and get remaining time
8506         Problem reported by Vladimir Panteleev in:
8507         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8508         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8509         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8510         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8511         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8512         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8514 2020-02-16  Bruno Haible  <bruno@clisp.org>
8516         lchmod: Improve cross-compilation guess.
8517         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8518         cross-compiling, guess depending on the platform.
8520 2020-02-16  Bruno Haible  <bruno@clisp.org>
8522         fstrcmp: Add API to clean up resources.
8523         Reported by Akim Demaille <akim@lrde.epita.fr> in
8524         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8525         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8526         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8528 2020-02-14  Bruno Haible  <bruno@clisp.org>
8530         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8531         Reported by Christian Biesinger in
8532         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8533         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8534         corresponding module is not enabled.
8535         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8536         prototype if the corresponding module is not enabled.
8538 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8540         fchmodat, lchmod: port to buggy Linux filesystems
8541         Problem reported by Florian Weimer in:
8542         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8543         * lib/fchmodat.c (fchmodat):
8544         * lib/lchmod.c (lchmod):
8545         Don’t assume that chmod on the O_PATH-opened fd will do
8546         the right thing on a symbolic link.
8547         * lib/fchmodat.c (fchmodat):
8548         Don’t attempt to special-case
8549         any flag value other than AT_SYMLINK_NOFOLLOW.
8551 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8553         lchmod: pacify Coverity CID 1491216
8554         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8555         not complain about unreachable code at the ‘struct stat st;’
8556         declaration.
8558 2020-02-10  Bruno Haible  <bruno@clisp.org>
8560         copysignf: Fix link error on HP-UX with cc.
8561         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8562         HP-UX, set COPYSIGNF_LIBM to -lm.
8564 2020-02-10  Bruno Haible  <bruno@clisp.org>
8566         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8567         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8568         with $(LIB_SEMAPHORE).
8569         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8570         with $(LIB_SEMAPHORE).
8572 2020-02-10  Bruno Haible  <bruno@clisp.org>
8574         ptsname_r-tests: Avoid unused function warning.
8575         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8577 2020-02-08  Bruno Haible  <bruno@clisp.org>
8579         lchmod: Add tests.
8580         * tests/test-lchmod.c: New file.
8581         * modules/lchmod-tests: New file.
8583 2020-02-08  Bruno Haible  <bruno@clisp.org>
8585         lchmod: Ensure declaration on HP-UX.
8586         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8587         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8589 2020-02-08  Bruno Haible  <bruno@clisp.org>
8591         fchmodat: Strengthen tests.
8592         * tests/test-fchmodat.c (BASE): New macro.
8593         (main): Use it, to avoid conflicts with other unit tests. Verify that
8594         fchmodat changed the file permission bits.
8596 2020-02-08  Bruno Haible  <bruno@clisp.org>
8598         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8599         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8600         '#undef __need_system_sys_stat_h'.
8602 2020-02-08  Bruno Haible  <bruno@clisp.org>
8604         fchmodat: Improve cross-compilation guesses.
8605         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8606         cross-compiling, guess depending on the platform.
8607         * doc/posix-functions/fchmodat.texi: Clarify.
8609 2020-02-08  Bruno Haible  <bruno@clisp.org>
8611         Fix compilation errors in a testdir created with --with-c++-tests.
8612         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8613         since it does not work any more with g++ >= 4.4.
8615 2020-02-08  Bruno Haible  <bruno@clisp.org>
8617         doc: Update for glibc 2.31.
8618         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8619         * doc/gnulib.texi: Include it.
8620         * doc/pastposix-functions/h_errno.texi: Update.
8621         * doc/posix-functions/*.texi: Likewise.
8623 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8625         mountlist: consider smb3 file systems as remote
8626         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8627         "smb3" as remote.
8629 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8631         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8632         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8633         they act like chmod on non-symlinks.
8634         * NEWS:
8635         * doc/glibc-functions/lchmod.texi (lchmod):
8636         * doc/posix-functions/fchmodat.texi (fchmodat):
8637         Mention this.
8638         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8639         config.h, and undef it after including sys/stat.h the first time.
8640         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8641         sys/stat.h a second time after defining orig_fchmodat.
8642         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8643         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8644         * lib/lchmod.c: New file.
8645         * lib/sys_stat.in.h (fchmodat, lchmod):
8646         Support replacing these functions.
8647         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8648         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8649         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8650         Test that lchmod works on non-symlinks.
8651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8652         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8653         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8654         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8655         * modules/lchmod (Files): Add lib/lchmod.c.
8656         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8657         (configure.ac): Compile lchmod.c if needed.
8658         (lib_SOURCES): Add lchmod.c.
8659         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8660         and REPLACE_LCHMOD.
8661         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8662         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8664 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8666         mountlist: Consider AFS filesystems as remote
8667         df --local relies on the ME_REMOTE macro to determine if a given
8668         mount entry should be considered "local".  There is special logic
8669         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8670         kernel's kafs module or AuriStorFS is treated as a local mount.
8671         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8672         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8674 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8676         Port _Noreturn to older Clang
8677         Problem reported by Jeffery Walton in:
8678         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8679         * lib/_Noreturn.h (_Noreturn):
8680         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8681         Assume _Noreturn works in Clang 3.5 and later.
8682         It is documented to work in Clang 3.5:
8683         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8684         and is not documented in Clang 3.4:
8685         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8686         Apple sets __clang_version__ to a different value, so use
8687         __apple_build_version__ there.  See:
8688         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8690 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8692         test-canonicalize: avoid unused function warning
8693         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8694         with the same guard as that used to protect usage of the null_ptr
8695         function, so that one doesn't get a -Wunused warning.
8696         * tests/test-canonicalize-lgpl.c: Likewise.
8698 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8700         libc-config: port to Apple’s Clang variant
8701         * lib/libc-config.h (__glibc_clang_prereq):
8702         Port to Apple’s Clang variant, which uses a different
8703         numbering scheme for __clang_major__.
8705 2020-02-02  Bruno Haible  <bruno@clisp.org>
8707         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8708         * doc/containers.texi: Document these new modules.
8710 2020-02-02  Bruno Haible  <bruno@clisp.org>
8712         omap-c++: Add tests.
8713         * tests/test-omap-c++.cc: New file.
8714         * modules/omap-c++-tests: New file.
8716         omap-c++: New module.
8717         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8718         * modules/omap-c++: New file.
8720 2020-02-02  Bruno Haible  <bruno@clisp.org>
8722         map-c++: Add tests.
8723         * tests/test-map-c++.cc: New file.
8724         * modules/map-c++-tests: New file.
8726         map-c++: New module.
8727         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8728         * modules/map-c++: New file.
8730 2020-02-02  Bruno Haible  <bruno@clisp.org>
8732         oset-c++: Add tests.
8733         * tests/test-oset-c++.cc: New file.
8734         * modules/oset-c++-tests: New file.
8736         oset-c++: New module.
8737         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8738         * modules/oset-c++: New file.
8740 2020-02-02  Bruno Haible  <bruno@clisp.org>
8742         set-c++: Add tests.
8743         * tests/test-set-c++.cc: New file.
8744         * modules/set-c++-tests: New file.
8746         set-c++: New module.
8747         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8748         * modules/set-c++: New file.
8750 2020-02-02  Bruno Haible  <bruno@clisp.org>
8752         list-c++: Add tests.
8753         * tests/test-list-c++.cc: New file.
8754         * modules/list-c++-tests: New file.
8756         list-c++: New module.
8757         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8758         * modules/list-c++: New file.
8760 2020-02-02  Bruno Haible  <bruno@clisp.org>
8762         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8763         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8764         '_Noreturn'.
8765         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8767 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8769         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8770         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8771           error: argument 2 value '18446744073709551615'
8772           exceeds maximum object size 9223372036854775807
8773           [-Werror=alloc-size-larger-than=]
8774         The details of this restriction are discussed at:
8775         https://stackoverflow.com/q/42574890/4421
8776         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8778 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8780         sysctl.h: avoid including on glibc
8781         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8782         * lib/physmem.c: Likewise.
8784 2020-02-02  Bruno Haible  <bruno@clisp.org>
8786         list, set, oset, map, omap: Avoid imperative voice in documentation.
8787         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8788         in the specification of functions.
8789         * lib/gl_set.h: Likewise.
8790         * lib/gl_oset.h: Likewise.
8791         * lib/gl_map.h: Likewise.
8792         * lib/gl_omap.h: Likewise.
8793         * lib/gl_*.h: Likewise.
8795 2020-02-01  Bruno Haible  <bruno@clisp.org>
8797         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8798         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8799         does.
8801 2020-01-29  Bruno Haible  <bruno@clisp.org>
8803         array-map, hash-map, linkedhash-map: Fix module description.
8804         * modules/array-map (Description): Fix description.
8805         * modules/hash-map (Description): Likewise.
8806         * modules/linkedhash-map (Description): Likewise.
8808 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8810         dfa: do not depend on isblank
8811         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8812         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8813         * modules/dfa (Depends-on): Remove isblank.
8814         * modules/isblank: Add a module indicator, for lib/dfa.c.
8816         dfa: do not assume 64-bit int
8817         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8818         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8819         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8820         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8821         Fall back to 32-bit words.
8822         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8823         of 4 64-bit args.  All uses changed.
8825 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8827         regex: remove limits-h dependency
8828         * modules/regex (Depends-on): Remove limits-h, since the
8829         code no longer depends on ULONG_WIDTH already being defined.
8831         regex: port to non-GCC pre-IEC-60559
8832         Problem reported by Arnold Robbins in:
8833         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8834         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8836 2020-01-25  Bruno Haible  <bruno@clisp.org>
8838         c32isxdigit: Add tests.
8839         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8840         * tests/test-c32isxdigit.sh: New file.
8841         * modules/c32isxdigit-tests: New file.
8843         c32isxdigit: New module.
8844         * lib/c32isxdigit.c: New file.
8845         * modules/c32isxdigit: New file.
8846         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8848 2020-01-25  Bruno Haible  <bruno@clisp.org>
8850         c32isupper: Add tests.
8851         * tests/test-c32isupper.c: New file.
8852         * tests/test-c32isupper.sh: New file.
8853         * modules/c32isupper-tests: New file.
8855         c32isupper: New module.
8856         * lib/c32isupper.c: New file.
8857         * modules/c32isupper: New file.
8858         * doc/posix-functions/iswupper.texi: Mention the new module.
8860 2020-01-25  Bruno Haible  <bruno@clisp.org>
8862         c32isspace: Add tests.
8863         * tests/test-c32isspace.c: New file.
8864         * tests/test-c32isspace.sh: New file.
8865         * modules/c32isspace-tests: New file.
8867         c32isspace: New module.
8868         * lib/c32isspace.c: New file.
8869         * modules/c32isspace: New file.
8870         * doc/posix-functions/iswspace.texi: Mention the new module.
8872 2020-01-25  Bruno Haible  <bruno@clisp.org>
8874         c32ispunct: Add tests.
8875         * tests/test-c32ispunct.c: New file.
8876         * tests/test-c32ispunct.sh: New file.
8877         * modules/c32ispunct-tests: New file.
8879         c32ispunct: New module.
8880         * lib/c32ispunct.c: New file.
8881         * modules/c32ispunct: New file.
8882         * doc/posix-functions/iswpunct.texi: Mention the new module.
8884 2020-01-25  Bruno Haible  <bruno@clisp.org>
8886         c32isprint: Add tests.
8887         * tests/test-c32isprint.c: New file.
8888         * tests/test-c32isprint.sh: New file.
8889         * modules/c32isprint-tests: New file.
8891         c32isprint: New module.
8892         * lib/c32isprint.c: New file.
8893         * modules/c32isprint: New file.
8894         * doc/posix-functions/iswprint.texi: Mention the new module.
8896 2020-01-25  Bruno Haible  <bruno@clisp.org>
8898         c32islower: Add tests.
8899         * tests/test-c32islower.c: New file.
8900         * tests/test-c32islower.sh: New file.
8901         * modules/c32islower-tests: New file.
8903         c32islower: New module.
8904         * lib/c32islower.c: New file.
8905         * modules/c32islower: New file.
8906         * doc/posix-functions/iswlower.texi: Mention the new module.
8908 2020-01-25  Bruno Haible  <bruno@clisp.org>
8910         c32isgraph: Add tests.
8911         * tests/test-c32isgraph.c: New file.
8912         * tests/test-c32isgraph.sh: New file.
8913         * modules/c32isgraph-tests: New file.
8915         c32isgraph: New module.
8916         * lib/c32isgraph.c: New file.
8917         * modules/c32isgraph: New file.
8918         * doc/posix-functions/iswgraph.texi: Mention the new module.
8920 2020-01-25  Bruno Haible  <bruno@clisp.org>
8922         c32isdigit: Add tests.
8923         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8924         * tests/test-c32isdigit.sh: New file.
8925         * modules/c32isdigit-tests: New file.
8927         c32isdigit: New module.
8928         * lib/c32isdigit.c: New file.
8929         * modules/c32isdigit: New file.
8930         * doc/posix-functions/iswdigit.texi: Mention the new module.
8932 2020-01-25  Bruno Haible  <bruno@clisp.org>
8934         c32iscntrl: Add tests.
8935         * tests/test-c32iscntrl.c: New file.
8936         * tests/test-c32iscntrl.sh: New file.
8937         * modules/c32iscntrl-tests: New file.
8939         c32iscntrl: New module.
8940         * lib/c32iscntrl.c: New file.
8941         * modules/c32iscntrl: New file.
8942         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8944 2020-01-25  Bruno Haible  <bruno@clisp.org>
8946         c32isblank: Add tests.
8947         * tests/test-c32isblank.c: New file.
8948         * tests/test-c32isblank.sh: New file.
8949         * modules/c32isblank-tests: New file.
8951         c32isblank: New module.
8952         * lib/c32isblank.c: New file.
8953         * modules/c32isblank: New file.
8954         * doc/posix-functions/iswblank.texi: Mention the new module.
8956 2020-01-25  Bruno Haible  <bruno@clisp.org>
8958         c32isalpha: Add tests.
8959         * tests/test-c32isalpha.c: New file.
8960         * tests/test-c32isalpha.sh: New file.
8961         * modules/c32isalpha-tests: New file.
8963         c32isalpha: New module.
8964         * lib/c32isalpha.c: New file.
8965         * modules/c32isalpha: New file.
8966         * doc/posix-functions/iswalpha.texi: Mention the new module.
8968 2020-01-25  Bruno Haible  <bruno@clisp.org>
8970         c32isalnum: Add tests.
8971         * tests/test-c32isalnum.c: New file.
8972         * tests/test-c32isalnum.sh: New file.
8973         * modules/c32isalnum-tests: New file.
8975         c32isalnum: New module.
8976         * lib/c32isalnum.c: New file.
8977         * lib/c32is-impl.h: New file.
8978         * modules/c32isalnum: New file.
8979         * doc/posix-functions/iswalnum.texi: Mention the new module.
8981 2020-01-25  Bruno Haible  <bruno@clisp.org>
8983         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8984         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8985         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8986         c32isupper, c32isxdigit): New declarations.
8987         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8988         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8989         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8990         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8991         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8992         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8993         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8994         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8995         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8996         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8997         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8998         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8999         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9001 2020-01-25  Bruno Haible  <bruno@clisp.org>
9003         mbchar, wctype: Use the corrected iswxdigit function.
9004         * modules/mbchar (Depends-on): Add iswxdigit.
9005         * modules/wctype (Depends-on): Likewise.
9007         iswxdigit: Add tests.
9008         * tests/test-iswxdigit.c: New file.
9009         * tests/test-iswxdigit.sh: New file.
9010         * modules/iswxdigit-tests: New file.
9012         iswxdigit: New module.
9013         * m4/iswxdigit.m4: New file.
9014         * lib/wctype.in.h (iswxdigit): Potentially override.
9015         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9016         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9017         * lib/iswxdigit.c: New file.
9018         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9019         REPLACE_ISWXDIGIT.
9020         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9021         REPLACE_ISWXDIGIT.
9022         * modules/iswxdigit: New file.
9023         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9025 2020-01-25  Bruno Haible  <bruno@clisp.org>
9027         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9028         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9029         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9030         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9031         off_t on mingw, invoke _lseeki64 instead of lseek.
9033 2020-01-25  Bruno Haible  <bruno@clisp.org>
9035         iswdigit tests: Avoid test failure on Cygwin.
9036         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9037         byte sequence, return 0.
9039         iswdigit: Fix test failure on native Windows.
9040         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9042         mbchar, wctype: Use the corrected iswdigit function.
9043         * modules/mbchar (Depends-on): Add iswdigit.
9044         * modules/wctype (Depends-on): Likewise.
9046         iswdigit: Add tests.
9047         * tests/test-iswdigit.c: New file.
9048         * tests/test-iswdigit.sh: New file.
9049         * modules/iswdigit-tests: New file.
9051         iswdigit: New module.
9052         * m4/iswdigit.m4: New file.
9053         * lib/wctype.in.h (iswdigit): Potentially override.
9054         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9055         * lib/iswdigit.c: New file.
9056         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9057         REPLACE_ISWDIGIT.
9058         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9059         REPLACE_ISWDIGIT.
9060         * modules/iswdigit: New file.
9061         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9063 2020-01-25  Bruno Haible  <bruno@clisp.org>
9065         hard-locale tests: Make it easy to reuse the musl test.
9066         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9067         * modules/hard-locale-tests (Files): Add it.
9068         (configure.ac): Invoke gl_MUSL_LIBC.
9070 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9072         regex: port to Gawk on nonstandard platforms
9073         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9074         This is useful for Gawk, which does not use the Gnulib stdlib-h
9075         module.  Problem reported by Arnold Robbins in:
9076         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9078 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9080         regex: fix bug with >=16 subexpressions
9081         * lib/regex_internal.h (struct re_backref_cache_entry):
9082         Use bitset_word_t as the type of eps_reachable_subexps_map,
9083         instead of unsigned short int.  This fixes a bug I introduced
9084         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9085         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9086         Remove unused member 'unused'.
9088         regex: simplify definition of BITSET_WORD_BITS
9089         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9090         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9091         * lib/regex_internal.h (BITSET_WORD_BITS):
9092         * modules/regex (Depends-on): Add limits-h.
9093         Simplify now that we can use ULONG_WIDTH.
9095 2020-01-20  Bruno Haible  <bruno@clisp.org>
9097         mbrtoc32: Add note about FreeBSD 12.
9098         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9099         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9100         affected.
9102 2020-01-20  Bruno Haible  <bruno@clisp.org>
9104         unistr/u8-uctomb: Fix warning.
9105         Reported by Andreas Schwab <schwab@suse.de> in
9106         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9107         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9108         (u8_uctomb): Add FALLTHROUGH markers.
9110 2020-01-20  Bruno Haible  <bruno@clisp.org>
9112         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9113         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9114         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9115         (glthread_once): Use it.
9117 2020-01-19  Bruno Haible  <bruno@clisp.org>
9119         threadlib: Disable use of weak symbols on FreeBSD 11.
9120         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9121         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9122         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9123         against a bug in FreeBSD 11.
9125 2020-01-19  Bruno Haible  <bruno@clisp.org>
9127         iconv_open: Improve z/OS support.
9128         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9129         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9130         Remove mapping for EUC-TW.
9132 2020-01-18  Bruno Haible  <bruno@clisp.org>
9134         Rename ~~gnulib.m4 to zzgnulib.m4.
9135         Suggested by Paul Eggert.
9136         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9137         * gnulib-tool (func_get_filelist): Update.
9138         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9140 2020-01-18  Bruno Haible  <bruno@clisp.org>
9142         doc: Update license notices.
9143         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9144         reference to a section or to a "file as part of this distribution".
9146 2020-01-18  Bruno Haible  <bruno@clisp.org>
9148         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9149         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9150         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9151         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9152         AC_EGREP_CPP.
9154 2020-01-18  Bruno Haible  <bruno@clisp.org>
9156         Ensure Automake does not drop ~~gnulib.m4.
9157         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9158         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9160 2020-01-18  Bruno Haible  <bruno@clisp.org>
9162         Fix major regression from 2020-01-10.
9163         Reported by Paul Eggert in
9164         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9165         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9166         Don't AC_REQUIRE anything.
9167         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9168         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9169         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9170         use ac_compile instead.
9171         (AC_CHECK_DECL): Remove override.
9172         * m4/~~gnulib.m4: New file.
9173         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9174         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9176 2020-01-17  Bruno Haible  <bruno@clisp.org>
9177             Paul Eggert  <eggert@cs.ucla.edu>
9179         glob: Fix use-after-free bug.
9180         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9181         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9182         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9183         end_name.
9185 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9187         vcs-to-changelog: Fix parsing of fndecl without args.
9188         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9189         for empty arguments.
9191 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9193         vcs-to-changelog: Add documentation.
9194         * doc/vcs-to-changelog.texi: New file.
9195         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9196         section.
9198 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9200         vcs-to-changelog: Allow loading of custom quirks file.
9201         * build-aux/vcs_to_changelog.py: New commandline option -q.
9203 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9205         vcs-to-changelog: Fix formatting of ChangeLog output.
9206         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9207         output.
9209 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9211         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9212         Reported in
9213         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9214         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9216 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9218         crypto/gc-pbkdf2: New module.
9219         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9220         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9221         * lib/gc-pbkdf2.c: New file.
9222         * lib/gc-pbkdf2-sha1.c: Use new interface.
9223         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9224         * modules/crypto/gc-pbkdf2: New file.
9225         * modules/crypto/gc-pbkdf2-tests: New file.
9226         * tests/test-gc-pbkdf2.c: New file.
9228 2020-01-12  Bruno Haible  <bruno@clisp.org>
9230         c32stombs: Add tests.
9231         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9232         * tests/test-c32stombs-1.sh: New file, based on
9233         tests/test-c32srtombs-1.sh.
9234         * tests/test-c32stombs-2.sh: New file, based on
9235         tests/test-c32srtombs-2.sh.
9236         * tests/test-c32stombs-3.sh: New file, based on
9237         tests/test-c32srtombs-3.sh.
9238         * tests/test-c32stombs-4.sh: New file, based on
9239         tests/test-c32srtombs-4.sh.
9240         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9242         c32stombs: New module.
9243         * lib/uchar.in.h (c32stombs): New declaration.
9244         * lib/c32stombs.c: New file.
9245         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9246         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9247         * modules/c32stombs: New file.
9248         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9249         * doc/posix-functions/wcstombs.texi: Mention the new module.
9251 2020-01-11  Jim Meyering  <meyering@fb.com>
9253         perl: require the "warnings" module
9254         * m4/perl.m4: Also "use warnings", so we reject the perl found
9255         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9256         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9258 2020-01-10  Bruno Haible  <bruno@clisp.org>
9260         Fix major regression from 2020-01-04.
9261         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9263         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9264         AC_DEFUN_ONCE.
9265         (AC_CHECK_DECL): Invoke, not require, it.
9267 2020-01-10  Bruno Haible  <bruno@clisp.org>
9269         c32snrtombs: Add tests.
9270         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9271         * tests/test-c32snrtombs-1.sh: New file, based on
9272         tests/test-wcsnrtombs1.sh.
9273         * tests/test-c32snrtombs-2.sh: New file, based on
9274         tests/test-wcsnrtombs2.sh.
9275         * tests/test-c32snrtombs-3.sh: New file, based on
9276         tests/test-wcsnrtombs3.sh.
9277         * tests/test-c32snrtombs-4.sh: New file, based on
9278         tests/test-wcsnrtombs4.sh.
9279         * modules/c32snrtombs-tests: New file, based on
9280         modules/wcsnrtombs-tests.
9282         c32snrtombs: New module.
9283         * lib/uchar.in.h (c32snrtombs): New declaration.
9284         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9285         INTERNAL_STATE, WCRTOMB.
9286         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9287         * lib/c32snrtombs.c: New file.
9288         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9289         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9290         * modules/c32snrtombs: New file.
9291         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9292         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9294 2020-01-09  Bruno Haible  <bruno@clisp.org>
9296         c32srtombs: Add tests.
9297         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9298         * tests/test-c32srtombs-1.sh: New file, based on
9299         tests/test-wcsrtombs1.sh.
9300         * tests/test-c32srtombs-2.sh: New file, based on
9301         tests/test-wcsrtombs2.sh.
9302         * tests/test-c32srtombs-3.sh: New file, based on
9303         tests/test-wcsrtombs3.sh.
9304         * tests/test-c32srtombs-4.sh: New file, based on
9305         tests/test-wcsrtombs4.sh.
9306         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9308         c32srtombs: New module.
9309         * lib/uchar.in.h (c32srtombs): New declaration.
9310         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9311         INTERNAL_STATE, WCRTOMB.
9312         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9313         * lib/c32srtombs.c: New file.
9314         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9315         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9316         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9317         * modules/c32srtombs: New file.
9318         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9319         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9321 2020-01-08  Bruno Haible  <bruno@clisp.org>
9323         c32tob: Make consistent with mbrtoc32.
9324         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9325         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9326         use c32rtomb, not wctob.
9327         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9328         (Depends-on): Add c32rtomb.
9329         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9331 2020-01-08  Bruno Haible  <bruno@clisp.org>
9333         c32rtomb: Add tests.
9334         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9335         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9336         * tests/test-c32rtomb-w32.c: New file, based on
9337         tests/test-wcrtomb-w32.c.
9338         * tests/test-c32rtomb-w32-1.sh: New file, based on
9339         tests/test-wcrtomb-w32-1.sh.
9340         * tests/test-c32rtomb-w32-2.sh: New file, based on
9341         tests/test-wcrtomb-w32-2.sh.
9342         * tests/test-c32rtomb-w32-3.sh: New file, based on
9343         tests/test-wcrtomb-w32-3.sh.
9344         * tests/test-c32rtomb-w32-4.sh: New file, based on
9345         tests/test-wcrtomb-w32-4.sh.
9346         * tests/test-c32rtomb-w32-5.sh: New file, based on
9347         tests/test-wcrtomb-w32-5.sh.
9348         * tests/test-c32rtomb-w32-6.sh: New file, based on
9349         tests/test-wcrtomb-w32-6.sh.
9350         * tests/test-c32rtomb-w32-7.sh: New file, based on
9351         tests/test-wcrtomb-w32-7.sh.
9352         * modules/c32rtomb-tests: New file.
9354         c32rtomb: New module.
9355         * lib/uchar.in.h (c32rtomb): New declaration.
9356         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9357         * m4/c32rtomb.m4: New file.
9358         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9359         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9360         REPLACE_C32RTOMB.
9361         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9362         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9363         * modules/c32rtomb: New file.
9364         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9365         * doc/posix-functions/c32rtomb.texi: Document the new module.
9366         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9368 2020-01-08  Bruno Haible  <bruno@clisp.org>
9370         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9371         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9372         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9373         but is not working.
9374         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9375         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9376         differ, use the system's mbrtoc32, adding workarounds.
9377         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9378         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9379         Windows problem.
9380         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9381         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9382         use mbrtoc32, not btowc.
9383         * modules/btoc32 (Depends-on): Add mbrtoc32.
9384         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9385         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9386         * modules/mbsrtoc32s (Depends-on): Update conditions.
9387         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9388         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9389         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9390         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9391         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9393 2020-01-07  Bruno Haible  <bruno@clisp.org>
9395         wcrtomb: Make multithread-safe, except possibly on IRIX.
9396         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9397         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9398         WCRTOMB_RETVAL_BUG.
9399         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9400         wctomb only on IRIX.
9402 2020-01-05  Jim Meyering  <meyering@fb.com>
9404         tests: skip thread-using tests when threading is disabled
9405         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9406         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9407         of those, so they are skipped in this case.
9408         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9409         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9410         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9412 2020-01-05  Bruno Haible  <bruno@clisp.org>
9414         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9415         Reported by Jim Meyering in
9416         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9417         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9418         (GNULIB_defined_ptsname_r): New macro.
9419         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9420         (main): Disable the NULL argument test if canonicalize_file_name does
9421         not come from gnulib.
9422         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9423         (main): Disable the NULL argument test if canonicalize_file_name does
9424         not come from gnulib.
9425         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9426         (test_errors): Disable the NULL argument test if ptsname_r does not come
9427         from gnulib.
9429 2020-01-04  Jim Meyering  <meyering@fb.com>
9431         update-copyright: reenable its always-skipped test
9432         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9433         on 2019-06-15. Without those, an internal preliminary test would
9434         fail, causing this test always to be skipped.
9435         Verify that the test is now run and passes via this:
9436           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9438 2020-01-05  Bruno Haible  <bruno@clisp.org>
9440         mbstoc32s: Add tests.
9441         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9442         * tests/test-mbstoc32s-1.sh: New file, based on
9443         tests/test-mbsrtoc32s-1.sh.
9444         * tests/test-mbstoc32s-2.sh: New file, based on
9445         tests/test-mbsrtoc32s-2.sh.
9446         * tests/test-mbstoc32s-3.sh: New file, based on
9447         tests/test-mbsrtoc32s-3.sh.
9448         * tests/test-mbstoc32s-4.sh: New file, based on
9449         tests/test-mbsrtoc32s-4.sh.
9450         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9452         mbstoc32s: New module.
9453         * lib/uchar.in.h (mbstoc32s): New declaration.
9454         * lib/mbstoc32s.c: New file.
9455         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9456         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9457         * modules/mbstoc32s: New file.
9458         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9459         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9461 2020-01-05  Bruno Haible  <bruno@clisp.org>
9463         Tweak recently added tests.
9464         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9465         * tests/test-mbsrtoc32s.c: Likewise.
9466         * tests/test-mbsnrtoc32s.c: Likewise.
9468 2020-01-04  Bruno Haible  <bruno@clisp.org>
9470         mbsnrtoc32s: Add tests.
9471         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9472         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9473         tests/test-mbsnrtowcs1.sh.
9474         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9475         tests/test-mbsnrtowcs2.sh.
9476         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9477         tests/test-mbsnrtowcs3.sh.
9478         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9479         tests/test-mbsnrtowcs4.sh.
9480         * modules/mbsnrtoc32s-tests: New file, based on
9481         modules/mbsnrtowcs-tests.
9483         mbsnrtoc32s: New module.
9484         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9485         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9486         INTERNAL_STATE, MBRTOWC.
9487         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9488         * lib/mbsnrtoc32s.c: New file.
9489         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9490         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9491         * modules/mbsnrtoc32s: New file.
9492         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9493         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9495 2020-01-04  Bruno Haible  <bruno@clisp.org>
9497         mbsrtoc32s tests: Enhance test.
9498         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9499         test strings for UTF-8 and GB18030.
9501 2020-01-04  Bruno Haible  <bruno@clisp.org>
9503         mbsrtoc32s: Fix bug.
9504         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9505         that SMALL_WCHAR_T is defined.
9507 2020-01-04  Bruno Haible  <bruno@clisp.org>
9509         mbsrtoc32s: Add tests.
9510         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9511         * tests/test-mbsrtoc32s-1.sh: New file, based on
9512         tests/test-mbsrtowcs1.sh.
9513         * tests/test-mbsrtoc32s-2.sh: New file, based on
9514         tests/test-mbsrtowcs2.sh.
9515         * tests/test-mbsrtoc32s-3.sh: New file, based on
9516         tests/test-mbsrtowcs3.sh.
9517         * tests/test-mbsrtoc32s-4.sh: New file, based on
9518         tests/test-mbsrtowcs4.sh.
9519         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9521         mbsrtoc32s: New module.
9522         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9523         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9524         INTERNAL_STATE, MBRTOWC.
9525         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9526         * lib/mbsrtoc32s.c: New file.
9527         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9528         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9529         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9530         * modules/mbsrtoc32s: New file.
9531         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9532         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9534 2020-01-04  Bruno Haible  <bruno@clisp.org>
9536         mbrtowc, mbrtoc32: Tighten dependendies.
9537         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9538         REPLACE_MBSTATE_T is 1.
9539         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9540         REPLACE_MBSTATE_T is 0.
9541         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9542         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9543         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9544         REPLACE_MBSTATE_T is 0.
9546 2020-01-04  Bruno Haible  <bruno@clisp.org>
9548         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9549         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9550         * modules/uchar (Files): Add stdint.m4.
9551         (Makefile.am): Substitute SMALL_WCHAR_T.
9552         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9554 2020-01-04  Bruno Haible  <bruno@clisp.org>
9556         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9557         Reported by Martin Storsjö <martin@martin.st> in
9558         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9559         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9560         New macros.
9561         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9563 2020-01-04  Bruno Haible  <bruno@clisp.org>
9565         btoc32: Add tests.
9566         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9567         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9568         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9569         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9571         btoc32: New module.
9572         * lib/uchar.in.h (btoc32): New declaration.
9573         * lib/btoc32.c: New file.
9574         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9575         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9576         * modules/btoc32: New file.
9577         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9578         * doc/posix-functions/btowc.texi: Mention the new module.
9580 2020-01-03  Bruno Haible  <bruno@clisp.org>
9582         uchar tests: Avoid compilation error with HP cc.
9583         * tests/test-uchar.c: Disable a test when HP cc is in use.
9585 2020-01-03  Bruno Haible  <bruno@clisp.org>
9587         mbrtoc32: Add tests.
9588         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9589         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9590         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9591         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9592         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9593         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9594         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9595         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9596         tests/test-mbrtowc-w32-1.sh.
9597         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9598         tests/test-mbrtowc-w32-2.sh.
9599         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9600         tests/test-mbrtowc-w32-3.sh.
9601         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9602         tests/test-mbrtowc-w32-4.sh.
9603         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9604         tests/test-mbrtowc-w32-5.sh.
9605         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9606         tests/test-mbrtowc-w32-6.sh.
9607         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9608         tests/test-mbrtowc-w32-7.sh.
9609         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9611         mbrtoc32: New module.
9612         * lib/uchar.in.h (mbrtoc32): New declaration.
9613         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9614         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9615         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9616         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9617         REPLACE_MBRTOC32.
9618         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9619         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9620         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9621         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9622         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9623         $(LIB_MBRTOWC).
9624         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9625         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9627 2020-01-03  Bruno Haible  <bruno@clisp.org>
9629         mbrtowc: Refactor to share code with mbrtoc32.
9630         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9631         * lib/mbrtowc-impl-utf8.h: Likewise.
9632         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9633         mbrtowc-impl.h.
9634         * modules/mbrtowc (Files): Add the new files.
9636 2020-01-03  Jim Meyering  <meyering@fb.com>
9638         doc: fix time.texi wording
9639         * doc/posix-headers/time.texi (time.h): Typo.
9641 2020-01-03  Bruno Haible  <bruno@clisp.org>
9643         mbrtowc: Refactor locale charset dispatching.
9644         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9645         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9646         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9647         localcharset.h, streq.h.
9648         (enc_t): Remove type.
9649         (locale_enc): Remove function.
9650         (cached_locale_enc): Remove variable.
9651         (locale_enc_cached): Remove function.
9652         (mbrtowc): Invoke locale_encoding_classification.
9653         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9654         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9655         lc-charset-dispatch.c.
9656         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9658 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9660         doc: mention 32-bit time_t issue
9661         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9662         * doc/posix-headers/time.texi (time.h): Mention 2038.
9664 2020-01-03  Bruno Haible  <bruno@clisp.org>
9666         mbrtowc: Ensure the mbtowc_lock is unique.
9667         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9668         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9669         lib/setlocale_null.c.
9670         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9671         glthread/lock.h. Include mbtowc-lock.h.
9672         (mbtowc_lock): Remove declaration.
9673         (mbrtowc): Use mbtowc_with_lock.
9674         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9675         threads.h. Set LIB_MBRTOWC.
9676         (gl_PREREQ_MBTOWC_LOCK): New macro.
9677         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9678         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9679         (Depends-on): Remove lock.
9680         (configure.ac): Arrange to compile mbtowc-lock.c.
9681         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9682         * modules/acl (Link): Likewise.
9683         * modules/argmatch (Link): Likewise.
9684         * modules/backup-rename (Link): Likewise.
9685         * modules/backupfile (Link): Likewise.
9686         * modules/closein (Link): Likewise.
9687         * modules/closeout (Link): Likewise.
9688         * modules/copy-file (Link): Likewise.
9689         * modules/csharpcomp (Link): Likewise.
9690         * modules/csharpexec (Link): Likewise.
9691         * modules/dfa (Link): Likewise.
9692         * modules/exclude (Link): Likewise.
9693         * modules/fnmatch (Link): Likewise.
9694         * modules/fnmatch-gnu (Link): Likewise.
9695         * modules/fnmatch-posix (Link): Likewise.
9696         * modules/glob (Link): Likewise.
9697         * modules/human (Link): Likewise.
9698         * modules/javacomp (Link): Likewise.
9699         * modules/javaexec (Link): Likewise.
9700         * modules/javaversion (Link): Likewise.
9701         * modules/mbfile (Link): Likewise.
9702         * modules/mbiter (Link): Likewise.
9703         * modules/mbmemcasecmp (Link): Likewise.
9704         * modules/mbmemcasecoll (Link): Likewise.
9705         * modules/mbrlen (Link): Likewise.
9706         * modules/mbscasecmp (Link): Likewise.
9707         * modules/mbscasestr (Link): Likewise.
9708         * modules/mbschr (Link): Likewise.
9709         * modules/mbscspn (Link): Likewise.
9710         * modules/mbsinit (Link): Likewise.
9711         * modules/mbslen (Link): Likewise.
9712         * modules/mbsncasecmp (Link): Likewise.
9713         * modules/mbsnlen (Link): Likewise.
9714         * modules/mbsnrtowcs (Link): Likewise.
9715         * modules/mbspbrk (Link): Likewise.
9716         * modules/mbspcasecmp (Link): Likewise.
9717         * modules/mbsrchr (Link): Likewise.
9718         * modules/mbsrtowcs (Link): Likewise.
9719         * modules/mbssep (Link): Likewise.
9720         * modules/mbsspn (Link): Likewise.
9721         * modules/mbsstr (Link): Likewise.
9722         * modules/mbstok_r (Link): Likewise.
9723         * modules/mbswidth (Link): Likewise.
9724         * modules/mbuiter (Link): Likewise.
9725         * modules/mkdir-p (Link): Likewise.
9726         * modules/propername (Link): Likewise.
9727         * modules/quote (Link): Likewise.
9728         * modules/quotearg (Link): Likewise.
9729         * modules/quotearg-simple (Link): Likewise.
9730         * modules/regex-quote (Link): Likewise.
9731         * modules/rpmatch (Link): Likewise.
9732         * modules/sh-quote (Link): Likewise.
9733         * modules/system-quote (Link): Likewise.
9734         * modules/trim (Link): Likewise.
9735         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9736         * modules/unistdio/ulc-fprintf (Link): Likewise.
9737         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9738         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9739         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9740         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9741         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9742         * modules/xfreopen (Link): Likewise.
9743         * modules/xmemcoll (Link): Likewise.
9744         * modules/yesno (Link): Likewise.
9745         * modules/regex (Link): Add $(LIB_MBRTOWC).
9746         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9747         instead of $(LIBTHREAD).
9748         * modules/argmatch-tests (Makefile.am): Likewise.
9749         * modules/closein-tests (Makefile.am): Likewise.
9750         * modules/copy-file-tests (Makefile.am): Likewise.
9751         * modules/dfa-tests (Makefile.am): Likewise.
9752         * modules/fnmatch-tests (Makefile.am): Likewise.
9753         * modules/glob-tests (Makefile.am): Likewise.
9754         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9755         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9756         * modules/mbrtowc-tests (Makefile.am): Likewise.
9757         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9758         * modules/mbscasestr-tests (Makefile.am): Likewise.
9759         * modules/mbschr-tests (Makefile.am): Likewise.
9760         * modules/mbscspn-tests (Makefile.am): Likewise.
9761         * modules/mbsinit-tests (Makefile.am): Likewise.
9762         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9763         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9764         * modules/mbspbrk-tests (Makefile.am): Likewise.
9765         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9766         * modules/mbsrchr-tests (Makefile.am): Likewise.
9767         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9768         * modules/mbsspn-tests (Makefile.am): Likewise.
9769         * modules/mbsstr-tests (Makefile.am): Likewise.
9770         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9771         * modules/quotearg-tests (Makefile.am): Likewise.
9772         * modules/readtokens-tests (Makefile.am): Likewise.
9773         * modules/sh-quote-tests (Makefile.am): Likewise.
9774         * modules/system-quote-tests (Makefile.am): Likewise.
9775         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9776         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9777         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9778         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9779         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9780         * modules/yesno-tests (Makefile.am): Likewise.
9781         * modules/exclude-tests (Makefile.am): Link the programs with
9782         $(LIB_MBRTOWC).
9783         * modules/regex-tests (Makefile.am): Likewise.
9784         * modules/regex-quote-tests (Makefile.am): Likewise.
9786 2020-01-03  Bruno Haible  <bruno@clisp.org>
9788         getopt-posix: Fix compilation failure in testdirs.
9789         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9790         when the gnulib module 'getopt-posix' is enabled.
9791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9792         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9793         module indicator.
9794         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9796 2020-01-03  Bruno Haible  <bruno@clisp.org>
9798         doc: Mention the 64-bit inode number problem.
9799         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9800         64-bit inode number problem.
9801         * doc/posix-functions/stat.texi: Mention that this module fixes the
9802         64-bit inode number problem.
9803         * doc/posix-functions/lstat.texi: Likewise.
9804         * doc/posix-functions/fstat.texi: Likewise.
9805         * doc/posix-functions/readdir.texi: Add more details.
9806         * doc/posix-functions/readdir_r.texi: Likewise.
9808 2020-01-02  Bruno Haible  <bruno@clisp.org>
9810         wcrtomb: Add more tests.
9811         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9812         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9813         locale_charset() returns the expected value; otherwise, skip the test.
9814         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9815         * tests/test-wcrtomb-w32-7.sh: Likewise.
9816         * modules/wcrtomb-tests (Files): Add these files.
9817         (Depends-on): Add localcharset.
9818         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9820 2020-01-02  Bruno Haible  <bruno@clisp.org>
9822         mbrtowc: Add more tests.
9823         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9824         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9825         locale_charset() returns the expected value; otherwise, skip the test.
9826         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9827         * tests/test-mbrtowc-w32-7.sh: Likewise.
9828         * modules/mbrtowc-tests (Files): Add these files.
9829         (Depends-on): Add localcharset.
9830         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9832 2020-01-02  Bruno Haible  <bruno@clisp.org>
9834         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9835         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9836         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9837         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9838         MBRTOWC_STORES_INCOMPLETE_BUG.
9839         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9841 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9843         doc: mention glibc bug 24269
9844         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9845         Reformat slightly so that it looks nicer in the Grep manual.
9847 2020-01-02  Bruno Haible  <bruno@clisp.org>
9849         mbrtowc: Don't replace mbstate_t on MSVC.
9850         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9851         a missing mbsinit function on native Windows.
9852         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9853         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9854         MSVC bug.
9855         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9857 2020-01-02  Bruno Haible  <bruno@clisp.org>
9859         setlocale-null: Avoid crashing the MSVC linker.
9860         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9861         MSVC.
9863 2020-01-02  Bruno Haible  <bruno@clisp.org>
9865         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9866         * modules/wchar (Depends-on): Add inttypes-incomplete.
9867         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9868         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9869         of strtoimax.
9871 2020-01-02  Bruno Haible  <bruno@clisp.org>
9873         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9874         * lib/mbrtowc.c: Include <stdint.h>.
9875         * modules/mbrtowc (Depends-on): Add stdint.
9877 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9879         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9880         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9881         which will auto enable use of openssl, only for >= version 3,
9882         which is newly licensed under the Apache Software License.
9884 2020-01-01  Bruno Haible  <bruno@clisp.org>
9886         mbrtowc: Include function name in macro names.
9887         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9888         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9889         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9890         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9891         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9892         C_LOCALE_MAYBE_EILSEQ.
9894 2020-01-01  Bruno Haible  <bruno@clisp.org>
9896         c32tob: New module.
9897         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9898         (c32tob): New declaration.
9899         * lib/c32tob.c: New file.
9900         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9901         macros.
9902         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9903         * modules/uchar (Depends-on): Add snippet/c++defs.
9904         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9905         uchar.h.
9906         * modules/c32tob: New file.
9907         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9908         defined.
9909         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9910         c32tob.
9911         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9912         * doc/posix-functions/wctob.texi: Mention the new module.
9914 2020-01-01  Bruno Haible  <bruno@clisp.org>
9916         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9917         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9918         $(LIB_SETLOCALE).
9920 2020-01-01  Bruno Haible  <bruno@clisp.org>
9922         hard-locale tests: Fix a conflict with the C++ tests.
9923         * modules/hard-locale-tests (Makefile.am): Build a program named
9924         'current-locale', not 'locale'.
9926 2020-01-01  Bruno Haible  <bruno@clisp.org>
9928         doc: Update documentation about wchar_t.
9929         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9930         wchar_t type.
9932 2020-01-01  Bruno Haible  <bruno@clisp.org>
9934         mbrtowc tests: Fix typos.
9935         * tests/test-mbrtowc.c (main): Fix typo.
9936         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9938 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9940         maint: update copyright notices
9941         Before doing the following changes done by hand, I also ran ‘make
9942         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9943         to do most of the copyright years automatically.  A few upstream
9944         sources are still in 2019 but these should eventually be changed
9945         automatically too.
9946         * build-aux/declared.sh (func_version):
9947         * build-aux/libtool-next-version (func_version):
9948         * build-aux/run-test (func_version):
9949         Update these notices by hand.  Put just the last year
9950         in output of programs, as per GNU coding standards.
9952 2019-12-31  Bruno Haible  <bruno@clisp.org>
9954         uchar: Add C++ tests.
9955         * tests/test-uchar-c++.cc: New file.
9956         * tests/test-uchar-c++2.cc: New file.
9957         * modules/uchar-c++-tests: New file.
9959         uchar: Add tests.
9960         * tests/test-uchar.c: New file.
9961         * modules/uchar-tests: New file.
9963         uchar: New module.
9964         * lib/uchar.in.h: New file.
9965         * m4/uchar.m4: New file.
9966         * modules/uchar: New file.
9967         * doc/posix-headers/uchar.texi: Mention the new module.
9969 2019-12-30  Jim Meyering  <meyering@fb.com>
9971         localeinfo: ->simple would be wrong for LC_ALL=C
9972         That would lead to using unnecessary and expensive code paths in dfa.c.
9973         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9974         error that would have made grep many times slower in the C locale.
9975         With this change, and a file created like this:
9976           yes 00 | head -10000000 > in
9977         Running grep as follows becomes more than 40 times faster:
9978           LC_ALL=C grep -Fw 0 in
9980 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9982         doc: document trouble with back-references
9983         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9985 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9987         doc: use “back-reference” for \1 etc.
9988         * doc/regex.texi: Consistently spell “back-reference” with
9989         a hyphen, since that’s how POSIX does it.
9991 2019-12-26  Jim Meyering  <meyering@fb.com>
9993         test-framework-sh: tighten an internal grep regexp
9994         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9995         that helps test for a working printf.
9997 2019-12-26  Bruno Haible  <bruno@clisp.org>
9999         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10000         Reported by Paul Eggert in
10001         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10002         Simplification by Jim Meyering.
10003         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10004         octal escape sequence in a UTF-8 locale.
10006 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10008         mbrtowc: port better to narrow-wchar_t platforms
10009         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10010         wchar_t is too narrow to represent all the Unicode characters,
10011         consider a byte sequence for an out-of-wchar_t-range character to
10012         be an encoding error.  This fixes grep’s surrogate-pair test
10013         failure on AIX 7.2.
10015 2019-12-24  Bruno Haible  <bruno@clisp.org>
10017         localcharset: Avoid referencing rpl_setlocale on native Windows.
10018         * lib/localcharset.c (setlocale): Undefine.
10020 2019-12-24  Bruno Haible  <bruno@clisp.org>
10022         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10023         * m4/semaphore.m4: New file.
10024         * modules/lock-tests (Files): Add it.
10025         (configure.ac): Require gl_SEMAPHORE.
10026         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10028 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10030         strptime: fix typo in previous patch
10031         Problem and fix reported by Bruno Haible in:
10032         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10033         * lib/strptime.c (day_of_the_week): Fix paren bug.
10035 2019-12-24  Bruno Haible  <bruno@clisp.org>
10037         setlocale-null: Make it easy to rely on the lock in another library.
10038         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10039         defined.
10041 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10043         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10044         Performanced analyzed by Bruno Haible in:
10045         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10046         * config/srclist.txt: Do not sync mktime.c for now.
10047         * lib/mktime.c (shr, ydhms_diff):
10048         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10049         * lib/strptime.c (day_of_the_week):
10050         * lib/xtime.h (xtime_sec):
10051         Redo with neither ‘%’ nor conditional branches.
10053 2019-12-23  Bruno Haible  <bruno@clisp.org>
10055         setlocale-null: Export the lock function also on non-Windows platforms.
10056         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10057         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10058         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10059         * modules/setlocale-null (configure.ac): Invoke it.
10060         (Files): Add m4/visibility.m4.
10062 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10064         gethrxtime: fix rounding bug with negative args
10065         Problem reported by Bruno Haible in:
10066         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10067         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10068         with negative rounding.  Common platforms can compute / and % with
10069         a single instruction, so the simplified code should be shorter and
10070         faster on these platforms anyway.
10072 2019-12-22  Bruno Haible  <bruno@clisp.org>
10074         gethrxtime: remove incorrect overflow detection
10075         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10076         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10077         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10078         cannot now see the need for anyway (even in cases where it works),
10079         as the patch is helpful only when the signs of S and NS disagree,
10080         and all callers pass nonnegative values for S and NS.
10082 2019-12-22  Bruno Haible  <bruno@clisp.org>
10084         setlocale-null: Add standalone include file.
10085         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10086         * lib/locale.in.h: Include setlocale_null.h.
10087         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10088         setlocale_null): Remove declarations.
10089         * lib/setlocale_null.c: Include setlocale_null.h.
10090         * lib/localename.c: Likewise.
10091         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10092         (Depends-on): Add snippet/arg-nonnull.
10093         (Include): Allow either "setlocale_null.h" or <locale.h>.
10095 2019-12-22  Bruno Haible  <bruno@clisp.org>
10097         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10098         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10099         AC_RUN_IFELSE test.
10100         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10101         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10102         problem.
10104 2019-12-22  Bruno Haible  <bruno@clisp.org>
10106         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10107         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10108         unconditional AC_LIBOBJ.
10109         * modules/selinux-at: Likewise.
10110         * modules/xmemdup0: Likewise.
10111         * modules/xstrtoll: Likewise.
10113 2019-12-22  Bruno Haible  <bruno@clisp.org>
10115         longlong: Mark module obsolete.
10116         * modules/longlong (Status, Notice): New sections.
10118         stdint: Assume that the compiler supports 'long long'.
10119         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10120         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10121         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10122         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10123         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10124         * modules/stdint (Files): Remove longlong.m4.
10125         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10126         HAVE_UNSIGNED_LONG_LONG_INT.
10128         inttypes-incomplete: Assume that the compiler supports 'long long'.
10129         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10130         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10131         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10132         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10133         HAVE_LONG_LONG_INT to be 1.
10134         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10135         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10137         malloca: Assume that the compiler supports 'long long'.
10138         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10139         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10140         * modules/malloca (Files): Remove longlong.m4.
10141         * modules/relocatable-prog-wrapper (Files): Likewise.
10143         atoll: Assume that the compiler supports 'long long'.
10144         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10145         * modules/atoll (Files): Remove longlong.m4.
10147         strtoll: Assume that the compiler supports 'long long'.
10148         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10149         * modules/strtoll (Files): Remove longlong.m4.
10151         strtoull: Assume that the compiler supports 'long long'.
10152         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10153         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10154         * modules/strtoull (Files): Remove longlong.m4.
10156         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10157         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10158         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10159         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10160         AC_TYPE_LONG_LONG_INT.
10161         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10162         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10163         * modules/strtoimax (Files): Remove longlong.m4.
10164         * modules/strtoumax (Files): Likewise.
10166         xstrtoll: Assume that the compiler supports 'long long'.
10167         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10168         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10170         vasnprintf: Assume that the compiler supports 'long long'.
10171         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10172         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10173         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10174         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10175         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10176         require AC_TYPE_LONG_LONG_INT.
10177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10178         gl_PREREQ_VASNPRINTF): Likewise.
10179         * modules/vasnprintf (Files): Remove longlong.m4.
10180         * modules/c-vasnprintf (Files): Likewise.
10181         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10182         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10183         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10184         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10185         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10186         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10187         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10189         gethrxtime: Assume that the compiler supports 'long long'.
10190         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10191         (XTIME_PRECISION): Define to 1000000000 always.
10192         (xtime_make, xtime_sec): Optimize accordingly.
10193         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10194         * modules/gethrxtime (Files): Remove longlong.m4.
10196         integer_length*: Assume that the compiler supports 'long long'.
10197         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10198         * modules/integer_length (Files): Remove longlong.m4.
10199         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10200         * modules/integer_length_l (Files): Remove longlong.m4.
10201         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10202         * modules/integer_length_ll (Files): Remove longlong.m4.
10203         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10205         count-one-bits: Assume that the compiler supports 'long long'.
10206         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10207         * m4/count-one-bits.m4: Remove file.
10208         * modules/count-one-bits (Files): Remove it.
10209         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10210         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10211         unconditionally.
10213         count-trailing-zeros: Assume that the compiler supports 'long long'.
10214         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10215         unconditionally.
10216         * m4/count-trailing-zeros.m4: Remove file.
10217         * modules/count-trailing-zeros (Files): Remove it.
10218         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10219         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10220         unconditionally.
10222         count-leading-zeros: Assume that the compiler supports 'long long'.
10223         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10224         unconditionally.
10225         * m4/count-leading-zeros.m4: Remove file.
10226         * modules/count-leading-zeros (Files): Remove it.
10227         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10228         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10229         unconditionally.
10231 2019-12-22  Bruno Haible  <bruno@clisp.org>
10233         localcharset: Update support for OpenBSD.
10234         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10236 2019-12-21  Bruno Haible  <bruno@clisp.org>
10238         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10239         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10240         NetBSD.
10241         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10243 2019-12-21  Bruno Haible  <bruno@clisp.org>
10245         threadlib: Improve code structure.
10246         * m4/threadlib.m4: Reorder macros. Add comments.
10248 2019-12-21  Bruno Haible  <bruno@clisp.org>
10250         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10251         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10252         here from m4/threads.m4).
10253         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10254         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10255         (gl_STDTHREADLIB): New macro.
10256         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10257         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10259 2019-12-21  Bruno Haible  <bruno@clisp.org>
10261         sched_yield: Don't depend on threadlib and yield.
10262         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10263         LIB_SCHED_YIELD.
10264         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10265         m4/yield.m4).
10266         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10267         gl_THREADLIB and gl_YIELD.
10268         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10269         based on $(LIB_SCHED_YIELD).
10270         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10271         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10272         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10273         (Depends-on): Remove threadlib.
10274         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10275         * modules/threads-h (Files): Remove m4/yield.m4.
10276         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10277         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10278         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10279         * modules/pthread-once-tests (Makefile.am): Likewise.
10280         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10281         * modules/pthread-tss-tests (Makefile.am): Likewise.
10283 2019-12-21  Bruno Haible  <bruno@clisp.org>
10285         threads-h: Don't depend on threadlib.
10286         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10287         not gl_THREADLIB_EARLY.
10289 2019-12-21  Bruno Haible  <bruno@clisp.org>
10291         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10292         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10293         with $(LIB_SETLOCALE).
10295 2019-12-21  Bruno Haible  <bruno@clisp.org>
10297         threadlib: Remove unused dependency (left over from 2019-07-06).
10298         * modules/threadlib (Depends-on): Remove havelib.
10300 2019-12-21  Bruno Haible  <bruno@clisp.org>
10302         New convention for multithread-safety tests.
10303         * tests/test-setlocale_null-mt-one.c: Renamed from
10304         tests/test-setlocale_null-one.c.
10305         * tests/test-setlocale_null-mt-all.c: Renamed from
10306         tests/test-setlocale_null-all.c.
10307         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10309 2019-12-21  Bruno Haible  <bruno@clisp.org>
10311         quotearg tests: Fix conflict with hard-locale tests.
10312         * tests/testlocale: Renamed from tests/locale.
10313         * modules/quotearg-tests (Files): Update.
10314         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10316 2019-12-21  Bruno Haible  <bruno@clisp.org>
10318         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10319         Reported by Daniel Richard G. in
10320         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10321         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10322         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10323         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10324         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10325         alternative to PTHREAD_RWLOCK_INITIALIZER.
10326         * lib/glthread/lock.c: Likewise.
10328 2019-12-21  Bruno Haible  <bruno@clisp.org>
10330         memcmp tests: Work around the clang bug.
10331         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10332         the clang optimization.
10334 2019-12-20  Bruno Haible  <bruno@clisp.org>
10336         localcharset: Add support for z/OS encoding names.
10337         * lib/localcharset.h: Mention which encodings are used as locale
10338         encodings on z/OS.
10340 2019-12-20  Bruno Haible  <bruno@clisp.org>
10342         iconv_open: Add support for z/OS encoding names.
10343         Reported by Daniel Richard G. in
10344         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10345         * lib/iconv_open-zos.gperf: New file.
10346         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10347         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10348         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10349         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10350         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10352 2019-12-20  Bruno Haible  <bruno@clisp.org>
10354         doc: Document the problem of the per-thread locale functions on z/OS.
10355         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10356         * doc/posix-functions/newlocale.texi: Likewise.
10357         * doc/posix-functions/duplocale.texi: Likewise.
10358         * doc/posix-functions/freelocale.texi: Likewise.
10360 2019-12-20  Bruno Haible  <bruno@clisp.org>
10362         localename, gettext: Fix host_os value for z/OS.
10363         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10364         cross-configuration code.
10366 2019-12-19  Jim Meyering  <meyering@fb.com>
10368         nstrftime: avoid a shadowing warning
10369         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10370         to avoid shadowing an "i" declared hundreds of lines above.
10372 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10374         dfa: struct dfamust now uses flexible array
10375         * lib/dfa.c: Include flexmember.h.
10376         (dfamust, dfamustfree): Adjust to struct dfamust change.
10377         This saves a call to malloc+free.
10378         * lib/dfa.h (struct dfamust): Make the final member a
10379         flexible array member.
10380         * modules/dfa (Depends-on): Add flexmember.
10382         dfa: fast->small for array elements
10383         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10384         since this type is used in arrays.  This change is more for
10385         documentation than for any practical effect, since the two types
10386         are the same on all known platforms.
10388 2019-12-19  Bruno Haible  <bruno@clisp.org>
10390         iconv tests: Test canonicalized, not system-dependent, encoding names.
10391         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10392         * modules/iconv-tests (Depends-on): Add iconv_open.
10394 2019-12-18  Bruno Haible  <bruno@clisp.org>
10396         localename: Fix test failure on AIX 7.2.
10397         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10398         locales on AIX.
10399         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10400         locales on AIX.
10402 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10404         Improve port of AC_C_RESTRICT to Oracle C++
10405         Problem reported by Christian Biesinger in:
10406         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10407         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10408         Oracle Developer Studio C++ 12.5 or later.
10410 2019-12-18  Bruno Haible  <bruno@clisp.org>
10412         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10413         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10415 2019-12-18  Bruno Haible  <bruno@clisp.org>
10417         localename: Ensure multithread-safety in future changes.
10418         * lib/localename.c (setlocale): Reference the system's setlocale().
10419         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10420         (gl_locale_name_posix): Likewise.
10421         * modules/localename (Depends-on): Add setlocale-null.
10423 2019-12-18  Bruno Haible  <bruno@clisp.org>
10425         setlocale-null: Make API more useful.
10426         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10427         callers changed.
10428         (setlocale_null): New declaration.
10429         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10430         extracted from setlocale_null_unlocked.
10431         (setlocale_null_unlocked): Invoke it.
10432         (setlocale_null_r): Renamed from setlocale_null.
10433         (setlocale_null): New function, extracted from setlocale_mtsafe in
10434         setlocale.c.
10435         * lib/setlocale.c: Don't include <errno.h>.
10436         (setlocale_mtsafe): Invoke setlocale_null.
10437         * lib/setlocale-lock.c: Update comments.
10438         * doc/posix-functions/setlocale.texi: Mention both functions.
10440 2019-12-18  Bruno Haible  <bruno@clisp.org>
10442         localename: Optimize code for native Windows.
10443         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10444         category (not allowed here).
10446 2019-12-18  Bruno Haible  <bruno@clisp.org>
10448         setlocale: Make calls with NULL argument multithread-safe.
10449         * lib/setlocale.c: Include <errno.h>.
10450         (setlocale_mtsafe): New function.
10451         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10452         (setlocale_improved): Renamed from rpl_setlocale.
10453         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10454         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10455         LIB_SETLOCALE.
10456         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10457         (Link): New section.
10458         * tests/locale.c: Undefine setlocale.
10459         * tests/test-setlocale_null-one.c: Likewise.
10460         * tests/test-setlocale_null-all.c: Likewise.
10461         * modules/setlocale-tests (Makefile.am): Link the test programs with
10462         $(LIB_SETLOCALE).
10463         * modules/astrxfrm-tests (Makefile.am): Likewise.
10464         * modules/btowc-tests (Makefile.am): Likewise.
10465         * modules/c-ctype-tests (Makefile.am): Likewise.
10466         * modules/c-snprintf-tests (Makefile.am): Likewise.
10467         * modules/c-strcase-tests (Makefile.am): Likewise.
10468         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10469         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10470         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10471         * modules/dfa-tests (Makefile.am): Likewise.
10472         * modules/duplocale-tests (Makefile.am): Likewise.
10473         * modules/hard-locale-tests (Makefile.am): Likewise.
10474         * modules/localcharset-tests (Makefile.am): Likewise.
10475         * modules/localename-tests (Makefile.am): Likewise.
10476         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10477         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10478         * modules/mbrtowc-tests (Makefile.am): Likewise.
10479         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10480         * modules/mbscasestr-tests (Makefile.am): Likewise.
10481         * modules/mbschr-tests (Makefile.am): Likewise.
10482         * modules/mbscspn-tests (Makefile.am): Likewise.
10483         * modules/mbsinit-tests (Makefile.am): Likewise.
10484         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10485         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10486         * modules/mbspbrk-tests (Makefile.am): Likewise.
10487         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10488         * modules/mbsrchr-tests (Makefile.am): Likewise.
10489         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10490         * modules/mbsspn-tests (Makefile.am): Likewise.
10491         * modules/mbsstr-tests (Makefile.am): Likewise.
10492         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10493         * modules/quotearg-tests (Makefile.am): Likewise.
10494         * modules/regex-tests (Makefile.am): Likewise.
10495         * modules/strfmon_l-tests (Makefile.am): Likewise.
10496         * modules/strtod-tests (Makefile.am): Likewise.
10497         * modules/strtold-tests (Makefile.am): Likewise.
10498         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10499         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10500         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10501         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10502         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10503         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10504         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10505         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10506         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10507         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10508         * modules/wcrtomb-tests (Makefile.am): Likewise.
10509         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10510         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10511         * modules/wcwidth-tests (Makefile.am): Likewise.
10512         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10513         safety fix is also available in module 'setlocale'.
10515 2019-12-18  Bruno Haible  <bruno@clisp.org>
10517         hard-locale: Make multithread-safe.
10518         * lib/hard-locale.h (hard_locale): Move documentation to here.
10519         * lib/hard-locale.c: Don't include <stdlib.h>.
10520         (GLIBC_VERSION): Remove macro.
10521         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10522         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10523         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10524         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10525         (Link): New section.
10526         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10527         $(LIB_HARD_LOCALE).
10529 2019-12-18  Bruno Haible  <bruno@clisp.org>
10531         hard-locale: Avoid test failure on Haiku.
10532         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10534 2019-12-18  Bruno Haible  <bruno@clisp.org>
10536         setlocale-null: Handle NULL result from setlocale.
10537         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10538         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10539         from setlocale or _wsetlocale.
10541 2019-12-18  Bruno Haible  <bruno@clisp.org>
10543         hard-locale: Add test.
10544         * tests/test-hard-locale.c: New file.
10545         * tests/locale.c: New file.
10546         * modules/hard-locale-tests: New file.
10548 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10550         dfa: do not match invalid UTF-8
10551         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10552         from 5 to 9 tokens; this is needed due to the changes to
10553         add_utf8_anychar.
10554         (charclass_index): 2nd arg is now pointer-to-const.
10555         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10556         instead of allowing overlong encodings or surrogate halves.
10558         dfa: simplify charclass by assuming C99
10559         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10560         (charclass_word): Now always uint_fast64_t.
10561         (CHARCLASS_PAIR): Remove.
10562         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10564         fts: tune via calloc
10565         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10567         dfa: tune via xzalloc
10568         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10570 2019-12-17  Bruno Haible  <bruno@clisp.org>
10572         localcharset: Fix multithread-safety bug on Windows and OS/2.
10573         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10574         invalid.
10575         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10576         assemble the result.
10578 2019-12-17  Bruno Haible  <bruno@clisp.org>
10580         localcharset: Optimize code for native Windows.
10581         * lib/localcharset.c (locale_charset): Don't bother calling
10582         setlocale (LC_ALL, NULL) since we're not interested in its result.
10584 2019-12-17  Bruno Haible  <bruno@clisp.org>
10586         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10587         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10588         setlocale.
10589         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10590         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10591         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10593 2019-12-17  Bruno Haible  <bruno@clisp.org>
10595         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10596         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10597         stack-allocated buffer to assemble each result and different static
10598         buffers to return it.
10599         * tests/test-nl_langinfo-mt.c: New file.
10600         * modules/nl_langinfo-tests (Files): Add it.
10601         (Depends-on): Add thread, nanosleep.
10602         (Makefile.am): Build test-nl_langinfo-mt test.
10604 2019-12-17  Bruno Haible  <bruno@clisp.org>
10606         langinfo: Document more details.
10607         * doc/posix-headers/langinfo.texi: List platform details.
10608         * doc/posix-functions/nl_langinfo.texi: Likewise.
10610 2019-12-17  Bruno Haible  <bruno@clisp.org>
10612         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10613         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10614         and Martin Storsjö <martin@martin.st>
10615         in <https://savannah.gnu.org/bugs/?57406>.
10616         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10617         mingw.
10619 2019-12-17  Bruno Haible  <bruno@clisp.org>
10621         glob: Avoid warning on mingw.
10622         Reported by Christian Biesinger <cbiesinger@google.com> in
10623         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10624         * lib/glob.c (__stat64): Undefine first.
10626 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10628         xalloc: tune xzalloc for fresh allocations
10629         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10630         because when the memory is freshly allocated from the OS via sbrk
10631         or mmap, calloc can avoid doing the memset.
10633         dfa: new function dfacopysyntax
10634         * lib/dfa.c (struct dfa): Move syntax member later so
10635         that dfacopysyntax can easily clear earlier members.
10636         (dfacopysyntax): New function, used by Gawk.
10638 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10640         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10641         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10642         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10643         if not already defined.
10645         dfa: remove one dependency on MB_CUR_MAX
10646         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10648         dfa: remove struct lexer_state.cur_mb_len
10649         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10650         as it’s not needed and the code is simpler without it.
10651         All uses removed.
10653 2019-12-16  Bruno Haible  <bruno@clisp.org>
10655         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10656         Reported by Arnold Robbins <arnold@skeeve.com>.
10657         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10658         copied from lib/glthread/lock.h.
10659         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10660         (setlocale_null_with_lock): If pthread_in_use() is false, use
10661         setlocale_null_unlocked directly.
10662         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10663         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10664         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10665         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10666         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10667         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10669 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10671         dfa: make dfasyntax thread-safe
10672         Problem reported by Bruno Haible in:
10673         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10674         * lib/dfa.c: Do not include locale.h.
10675         (struct dfa): Remove simple_locale member.
10676         All uses replaced by localeinfo.simple.
10677         (using_simple_locale): Remove; now present (with some
10678         changes) in localeinfo.c.
10679         (dfasyntax): No need to initialize removed member.
10681         localeinfo: record whether locale is simple
10682         * lib/localeinfo.c (using_simple_locale): New function,
10683         copied here from lib/dfa.c but with a change: it uses
10684         strcoll for its heuristic, instead of using setlocale.
10685         This lets it be thread-safe.
10686         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10688 2019-12-15  Bruno Haible  <bruno@clisp.org>
10690         duplocale: Fix multithread-safety bug on AIX.
10691         * lib/duplocale.c: Don't include <stdlib.h>.
10692         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10693         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10694         Set LIB_DUPLOCALE.
10695         * modules/duplocale (Depends-on): Add setlocale-null.
10696         (Link): New section.
10697         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10698         $(LIB_DUPLOCALE).
10700 2019-12-15  Bruno Haible  <bruno@clisp.org>
10702         setlocale-null: Add tests.
10703         * tests/test-setlocale_null.c: New file.
10704         * tests/test-setlocale_null-one.c: New file.
10705         * tests/test-setlocale_null-all.c: New file.
10706         * modules/setlocale-null-tests: New file.
10708         setlocale-null: New module.
10709         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10710         setlocale_null): New declarations.
10711         * lib/setlocale_null.c: New file.
10712         * lib/setlocale-lock.c: New file.
10713         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10714         * m4/setlocale_null.m4: New file.
10715         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10716         GNULIB_SETLOCALE_NULL.
10717         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10718         * modules/setlocale-null: New file.
10719         * doc/posix-functions/setlocale.texi: Mention the new module.
10721 2019-12-15  Bruno Haible  <bruno@clisp.org>
10723         lock tests: Skip test when no multithreading is enabled.
10724         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10726 2019-12-14  Bruno Haible  <bruno@clisp.org>
10728         locale, duplocale, localename: Fix last patch.
10729         Reported by Daniel Richard G. in
10730         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10731         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10732         Don't define if locale_t does not exist.
10734 2019-12-13  Bruno Haible  <bruno@clisp.org>
10736         locale, duplocale, localename: Fix errors if locale_t does not exist.
10737         Reported by Daniel Richard G. in
10738         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10739         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10740         macros.
10741         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10742         HAVE_NEWLOCALE.
10743         * tests/test-localename.c: Likewise.
10744         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10745         HAVE_DUPLOCALE.
10746         * tests/test-locale-c++.cc: Likewise.
10748 2019-12-13  Bruno Haible  <bruno@clisp.org>
10750         wcstok: Fix test failure on HP-UX.
10751         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10752         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10754 2019-12-12  Bruno Haible  <bruno@clisp.org>
10756         strtod, strtold tests: Avoid test failure on AIX 7.2.
10757         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10758         '.' both are radix characters.
10759         * tests/test-strtold1.c (main): Likewise.
10761 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10763         dfa: prefer ptrdiff_t for API, too
10764         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10765         but do this only for internal use for now.
10766         * NEWS: Mention the API change.
10767         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10768         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10769         values known to be nonnegative.
10770         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10771         Prefer idx_t or ptrdiff_t to size_t for API.
10772         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10773         Prefer ptrdiff_t to size_t for API.
10775         stdalign: port to xlclang 16.01
10776         Problem reportd by Bruno Haible in:
10777         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10778         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10779         ((__aligned__ (...))) with xlclang, as a top-level
10780         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10781         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10783 2019-12-12  Bruno Haible  <bruno@clisp.org>
10785         duplocale: Fix test failure on AIX 7.2 with xlclang.
10786         * lib/duplocale.c: Include <stdlib.h>.
10787         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10788         value.
10790 2019-12-12  Bruno Haible  <bruno@clisp.org>
10792         stddef: Document the AIX xlc issue.
10793         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10795 2019-12-12  Bruno Haible  <bruno@clisp.org>
10797         duplocale: Don't attempt to override if locale_t does not exist.
10798         Reported by Daniel Richard G. in
10799         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10801         HAVE_DUPLOCALE to 0.
10803 2019-12-12  Bruno Haible  <bruno@clisp.org>
10805         wcwidth: Avoid test failure on AIX 7.2.
10806         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10807         negative.
10808         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10810 2019-12-12  Bruno Haible  <bruno@clisp.org>
10812         ilogbl: Work around Cygwin bug.
10813         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10814         correct.
10815         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10817 2019-12-12  Bruno Haible  <bruno@clisp.org>
10819         strtold: Work around Cygwin bug.
10820         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10821         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10822         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10823         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10824         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10826 2019-12-12  Bruno Haible  <bruno@clisp.org>
10828         strtold: Fix autoconf test.
10829         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10831 2019-12-11  Bruno Haible  <bruno@clisp.org>
10833         fsync tests: Skip test that is known to fail.
10834         * doc/posix-functions/fsync.texi: Update list of platforms.
10835         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10836         that is known to fail on AIX and Cygwin.
10838 2019-12-11  Bruno Haible  <bruno@clisp.org>
10840         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10841         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10842         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10843         HAVE_GETADDRINFO as a C macro.
10844         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10845         declare as replacement functions.
10846         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10847         define as no-op overrides.
10848         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10849         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10850         * modules/getaddrinfo (Depends-on, configure.ac): Test
10851         REPLACE_GETADDRINFO.
10852         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10853         problem.
10854         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10855         convention problems.
10857 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10859         dfa: prefer signed integers for internals
10860         Signed integers can be checked more easily for integer overflow.
10861         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10862         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10863         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10864         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10865         (replace, state_index, epsclosure, charclass_context)
10866         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10867         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10868         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10869         (comsubs, inboth, allocmust):
10870         Prefer a signed to an unsigned integer when calculating indexes,
10871         unless the integer is part of the external API (a bigger deal,
10872         and to be done later).
10874         dfa: fix index overflow
10875         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10876         very large regular expressions.
10878         dfa: update commentary for previous change
10879         * NEWS: Mention the change.
10880         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10882 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10884         dfa: separate parse and compile phase
10885         ‘dfamust’ must be called after parsing and before tokens are
10886         reordered, but both are executed in the compilation phase.
10887         Token reordering was introduced in Gnulib commit
10888         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10889         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10890         * lib/dfa.c (dfaparse): Change it to global function.
10891         (dfacomp): If first argument is NULL, skip parse.
10892         * lib/dfa.h: (dfaparse): Add a prototype.
10894 2019-12-11  Bruno Haible  <bruno@clisp.org>
10896         unistd tests: Fix link error on MSVC.
10897         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10898         $(LIB_GETLOGIN).
10900 2019-12-11  Bruno Haible  <bruno@clisp.org>
10902         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10903         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10904         and POSIX substitutes are supported in C++ mode.
10905         * NEWS: Likewise.
10907 2019-12-11  Bruno Haible  <bruno@clisp.org>
10909         stddef: Fix compilation error in C++ mode on MSVC.
10910         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10911         instead, include <cstddef>.
10913 2019-12-11  Bruno Haible  <bruno@clisp.org>
10915         unistd: Fix compilation error in C++ mode on MSVC.
10916         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10917         does not have <unistd.h>.
10919 2019-12-11  Bruno Haible  <bruno@clisp.org>
10921         locale: Fix compilation error in C++ mode on MSVC.
10922         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10923         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10924         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10925         int_n_sep_by_space): Define as macros on MSVC.
10927 2019-12-11  Bruno Haible  <bruno@clisp.org>
10929         wchar: Fix compilation error in C++ mode on MSVC.
10930         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10932 2019-12-11  Bruno Haible  <bruno@clisp.org>
10934         pthread-thread: Fix compilation error in C++ mode on MSVC.
10935         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10936         _GL_CXXALIAS_RPL invocation.
10938 2019-12-08  Bruno Haible  <bruno@clisp.org>
10940         Fix compilation errors in C++ mode on Haiku.
10941         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10942         non-glibc systems.
10943         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10944         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10945         posix_spawnattr_setschedparam): Likewise.
10946         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10947         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10948         * lib/unistd.in.h (usleep): Likewise.
10950 2019-12-08  Bruno Haible  <bruno@clisp.org>
10952         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10953         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10954         * modules/fseeko (configure.ac-early): Require it instead of
10955         AC_FUNC_FSEEKO.
10956         * modules/ftello (configure.ac-early): Likewise.
10957         * modules/fflush (configure.ac-early): Likewise.
10959 2019-12-08  Bruno Haible  <bruno@clisp.org>
10961         Fix compilation error in C++ mode on HP-UX 11.
10962         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10963         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10965 2019-12-08  Bruno Haible  <bruno@clisp.org>
10967         Fix compilation errors on HP-UX 11/ia64.
10968         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10969         _GL_FUNCDECL_SYS.
10971 2019-12-08  Bruno Haible  <bruno@clisp.org>
10973         Fix compilation error in C++ mode on OpenBSD.
10974         * lib/signal.in.h (signal): Declare on OpenBSD.
10976 2019-12-08  Bruno Haible  <bruno@clisp.org>
10978         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10979         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10980         instead of #error.
10982 2019-12-08  Bruno Haible  <bruno@clisp.org>
10984         Fix compilation errors in C++ mode on FreeBSD.
10985         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10986         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10987         * lib/threads.in.h (thrd_exit): Likewise.
10988         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10990 2019-12-08  Bruno Haible  <bruno@clisp.org>
10992         Fix compilation errors in C++ mode on macOS and FreeBSD.
10993         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10994         or FreeBSD with clang, use the approach without C preprocessor macro.
10996 2019-12-07  Bruno Haible  <bruno@clisp.org>
10998         Fix compilation errors in C++ mode on AIX with xlclang++.
10999         Reported by Christian Biesinger <cbiesinger@google.com> in
11000         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11001         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11003 2019-12-07  Bruno Haible  <bruno@clisp.org>
11005         Document compilation error in C++ mode on NetBSD 8.0.
11006         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11008 2019-12-07  Bruno Haible  <bruno@clisp.org>
11010         Fix compilation errors in C++ mode on Solaris 10.
11011         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11012         to non-empty on Solaris with a non-GCC compiler.
11013         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11015 2019-12-07  Bruno Haible  <bruno@clisp.org>
11017         Reword NEWS entry.
11018         * NEWS: Reword the latest NEWS entry.
11020 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11022         Move xstrtol_fatal to a new xstrtol-error module.
11023         * lib/xstrtol.h: Stop including <getopt.h>.
11024         (xstrtol_fatal): Move ...
11025         * lib/xstrtol-error.h: ... here.  New file.
11026         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11027         * tests/test-xstrtol.c: Likewise.
11028         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11029         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11030         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11031         * modules/xstrtol-error: New file.
11032         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11033         * MODULES.html.sh: Add xstrtol-error.
11034         * NEWS: Document the change.
11036 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11038         nstrftime: better width support for %N, %z
11039         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11040         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11041         a new WIDTH parameter.
11042         (add, add1, cpy): Use these macros.
11043         (width_add): Do not treat digits == 0 as a special case,
11044         do not pad if padding is ‘-’, and do not use a negative width.
11045         (__strftime_internal): Redo formatting of nanoseconds and numeric
11046         timezones to avoid buffer misuse in unusual cases, and so that
11047         widths make more sense.  Add support for widths greater than 9 to
11048         the %N format; they are zero filled on the right.
11049         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11051 2019-12-05  Bruno Haible  <bruno@clisp.org>
11053         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11054         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11055         set REPLACE_ISFINITE to 1.
11056         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11057         REPLACE_ISINF to 1.
11058         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11059         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11060         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11061         * lib/threads.in.h (call_once): Likewise.
11062         * lib/iconv.in.h (iconv): Likewise.
11064 2019-12-05  Bruno Haible  <bruno@clisp.org>
11066         wchar: Add more C++ tests.
11067         Reported by Christian Biesinger <cbiesinger@google.com> in
11068         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11069         * tests/test-wchar-c++3.cc: New file.
11070         * modules/wchar-c++-tests (Files): Add it.
11071         (Makefile.am): Compile it.
11073 2019-12-05  Bruno Haible  <bruno@clisp.org>
11075         Add more C++ tests.
11077         assert-h: Add C++ tests.
11078         * tests/test-assert-h-c++.cc: New file.
11079         * tests/test-assert-h-c++2.cc: New file.
11080         * modules/assert-h-c++-tests: New file.
11081         * modules/assert-h-tests: New file.
11083         ctype: Add C++ tests.
11084         * tests/test-ctype-c++.cc: New file.
11085         * tests/test-ctype-c++2.cc: New file.
11086         * modules/ctype-c++-tests: New file.
11087         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11089         errno: Add C++ tests.
11090         * tests/test-errno-c++.cc: New file.
11091         * tests/test-errno-c++2.cc: New file.
11092         * modules/errno-c++-tests: New file.
11093         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11095         float: Add C++ tests.
11096         * tests/test-float-c++.cc: New file.
11097         * tests/test-float-c++2.cc: New file.
11098         * modules/float-c++-tests: New file.
11099         * modules/float-tests (Depends-on): Add float-c++-tests.
11101         inttypes: Add more C++ tests.
11102         * tests/test-inttypes-c++2.cc: New file.
11103         * modules/inttypes-c++-tests (Files): Add it.
11104         (Makefile.am): Compile it.
11106         limits-h: Add C++ tests.
11107         * tests/test-limits-h-c++.cc: New file.
11108         * tests/test-limits-h-c++2.cc: New file.
11109         * modules/limits-h-c++-tests: New file.
11110         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11112         stdarg: Add C++ tests.
11113         * tests/test-stdarg-c++.cc: New file.
11114         * tests/test-stdarg-c++2.cc: New file.
11115         * modules/stdarg-c++-tests: New file.
11116         * modules/stdarg-tests: New file.
11118         stdbool: Add C++ tests.
11119         * tests/test-stdbool-c++.cc: New file.
11120         * tests/test-stdbool-c++2.cc: New file.
11121         * modules/stdbool-c++-tests: New file.
11122         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11124         stddef: Add C++ tests.
11125         * tests/test-stddef-c++.cc: New file.
11126         * tests/test-stddef-c++2.cc: New file.
11127         * modules/stddef-c++-tests: New file.
11128         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11130         stdint: Add C++ tests.
11131         * tests/test-stdint-c++.cc: New file.
11132         * tests/test-stdint-c++2.cc: New file.
11133         * modules/stdint-c++-tests: New file.
11134         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11136         wchar: Add more C++ tests.
11137         * tests/test-wchar-c++2.cc: New file.
11138         * modules/wchar-c++-tests (Files): Add it.
11139         (Makefile.am): Compile it.
11141         wctype-h: Add more C++ tests.
11142         * tests/test-wctype-h-c++2.cc: New file.
11143         * modules/wctype-h-c++-tests (Files): Add it.
11144         (Makefile.am): Compile it.
11146 2019-12-04  Bruno Haible  <bruno@clisp.org>
11148         Fix compilation errors in C++ mode with xlclang++ on AIX.
11149         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11150         C++ mode on AIX.
11151         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11152         without C preprocessor macro.
11153         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11154         _GL_CXXALIAS_SYS.
11155         * lib/threads.in.h (thrd_exit): Likewise.
11157 2019-12-04  Bruno Haible  <bruno@clisp.org>
11159         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11160         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11161         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11163 2019-12-04  Bruno Haible  <bruno@clisp.org>
11165         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11166         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11167         _GL_CXXALIASWARN invocation on non-glibc systems.
11168         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11169         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11170         iswctype, towlower, towupper): Likewise.
11172 2019-12-03  Bruno Haible  <bruno@clisp.org>
11174         Avoid hassles caused by [[noreturn]] in C++.
11175         Reported by Christian Biesinger <cbiesinger@google.com> in
11176         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11177         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11178         * lib/_Noreturn.h: Likewise.
11180 2019-12-02  Bruno Haible  <bruno@clisp.org>
11182         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11183         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11184         LIBMULTITHREAD.
11185         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11186         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11187         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11188         gl_THREADLIB.
11189         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11191 2019-12-02  Bruno Haible  <bruno@clisp.org>
11193         Fix some more link errors with --enable-threads=isoc.
11194         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11195         * modules/pthread-rwlock (Depends-on): Likewise.
11197 2019-12-02  Bruno Haible  <bruno@clisp.org>
11199         Fix link errors with --enable-threads=posix on AIX.
11200         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11201         program with $(LIBTHREAD).
11202         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11203         program with $(LIBTHREAD).
11205 2019-12-02  Bruno Haible  <bruno@clisp.org>
11207         Fix link errors with --enable-threads=posix on AIX.
11208         * modules/mbrtowc (Link): New section.
11209         * modules/acl (Link): Likewise.
11210         * modules/argmatch (Link): Likewise.
11211         * modules/backup-rename (Link): Likewise.
11212         * modules/backupfile (Link): Likewise.
11213         * modules/closein (Link): Likewise.
11214         * modules/closeout (Link): Likewise.
11215         * modules/copy-file (Link): Likewise.
11216         * modules/csharpcomp (Link): Likewise.
11217         * modules/csharpexec (Link): Likewise.
11218         * modules/dfa (Link): Likewise.
11219         * modules/exclude (Link): Likewise.
11220         * modules/fnmatch (Link): Likewise.
11221         * modules/fnmatch-gnu (Link): Likewise.
11222         * modules/fnmatch-posix (Link): Likewise.
11223         * modules/glob (Link): Likewise.
11224         * modules/human (Link): Likewise.
11225         * modules/javacomp (Link): Likewise.
11226         * modules/javaexec (Link): Likewise.
11227         * modules/javaversion (Link): Likewise.
11228         * modules/mbfile (Link): Likewise.
11229         * modules/mbiter (Link): Likewise.
11230         * modules/mbmemcasecmp (Link): Likewise.
11231         * modules/mbmemcasecoll (Link): Likewise.
11232         * modules/mbrlen (Link): Likewise.
11233         * modules/mbscasecmp (Link): Likewise.
11234         * modules/mbscasestr (Link): Likewise.
11235         * modules/mbschr (Link): Likewise.
11236         * modules/mbscspn (Link): Likewise.
11237         * modules/mbsinit (Link): Likewise.
11238         * modules/mbslen (Link): Likewise.
11239         * modules/mbsncasecmp (Link): Likewise.
11240         * modules/mbsnlen (Link): Likewise.
11241         * modules/mbsnrtowcs (Link): Likewise.
11242         * modules/mbspbrk (Link): Likewise.
11243         * modules/mbspcasecmp (Link): Likewise.
11244         * modules/mbsrchr (Link): Likewise.
11245         * modules/mbsrtowcs (Link): Likewise.
11246         * modules/mbssep (Link): Likewise.
11247         * modules/mbsspn (Link): Likewise.
11248         * modules/mbsstr (Link): Likewise.
11249         * modules/mbstok_r (Link): Likewise.
11250         * modules/mbswidth (Link): Likewise.
11251         * modules/mbuiter (Link): Likewise.
11252         * modules/mkdir-p (Link): Likewise.
11253         * modules/propername (Link): Likewise.
11254         * modules/quote (Link): Likewise.
11255         * modules/quotearg (Link): Likewise.
11256         * modules/quotearg-simple (Link): Likewise.
11257         * modules/regex-quote (Link): Likewise.
11258         * modules/rpmatch (Link): Likewise.
11259         * modules/sh-quote (Link): Likewise.
11260         * modules/system-quote (Link): Likewise.
11261         * modules/trim (Link): Likewise.
11262         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11263         * modules/unistdio/ulc-fprintf (Link): Likewise.
11264         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11265         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11266         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11267         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11268         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11269         * modules/xfreopen (Link): Likewise.
11270         * modules/xmemcoll (Link): Likewise.
11271         * modules/yesno (Link): Likewise.
11272         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11273         * modules/argmatch-tests (Makefile.am): Likewise.
11274         * modules/closein-tests (Makefile.am): Likewise.
11275         * modules/copy-file-tests (Makefile.am): Likewise.
11276         * modules/dfa-tests (Makefile.am): Likewise.
11277         * modules/fnmatch-tests (Makefile.am): Likewise.
11278         * modules/glob-tests (Makefile.am): Likewise.
11279         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11280         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11281         * modules/mbrtowc-tests (Makefile.am): Likewise.
11282         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11283         * modules/mbscasestr-tests (Makefile.am): Likewise.
11284         * modules/mbschr-tests (Makefile.am): Likewise.
11285         * modules/mbscspn-tests (Makefile.am): Likewise.
11286         * modules/mbsinit-tests (Makefile.am): Likewise.
11287         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11288         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11289         * modules/mbspbrk-tests (Makefile.am): Likewise.
11290         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11291         * modules/mbsrchr-tests (Makefile.am): Likewise.
11292         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11293         * modules/mbsspn-tests (Makefile.am): Likewise.
11294         * modules/mbsstr-tests (Makefile.am): Likewise.
11295         * modules/quotearg-tests (Makefile.am): Likewise.
11296         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11297         * modules/readtokens-tests (Makefile.am): Likewise.
11298         * modules/regex-quote-tests (Makefile.am): Likewise.
11299         * modules/sh-quote-tests (Makefile.am): Likewise.
11300         * modules/system-quote-tests (Makefile.am): Likewise.
11301         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11302         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11303         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11304         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11305         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11306         * modules/yesno-tests (Makefile.am): Likewise.
11308 2019-12-02  Bruno Haible  <bruno@clisp.org>
11310         Simplify link sections.
11311         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11312         * modules/lock (Link): Likewise.
11313         * modules/cond (Link): Likewise.
11314         * modules/tls (Link): Likewise.
11315         * modules/yield (Link): Likewise.
11316         * modules/regex (Link): Likewise.
11317         * modules/localename (Link): Likewise.
11318         * modules/unicase/locale-language (Link): Likewise.
11319         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11321 2019-12-02  Bruno Haible  <bruno@clisp.org>
11323         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11324         * tests/test-thread_self.c (main): Disable test on AIX.
11326 2019-12-01  Bruno Haible  <bruno@clisp.org>
11328         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11329         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11330         gl_THREADLIB_EARLY_BODY.
11331         (gl_THREADLIB_EARLY_BODY): Invoke it.
11332         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11333         (gl_THREADLIB_BODY): Invoke it.
11334         (gl_PTHREADLIB): New macro.
11335         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11336         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11337         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11338         * modules/pthread-h (Files): Add threadlib.m4.
11339         (Depends-on): Remove threadlib.
11340         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11341         and _THREAD_SAFE here.
11342         (Link): Use LIBPTHREAD, not LIBTHREAD.
11343         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11344         LIBMULTITHREAD.
11345         * modules/pthread-once (Link): Likewise.
11346         * modules/pthread-mutex (Link): Likewise.
11347         * modules/pthread-rwlock (Link): Likewise.
11348         * modules/pthread-cond (Link): Likewise.
11349         * modules/pthread-tss (Link): Likewise.
11350         * modules/pthread-spin (Link): Likewise.
11351         * modules/pthread (Link): Likewise.
11352         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11353         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11354         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11355         test_pthread_once2_LDADD): Likewise.
11356         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11357         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11358         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11359         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11361 2019-12-01  Bruno Haible  <bruno@clisp.org>
11363         cond: State linking requirements.
11364         * modules/cond (Link): New section.
11366 2019-12-01  Bruno Haible  <bruno@clisp.org>
11368         threadlib: Remove unnecessary file (left over from 2019-07-06).
11369         * modules/threadlib (Files): Remove config.rpath.
11371 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11373         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11374         Reported by Dagobert Michelsen <dam@opencsw.org> in
11375         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11376         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11377         list of strings instead of one string.
11378         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11379         * pygnulib/GLImport.py (execute): Likewise.
11381 2019-11-27  Bruno Haible  <bruno@clisp.org>
11383         openpty, forkpty: Fix build error on Solaris 11.4.
11384         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11385         also in <termios.h>.
11386         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11387         of the function also in <termios.h>.
11388         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11389         * doc/glibc-functions/forkpty.texi: Likewise.
11391 2019-11-27  Bruno Haible  <bruno@clisp.org>
11393         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11394         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11395         --enable-threads=isoc and --enable-threads=isoc+posix.
11396         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11397         When both the ISO C and the POSIX threads API are available, choose
11398         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11399         --enable-threads=isoc+posix was specified. When only the ISO C threads
11400         API is available and --enable-threads=iso was specified, choose
11401         USE_ISOC_THREADS.
11402         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11403         USE_ISOC_AND_POSIX_THREADS.
11404         * lib/glthread/lock.c: Likewise.
11405         * lib/glthread/cond.h: Likewise.
11406         * lib/glthread/cond.c: Likewise.
11407         * lib/glthread/tls.h: Likewise.
11408         * lib/glthread/tls.c: Likewise.
11409         * lib/glthread/yield.h: Likewise.
11410         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11411         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11412         * lib/glthread/thread.c: Likewise.
11413         * lib/glthread/threadlib.c: Likewise.
11414         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11415         USE_ISOC_AND_POSIX_THREADS.
11416         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11417         USE_ISOC_AND_POSIX_THREADS.
11418         * tests/test-tls.c: Likewise.
11419         * tests/test-thread_create.c (main): Likewise.
11420         * tests/test-pthread-cond.c: Likewise.
11421         * tests/test-pthread-mutex.c: Likewise.
11422         * tests/test-pthread-once2.c: Likewise.
11423         * tests/test-pthread-rwlock.c: Likewise.
11424         * tests/test-pthread-tss.c: Likewise.
11425         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11426         USE_POSIX_THREADS.
11428 2019-11-24  Bruno Haible  <bruno@clisp.org>
11430         mbrtowc: Modernize autoconf test.
11431         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11432         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11433         try a UTF-8 locale.
11434         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11436 2019-11-24  Bruno Haible  <bruno@clisp.org>
11438         Fix errors in C++ mode on mingw.
11439         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11440         instead of _GL_CXXALIAS_SYS.
11441         * lib/signal.in.h (pthread_sigmask): Likewise.
11442         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11443         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11444         Likewise.
11445         * lib/wchar.in.h (btowc): Likewise.
11447 2019-11-24  Bruno Haible  <bruno@clisp.org>
11449         sys_time: Fix errors in C++ mode on mingw.
11450         * lib/sys_time.in.h (timeval): Restore the redirection
11451         '#define timeval rpl_timeval', for when the symbol timeval is being used
11452         outside the 'gnulib' namespace.
11453         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11454         'struct timeval'.
11456 2019-11-24  Bruno Haible  <bruno@clisp.org>
11458         iswctype: Fix errors in C++ mode on mingw.
11459         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11460         is 1.
11461         * lib/iswctype.c (iswctype): Add another implementation, for the
11462         GNULIB_defined_wint_t case.
11463         * modules/iswctype (configure.ac): Compile iswctype.c also if
11464         GNULIB_OVERRIDES_WINT_T is 1.
11466 2019-11-24  Bruno Haible  <bruno@clisp.org>
11468         windows-timedmutex: Fix errors in C++ mode on mingw.
11469         * lib/windows-timedmutex.h: Add closing brace.
11471 2019-11-24  Bruno Haible  <bruno@clisp.org>
11473         Fix errors in C++ mode on Cygwin.
11474         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11475         _GL_CXXALIAS_SYS.
11477 2019-11-24  Bruno Haible  <bruno@clisp.org>
11479         time_r: Fix for mingw (regression from 2019-11-16).
11480         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11481         AC_LINK_IFELSE test only if the function does not appear to exist.
11483 2019-11-24  Bruno Haible  <bruno@clisp.org>
11485         wcstok: Add tests.
11486         * tests/test-wcstok.c: New file.
11487         * modules/wcstok-tests: New file.
11489 2019-11-24  Bruno Haible  <bruno@clisp.org>
11491         wcstok: Work around wrong signature on native Windows.
11492         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11493         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11494         REPLACE_WCSTOK.
11495         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11496         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11497         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11498         * doc/posix-functions/wcstok.texi: Mention the problem.
11500 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11502         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11503         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11504         remove workaround for GCC bug 91450 as the bug should be fixed
11505         there too.
11507 2019-11-21  Bruno Haible  <bruno@clisp.org>
11509         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11510         Reported by Christian Biesinger <cbiesinger@google.com> in
11511         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11512         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11513         non-glibc systems.
11514         * lib/locale.in.h (localeconv, setlocale): Likewise.
11515         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11516         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11517         rint, round, trunc): Likewise.
11518         * lib/monetary.in.h (strfmon_l): Likewise.
11519         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11520         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11521         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11522         pthread_spin_destroy): Likewise.
11523         * lib/signal.in.h (raise, signal): Likewise.
11524         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11525         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11526         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11527         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11528         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11529         Likewise.
11530         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11531         Likewise.
11532         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11533         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11534         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11535         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11536         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11537         wcsftime): Likewise.
11538         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11540 2019-11-21  Bruno Haible  <bruno@clisp.org>
11542         Fix various errors in _GL_CXXALIAS_SYS invocations.
11543         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11544         _GL_CXXALIAS_SYS.
11545         * lib/pthread.in.h (pthread_mutexattr_gettype,
11546         pthread_mutexattr_getrobust): Likewise.
11547         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11548         * lib/sys_socket.in.h (recv, send): Likewise.
11549         * lib/unistd.in.h (getdtablesize): Likewise.
11550         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11551         'struct timeval'.
11553 2019-11-21  Bruno Haible  <bruno@clisp.org>
11555         math tests: Update after 2019-08-28 change.
11556         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11557         return type of 'bool', not 'int'.
11559 2019-11-21  Bruno Haible  <bruno@clisp.org>
11561         pthread-spin: Fix errors in C++ mode.
11562         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11563         functions as nonexistent when <pthread.h> exists but does not define
11564         the pthread_spinlock_t type.
11566 2019-11-21  Bruno Haible  <bruno@clisp.org>
11568         pthread-mutex: Fix errors in C++ mode.
11569         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11570         pthread_mutexattr_getrobust exists. If not, define
11571         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11572         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11573         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11574         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11575         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11576         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11577         definition.
11579 2019-11-19  Bruno Haible  <bruno@clisp.org>
11581         threads-h tests: Fix typo.
11582         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11584 2019-11-19  Bruno Haible  <bruno@clisp.org>
11586         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11587         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11588         to 'const pthread_attr_t *'.
11589         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11590         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11592 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11594         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11595         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11596         work around GCC bug 91450 as the bug should be fixed there.
11598 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11600         glob: get closer to glibc glob.c
11601         Omit differences from glibc when the differences don’t matter.
11602         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11603         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11604         (glob_lstat): New function.
11605         (glob_in_dir): Use it.
11606         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11607         Use changed.
11609 2019-11-18  Bruno Haible  <bruno@clisp.org>
11611         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11612         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11613         UINTPTR_MAX): Consider _WIN64.
11614         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11615         a pointer.
11617 2019-11-18  Bruno Haible  <bruno@clisp.org>
11619         stdint: Fix value of WINT_MAX when we override wint_t.
11620         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11621         when GNULIB_OVERRIDES_WINT_T is 1.
11623 2019-11-18  Bruno Haible  <bruno@clisp.org>
11625         vcs-to-changelog: New module.
11626         * modules/vcs-to-changelog: New file.
11627         * MODULES.html.sh (func_all_modules): Add it.
11629 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11631         vcs-to-changelog: New script to generate ChangeLog-like output.
11632         Discussion:
11633         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11634         * build-aux/vcs_to_changelog.py: New file.
11635         * build-aux/vcstocl/frontend_c.py: New file.
11636         * build-aux/vcstocl/misc_util.py: New file.
11637         * build-aux/vcstocl/vcs_git.py: New file.
11639 2019-11-18  Bruno Haible  <bruno@clisp.org>
11641         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11642         Reported by Keith Marshall <keith@users.osdn.me> in
11643         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11644         and <https://osdn.net/projects/mingw/ticket/39677>.
11645         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11646         already been defined by mingw's <crtdefs.h>.
11648 2019-11-18  Bruno Haible  <bruno@clisp.org>
11650         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11651         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11652         conditionally enabled.
11654 2019-11-18  Bruno Haible  <bruno@clisp.org>
11656         gc: Mirror libgcrypt.m4 from libgcrypt.
11657         * config/srclistvars.sh (LIBGCRYPT): New variable.
11658         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11660 2019-11-17  Bruno Haible  <bruno@clisp.org>
11662         locale, localename: Improve z/OS support.
11663         Reported by Daniel Richard G. in
11664         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11665         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11666         gl_LOCALE_H.
11667         (gl_LOCALE_H): Require it.
11668         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11669         defined, don't even check for newlocale, duplocale, freelocale.
11670         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11671         locale_t is not defined.
11673 2019-11-17  Bruno Haible  <bruno@clisp.org>
11675         havelib: Make libdirstems processing more flexible.
11676         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11677         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11678         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11679         patch from 2017-02-19).
11680         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11681         libdirs, even when the first one exists as a directory.
11683 2019-11-17  Bruno Haible  <bruno@clisp.org>
11685         havelib: Match the bitness when searching for libraries.
11686         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11687         acl_is_expected_elfclass.
11688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11689         file exists, in ELF, also test whether it has the ELF class that
11690         corresponds to the host's bitness.
11692 2019-11-17  Bruno Haible  <bruno@clisp.org>
11694         host-cpu-c-abi: Add support for unknown CPUs.
11695         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11696         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11697         32-bit or 64-bit.
11699 2019-11-17  Bruno Haible  <bruno@clisp.org>
11701         havelib: Remove redundant code.
11702         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11703         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11705 2019-11-17  Bruno Haible  <bruno@clisp.org>
11707         havelib: Fix a bug in dependency processing.
11708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11709         of .la files, don't overwrite the value of additional_libdir for the
11710         next rounds.
11712 2019-11-16  Bruno Haible  <bruno@clisp.org>
11714         wctype-h: When overriding wint_t, override also the related functions.
11715         Reported by Christian Biesinger <cbiesinger@google.com> in
11716         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11717         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11718         REPLACE_ISWCNTRL to 1.
11719         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11720         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11721         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11722         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11723         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11724         on mingw.
11725         * doc/posix-headers/wctype.texi: Likewise.
11727 2019-11-16  Bruno Haible  <bruno@clisp.org>
11729         time_r: Fix for mingw.
11730         Reported by Christian Biesinger <cbiesinger@google.com> in
11731         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11732         * lib/time.in.h: On mingw, include <unistd.h>.
11733         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11734         <time.h>. Test for localtime_r in a way that works when it is defined
11735         as an inline function.
11737 2019-11-13  Bruno Haible  <bruno@clisp.org>
11739         havelib: Revert last change.
11740         * build-aux/config.rpath: Revert last change. We can add msys2 support
11741         when it has been added to libtool.m4 upstream.
11743 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11745         config: add msys support
11746         Requested by Arnold Robbins in:
11747         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11748         He also requested a change to config.guess, which I’ll forward
11749         upstream.
11750         * build-aux/ar-lib (func_file_conv):
11751         * build-aux/compile (func_file_conv):
11752         * build-aux/config.rpath (wl, with_gnu_ld)
11753         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11754         Treat msys like cygwin.
11756 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11758         regex: now back in sync with glibc
11759         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11760         regexec.c got merged into glibc and are now copies again.
11762 2019-10-27  Bruno Haible  <bruno@clisp.org>
11764         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11765         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11766         statement.
11767         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11768         32-bit CPUs.
11770 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11772         timespec-add, timespec-sub: simplify
11773         * lib/timespec-add.c (timespec_add):
11774         * lib/timespec-sub.c (timespec_sub):
11775         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11776         work on unsigned integers.
11778 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11780         nstrftime: speed up integer overflow checking
11781         * lib/nstrftime.c: Include intprops.h.
11782         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11783         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11784         instead of doing it by hand.
11785         * modules/nstrftime (Depends-on): Add intprops.
11787         Port better to GCC under macOS
11788         Work around macOS header that has ‘#define __has_builtin(x) 0’
11789         when compiled by GCC.  Apple really, really doesn’t want you to
11790         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11791         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11792         The fix is to not trust __has_builtin when being compiled by
11793         recent-enough GCC.
11794         * lib/intprops.h (__has_builtin)
11795         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11796         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11797         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11798         Remove.  All uses removed.
11799         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11800         directly, if defined and if not newer GCC.
11801         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11802         New macro, that use __has_builtin directly, if defined and if
11803         not newer GCC.
11804         (assume): Use them.
11806 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11808         maintainer-makefile: update rule for argmatch.
11809         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11811 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11813         bitset: let freeing functions accept NULL.
11814         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11815         given NULL.
11816         * lib/bitset.h: Document that.
11817         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11819 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11821         inttypes: use more-robust test for int range
11822         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11823         Problem reported by Dagobert Michelsen in:
11824         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11825         * lib/inttypes.in.h: Rely only on limits.h when checking
11826         int range.
11828 2019-10-15  Bruno Haible  <bruno@clisp.org>
11830         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11831         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11832         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11833         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11834         term_ostream_set_hyperlink): New functions.
11835         (term_styled_ostream_get_hyperlink_ref,
11836         term_styled_ostream_get_hyperlink_id,
11837         term_styled_ostream_set_hyperlink): New function aliases.
11839 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11841         update-copyright: use en dashes in .texi ranges
11842         * build-aux/update-copyright: Match year ranges like "1998--2019",
11843         which are used in the Autoconf manual.  Also, update ranges in
11844         .tex, .texi, and .texinfo files to use en dashes instead of
11845         hyphens.
11847 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11849         * config/srclist.txt: Remove posix/regex_internal.c for now.
11851 2019-10-13  Bruno Haible  <bruno@clisp.org>
11853         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11854         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11855         contents to the empty string.
11857 2019-10-12  Bruno Haible  <bruno@clisp.org>
11859         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11860         * tests/test-intprops.c (main): Disable two more tests when using
11861         HP-UX cc.
11863 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11865         Simplify and regularize regex use of ‘assert’
11866         Also, tell GCC about the asserts even when compiling without
11867         debugging, to give it further optimization opportunities.
11868         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11869         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11870         (parse_expression, parse_bracket_exp):
11871         * lib/regex_internal.c (build_wcs_buffer)
11872         (build_wcs_upper_buffer, re_string_reconstruct)
11873         (re_string_context_at):
11874         * lib/regexec.c (re_search_stub, re_copy_regs)
11875         (re_search_internal, prune_impossible_nodes, check_matching)
11876         (check_halt_state_context, set_regs, sift_states_backward)
11877         (build_sifted_states, transit_state_mb, transit_state_bkref)
11878         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11879         (match_ctx_add_subtop):
11880         Use it instead of plain ‘assert’.
11882 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11884         regex: omit debug assignment when not debugging
11885         * lib/regexec.c (re_search_internal) [!DEBUG]:
11886         Remove unnecessary assignment.
11888         regex: tell compiler there’s at most 256 arcs out
11889         Partly this is to help the reader (and maybe help GCC);
11890         partly this is to pacify Coverity.
11891         * lib/regex_internal.h: Include verify.h.
11892         * lib/regexec.c (group_nodes_into_DFAstates):
11893         Tell the compiler that ndests cannot exceed SBC_MAX.
11894         * modules/regex (Depends-on): Add ‘verify’.
11896         regex: simplify by assuming C99
11897         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11898         temporarily.
11899         * lib/regex_internal.h (lock_define, re_match_context_t):
11900         Simplify by assuming C99 macros and const.
11901         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11902         initializers.  Remove unnecessary assignment, as mctx is now
11903         safely initialized earlier.
11905         regex: avoid copying of uninitialized storage
11906         * config/srclist.txt: Comment out regcomp.c temporarily.
11907         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11908         Initialize even when not checking for lint, as the behavior is
11909         arguably undefined otherwise and Coverity warns about it.
11911 2019-10-06  Bruno Haible  <bruno@clisp.org>
11913         access tests: Fix test failure when run as root.
11914         * tests/test-access.c: Include root-uid.h.
11915         (geteuid): Define fallback.
11916         (main): Don't expect that writing to a read-only file would fail when
11917         running as root. Also, remove the created files at the end.
11918         * modules/access-tests (Depends-on): Add root-uid.
11919         (configure.ac): Test whether geteuid exists.
11921 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11923         users.txt: add GNU nano
11924         Nano has been making use of gnulib since March 2017, version 2.8.0.
11926 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11928         bootstrap: simplify debugging of wget failures
11929         Problem reported by Tim Rühsen in:
11930         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11931         * build-aux/bootstrap (po_download_command_format):
11932         Invoke wget with -nv instead of -q, to make debugging easier.
11934 2019-09-29  Bruno Haible  <bruno@clisp.org>
11936         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11937         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11938         'const' attribute.
11940 2019-09-29  Bruno Haible  <bruno@clisp.org>
11942         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11943         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11945 2019-09-28  Bruno Haible  <bruno@clisp.org>
11947         Update comments that refer to POSIX.
11948         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11949         sentence about trailing slashes.
11950         * lib/fflush.c: Clarify the reasoning.
11951         * tests/test-fflush2.c: Cite the relevant sentence.
11953 2019-09-28  Bruno Haible  <bruno@clisp.org>
11955         access: Document limitations on Windows.
11956         Suggested by Zaretskii <eliz@gnu.org>.
11957         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11959 2019-09-28  Bruno Haible  <bruno@clisp.org>
11961         findprog-in: Fix comment.
11962         Reported by Eli Zaretskii <eliz@gnu.org>.
11963         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11964         condition.
11965         * lib/stat.c (rpl_stat): Fix typo in comment.
11966         * lib/utime.c (_gl_utimens_windows): Likewise.
11968 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11970         Update URLs and associated text
11971         (Thanks to Bruno Haible for proofreading this patch.)
11972         Prefer https: to http: in URLs where either will do, for the usual
11973         security reasons.  I also updated broken and/or moved URLs
11974         discovered during the process. In a few places I had to resort to
11975         archive.org, since I didn't find the originals elsewhere.
11977 2019-09-15  Paul Smith  <psmith@gnu.org>
11978             Bruno Haible  <bruno@clisp.org>
11980         findprog-in: Set errno when the search fails.
11981         * lib/findprog-in.c: Include <errno.h>.
11982         (find_in_given_path): Set errno before returning NULL.
11983         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11984         Define the term "slash".
11986 2019-09-15  Bruno Haible  <bruno@clisp.org>
11988         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11989         * modules/findprog (Depends-on): Add access.
11990         * modules/findprog-lgpl (Depends-on): Likewise.
11991         * modules/findprog-in (Depends-on): Likewise.
11993 2019-09-15  Bruno Haible  <bruno@clisp.org>
11995         access: Add tests.
11996         * tests/test-access.c: New file.
11997         * modules/access-tests: New file.
11999         access: New module.
12000         * lib/unistd.in.h (access): New declaration.
12001         * lib/access.c: New file.
12002         * m4/access.m4: New file.
12003         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12004         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12005         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12006         REPLACE_ACCESS.
12007         * modules/access: New file.
12008         * tests/test-unistd-c++.cc (access): Check signature.
12009         * doc/posix-functions/access.texi: Mention the new module.
12011 2019-09-15  Bruno Haible  <bruno@clisp.org>
12013         fcntl-h: Fix compilation error of creat.c on MSVC.
12014         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12015         defined.
12017 2019-09-15  Bruno Haible  <bruno@clisp.org>
12019         creat: Add tests.
12020         * tests/test-creat.c: New file, based on tests/test-open.h.
12021         * modules/creat-tests: New file.
12023         creat: New module.
12024         * lib/fcntl.in.h (creat): New declaration.
12025         * lib/creat.c: New file, based on lib/open.c.
12026         * m4/creat.m4: New file.
12027         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12028         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12029         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12030         * modules/open (Files): Add m4/open-slash.m4.
12031         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12032         REPLACE_CREAT.
12033         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12034         * modules/creat: New file.
12035         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12036         * doc/posix-functions/creat.texi: Mention the new module.
12038 2019-09-15  Bruno Haible  <bruno@clisp.org>
12040         open tests: Enhance test.
12041         * tests/test-open.h (test_open): Test the creation of an executable
12042         regular file. Also improve initial cleanup.
12044 2019-09-15  Bruno Haible  <bruno@clisp.org>
12046         intprops tests: Avoid build failure with HP-UX cc.
12047         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12048         "error 4018: Macro param too large after substitution - use -H option.".
12050 2019-09-14  Bruno Haible  <bruno@clisp.org>
12052         Make autoconf tests work with -Werror=implicit-function-declaration.
12053         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12054         towupper() declaration.
12055         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12056         declaration.
12058 2019-09-14  Bruno Haible  <bruno@clisp.org>
12060         findprog-in: Better mimic the system on native Windows.
12061         Reported by Paul Smith <psmith@gnu.org>.
12062         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12063         non-empty suffixes when the file name already contains a '.'.
12065 2019-09-10  Bruno Haible  <bruno@clisp.org>
12067         wctob: Fix autoconf test.
12068         Based on patch by Florian Weimer <fweimer@redhat.com>.
12069         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12071 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12073         xhash: provide hash_xinitialize.
12074         Suggested by Egor Pugin <egor.pugin@gmail.com>
12075         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12076         * modules/xhash, lib/xhash.c: New.
12077         * lib/hash.h (hash_xinitialize): New.
12079 2019-09-09  Bruno Haible  <bruno@clisp.org>
12081         findprog-in: Make exec optimization optional.
12082         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12083         (find_in_given_path): Add optimize_for_exec parameter.
12084         * lib/findprog-in.c (find_in_given_path): Likewise.
12086 2019-09-08  Bruno Haible  <bruno@clisp.org>
12088         Add option to assume the best, not the worst, when cross-compiling.
12089         Suggested by Jonas Termansen <sortie@maxsi.org>.
12090         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12091         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12092         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12093         lt_cv_sys_argz_works.
12094         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12095         ac_cv_func_calloc_0_nonnull.
12096         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12097         --enable-cross-guesses for gl_cv_func_realpath_works.
12098         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12099         gl_cv_func_cbrtl_ieee.
12100         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12101         gl_cv_func_ceil_ieee.
12102         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12103         gl_cv_func_ceilf_ieee.
12104         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12105         gl_cv_func_ceill_ieee.
12106         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12107         ac_cv_func_chown_works.
12108         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12109         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12110         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12111         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12112         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12113         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12114         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12115         gl_cv_func_expl_works.
12116         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12117         gl_cv_func_expm1_ieee.
12118         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12119         gl_cv_func_expm1l_works.
12120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12121         gl_cv_func_open_directory_works.
12122         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12123         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12124         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12125         gl_cv_func_fchownat_empty_filename_works.
12126         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12127         gl_cv_func_fdopendir_works.
12128         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12129         gl_cv_func_floor_ieee.
12130         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12131         gl_cv_func_floorf_ieee.
12132         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12133         gl_cv_func_fma_works.
12134         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12135         gl_cv_func_fmaf_works.
12136         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12137         gl_cv_func_fmal_works.
12138         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12139         gl_cv_func_fmod_ieee.
12140         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12141         gl_cv_func_fmodf_ieee.
12142         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12143         gl_cv_func_fmodl_ieee.
12144         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12145         gl_cv_func_fpurge_works.
12146         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12147         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12148         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12149         gl_cv_func_getcwd_null.
12150         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12152         gl_cv_func_working_getdelim.
12153         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12154         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12155         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12156         gl_cv_func_getgroups_works.
12157         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12158         am_cv_func_working_getline.
12159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12160         for gl_cv_func_getopt_gnu.
12161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12162         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12163         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12164         gl_cv_func_hypot_ieee.
12165         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12166         gl_cv_func_hypotf_ieee.
12167         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12168         gl_cv_func_hypotl_ieee.
12169         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12170         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12171         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12172         gl_cv_func_link_works.
12173         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12174         gl_cv_func_linkat_slash.
12175         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12176         gl_cv_func_log_ieee.
12177         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12178         gl_cv_func_logf_ieee.
12179         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12180         gl_cv_func_logl_works.
12181         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12182         gl_cv_func_log10_ieee.
12183         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12184         gl_cv_func_log10f_ieee.
12185         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12186         gl_cv_func_log10l_works.
12187         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12188         gl_cv_func_log1p_ieee.
12189         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12190         gl_cv_func_log1pf_ieee.
12191         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12192         gl_cv_func_log1pl_ieee.
12193         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12194         gl_cv_func_log2_ieee.
12195         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12196         gl_cv_func_log2f_ieee.
12197         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12198         --enable-cross-guesses for
12199         gl_cv_func_lstat_dereferences_slashed_symlink.
12200         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12201         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12202         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12203         gl_cv_C_locale_sans_EILSEQ.
12204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12205         gl_cv_func_memchr_works.
12206         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12207         gl_cv_func_memmem_works_always.
12208         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12209         gl_cv_func_memmem_works_fast.
12210         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12211         gl_cv_func_mkdir_trailing_slash_works,
12212         gl_cv_func_mkdir_trailing_dot_works.
12213         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12214         gl_cv_func_mkfifo_works.
12215         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12216         gl_cv_func_mknod_works.
12217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12218         gl_cv_func_working_mkstemp.
12219         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12220         gl_cv_func_working_mktime.
12221         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12222         gl_cv_func_modf_ieee.
12223         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12224         gl_cv_func_modff_ieee.
12225         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12226         gl_cv_func_modfl_ieee.
12227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12228         gl_cv_func_nanosleep.
12229         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12230         gl_cv_func_perror_works.
12231         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12232         gl_cv_func_printf_sizes_c99.
12233         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12234         gl_cv_func_printf_infinite.
12235         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12236         gl_cv_func_printf_infinite_long_double.
12237         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12238         gl_cv_func_printf_directive_a.
12239         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12240         gl_cv_func_printf_directive_f.
12241         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12242         gl_cv_func_printf_flag_zero.
12243         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12244         gl_cv_func_printf_enomem.
12245         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12246         gl_cv_func_snprintf_truncation_c99.
12247         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12248         gl_cv_func_snprintf_retval_c99.
12249         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12250         gl_cv_func_snprintf_directive_n.
12251         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12252         gl_cv_func_vsnprintf_zerosize_c99.
12253         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12254         gl_cv_func_pselect_detects_ebadf.
12255         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12256         Obey --enable-cross-guesses for
12257         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12258         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12259         gl_cv_func_ptsname_sets_errno.
12260         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12261         gl_cv_func_svid_putenv.
12262         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12263         gl_cv_func_readlink_works.
12264         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12265         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12266         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12267         gl_cv_func_re_compile_pattern_working.
12268         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12269         gl_cv_func_remainder_ieee.
12270         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12271         gl_cv_func_remainderf_ieee.
12272         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12273         gl_cv_func_remainderl_ieee.
12274         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12275         gl_cv_func_rintl_works.
12276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12277         gl_cv_func_rmdir_works.
12278         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12279         gl_cv_func_round_ieee.
12280         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12281         gl_cv_func_roundf_ieee.
12282         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12283         gl_cv_func_roundl_ieee.
12284         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12285         gl_cv_func_select_detects_ebadf.
12286         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12287         gl_cv_func_setenv_works.
12288         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12289         gl_cv_func_unsetenv_works.
12290         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12291         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12292         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12293         gl_cv_func_sleep_works.
12294         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12295         gl_cv_func_stat_file_slash.
12296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12297         gl_cv_func_stpncpy.
12298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12299         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12300         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12301         gl_cv_func_strcasestr_linear.
12302         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12303         gl_cv_func_working_strerror.
12304         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12305         gl_cv_func_strerror_0_works.
12306         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12307         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12308         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12309         gl_cv_func_strstr_works_always.
12310         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12311         gl_cv_func_strstr_linear.
12312         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12313         gl_cv_func_strtod_works.
12314         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12315         gl_cv_func_strtold_works.
12316         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12317         gl_cv_func_symlink_works.
12318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12319         gl_cv_func_symlinkat_works.
12320         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12321         gl_cv_func_trunc_ieee.
12322         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12323         gl_cv_func_truncf_ieee.
12324         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12325         gl_cv_func_truncl_ieee.
12326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12327         gl_cv_func_tzset_clobber.
12328         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12329         gl_cv_func_ungetc_works.
12330         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12331         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12332         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12333         gl_cv_func_usleep_works.
12334         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12335         gl_cv_func_futimesat_works.
12336         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12337         gl_cv_func_working_utimes.
12338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12339         gl_cv_func_wcwidth_works.
12340         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12341         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12342         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12343         links for testing. Obey --enable-cross-guesses for
12344         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12345         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12347 2019-09-08  Bruno Haible  <bruno@clisp.org>
12349         Clarify that cross-compilation guesses are guesses.
12350         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12351         cross-compiling.
12353 2019-09-08  Bruno Haible  <bruno@clisp.org>
12355         chown: Fix configure output (regression from 2019-03-23).
12356         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12357         gl_cv_func_chown_follows_symlink variable.
12359 2019-09-08  Bruno Haible  <bruno@clisp.org>
12361         findprog-in: New module.
12362         Suggested by Paul Smith <psmith@gnu.org>.
12363         * lib/findprog.h (find_in_given_path): New declaration.
12364         * lib/findprog-in.c: New file, based on lib/findprog.c.
12365         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12366         * modules/findprog-in: New file.
12368 2019-09-08  Bruno Haible  <bruno@clisp.org>
12370         findprog: Remove unused dependency.
12371         * modules/findprog (Depends-on): Remove strdup.
12373 2019-09-08  Bruno Haible  <bruno@clisp.org>
12375         findprog: Remove test that is obsolete since 2006-04-24.
12376         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12378 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12380         bitset: style changes
12381         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12382         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12383         xzalloc to xcalloc.
12384         Suggested by Paul Eggert.
12386 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12388         bitset: check memory allocation
12389         Reported by 江 祖铭 (Zu-Ming Jiang).
12390         With help from Paul Eggert.
12391         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12392         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12393         instead of realloc.
12394         When shrinking, accept failures.
12395         * lib/bitset/vector.c (vbitset_resize): Likewise.
12397 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12399         scratch_buffer: sync from glibc
12400         * config/srclist.txt: Add the scratch_buffer source
12401         code from glibc, since these should be in sync.
12402         Autoupdate.
12404 2019-09-07  Bruno Haible  <bruno@clisp.org>
12406         doc: Update for glibc 2.30.
12407         * doc/glibc-functions/gettid.texi: New file.
12408         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12409         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12410         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12411         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12412         * doc/glibc-functions/sem_clockwait.texi: New file.
12413         * doc/glibc-functions/tgkill.texi: New file.
12414         * doc/glibc-functions/twalk_r.texi: New file.
12415         * doc/gnulib.texi: Include them.
12416         (Glibc semaphore.h): New section.
12417         * doc/pastposix-functions/h_errno.texi: Update.
12418         * doc/posix-functions/*.texi: Likewise.
12420 2019-09-06  Bruno Haible  <bruno@clisp.org>
12422         symlink tests: Avoid test failure on Linux with Lustre file system.
12423         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12424         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12425         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12427 2019-09-01  Bruno Haible  <bruno@clisp.org>
12429         gitsub.sh: Add support for shallow-cloning of subdirectories.
12430         * top/gitsub.sh (func_usage): Document allowed git options with
12431         'git pull'.
12432         (func_pull): Accept GIT_OPTIONS argument.
12433         (pull): Parse git options before complaining about too many arguments.
12434         Pass the git options to func_pull.
12436 2019-08-29  Bruno Haible  <bruno@clisp.org>
12438         lock: Fix cross-compilation guesses.
12439         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12440         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12441         platforms.
12443 2019-08-28  Bruno Haible  <bruno@clisp.org>
12445         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12446         Reported by Martin Storsjö <martin@martin.st> in
12447         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12448         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12449         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12450         files from GCC 6 or newer, use an override through '#define', because
12451         the inline definitions in the platform's <cmath> cannot be overridden
12452         in another way.
12454 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12456         Revert macOS INT_MULTIPLY_WRAPV patch
12457         Problem reported by Bruno Haible in:
12458         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12459         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12460         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12461         Go back to working around the Clang bug on macOS.
12463 2019-08-27  Bruno Haible  <bruno@clisp.org>
12465         libtool-next-version: Fix error output.
12466         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12467         name.
12469 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12471         Speed up INT_MULTIPLY_WRAPV on macOS
12472         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12473         Mattias Engdegård says it’s safe to assume the relevant library
12474         is always available there.
12475         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12476         New temporary internal macro.
12477         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12478         No need to work around the Clang bug on macOS.
12480 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12482         intprops.h, verify.h: port better to clang
12483         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12484         with Clang.  Problem reported privately by Mattias Engdegård.
12485         Also, insulate intprops.h and verify.h better against each other’s
12486         definitions of __has_builtin on non-Clang hosts.
12487         * lib/intprops.h (__has_builtin): Define a temporary substitute
12488         if __has_builtin is not already defined.
12489         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12490         New temporary internal macros.
12491         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12492         Now two separate macros, replacing the old
12493         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12494         __builtin_mul_overflow is like the rest.  All uses changed.
12495         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12496         Adjust to above changes.
12497         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12498         longer relevant.  All uses changed.
12499         * lib/verify.h (__has_builtin): Treat like intprops.h,
12500         so that the two .h files do not collide with each other.
12501         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12502         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12504 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12506         intprops: say why not Clang __builtin_add_overflow
12507         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12508         Mention Clang in comment, responding to a query from
12509         Mattias Engdegård.
12511 2019-08-24  Bruno Haible  <bruno@clisp.org>
12513         doc: Document most of the files outside of modules.
12514         * doc/gnulib.texi (Build Infrastructure Files,
12515         Release Management Files): New chapters.
12517 2019-08-24  Bruno Haible  <bruno@clisp.org>
12519         bootstrap: Keep in sync with the 'gettext' module.
12520         Reported by Assaf Gordon in
12521         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12522         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12523         * build-aux/po/remove-potcdate.sin: Likewise.
12525 2019-08-24  Bruno Haible  <bruno@clisp.org>
12527         crypto/gc-sha512: Add tests.
12528         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12529         * modules/crypto/gc-sha512-tests: New file.
12531         crypto/gc-sha256: Add tests.
12532         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12533         * modules/crypto/gc-sha256-tests: New file.
12535         crypto/gc-sha256, crypto/gc-sha512: New modules.
12536         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12537         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12538         (MAX_DIGEST_SIZE): Set to 64.
12539         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12540         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12541         (gc_sha256, gc_sha512): New functions.
12542         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12543         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12544         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12546 2019-08-24  Bruno Haible  <bruno@clisp.org>
12548         crypto/gc-sha1 tests: Improve output when the test fails.
12549         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12550         output.
12552 2019-08-24  Bruno Haible  <bruno@clisp.org>
12554         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12555         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12556         LIBGCRYPT_HAS_MD_SM3.
12557         * lib/gc-libgcrypt.c: Include sm3.h.
12558         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12559         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12560         implementation if libgcrypt does not support SM3.
12562 2019-08-24  Bruno Haible  <bruno@clisp.org>
12564         crypto/gc-md2: Optimize and clarify code.
12565         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12566         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12567         is not needed.
12569 2019-08-24  Bruno Haible  <bruno@clisp.org>
12571         crypto/gc-md2: Add comment.
12572         * lib/gc-libgcrypt.c: Add comment.
12574 2019-08-24  Bruno Haible  <bruno@clisp.org>
12576         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12577         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12578         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12579         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12580         variable.
12582 2019-08-24  Bruno Haible  <bruno@clisp.org>
12584         crypto/gc: Fix link error with --with-libgcrypt.
12585         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12586         AC_LIB_HAVE_LINKFLAGS invocation.
12588 2019-08-24  Bruno Haible  <bruno@clisp.org>
12590         crypto/gc: Access the module indicators correctly.
12591         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12592         * lib/gc-libgcrypt.c: Likewise.
12594 2019-08-24  Bruno Haible  <bruno@clisp.org>
12596         crypto/gc: Fix configuration with --with-libgcrypt.
12597         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12598         * modules/crypto/gc (Files): Add it.
12599         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12601 2019-08-24  Bruno Haible  <bruno@clisp.org>
12603         Remove unused file.
12604         * m4/stat-macros.m4: Remove file.
12606 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12608         New strip-trailing-space option for srclist-update
12609         * config/srclist-update (fixfile): Support new option.
12610         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12611         Use it.
12613 2019-08-20  Eric Blake  <eblake@redhat.com>
12615         accept4: Support SOCK_NONBLOCK, if defined
12616         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12618         accept4: Fix compilation when native accept4() exists.
12619         Reported by Richard W.M. Jones <rjones@redhat.com> in
12620         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12621         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12623 2019-08-18  Bruno Haible  <bruno@clisp.org>
12625         Defeat -flto GCC optimization in math autoconf tests.
12626         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12627         at <https://savannah.gnu.org/bugs/?56109>.
12628         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12629         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12630         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12631         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12632         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12633         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12634         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12635         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12636         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12637         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12638         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12639         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12641 2019-08-17  Bruno Haible  <bruno@clisp.org>
12643         windows-spin: Implement declared functions.
12644         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12645         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12646         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12647         name.
12649 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12651         intprops: port to Oracle Developer Studio 12.6
12652         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12653         typos that were in a section not compiled by GCC.
12655 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12657         intprops: support uchar, ushort _WRAPV dests
12658         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12659         when __builtin_add_overflow etc. and _Generic are not used.
12660         (_GL_INT_OP_WRAPV): Use it to support destinations that
12661         are unsigned char or unsigned short, even in compilers
12662         that lack __typeof__ and are not C11-compatible.
12664         intprops: pacify picky GCC
12665         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12666         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12667         possibly-incorrect result.
12668         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12669         about (A) used as a boolean, when A is an expression like 3 * 4.
12671         intprops: support unsigned *_WRAPV results
12672         Add support for unsigned, unsigned long, and unsigned long long
12673         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12674         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12675         bug with unsigned inputs reported by Eli Zaretskii in:
12676         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12677         * config/srclist.txt: Break the glibc connection for intprops.h
12678         temporarily, while more testing is done in Gnulib-using apps.
12679         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12680         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12681         Support unsigned results no narrower than unsigned int.  Report
12682         overflow correctly if some arguments are unsigned.
12683         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12684         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12685         the right thing with narrow args.
12686         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12687         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12688         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12689         * tests/test-intprops.c: Check for bugs and test new behavior.
12691 2019-08-14  Bruno Haible  <bruno@clisp.org>
12693         get_progname_of: New module.
12694         * lib/get_progname_of.h: New file.
12695         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12696         * lib/getprogname.c (getprogname): Tweak coding style.
12697         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12698         * modules/get_progname_of: New file.
12700 2019-08-14  Bruno Haible  <bruno@clisp.org>
12702         get_ppid_of: New module.
12703         * lib/get_ppid_of.h: New file.
12704         * lib/get_ppid_of.c: New file.
12705         * modules/get_ppid_of: New file.
12707 2019-08-13  Bruno Haible  <bruno@clisp.org>
12709         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12710         * tests/test-libtextstyle.c (main): Do not emit styling when the
12711         environment variable NO_COLOR is set.
12713 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12715         verify: improve diagnostic quality in recent GCC
12716         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12717         useful line number containing the top-level caller of the macro.
12718         So, bring back the older way of issuing a diagnostic containing
12719         the top-level call’s arg, so that it is easier to diagnose
12720         ‘verify’ failures with recent GCC.
12721         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12722         Bring back DIAGNOSTIC arg.  All callers changed.
12723         (verify): Just use _GL_VERIFY.
12725 2019-08-11  Bruno Haible  <bruno@clisp.org>
12727         localcharset: Add more aliases for OS/2.
12728         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12729         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12730         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12732 2019-08-10  Eric Blake  <eblake@redhat.com>
12734         configmake: Update advice on usage.
12735         * modules/configmake (Include): No longer necessary to include
12736         last, since configmake.h itself worries about collision avoidance.
12738 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12740         parse-datetime: fix 'T' military timezone handling
12741         * lib/parse-datetime.y (zone):
12742         follow-up to the previous commit: the 'T' case is handled outside the
12743         conversion table (used as either military timezone UTC-7 or ISO8601
12744         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12745         timezone letters.
12747 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12749         parse-datetime: fix military timezone letters
12750         Problem and trivial fix reported by Neil Hoggarth in:
12751         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12752         * lib/parse-datetime.y (military_table):
12753         Do it the right way, not the RFC 822 way.
12755 2019-08-08  Eric Blake  <eblake@redhat.com>
12757         configmake: Avoid namespace pollution issue on mingw.
12758         * modules/configmake (Makefile.am): If the project uses
12759         <winsock2.h>, include that header before defining DATADIR.
12761 2019-07-28  Bruno Haible  <bruno@clisp.org>
12763         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12764         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12766 2019-07-24  Bruno Haible  <bruno@clisp.org>
12768         pthread-h: Fix definitions of types and macros on mingw.
12769         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12770         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12771         not in use.
12772         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12773         'pthread-once' is not in use.
12774         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12775         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12776         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12777         in use.
12778         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12779         Define also when module 'pthread-rwlock' is not in use.
12780         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12781         also when module 'pthread-cond' is not in use.
12782         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12783         'pthread-tss' is not in use.
12784         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12785         use.
12787 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12789         crypto/gc: Cope with libgcrypt without SM3.
12790         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12792 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12794         backupfile: fix resource leak on memory failure
12795         Problem found by Coverity (CID 1484214).
12796         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12798 2019-07-22  Bruno Haible  <bruno@clisp.org>
12800         Avoid missing-declarations warning in various tests.
12801         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12802         test6, test_optional, test7, test8, test9, test10, test11, test12,
12803         test13, test14, test15, test_fun): Declare static.
12804         * tests/test-cnd.c (test_cnd_wait): Likewise.
12805         * tests/test-cond.c (test_cond): Likewise.
12807 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12809         pthread tests: Avoid missing-declarations warning.
12810         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12812 2019-07-19  Bruno Haible  <bruno@clisp.org>
12814         parse-datetime: Avoid warnings from bison versions >= 3.3.
12815         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12816         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12818 2019-07-19  Bruno Haible  <bruno@clisp.org>
12820         parse-datetime: Require Bison 2.4 or newer.
12821         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12822         Code taken from gettext's intl.m4.
12823         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12824         of YACC.
12826 2019-07-19  Bruno Haible  <bruno@clisp.org>
12828         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12829         * lib/areadlink-with-size.c: Include <string.h>.
12830         * lib/areadlinkat-with-size.c: Likewise.
12831         * lib/xgethostname.c: Likewise.
12832         * lib/xgetdomainname.c: Likewise.
12834 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12836         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12837         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12838         "%pure-parser".  The former is available since Bison 2.3b (2008),
12839         while the latter is marked as obsolete since version 3.4 (May 2019).
12841 2019-07-16  Bruno Haible  <bruno@clisp.org>
12843         update-copyright: Make it work again (regression from 2019-06-15).
12844         Reported by Brian C. Lane <bcl@redhat.com>.
12845         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12847 2019-07-14  Bruno Haible  <bruno@clisp.org>
12849         doc: Update info about <pthread.h>.
12850         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12851         of 'pthread'.
12853 2019-07-14  Bruno Haible  <bruno@clisp.org>
12855         pthread_sigmask tests: Use new multithread modules.
12856         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12857         glthread/thread.h.
12858         (main_thread, killer_thread): Change type to pthread_t.
12859         (main): Update accordingly.
12860         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12861         thread.
12863 2019-07-14  Bruno Haible  <bruno@clisp.org>
12865         pthread-tss: Add tests.
12866         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12867         tests/test-tss.c.
12868         * modules/pthread-tss-tests: New file.
12870 2019-07-14  Bruno Haible  <bruno@clisp.org>
12872         pthread-cond: Add tests.
12873         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12874         tests/test-cnd.c.
12875         * modules/pthread-cond-tests: New file.
12877 2019-07-14  Bruno Haible  <bruno@clisp.org>
12879         pthread-rwlock: Add tests.
12880         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12881         * modules/pthread-rwlock-tests: New file.
12883 2019-07-14  Bruno Haible  <bruno@clisp.org>
12885         pthread-mutex: Add tests.
12886         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12887         tests/test-mtx.c.
12888         * modules/pthread-mutex-tests: New file.
12890 2019-07-14  Bruno Haible  <bruno@clisp.org>
12892         pthread-once: Add tests.
12893         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12894         tests/test-call_once.c.
12895         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12896         tests/test-mtx.c.
12897         * modules/pthread-once-tests: New file.
12899 2019-07-14  Bruno Haible  <bruno@clisp.org>
12901         pthread-thread: Add tests.
12902         * tests/test-pthread-thread.c: New file, based on
12903         tests/test-thread_create.c and tests/test-thrd_create.c.
12904         * modules/pthread-thread-tests: New file.
12906 2019-07-14  Bruno Haible  <bruno@clisp.org>
12908         pthread: Turn into a convenience module.
12909         * lib/pthread.in.h: Remove declarations for extern inline functions.
12910         * lib/pthread.c: Remove file.
12911         * modules/pthread (Files): Remove it.
12912         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12913         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12914         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12915         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12916         GNULIB_PTHREAD.
12917         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12919 2019-07-14  Bruno Haible  <bruno@clisp.org>
12921         pthread-spin: New module.
12922         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12923         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12924         inline definitions.
12925         * lib/pthread-spin.c: New file.
12926         * m4/pthread-spin.m4: New file.
12927         * modules/pthread-spin: New file.
12928         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12929         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12930         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12931         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12932         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12934 2019-07-14  Bruno Haible  <bruno@clisp.org>
12936         pthread-tss: New module.
12937         * lib/pthread-tss.c: New file.
12938         * m4/pthread-tss.m4: New file.
12939         * modules/pthread-tss: New file.
12940         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12941         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12942         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12943         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12945 2019-07-14  Bruno Haible  <bruno@clisp.org>
12947         pthread-cond: New module.
12948         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12949         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12950         * lib/pthread-cond.c: New file.
12951         * m4/pthread-cond.m4: New file.
12952         * modules/pthread-cond: New file.
12953         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12954         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12955         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12956         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12957         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12958         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12959         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12960         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12962 2019-07-14  Bruno Haible  <bruno@clisp.org>
12964         pthread-rwlock: New module.
12965         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12966         * m4/pthread-rwlock.m4: New file.
12967         * modules/pthread-rwlock: New file.
12968         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12969         and the Android problem.
12970         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12971         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12972         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12973         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12974         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12975         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12976         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12977         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12978         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12979         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12981 2019-07-14  Bruno Haible  <bruno@clisp.org>
12983         pthread-mutex: New module.
12984         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12985         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12986         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12987         pthread_mutex_unlock): Remove inline definitions.
12988         * lib/pthread-mutex.c: New file.
12989         * m4/pthread-mutex.m4: New file.
12990         * modules/pthread-mutex: New file.
12991         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12992         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12993         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12994         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12995         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12996         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12997         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12998         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12999         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13000         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13001         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13002         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13004 2019-07-14  Bruno Haible  <bruno@clisp.org>
13006         pthread-once: New module.
13007         * lib/pthread-once.c: New file.
13008         * m4/pthread-once.m4: New file.
13009         * modules/pthread-once: New file.
13010         * doc/posix-functions/pthread_once.texi: Mention the new module.
13012 2019-07-14  Bruno Haible  <bruno@clisp.org>
13014         pthread-thread: New module.
13015         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13016         inline definitions.
13017         * lib/pthread-thread.c: New file.
13018         * m4/pthread-thread.m4: New file.
13019         * modules/pthread-thread: New file.
13020         * doc/posix-functions/pthread_create.texi: Mention the new module.
13021         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13022         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13023         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13024         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13025         * doc/posix-functions/pthread_self.texi: Likewise.
13026         * doc/posix-functions/pthread_equal.texi: Likewise.
13027         * doc/posix-functions/pthread_detach.texi: Likewise.
13028         * doc/posix-functions/pthread_join.texi: Likewise.
13029         * doc/posix-functions/pthread_exit.texi: Likewise.
13031 2019-07-14  Bruno Haible  <bruno@clisp.org>
13033         pthread-h: Prepare for adding new modules.
13034         * lib/pthread.in.h: Define the types and macros for each of the
13035         facilities separately.
13036         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13037         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13038         HAVE_PTHREAD_PROCESS_SHARED.
13039         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13040         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13041         HAVE_PTHREAD_PROCESS_SHARED.
13042         * modules/pthread-h (Makefile.am): Substitute
13043         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13044         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13046 2019-07-14  Bruno Haible  <bruno@clisp.org>
13048         pthread-h: Add declarations of essential pthread functions.
13049         * lib/pthread.in.h: Include snippets.
13050         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13051         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13052         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13053         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13054         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13055         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13056         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13057         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13058         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13059         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13060         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13061         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13062         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13063         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13064         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13065         pthread_key_create, pthread_setspecific, pthread_getspecific,
13066         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13067         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13068         declarations.
13069         (pthread_mutex_timedlock): Move declaration.
13070         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13071         declared.
13072         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13073         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13074         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13075         HAVE_* and REPLACE_* variables for the new functions.
13076         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13077         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13078         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13079         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13080         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13081         variables for the new functions. Split the sed script, to avoid the
13082         limit of 99 commands of HP-UX sed.
13083         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13085 2019-07-14  Bruno Haible  <bruno@clisp.org>
13087         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13088         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13089         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13090         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13091         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13092         * modules/pthread-h (Depends-on): Add threadlib.
13093         (Link): Change to $(LIBTHREAD).
13094         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13095         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13097 2019-07-14  Bruno Haible  <bruno@clisp.org>
13099         pthread-h: Add C++ tests.
13100         * tests/test-pthread-c++.cc: New file.
13101         * modules/pthread-h-c++-tests: New file.
13103 2019-07-14  Bruno Haible  <bruno@clisp.org>
13105         pthread-h: Add tests.
13106         * tests/test-pthread.c: New file.
13107         * modules/pthread-h-tests: New file.
13109 2019-07-14  Bruno Haible  <bruno@clisp.org>
13111         pthread-h: New module.
13112         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13113         is 1.
13114         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13115         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13116         <pthread.h> pollutes the namespace; instead, prepare for generating a
13117         pthread.h always. Substitute HAVE_PTHREAD_H here.
13118         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13119         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13120         * modules/pthread-h: New file, based on modules/pthread.
13121         * modules/pthread: Rely on 'pthread-h'.
13122         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13123         Update.
13124         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13125         pthread.
13127 2019-07-14  Bruno Haible  <bruno@clisp.org>
13129         sched_yield: New module.
13130         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13131         (sched_yield): New declaration.
13132         * lib/sched_yield.c: New file.
13133         * m4/sched_yield.m4: New file.
13134         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13135         provide a replacement sched.h always. Test whether sched_yield is
13136         declared.
13137         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13138         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13139         (Makefile.am): Provide a replacement sched.h always. Substitute
13140         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13141         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13142         * modules/sched_yield: New file.
13143         * doc/posix-functions/sched_yield.texi: Mention the new module.
13145 2019-07-14  Bruno Haible  <bruno@clisp.org>
13147         windows-spin: New module.
13148         * lib/windows-spin.h: New file.
13149         * lib/windows-spin.c: New file.
13150         * modules/windows-spin: New file.
13152 2019-07-14  Bruno Haible  <bruno@clisp.org>
13154         windows-timedrwlock: New module.
13155         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13156         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13157         windows-cond.c.
13158         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13159         redefinition conflict with windows-timedrwlock.h.
13160         * modules/windows-timedrwlock: New file.
13162 2019-07-14  Bruno Haible  <bruno@clisp.org>
13164         windows-rwlock: New module.
13165         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13166         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13167         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13168         windows-initguard.h.
13169         (gl_rwlock_t): Define using glwthread_rwlock_t.
13170         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13171         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13172         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13173         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13174         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13175         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13176         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13177         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13178         glthread_rwlock_destroy_func): Remove declarations.
13179         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13180         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13181         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13182         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13183         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13184         functions.
13185         * modules/windows-rwlock: New file.
13186         * modules/lock (Depends-on): Add windows-rwlock.
13188 2019-07-14  Bruno Haible  <bruno@clisp.org>
13190         windows-thread: Add support for creating a thread in detached state.
13191         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13192         (glwthread_thread_create): Add attr argument.
13193         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13194         * lib/glthread/thread.h (glthread_create): Update.
13195         * lib/thrd.c (thrd_create): Update.
13197 2019-07-14  Bruno Haible  <bruno@clisp.org>
13199         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13200         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13201         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13202         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13203         * lib/windows-mutex.h: Update.
13204         * lib/windows-recmutex.h: Likewise.
13205         * lib/windows-timedmutex.h: Likewise.
13206         * lib/windows-timedrecmutex.h: Likewise.
13207         * lib/windows-cond.h: Likewise.
13208         * lib/glthread/lock.h: Likewise.
13209         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13210         lib/windows-spinlock.h.
13211         * modules/windows-recmutex (Files): Likewise.
13212         * modules/windows-timedmutex (Files): Likewise.
13213         * modules/windows-timedrecmutex (Files): Likewise.
13214         * modules/windows-cond (Files): Likewise.
13215         * modules/threads-h (Files): Likewise.
13217 2019-07-14  Bruno Haible  <bruno@clisp.org>
13219         doc: Fix info about pthread API in HP-UX.
13220         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13222 2019-07-14  Bruno Haible  <bruno@clisp.org>
13224         threads-h: Fix generation of threads.h.
13225         * modules/threads-h (Makefile.am): Insert the required header file
13226         snippets.
13228 2019-07-09  Bruno Haible  <bruno@clisp.org>
13230         striconveh test: Fix a compilation failure when iconv is not available.
13231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13232         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13233         HAVE_ICONV.
13235 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13237         argmatch: adjust columns for help2man.
13238         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13239         requires column 20 or more, return 20.
13241 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13243         areadlink-with-size: avoid realloc when size==0
13244         * lib/areadlink-with-size.c (areadlink_with_size):
13245         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13246         Reallocate at the end to the actual size, to avoid memory waste,
13247         as suggested by Bruno Haible.  But when the guessed size is zero -
13248         useful when the size is unknown - do the initial small readlink
13249         into the stack, to avoid that realloc in the usual case.
13251 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13253         areadlink-with-size: guess a buffer size with 0 size
13254         The size is usually taken from st_size, which can be zero,
13255         resulting in inefficient operation.
13256         Instead let zero select an initial memory allocation
13257         of 128 bytes, which most symlinks fit within.
13258         * lib/areadlink-with-size.c (areadlink_with_size):
13259         Start with a 128 byte buffer, for SIZE == 0.
13260         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13262 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13264         Replace manually crafted hex regexes with [:xdigit:]
13265         * build-aux/gitlog-to-changelog (parse_amend_file)
13266         (git_dir_option):
13267         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13268         This patch is backported from Emacs (Bug#36167).
13270 2019-07-06  Bruno Haible  <bruno@clisp.org>
13272         error: Fix documentation.
13273         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13274         module provides.
13275         * doc/glibc-functions/error_message_count.texi: Likewise.
13276         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13277         * doc/glibc-functions/error_print_progname.texi: Likewise.
13279 2019-07-06  Bruno Haible  <bruno@clisp.org>
13281         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13282         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13283         and older is unsupported.
13284         * doc/**/*.texi: Update.
13286 2019-07-06  Bruno Haible  <bruno@clisp.org>
13288         doc: Remove documentation of Linux libc5 as a supported platform.
13289         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13290         to Linux libc5.
13291         * doc/posix-functions/iswalpha.texi: Likewise.
13292         * doc/posix-functions/iswblank.texi: Likewise.
13293         * doc/posix-functions/iswcntrl.texi: Likewise.
13294         * doc/posix-functions/iswdigit.texi: Likewise.
13295         * doc/posix-functions/iswgraph.texi: Likewise.
13296         * doc/posix-functions/iswlower.texi: Likewise.
13297         * doc/posix-functions/iswprint.texi: Likewise.
13298         * doc/posix-functions/iswpunct.texi: Likewise.
13299         * doc/posix-functions/iswspace.texi: Likewise.
13300         * doc/posix-functions/iswupper.texi: Likewise.
13301         * doc/posix-functions/iswxdigit.texi: Likewise.
13302         * doc/posix-functions/snprintf.texi: Likewise.
13303         * doc/posix-functions/vsnprintf.texi: Likewise.
13305 2019-07-06  Bruno Haible  <bruno@clisp.org>
13307         doc: Remove documentation of Tandem/NSK as a supported platform.
13308         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13309         Tandem/NSK.
13310         * doc/**/*.texi: Update.
13312 2019-07-06  Bruno Haible  <bruno@clisp.org>
13314         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13315         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13316         and older is unsupported.
13317         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13318         Mac OS X 10.4 and older.
13319         * doc/posix-functions/asinl.texi: Likewise.
13320         * doc/posix-functions/atanl.texi: Likewise.
13321         * doc/posix-functions/cosl.texi: Likewise.
13322         * doc/posix-functions/expl.texi: Likewise.
13323         * doc/posix-functions/frexpl.texi: Likewise.
13324         * doc/posix-functions/gettimeofday.texi: Likewise.
13325         * doc/posix-functions/logl.texi: Likewise.
13326         * doc/posix-functions/mkstemp.texi: Likewise.
13327         * doc/posix-functions/sinl.texi: Likewise.
13328         * doc/posix-functions/sqrtl.texi: Likewise.
13329         * doc/posix-functions/tanl.texi: Likewise.
13330         * doc/posix-functions/wcswidth.texi: Likewise.
13331         * doc/**/*.texi: Update.
13333 2019-07-06  Bruno Haible  <bruno@clisp.org>
13335         doc: Remove documentation of AIX 4 as a supported platform.
13336         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13337         unsupported.
13338         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13339         workarounds.
13340         * doc/posix-functions/strnlen.texi: Likewise.
13341         * doc/posix-headers/inttypes.texi: Likewise.
13342         * doc/**/*.texi: Update.
13344 2019-07-06  Bruno Haible  <bruno@clisp.org>
13346         doc: Remove documentation of HP-UX 10 as a supported platform.
13347         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13348         unsupported.
13349         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13350         workarounds.
13351         * doc/posix-functions/gmtime_r.texi: Likewise.
13352         * doc/posix-functions/localtime_r.texi: Likewise.
13353         * doc/posix-functions/mkstemp.texi: Likewise.
13354         * doc/**/*.texi: Update.
13356 2019-07-06  Bruno Haible  <bruno@clisp.org>
13358         doc: Remove documentation of Interix 3.5 as a supported platform.
13359         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13360         unsupported.
13361         * doc/posix-functions/select.texi: Don't mention Interix specific
13362         workarounds.
13363         * doc/posix-headers/signal.texi: Likewise.
13364         * doc/**/*.texi: Update.
13366 2019-07-06  Bruno Haible  <bruno@clisp.org>
13368         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13369         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13370         unsupported.
13371         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13372         workarounds.
13373         * doc/posix-functions/nl_langinfo.texi: Likewise.
13374         * doc/posix-functions/remainder.texi: Likewise.
13375         * doc/posix-functions/towlower.texi: Likewise.
13376         * doc/posix-functions/towupper.texi: Likewise.
13377         * doc/posix-functions/vsnprintf.texi: Likewise.
13378         * doc/posix-functions/wcscat.texi: Likewise.
13379         * doc/posix-functions/wcschr.texi: Likewise.
13380         * doc/posix-functions/wcscmp.texi: Likewise.
13381         * doc/posix-functions/wcscpy.texi: Likewise.
13382         * doc/posix-functions/wcscspn.texi: Likewise.
13383         * doc/posix-functions/wcslen.texi: Likewise.
13384         * doc/posix-functions/wcsncat.texi: Likewise.
13385         * doc/posix-functions/wcsncmp.texi: Likewise.
13386         * doc/posix-functions/wcsncpy.texi: Likewise.
13387         * doc/posix-functions/wcspbrk.texi: Likewise.
13388         * doc/posix-functions/wcsrchr.texi: Likewise.
13389         * doc/posix-functions/wcsspn.texi: Likewise.
13390         * doc/posix-headers/langinfo.texi: Likewise.
13391         * doc/posix-headers/signal.texi: Likewise.
13392         * doc/posix-headers/wchar.texi: Likewise.
13393         * doc/posix-headers/wctype.texi: Likewise.
13394         * doc/**/*.texi: Update.
13396 2019-07-05  Bruno Haible  <bruno@clisp.org>
13398         doc: Remove documentation of OSF/1 as supported platform.
13399         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13400         unsupported.
13401         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13402         workarounds.
13403         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13404         * doc/glibc-functions/ptsname_r.texi: Likewise.
13405         * doc/posix-functions/ceil.texi: Likewise.
13406         * doc/posix-functions/ceilf.texi: Likewise.
13407         * doc/posix-functions/ceill.texi: Likewise.
13408         * doc/posix-functions/fchdir.texi: Likewise.
13409         * doc/posix-functions/floor.texi: Likewise.
13410         * doc/posix-functions/floorf.texi: Likewise.
13411         * doc/posix-functions/fmod.texi: Likewise.
13412         * doc/posix-functions/fmodf.texi: Likewise.
13413         * doc/posix-functions/fmodl.texi: Likewise.
13414         * doc/posix-functions/log.texi: Likewise.
13415         * doc/posix-functions/logf.texi: Likewise.
13416         * doc/posix-functions/logl.texi: Likewise.
13417         * doc/posix-functions/log10.texi: Likewise.
13418         * doc/posix-functions/log10f.texi: Likewise.
13419         * doc/posix-functions/log10l.texi: Likewise.
13420         * doc/posix-functions/log2.texi: Likewise.
13421         * doc/posix-functions/log2f.texi: Likewise.
13422         * doc/posix-functions/log2l.texi: Likewise.
13423         * doc/posix-functions/mbrtowc.texi: Likewise.
13424         * doc/posix-functions/recv.texi: Likewise.
13425         * doc/posix-functions/recvfrom.texi: Likewise.
13426         * doc/posix-functions/remainder.texi: Likewise.
13427         * doc/posix-functions/remainderf.texi: Likewise.
13428         * doc/posix-functions/remainderl.texi: Likewise.
13429         * doc/posix-functions/round.texi: Likewise.
13430         * doc/posix-functions/roundf.texi: Likewise.
13431         * doc/posix-functions/roundl.texi: Likewise.
13432         * doc/posix-functions/send.texi: Likewise.
13433         * doc/posix-functions/sendto.texi: Likewise.
13434         * doc/posix-functions/setenv.texi: Likewise.
13435         * doc/posix-functions/snprintf.texi: Likewise.
13436         * doc/posix-functions/tcgetsid.texi: Likewise.
13437         * doc/posix-functions/trunc.texi: Likewise.
13438         * doc/posix-functions/truncf.texi: Likewise.
13439         * doc/posix-functions/truncl.texi: Likewise.
13440         * doc/posix-functions/ttyname_r.texi: Likewise.
13441         * doc/posix-functions/unsetenv.texi: Likewise.
13442         * doc/posix-functions/wcsrtombs.texi: Likewise.
13443         * doc/posix-headers/sys_select.texi: Likewise.
13444         * doc/posix-headers/wchar.texi: Likewise.
13445         * doc/posix-headers/wctype.texi: Likewise.
13446         * doc/**/*.texi: Update.
13448 2019-07-05  Bruno Haible  <bruno@clisp.org>
13450         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13451         * doc/**/*.texi: Update.
13453 2019-07-05  Bruno Haible  <bruno@clisp.org>
13455         doc: Remove documentation of Solaris 8 and older as supported platforms.
13456         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13457         unsupported.
13458         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13459         workarounds.
13460         * doc/posix-functions/memcmp.texi: Likewise.
13461         * doc/posix-functions/rename.texi: Likewise.
13462         * doc/posix-functions/tzset.texi: Likewise.
13463         * doc/posix-headers/wctype.texi: Likewise.
13464         * doc/**/*.texi: Update.
13466 2019-07-05  Bruno Haible  <bruno@clisp.org>
13468         doc: Remove documentation of Interix 3.5 as a supported platform.
13469         * doc/**/*.texi: Update.
13471 2019-07-05  Bruno Haible  <bruno@clisp.org>
13473         doc: Remove documentation of BeOS as a supported platform.
13474         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13475         unsupported.
13476         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13477         * doc/posix-functions/getdelim.texi: Likewise.
13478         * doc/**/*.texi: Update.
13480 2019-07-05  Bruno Haible  <bruno@clisp.org>
13482         thread, lock, cond, tls: Remove support for Pth threads.
13483         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13484         --enable-threads=pth any more.
13485         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13487         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13488         threads and ISO C11 threads.
13489         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13490         * lib/glthread/lock.h: Likewise.
13491         * lib/glthread/lock.c: Likewise.
13492         * lib/glthread/cond.h: Likewise.
13493         * lib/glthread/cond.c: Likewise.
13494         * lib/glthread/tls.h: Likewise.
13495         * lib/glthread/tls.c: Likewise.
13496         * lib/glthread/yield.h: Likewise.
13497         * lib/regex_internal.h: Likewise.
13498         * tests/test-thread_create.c: Likewise.
13499         * tests/test-lock.c: Likewise.
13500         * tests/test-cond.c: Likewise.
13501         * tests/test-tls.c: Likewise.
13502         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13503         (main): Sleep without calling gl_thread_yield.
13505 2019-07-05  Bruno Haible  <bruno@clisp.org>
13507         thread, lock, cond, tls: Remove support for old Solaris threads.
13508         Solaris >= 2.5.1 has POSIX threads.
13509         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13510         --enable-threads=solaris any more.
13511         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13512         * lib/glthread/thread.c: Update comment.
13513         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13514         * lib/glthread/lock.h: Likewise.
13515         * lib/glthread/lock.c: Likewise.
13516         * lib/glthread/cond.h: Likewise.
13517         * lib/glthread/cond.c: Likewise.
13518         * lib/glthread/tls.h: Likewise.
13519         * lib/glthread/tls.c: Likewise.
13520         * lib/glthread/yield.h: Likewise.
13521         * lib/regex_internal.h: Likewise.
13522         * tests/test-thread_create.c: Likewise.
13523         * tests/test-lock.c: Likewise.
13524         * tests/test-cond.c: Likewise.
13525         * tests/test-tls.c: Likewise.
13527 2019-07-05  Bruno Haible  <bruno@clisp.org>
13529         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13530         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13531         needed size is equal to the allocated size.
13532         * lib/getcwd.c (__getcwd): Likewise.
13534 2019-07-05  Bruno Haible  <bruno@clisp.org>
13536         xgetdomainname: Don't return an excessive memory allocation.
13537         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13538         before returning it.
13540 2019-07-05  Bruno Haible  <bruno@clisp.org>
13542         xgethostname: Don't return an excessive memory allocation.
13543         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13544         returning it.
13546 2019-07-05  Bruno Haible  <bruno@clisp.org>
13548         areadlinkat-with-size: Don't return an excessive memory allocation.
13549         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13550         before returning it.
13552 2019-07-05  Bruno Haible  <bruno@clisp.org>
13554         areadlink-with-size: Don't return an excessive memory allocation.
13555         Reported by Andreas Dilger <adilger@whamcloud.com>.
13556         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13557         before returning it.
13559 2019-07-03  Bruno Haible  <bruno@clisp.org>
13561         renameatu: Fix test failure on MSVC.
13562         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13563         empty string.
13565 2019-07-03  Bruno Haible  <bruno@clisp.org>
13567         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13568         * lib/mbrtowc.c: Include glthread/lock.h.
13569         (mbtowc_lock): New variable.
13570         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13571         encodings, explicitly reset the internal state of mbtowc, and protect
13572         this through a lock.
13573         * modules/mbrtowc (Depends-on): Add lock.
13575 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13577         argmatch: don't define _ in the header.
13578         Reported by Jim Meyering.
13579         * lib/argmatch.h (N_, _): Don't define.
13580         Use gettext instead.
13581         * lib/argmatch.h (_): Define.
13582         * tests/test-argmatch.c (N_): Define.
13584 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13586         verify: document ‘assume’ better
13587         * lib/verify.h: Reword doc (Bug#36370).
13589 2019-07-02  Bruno Haible  <bruno@clisp.org>
13591         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13592         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13593         "CPutf8".
13594         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13596 2019-07-02  Bruno Haible  <bruno@clisp.org>
13598         getcwd: Fix crash when invoked with size = 0 on MSVC.
13599         * lib/getcwd.c: Include msvc-inval.h.
13600         (getcwd_nothrow): New function/macro.
13601         (getcwd_system): New macro.
13602         (__getcwd): Use it instead of getcwd.
13603         * modules/getcwd (Depends-on): Add msvc-inval.
13604         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13606 2019-07-02  Bruno Haible  <bruno@clisp.org>
13608         nonblocking-pipe tests: Fix test failure on MSVC.
13609         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13610         native Windows.
13612 2019-07-02  Bruno Haible  <bruno@clisp.org>
13614         usleep: Implement with millisecond resolution on native Windows.
13615         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13616         * doc/pastposix-functions/usleep.texi: Update accordingly.
13618 2019-07-02  Bruno Haible  <bruno@clisp.org>
13620         lstat tests: Fix test failure on MSVC.
13621         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13622         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13624 2019-07-02  Bruno Haible  <bruno@clisp.org>
13626         stat tests: Fix test failure on MSVC.
13627         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13628         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13630 2019-07-02  Bruno Haible  <bruno@clisp.org>
13632         getaddrinfo tests: Fix test failure on MSVC.
13633         * tests/test-getaddrinfo.c: Include sockets.h.
13634         (main): Invoke gl_sockets_startup.
13635         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13637 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13639         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13640         * lib/poll.c: Call Windows native select() with Windows native timeval.
13642 2019-06-30  Bruno Haible  <bruno@clisp.org>
13644         argmatch: Fix compilation errors.
13645         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13646         * tests/test-argmatch.c (main): Update after last-minute function names
13647         change.
13649 2019-06-30  Bruno Haible  <bruno@clisp.org>
13651         Include <stdlib.h> when needed.
13652         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13653         * lib/fcntl.c: Likewise.
13654         * lib/mbscasestr.c: Likewise.
13655         * lib/mbssep.c: Likewise.
13656         * lib/mbsstr.c: Likewise.
13657         * lib/openat.c: Include <stdlib.h>, needed for free().
13658         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13659         abort().
13661 2019-06-30  Bruno Haible  <bruno@clisp.org>
13663         Include <stdlib.h> when needed.
13664         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13665         * lib/faccessat.c: Likewise.
13666         * lib/fchmodat.c: Likewise.
13667         * lib/fchownat.c: Likewise.
13668         * lib/fstatat.c: Likewise.
13669         * lib/mkfifoat.c: Likewise.
13670         * lib/mknodat.c: Likewise.
13671         * lib/readlinkat.c: Likewise.
13672         * lib/symlinkat.c: Likewise.
13673         * lib/utimensat.c: Likewise.
13674         * lib/mkdirat.c: Likewise. Include also the specification header.
13676 2019-06-30  Bruno Haible  <bruno@clisp.org>
13678         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13679         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13680         from gl_PREREQ_SYS_H_SOCKET.
13681         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13682         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13683         gl_PREREQ_SYS_H_WS2TCPIP.
13684         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13685         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13686         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13688 2019-06-30  Bruno Haible  <bruno@clisp.org>
13690         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13691         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13692         REPLACE_INET_NTOP to 1 always.
13693         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13694         REPLACE_INET_PTON to 1 always.
13696 2019-06-30  Bruno Haible  <bruno@clisp.org>
13698         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13699         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13700         not REPLACE_INET_NTOP.
13702 2019-06-30  Bruno Haible  <bruno@clisp.org>
13704         poll: Add comment.
13705         * lib/poll.c: Add comment about WSAPoll.
13707 2019-06-30  Bruno Haible  <bruno@clisp.org>
13709         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13710         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13711         * lib/poll.in.h: Include <winsock2.h>.
13712         (POLL*, pollfd): Override on native Windows.
13713         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13714         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13715         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13717 2019-06-28  Bruno Haible  <bruno@clisp.org>
13719         accept4: Fix compilation error on OpenIndiana.
13720         Reported by Michal Nowak <mnowak@startmail.com>
13721         via Mark H Weaver <mhw@netris.org>.
13722         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13723         whether it exists as a function.
13725 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13727         strverscmp: sync from glibc
13728         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13729         comments, include libc-config.h, define __strverscmp to be
13730         strverscmp, and don’t assume types line uint8_t and int8_t that
13731         that C99 doesn’t guarantee.
13732         [!_LIBC]: Include libc-config.h; define __strverscmp.
13733         Include stdint.h.
13734         (__strverscmp): Assume C99.  Use uint_least8_t
13735         and int_least8_t instead of unsigned char and signed char.
13736         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13738 2019-06-25  Bruno Haible  <bruno@clisp.org>
13740         tss tests: Add tests for destructors and races.
13741         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13742         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13743         functions.
13744         (main): Invoke them.
13745         * modules/tls-tests (Depends-on): Add mtx.
13747 2019-06-25  Bruno Haible  <bruno@clisp.org>
13749         tls tests: Add tests for destructors and races.
13750         * tests/test-tls.c: Include glthread/lock.h.
13751         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13752         functions.
13753         (main): Invoke them.
13754         * modules/tls-tests (Depends-on): Add lock.
13756 2019-06-25  Bruno Haible  <bruno@clisp.org>
13758         windows-tls: Implement TLS key destructors for native Windows.
13759         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13760         declaration.
13761         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13762         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13763         (dtor_table_init_once, dtor_table_lock: New variables.
13764         (struct dtor): New type.
13765         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13766         dtor_processing_threads): New variables.
13767         (dtor_table_initialize, dtor_table_ensure_initialized,
13768         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13769         functions.
13770         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13771         handle non-NULL destructors.
13772         * modules/windows-tls (Depends-on): Add windows-once.
13773         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13774         Use the functions declared in windows-tls.h.
13775         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13776         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13777         * lib/windows-thread.c: Include windows-tls.h.
13778         (wrapper_func, glwthread_thread_exit): Invoke
13779         glwthread_tls_process_destructors.
13780         * modules/windows-thread (Depends-on): Add windows-tls.
13782 2019-06-25  Bruno Haible  <bruno@clisp.org>
13784         threadlib: Avoid autoconf warning "was expanded before it was required".
13785         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13787 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13789         argmatch: remove duplicate const qualifier
13790         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13792 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13794         unistd: stddef.h and sys/types.h namespace cleanup
13795         * lib/unistd.in.h [__GLIBC__]:
13796         Do not include stddef.h or sys/types.h.
13797         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13798         supposed to declare off_t and ssize_t.  Problem found when looking
13799         at why @GNULIB_PWRITE@ was different from the newly-added
13800         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13802 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13804         maintainer-makefile: restore portability to non-GNU awks
13805         Reported by Tim Rühsen.
13806         * top/maint.mk (AWK): New variable.  Use it.
13807         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13809 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13811         Document setvbuf _IOLBF problem
13812         * doc/posix-functions/setvbuf.texi (setvbuf):
13813         Document MS-Windows portability problem with _IOLBF.
13815         Document lseek SEEK_DATA/SEEK_HOLE
13816         * doc/posix-functions/lseek.texi (lseek):
13817         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13819 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13821         argmatch: put all the docs member last.
13822         Reported by Bruno Haible.
13823         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13824         member before the docs done.
13825         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13827 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13829         argmatch: add support to generate the usage message.
13830         * lib/argmatch.c: Move some #includes and gettext support to...
13831         * lib/argmatch.h: here.
13832         (ARGMATCH_DEFINE_GROUP): New macro.
13833         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13834         (argmatch_backup_group): New.
13835         (CHECK): New.
13836         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13837         argmatch_backup_argument and argmatch_backup_usage.
13838         * modules/argmatch: We depend on c99.
13839         * doc/argmatch.texi (Recognizing Option Arguments): New.
13840         * doc/gnulib.texi: Use it.
13842 2019-06-21  Bruno Haible  <bruno@clisp.org>
13844         thrd: Add comment.
13845         * lib/thrd.c (pthread_main_func): Add comment.
13847 2019-06-21  Bruno Haible  <bruno@clisp.org>
13849         threads-h: Define 'thread_local' if and only if it actually works.
13850         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13851         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13852         Oracle Solaris Studio C. Compile a simple program, to see whether
13853         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13854         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13855         * lib/threads.in.h (thread_local): Undefine if it does not work.
13856         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13857         (Link): Mention LIBTHREADLOCAL.
13858         * tests/test-threads.c: Don't check that thread_local is defined.
13859         * tests/test-thread_local.c: New file.
13860         * modules/threads-h-tests (Files): Add it and macros.h.
13861         (Depends-on): Add thrd and stdint.
13862         (configure.ac): Test whether 'alarm' is declared.
13863         (Makefile.am): Arrange to build and link test-thread_local.
13864         * doc/posix-headers/threads.texi: Mention the platforms that don't
13865         support 'thread_local'.
13867 2019-06-20  Bruno Haible  <bruno@clisp.org>
13869         threads-h: Simplify link dependencies.
13870         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13871         Don't set LTLIBSTDTHREAD.
13872         * modules/thrd (Link): Simplify accordingly.
13873         * modules/mtx (Link): Likewise.
13874         * modules/cnd (Link): Likewise.
13875         * modules/tss (Link): Likewise.
13876         * modules/threads (Link): Likewise.
13878 2019-06-20  Bruno Haible  <bruno@clisp.org>
13880         threads-h: Fix link error on FreeBSD 11.
13881         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13882         also with -lpthread.
13884 2019-06-20  Bruno Haible  <bruno@clisp.org>
13886         threadlib: Fix typo (regression from today).
13887         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13889 2019-06-20  Bruno Haible  <bruno@clisp.org>
13891         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13892         * lib/windows-thread.c: Include <errno.h>.
13893         * lib/windows-tls.c: Likewise.
13895 2019-06-20  Bruno Haible  <bruno@clisp.org>
13897         tss tests: Small improvement.
13898         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13900 2019-06-20  Bruno Haible  <bruno@clisp.org>
13902         threads: New module.
13903         * modules/threads: New file.
13905 2019-06-20  Bruno Haible  <bruno@clisp.org>
13907         tss: Add tests.
13908         * tests/test-tss.c: New file, based on tests/test-tls.c.
13909         * modules/tss-tests: New file.
13911 2019-06-20  Bruno Haible  <bruno@clisp.org>
13913         cnd: Add tests.
13914         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13915         * modules/cnd-tests: New file.
13917 2019-06-20  Bruno Haible  <bruno@clisp.org>
13919         mtx: Add tests.
13920         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13921         * tests/test-call_once.c: New file, based on tests/test-once.c.
13922         * modules/mtx-tests: New file.
13924 2019-06-20  Bruno Haible  <bruno@clisp.org>
13926         thrd: Add tests.
13927         * tests/test-thrd_create.c: New file, based on
13928         tests/test-thread_create.c.
13929         * tests/test-thrd_current.c: New file, based on
13930         tests/test-thread_self.c.
13931         * modules/thrd-tests: New file.
13933 2019-06-20  Bruno Haible  <bruno@clisp.org>
13935         tss: New module.
13936         * lib/tss.c: New file.
13937         * modules/tss: New file.
13938         * doc/posix-functions/tss_create.texi: Mention the new module.
13939         * doc/posix-functions/tss_set.texi: Likewise.
13940         * doc/posix-functions/tss_get.texi: Likewise.
13941         * doc/posix-functions/tss_delete.texi: Likewise.
13943 2019-06-20  Bruno Haible  <bruno@clisp.org>
13945         cnd: New module.
13946         * lib/cnd.c: New file.
13947         * modules/cnd: New file.
13948         * doc/posix-functions/cnd_init.texi: Mention the new module.
13949         * doc/posix-functions/cnd_wait.texi: Likewise.
13950         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13951         * doc/posix-functions/cnd_signal.texi: Likewise.
13952         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13953         * doc/posix-functions/cnd_destroy.texi: Likewise.
13955 2019-06-20  Bruno Haible  <bruno@clisp.org>
13957         mtx: New module.
13958         * lib/mtx.c: New file.
13959         * modules/mtx: New file.
13960         * doc/posix-functions/call_once.texi: Mention the new module.
13961         * doc/posix-functions/mtx_init.texi: Likewise.
13962         * doc/posix-functions/mtx_lock.texi: Likewise.
13963         * doc/posix-functions/mtx_trylock.texi: Likewise.
13964         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13965         * doc/posix-functions/mtx_unlock.texi: Likewise.
13966         * doc/posix-functions/mtx_destroy.texi: Likewise.
13968 2019-06-20  Bruno Haible  <bruno@clisp.org>
13970         thrd: New module.
13971         * lib/thrd.c: New file.
13972         * m4/thrd.m4: New file.
13973         * modules/thrd: New file.
13974         * doc/posix-functions/thrd_current.texi: Mention the new module.
13975         * doc/posix-functions/thrd_detach.texi: Likewise.
13976         * doc/posix-functions/thrd_equal.texi: Likewise.
13977         * doc/posix-functions/thrd_exit.texi: Likewise.
13978         * doc/posix-functions/thrd_sleep.texi: Likewise.
13979         * doc/posix-functions/thrd_yield.texi: Likewise.
13980         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13981         AIX bug.
13982         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13983         AIX and Solaris bugs.
13985 2019-06-20  Bruno Haible  <bruno@clisp.org>
13987         threads-h: Add tests.
13988         * tests/test-threads.c: New file.
13989         * modules/threads-h-tests: New file.
13990         * tests/test-threads-c++.cc: New file.
13991         * modules/threads-h-c++-tests: New file.
13993 2019-06-20  Bruno Haible  <bruno@clisp.org>
13995         threads-h: New module.
13996         * lib/threads.in.h: New file.
13997         * m4/threads.m4: New file.
13998         * m4/yield.m4 (gl_YIELD): Update comment.
13999         * modules/threads-h: New file.
14000         * modules/yields (configure.ac): Use AC_REQUIRE.
14001         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14002         bugs.
14004 2019-06-20  Bruno Haible  <bruno@clisp.org>
14006         windows-thread: New module.
14007         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14008         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14009         * lib/glthread/thread.h: Include windows-thread.h.
14010         (gl_thread_t): Define using glwthread_thread_t.
14011         (glthread_create): Define using glwthread_thread_create.
14012         (glthread_join): Define using glwthread_thread_join.
14013         (gl_thread_self): Define using glwthread_thread_self.
14014         (gl_thread_exit): Define using glwthread_thread_exit.
14015         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14016         gl_thread_exit_func): Remove declarations.
14017         * lib/glthread/thread.c (self_key): Remove variable.
14018         (do_init_self_key, init_self_key): Remove functions.
14019         (struct gl_thread_struct): Remove type.
14020         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14021         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14022         functions.
14023         * modules/windows-thread: New file.
14024         * modules/thread (Depends-on): Add windows-thread.
14026 2019-06-20  Bruno Haible  <bruno@clisp.org>
14028         windows-tls: New module.
14029         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14030         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14031         * lib/glthread/tls.h: Include windows-tls.h.
14032         (gl_tls_key_t): Define using glwthread_tls_key_t.
14033         * modules/windows-tls: New file.
14034         * modules/tls (Depends-on): Add windows-tls.
14036 2019-06-20  Bruno Haible  <bruno@clisp.org>
14038         windows-cond: New module.
14039         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14040         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14041         * lib/glthread/cond.h: Include windows-cond.h.
14042         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14043         (gl_cond_t): Define using glwthread_cond_t.
14044         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14045         (glthread_cond_init): Define using glwthread_cond_init.
14046         (glthread_cond_wait): Define using glwthread_cond_wait.
14047         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14048         (glthread_cond_signal): Define using glwthread_cond_signal.
14049         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14050         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14051         (glthread_cond_init_func, glthread_cond_wait_func,
14052         glthread_cond_timedwait_func, glthread_cond_signal_func,
14053         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14054         declarations.
14055         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14056         types.
14057         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14058         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14059         glthread_cond_init_func, glthread_cond_wait_func,
14060         glthread_cond_timedwait_func, glthread_cond_signal_func,
14061         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14062         functions.
14063         * modules/windows-cond: New file.
14064         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14066 2019-06-20  Bruno Haible  <bruno@clisp.org>
14068         windows-timedrecmutex: New module.
14069         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14070         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14071         * modules/windows-timedrecmutex: New file.
14073 2019-06-20  Bruno Haible  <bruno@clisp.org>
14075         windows-timedmutex: New module.
14076         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14077         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14078         * modules/windows-timedmutex: New file.
14080 2019-06-20  Bruno Haible  <bruno@clisp.org>
14082         windows-recmutex: New module.
14083         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14084         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14085         * lib/glthread/lock.h: Include windows-recmutex.h.
14086         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14087         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14088         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14089         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14090         (glthread_recursive_lock_unlock): Define using
14091         glwthread_recmutex_unlock.
14092         (glthread_recursive_lock_destroy): Define using
14093         glwthread_recmutex_destroy.
14094         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14095         glthread_recursive_lock_unlock_func,
14096         glthread_recursive_lock_destroy_func): Remove declarations.
14097         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14098         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14099         glthread_recursive_lock_destroy_func): Remove functions.
14100         * modules/windows-recmutex: New file.
14101         * modules/lock (Depends-on): Add windows-recmutex.
14103 2019-06-20  Bruno Haible  <bruno@clisp.org>
14105         windows-mutex: New module.
14106         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14107         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14108         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14109         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14110         (gl_spinlock_t): Remove type.
14111         (gl_lock_t): Define using glwthread_mutex_t.
14112         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14113         (glthread_lock_init): Define using glwthread_mutex_init.
14114         (glthread_lock_lock): Define using glwthread_mutex_lock.
14115         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14116         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14117         (glthread_lock_init_func, glthread_lock_lock_func,
14118         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14119         declarations.
14120         Use glwthread_spinlock_t instead of gl_spinlock_t.
14121         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14122         GLWTHREAD_SPINLOCK_INIT.
14123         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14124         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14125         functions.
14126         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14127         gl_spinlock_t.
14128         * modules/windows-mutex: New file.
14129         * modules/lock (Depends-on): Add windows-mutex.
14131 2019-06-20  Bruno Haible  <bruno@clisp.org>
14133         windows-once: New module.
14134         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14135         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14136         * lib/glthread/lock.h: Include windows-once.h.
14137         (gl_once_t): Define using glwthread_once_t.
14138         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14139         (glthread_once): Define using glwthread_once.
14140         (glthread_once_func): Remove declaration.
14141         * lib/glthread/lock.c (glthread_once_func): Remove function.
14142         * modules/windows-once: New file.
14143         * modules/lock (Depends-on): Add windows-once.
14145 2019-06-20  Bruno Haible  <bruno@clisp.org>
14147         lock, cond: Avoid possible counter wraparound on Windows.
14148         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14149         field of the guard unchanged if it was already positive.
14150         (glthread_rwlock_rdlock_func): Likewise.
14151         (glthread_rwlock_wrlock_func): Likewise.
14152         (glthread_recursive_lock_lock_func): Likewise.
14153         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14154         (glthread_cond_timedwait_func): Likewise.
14156 2019-06-20  Bruno Haible  <bruno@clisp.org>
14158         cond: Make glthread_cond_timedwait more reliable on Windows.
14159         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14160         condition variable before looking at the current time.
14162 2019-06-20  Bruno Haible  <bruno@clisp.org>
14164         pthread_mutex_timedlock: New module.
14165         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14166         new declaration.
14167         * lib/pthread_mutex_timedlock.c: New file.
14168         * m4/pthread_mutex_timedlock.m4: New file.
14169         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14170         whether pthread_mutex_timedlock is declared.
14171         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14172         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14173         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14174         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14175         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14176         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14177         * modules/pthread_mutex_timedlock: New file.
14178         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14179         module.
14181 2019-06-20  Bruno Haible  <bruno@clisp.org>
14183         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14184         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14185         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14186         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14187         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14188         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14189         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14190         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14191         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14192         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14194 2019-06-20  Bruno Haible  <bruno@clisp.org>
14196         tls tests: Small improvements.
14197         * tests/test-tls.c: Include <stdint.h>.
14198         (worker_thread): Avoid gcc warning on 64-bit mingw.
14199         (test_tls): Pass a different id to each thread.
14200         * modules/tls-tests (Depends-on): Add stdint.
14202 2019-06-20  Bruno Haible  <bruno@clisp.org>
14204         cond tests: Simplify.
14205         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14207 2019-06-20  Bruno Haible  <bruno@clisp.org>
14209         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14210         * tests/test-lock.c (test_once): Don't reference fire_signal if
14211         !ENABLE_LOCKING.
14213 2019-06-19  Bruno Haible  <bruno@clisp.org>
14215         nanosleep: Relicense under LGPLv2+.
14216         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14217         * modules/nanosleep (License): Change to LGPLv2+.
14219 2019-06-19  Bruno Haible  <bruno@clisp.org>
14221         Reorder pieces of header in perl scripts.
14222         The desired order is
14223         - Prologue part 1 (2 lines with #!)
14224         - Program short description
14225         - Copyright and license notice
14226         - Written-by notice
14227         - Program short description (optional)
14228         - Program long description (optional)
14229         - Prologue part 2
14230         - Time stamp
14231         - Code
14232         Reported by Paul Eggert.
14233         * build-aux/announce-gen: Reorder header.
14234         * build-aux/gitlog-to-changelog: Likewise.
14235         * build-aux/useless-if-before-free: Likewise.
14236         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14237         description.
14238         * build-aux/update-copyright: Likewise. Add short description. Bump
14239         time-stamp-line-limit to 200.
14241 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14243         verify-tests: work around xlc bug
14244         Problem reported by Bruno Haible in:
14245         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14246         * tests/test-verify.c (item): Move the arithmetic inside the
14247         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14249 2019-06-16  Bruno Haible  <bruno@clisp.org>
14251         Restore Emacs time-stamp hook applicability.
14252         Reported by Darshit Shah <darnir@gnu.org>.
14253         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14254         * build-aux/announce-gen: Likewise.
14255         * build-aux/gitlog-to-changelog: Likewise.
14256         * build-aux/prefix-gnulib-mk: Likewise.
14257         * build-aux/update-copyright: Likewise.
14259 2019-06-15  Bruno Haible  <bruno@clisp.org>
14261         Fix scripts to have valid executable format on Alpine Linux.
14262         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14263         Idea by Paul Eggert.
14264         * build-aux/useless-if-before-free: Use a prologue that starts with
14265         '#!/bin/sh'.
14266         * build-aux/announce-gen: Likewise.
14267         * build-aux/gitlog-to-changelog: Likewise.
14268         * build-aux/prefix-gnulib-mk: Likewise.
14269         * build-aux/update-copyright: Likewise.
14270         * tests/test-update-copyright.sh: Update test program accordingly.
14272 2019-06-10  Bruno Haible  <bruno@clisp.org>
14274         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14275         Reported by Nikita Ermakov <arei@altlinux.org> in
14276         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14277         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14278         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14280 2019-06-10  Bruno Haible  <bruno@clisp.org>
14282         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14283         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14284         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14285         a copy of the path argument.
14286         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14287         it.
14289 2019-06-10  Bruno Haible  <bruno@clisp.org>
14291         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14292         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14293         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14294         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14295         a copy of the path argument.
14296         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14297         it.
14299 2019-06-10  Bruno Haible  <bruno@clisp.org>
14301         posix_spawn_file_actions_addfchdir: Add tests.
14302         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14303         * tests/test-posix_spawn5.c: New file.
14304         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14306 2019-06-10  Bruno Haible  <bruno@clisp.org>
14308         posix_spawn_file_actions_addfchdir: New module.
14309         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14310         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14311         union member 'fchdir_action'.
14312         * lib/spawn_faction_addfchdir.c: New file.
14313         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14314         * m4/posix_spawn_faction_addfchdir.m4: New file.
14315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14316         'posix_spawn_file_actions_addfchdir' is present and whether
14317         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14318         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14319         posix_spawn_file_actions_addfchdir is declared.
14320         (gl_SPAWN_H_DEFAULTS): Initialize
14321         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14322         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14323         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14324         * modules/spawn (Makefile.am): Substitute
14325         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14326         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14327         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14328         * modules/posix_spawn_file_actions_addfchdir: New file.
14329         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14330         signature.
14331         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14332         * doc/posix-functions/posix_spawnp.texi: Likewise.
14333         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14334         Likewise.
14336 2019-06-10  Bruno Haible  <bruno@clisp.org>
14338         doc: Document existence of posix_spawn_file_actions_addchdir module.
14339         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14340         the posix_spawn_file_actions_addchdir module.
14342 2019-06-10  Bruno Haible  <bruno@clisp.org>
14344         posix_spawn-internal: Fix module description.
14345         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14346         from here...
14347         * modules/posix_spawnp (configure.ac): ... and here...
14348         * modules/posix_spawn-internal (configure.ac): ... to here.
14350 2019-06-10  Bruno Haible  <bruno@clisp.org>
14352         doc: Update and improve documentation of glibc functions.
14353         This is a series of commits that
14354         - updates the documentation to the state of glibc 2.29,
14355         - adds references to Linux man pages and glibc documentation,
14356         - marks Linux specific functions as such.
14357         These are the commits:
14358         doc: Update after removal of crypt functions from glibc 2.28.
14359         doc: Remove mention of function vm86 (does not exist on x86_64).
14360         doc: Remove mention of functions that are gone from glibc.
14361         doc: Mention that glibc no longer provides h_errno.
14362         doc: Mention the availability of specific functions in glibc versions.
14363         doc: Mention eaccess.
14364         doc: Add references to Linux man pages.
14365         doc: Add references to glibc documentation.
14366         doc: Mention inotify_* functions.
14367         doc: Mention ppoll.
14368         doc: Mention sched_getcpu.
14369         doc: Mention sync_file_range.
14370         doc: Mention epoll_pwait.
14371         doc: Mention eventfd, eventfd_read, eventfd_write.
14372         doc: Mention signalfd.
14373         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14374         doc: Mention epoll_create1.
14375         doc: Mention getauxval.
14376         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14377         doc: Mention nextdown, nextup.
14378         doc: Mention more ISO TS 18661-1 <math.h> functions.
14379         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14380         doc: Mention getrandom, getentropy.
14381         doc: Mention strfromf, strfromd, strfroml.
14382         doc: Mention preadv2, pwritev2.
14383         doc: Mention copy_file_range.
14384         doc: Mention memfd_create.
14385         doc: Mention mlock2.
14386         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14387         doc: Mention more ISO TS 18661-1 <math.h> functions.
14388         doc: Mention renameat2.
14389         doc: Mention statx.
14390         doc: Mention the ISO C11 multithreading header and functions.
14391         doc: Mention getcpu.
14392         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14393         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14394         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14395         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14396         doc: Some glibc functions also exist on Solaris 11.
14397         doc: Some glibc functions also exist on Solaris 11.4.
14398         doc: Some glibc functions also exist on FreeBSD.
14399         doc: Some glibc functions also exist on BeOS.
14400         doc: Some glibc functions also exist on Haiku.
14401         doc: Mark functions which exist only on Linux.
14402         doc: Mark functions which exist only on Linux and illumos.
14404 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14406         copy-file: fix typo
14407         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14409         copy-file-range: simplify into a stub
14410         Based on a comment by Florian Weimer in:
14411         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14412         It turns out that Emacs (which will use this module) won’t need an
14413         emulation and I suspect other programs won’t either, because these
14414         programs will need to fall back on read+write anyway.  Perhaps I
14415         am wrong and other programs will be able to use an emulation; if
14416         so, this patch can be reverted.
14417         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14418         Just call it copy_file_range.
14419         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14420         Check via AC_LINK_IFELSE.
14421         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14423 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14425         copy-file: prefer copy_file_range
14426         * lib/copy-file.c: Do not include xalloc.h.
14427         (qcopy_file_preserving): Allocate a buffer only if
14428         copy_file_range does not suffice.  If the allocation fails
14429         don't give up; just use a small stack-based buffer.
14430         Prefer copy_file_range if it works.
14431         * modules/copy-file (Depends-on): Add copy-file-range.
14432         Remove xalloc.
14434         copy-file-range: new module
14435         * MODULES.html.sh: Add copy-file-range.
14436         * lib/copy-file-range.c, m4/copy-file-range.m4:
14437         * modules/copy-file-range: New files.
14438         * lib/unistd.in.h (copy_file_range): Declare.
14439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14440         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14441         * modules/unistd (unistd.h): Substitute them.
14443 2019-05-28  Bruno Haible  <bruno@clisp.org>
14445         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14446         Reported by KO Myung-Hun <komh78@gmail.com> in
14447         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14448         * lib/binary-io.h (__gl_setmode_check): Remove function.
14449         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14450         * lib/binary-io.c (__gl_setmode_check): Remove function.
14451         (set_binary_mode): Define here on DJGPP and EMX. Inline
14452         __gl_setmode_check. In case of a tty, don't return an error code.
14454 2019-05-28  James Youngman  <jay@gnu.org>
14456         dirent-safer: Make opendir_safer usable from C++.
14457         * lib/dirent-safer.h: use extern "C".
14459 2019-05-28  James Youngman  <jay@gnu.org>
14461         canonicalize: Make canonicalize_filename_mode usable from C++.
14462         * lib/canonicalize.h: use extern "C".
14464 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14466         prefix-gnulib-mk: Fix CPPFLAGS migration.
14467         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14468         _a part of the library name.
14470 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14472         flexmember: update comments again
14473         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14475         flexmember: update comment
14476         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14478 2019-05-20  Bruno Haible  <bruno@clisp.org>
14480         setlocale: Improve fallback on macOS.
14481         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14482         invocation.
14483         (locales_with_principal_territory): New array.
14484         (langcmp, get_main_locale_with_same_language): New functions.
14485         (locales_with_principal_language): New array.
14486         (terrcmp, get_main_locale_with_same_territory): New functions.
14487         (rpl_setlocale): When setlocale_single failed, try again with a locale
14488         that is more likely to exist. Don't warn if the environment variable
14489         SETLOCALE_VERBOSE is not set.
14491 2019-05-19  Bruno Haible  <bruno@clisp.org>
14493         localename: Fix default on macOS.
14494         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14495         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14496         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14497         HAVE_CFLOCALECOPYCURRENT.
14498         * lib/localename.h (gl_locale_name_default): Update.
14500 2019-05-19  Karl Berry  <karl@freefriends.org>
14502         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14503         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14504         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14506 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14508         maintainer-makefile: catch uses of $< in non-implicit rules
14509         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14511 2019-05-18  Bruno Haible  <bruno@clisp.org>
14513         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14514         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14515         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14516         gl_use_threads accordingly.
14518 2019-05-18  Bruno Haible  <bruno@clisp.org>
14520         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14521         Reported by Tim Rühsen in
14522         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14523         and Michele Locati in
14524         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14525         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14526         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14527         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14528         in use and regardless which threads API is chosen.
14530 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14532         close-stream, closein, closeout: simplify
14533         I noticed this opportunity for simplification while drafting a
14534         new, related module that I haven’t had time to finish yet.
14535         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14536         * modules/close-stream (Files): Remove m4/close-stream.m4.
14537         (configure.ac): Omit gl_CLOSE_STREAM.
14538         * modules/closein (Files): Remove m4/closein.m4
14539         (configure.ac): Omit gl_CLOSEIN.
14540         * modules/closeout (Files): Remove m4/closeout.m4.
14541         (configure.ac): Omit gl_CLOSEOUT.
14543 2019-05-12  Bruno Haible  <bruno@clisp.org>
14545         libtool-next-version: New program.
14546         * build-aux/libtool-next-version: New file.
14548 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14549             Bruno Haible  <bruno@clisp.org>
14551         version-etc: Ease translation.
14552         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14553         URLs and formatting newlines out of translatable string.
14555 2019-05-11  Bruno Haible  <bruno@clisp.org>
14557         gnupload: Explain how to create symlinks.
14558         * build-aux/gnupload (usage): Add an example that creates symlinks.
14560 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14562         fpucw: port to gcc -pedantic
14563         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14564         Use __extension__ if using ({ ... }).
14566         crypto/af_alg: port to strict C compilers
14567         * lib/af_alg.c: Include af_alg.h regardless, so that the
14568         compilation unit is nonempty.
14570 2019-05-10  Bruno Haible  <bruno@clisp.org>
14572         base64: Avoid false positive warning from Coverity.
14573         Reported by Kamil Dudka <kdudka@redhat.com>.
14574         Idea by Paul Eggert.
14575         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14576         '& 0x3f' to the array index expressions. This convinces Coverity that
14577         there is no out-of-bounds array reference, regardless of the input.
14579 2019-05-09  Bruno Haible  <bruno@clisp.org>
14581         gettext: Update to gettext 0.20.
14582         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14583         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14584         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14585         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14586         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14587         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14588         (configure.ac): Request infrastructure compatible with gettext 0.20.
14589         * m4/glibc2.m4: Remove file.
14590         * m4/intdiv0.m4: Remove file.
14591         * m4/intl.m4: Remove file.
14592         * m4/intldir.m4: Remove file.
14593         * m4/intmax.m4: Remove file.
14594         * m4/printf-posix.m4: Remove file.
14595         * m4/uintmax_t.m4: Remove file.
14596         * m4/gettext.m4: Update from gettext 0.20.
14597         * m4/po.m4: Likewise.
14599 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14601         verify: remove verify_true
14602         * NEWS: Mention this.
14603         * lib/verify.h (verify_true): Remove.
14604         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14606         Support C2X and C++17 static_assert
14607         C2X and C++17 finally added support for a simple, single-argument
14608         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14609         doing back in 2005.  Implement static_assert on older platforms.
14610         The only remaining advantage of ‘verify’ is a shorter name.
14611         * doc/posix-headers/assert.texi (assert.h):
14612         * doc/verify.texi (Compile-time Assertions):
14613         Modernize for C2X and C++17.
14614         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14615         New macros.
14616         (_GL_HAVE__STATIC_ASSERT): Remove.
14617         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14618         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14619         string.  All callers changed.
14620         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14621         are used.  All callers changed.
14622         (_Static_assert): Allow either 1 or 2 args, and define if
14623         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14624         !_GL_HAVE__STATIC_ASSERT.
14625         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14626         of defining if !_GL_HAVE_STATIC_ASSERT.
14627         (verify_expr, verify): Don’t bother trying to copy the expression
14628         into the diagnostic, since 1-argument static_assert doesn’t.
14629         (verify): Prefer 1-argument _Static_assert if it works.
14630         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14632 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14634         Fix _GL_HAVE__STATIC_ASSERT typo
14635         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14636         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14638 2019-05-05  Bruno Haible  <bruno@clisp.org>
14640         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14641         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14642         via Akim Demaille <akim.demaille@gmail.com>.
14643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14644         en_US.UTF-8 locale, since that is more likely to be present than an
14645         fr_FR.UTF-8 locale.
14646         * tests/test-wcwidth.c (main): Check the width of U+2202.
14647         * doc/posix-functions/wcwidth.texi: Mention the issue.
14649 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14651         Port manywarnings to GCC 9
14652         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14653         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14654         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14655         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14656         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14657         --help=warnings output.
14658         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14659         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14660         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14662 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14664         Sync lib/mktime-internal.h from glibc
14665         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14666         * lib/mktime-internal.h: Autoupdate.
14668 2019-04-28  Bruno Haible  <bruno@clisp.org>
14670         tls tests: Prevent that the test takes too long.
14671         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14672         (main): Let the test fail if it takes more than 10 minutes.
14673         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14675 2019-04-27  Bruno Haible  <bruno@clisp.org>
14677         lock tests: Prevent that the test takes too long.
14678         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14679         (main): Let the test fail if it takes more than 10 minutes.
14680         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14682 2019-04-27  Bruno Haible  <bruno@clisp.org>
14684         localename: Fix crash on mingw (regression from 2018-11-23).
14685         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14686         locale name that is null.
14688 2019-04-27  Bruno Haible  <bruno@clisp.org>
14690         Fix gcc warnings on 64-bit mode mingw.
14691         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14692         * lib/gl_array_list.c: Likewise.
14693         * lib/gl_array_map.c: Likewise.
14694         * lib/gl_array_set.c: Likewise.
14695         * lib/gl_carray_list.c: Likewise.
14696         * lib/gl_sublist.c: Likewise.
14697         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14698         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14699         * lib/gl_hash_map.c (uintptr_t): Likewise.
14700         * lib/gl_hash_set.c (uintptr_t): Likewise.
14701         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14702         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14703         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14704         * lib/iconv.c (uintptr_t): Likewise.
14705         * lib/iconv_close.c (uintptr_t): Likewise.
14706         * tests/test-lock.c: Include <stdint.h>.
14707         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14708         'long'.
14709         * modules/clean-temp (Depends-on): Add stdint.
14710         * modules/array-list (Depends-on): Likewise.
14711         * modules/array-map (Depends-on): Likewise.
14712         * modules/array-set (Depends-on): Likewise.
14713         * modules/carray-list (Depends-on): Likewise.
14714         * modules/sublist (Depends-on): Likewise.
14715         * modules/lock-tests (Depends-on): Likewise.
14717 2019-04-27  Bruno Haible  <bruno@clisp.org>
14719         error: Tweak indentation.
14720         * lib/error.c: Correct indentation.
14722 2019-04-27  Bruno Haible  <bruno@clisp.org>
14724         term-style-control: Fix gcc warning on mingw.
14725         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14726         of i.
14728 2019-04-26  Bruno Haible  <bruno@clisp.org>
14730         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14731         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14733 2019-04-26  Bruno Haible  <bruno@clisp.org>
14735         relocatable-prog: Fix gcc warning on mingw.
14736         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14737         on EMX.
14739 2019-04-02  Bruno Haible  <bruno@clisp.org>
14741         gitsub.sh: New file.
14742         * top/gitsub.sh: New file.
14744 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14746         argmatch: use void* for raw memory pointers
14747         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14748         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14749         to "values", keep char* for strings.
14751 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14753         prefix-gnulib-mk: fix the support for gnulib-po
14754         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14755         Don't touch HAVE_* variables.
14756         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14758 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14760         di-set: allow free with 'ino_map' being NULL.
14761         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14762         is NULL.  Bug introduced in commit 3703dbbe88dd.
14763         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14764         as a test.
14766 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14768         * lib/str-two-way.h: Fix comment typo.
14770 2019-04-13  Bruno Haible  <bruno@clisp.org>
14772         x-to-1: Restore ability to use original calling convention.
14773         * build-aux/x-to-1.in: Add comments. Accept the original form of
14774         HELP2MAN argument as well as the form expected since 2012-12-12.
14776 2019-04-13  Bruno Haible  <bruno@clisp.org>
14778         x-to-1: Avoid failure due to missing perl modules.
14779         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14780         needs are installed.
14782 2019-04-13  Bruno Haible  <bruno@clisp.org>
14784         openmp-init: New module.
14785         * modules/openmp-init: New file.
14786         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14787         the changes from 2019-04-09.
14789 2019-04-12  Bruno Haible  <bruno@clisp.org>
14791         signbit: Fix compilation error when gnulib's math.h exists twice.
14792         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14794 2019-04-12  Bruno Haible  <bruno@clisp.org>
14796         openmp: Fix compilation error on platforms without OpenMP.
14797         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14799 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14801         mountlist: make parsing /proc/self/mountinfo more robust
14802         Cater for the following issues with mountinfo parsing (the first
14803         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14804         in <https://bugs.gnu.org/35137>).
14805         1. The fields source, target, mntroot and fstype may contain characters
14806         like '\r'; sscanf(3) fails to read such values with the %s format
14807         specifier because it would stop at such characters.
14808         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14809         The only true separator in that file is the ' ' character.
14810         2. The source field may be an empty string, which happens e.g. with
14811         "mount -t tmpfs '' /target".
14812         3. The fstype field may contain mangled characters as well which need
14813         unescaping.
14814         * lib/mountlist.c (terminate_at_blank): Add utility function.
14815         (read_file_system_list): In the block trying to read the mountinfo file,
14816         avoid using sscanf(3) with %s format; instead, parse the above fields
14817         separated by spaces one by one.
14818         This also handles the case when the source field is an empty string.
14819         Unescape the fstype field.
14821 2019-04-09  Bruno Haible  <bruno@clisp.org>
14823         openmp: Add workaround for 32-bit programs on AIX.
14824         * lib/omp.in.h: New file.
14825         * lib/omp-init.c: New file, based on lib/nproc.c.
14826         * m4/omp_h.m4: New file.
14827         * modules/openmp (Files): Add them.
14828         (Depends-on): Add include_next, c-ctype, setenv.
14829         (configure.ac): Invoke gl_OMP_H.
14830         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14831         (Include): Mention <omp.h>.
14833 2019-04-09  Bruno Haible  <bruno@clisp.org>
14835         nproc: Fix return value for privileged processes.
14836         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14837         getpid().
14839 2019-04-07  Bruno Haible  <bruno@clisp.org>
14841         Add copyright notices in several files.
14842         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14843         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14844         * lib/libunistring.valgrind: Likewise.
14845         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14846         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14847         * lib/memchr.valgrind: Likewise.
14848         * lib/memchr2.valgrind: Likewise.
14849         * lib/rawmemchr.valgrind: Likewise.
14850         * lib/relocatable.valgrind: Likewise.
14851         * lib/strchrnul.valgrind: Likewise.
14853 2019-03-25  Bruno Haible  <bruno@clisp.org>
14855         term-style-control tests: Fix link error.
14856         Reported by Tom G. Christensen in
14857         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14858         * modules/term-style-control-tests (Makefile.am): Link
14859         test-term-style-control-hello and test-term-style-control-yes against
14860         LIBINTL.
14862 2019-03-24  Bruno Haible  <bruno@clisp.org>
14864         term-style-control: Add tests.
14865         * tests/test-term-style-control-hello.c: New file.
14866         * tests/test-term-style-control-yes.c: New file.
14867         * modules/term-style-control-tests: New file.
14869         term-style-control: New module.
14870         * lib/term-style-control.h: New file, based on libtextstyle's
14871         term-ostream.oo.h and term-ostream.oo.c.
14872         * lib/term-style-control.c: New file, based on libtextstyle's
14873         term-ostream.oo.c.
14874         * modules/term-style-control: New file.
14876 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14878         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14879         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14880         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14882 2019-03-23  Bruno Haible  <bruno@clisp.org>
14884         Support cross-compilation to musl libc.
14885         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14886         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14887         musl libc.
14888         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14889         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14890         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14891         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14892         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14893         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14894         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14895         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14896         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14897         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14898         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14900         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14901         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14902         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14903         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14904         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14905         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14906         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14907         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14908         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14909         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14910         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14911         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14912         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14913         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14914         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14915         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14916         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14917         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14918         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14919         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14920         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14921         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14922         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14923         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14924         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14925         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14926         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14927         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14928         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14929         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14930         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14931         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14932         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14933         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14934         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14935         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14936         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14937         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14938         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14939         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14940         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14941         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14942         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14943         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14944         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14945         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14946         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14947         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14948         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14951         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14952         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14953         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14954         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14955         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14956         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14957         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14958         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14959         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14960         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14961         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14962         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14963         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14964         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14967 2019-03-23  Bruno Haible  <bruno@clisp.org>
14969         posix_spawn_file_actions_*: Document musl libc bugs.
14970         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14971         the bug.
14972         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14973         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14974         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14975         cross-compiling to a musl system, guess no.
14976         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14977         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14979 2019-03-23  Bruno Haible  <bruno@clisp.org>
14981         futimens: Document musl libc bug.
14982         * doc/posix-functions/futimens.texi: Mention the bug.
14983         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14984         cross-compiling, guess no on glibc and musl systems.
14986 2019-03-23  Bruno Haible  <bruno@clisp.org>
14988         Clarify that cross-compilation guesses are guesses.
14989         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14990         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14991         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14992         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14993         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14994         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14995         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14996         gl_cv_glob_lists_symlinks.
14997         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14998         'guessing ' to ac_cv_func_malloc_0_nonnull.
14999         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15000         'guessing ' to ac_cv_func_realloc_0_nonnull.
15001         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15002         'guessing ' to gl_cv_func_poll.
15003         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15004         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15005         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15007 2019-03-23  Bruno Haible  <bruno@clisp.org>
15009         strtold: Fix typo.
15010         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15012 2019-03-23  Bruno Haible  <bruno@clisp.org>
15014         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15015         Reported by Akim Demaille.
15016         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15017         [[noreturn]] would not work, use _Noreturn instead.
15019 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15021         libtextstyle-optional: Fix compiler warnings.
15022         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15023         as unused.
15025 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15027         bitset: fix memory leaks
15028         Reported by Bruno Haible.
15029         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15030         * lib/bitset/vector.c (vbitset_free): New.
15031         (vbitset_vtable): Use it.
15033 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15035         bitset: minor changes
15036         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15037         * lib/bitset/table.c: Formatting changes.
15038         Remove useless braces.
15039         Prefer using else in cascades of if/else-if with returns.
15040         * lib/bitset/vector.c: Reduce scopes.
15042 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15044         bitset: expose bitset_resize
15045         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15046         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15047         (main): Use a variable bitset as reference, since fixed does not support resize.
15049 2019-03-19  Bruno Haible  <bruno@clisp.org>
15051         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15052         Reported by Akim Demaille.
15053         * doc/noreturn.texi: New file.
15054         * doc/gnulib.texi: Include it.
15056 2019-03-19  Bruno Haible  <bruno@clisp.org>
15058         doc: Document how to use 'static inline'.
15059         * doc/static-inline.texi: New file.
15060         * doc/gnulib.texi: Include it.
15062 2019-03-19  Bruno Haible  <bruno@clisp.org>
15064         libtextstyle-optional: Add tests.
15065         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15066         adhoc-tests/hello.c.
15067         * tests/test-libtextstyle-default.css: New file, copied from
15068         libtextstyle's adhoc-tests/hello-default.css.
15069         * modules/libtextstyle-optional-tests: New file.
15071         libtextstyle-optional: New module.
15072         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15073         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15074         * modules/libtextstyle-optional: New file.
15076 2019-03-19  Bruno Haible  <bruno@clisp.org>
15078         c-stack: Make signal handlers more reliable.
15079         * lib/c-stack.c (progname): New variable.
15080         (die): Use it.
15081         (c_stack_action): Initialize it.
15082         (segv_handler): Save and restore errno.
15084 2019-03-19  Bruno Haible  <bruno@clisp.org>
15086         Help making signal handlers more reliable.
15087         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15088         _GL_ASYNC_SAFE into config.h.
15089         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15090         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15091         argument.
15092         * lib/fatal-signal.c (action_t, uninstall_handlers,
15093         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15094         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15095         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15096         _GL_ASYNC_SAFE.
15097         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15098         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15100 2019-03-18  Bruno Haible  <bruno@clisp.org>
15102         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15103         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15104         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15106 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15108         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15109         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15110         GCC 4.8.
15112 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15114         fts: minor simplification
15115         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15117 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15119         bitset, timevar: Depend on c99.
15120         Reported by Bruno Haible.
15121         * modules/bitset, modules/timevar (Depends-on): Add c99.
15123 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15125         bitset: a bit (...) more tests
15126         * tests/test-bitset.c (check_attributes): Check zero and ones.
15128 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15130         bitset: fix overflows.
15131         Reported by Bruno Haible.
15132         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15133         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15134         the bit in the array of bitset_word, so be sure to take its modulo
15135         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15136         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15138 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15140         bitset: style changes.
15141         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15142         Formatting changes.
15143         (tbitset_list): Reduce scopes.
15145 2019-03-16  Bruno Haible  <bruno@clisp.org>
15147         fatal-signal: Pass the signal number to the action.
15148         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15149         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15150         (fatal_signal_handler): Pass the signal number to the action.
15151         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15152         signal number as parameter.
15153         (create_temp_dir): Update.
15154         * lib/wait-process.c (cleanup_slaves_action): New function.
15155         (register_slave_subprocess): Update at_fatal_signal invocation.
15156         * NEWS: Mention the change.
15158 2019-03-16  Bruno Haible  <bruno@clisp.org>
15160         fatal-signal: Add function that lists the fatal signals.
15161         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15162         * lib/fatal-signal.c (get_fatal_signals): New function.
15164 2019-03-14  Bruno Haible  <bruno@clisp.org>
15166         isatty: Make it return true in Cygwin consoles on native Windows.
15167         * lib/isatty.c: Include <string.h>.
15168         (GetProcAddress): New macro.
15169         (GetNamedPipeClientProcessIdFuncType): New type.
15170         (GetNamedPipeClientProcessIdFunc): New variable.
15171         (QueryFullProcessImageNameFuncType): New type.
15172         (QueryFullProcessImageNameFunc): New variable.
15173         (initialized): New variable.
15174         (initialize): New function.
15175         (IsCygwinConsoleHandle): New function.
15176         (isatty): Invoke it.
15177         * doc/posix-functions/isatty.texi: Mention the issue.
15179 2019-03-14  Bruno Haible  <bruno@clisp.org>
15181         all: Update URLs to msdn.microsoft.com.
15182         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15183         was moved to docs.microsoft.com.
15185 2019-03-13  Bruno Haible  <bruno@clisp.org>
15187         gnulib-tool: Clarify the coding style.
15188         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15189         * gnulib-tool: Add comment about coding style.
15191 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15193         strtod: fix clash with strtold
15194         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15195         * lib/strtod.c (compute_minus_zero, minus_zero):
15196         Simplify by remving the macro / external variable,
15197         and having just a function.  User changed.  This avoids
15198         the need for an external variable that might clash.
15200 2019-03-10  Bruno Haible  <bruno@clisp.org>
15202         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15203         Reported by Eli Zaretskii <eliz@gnu.org>.
15204         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15206         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15208 2019-03-10  Bruno Haible  <bruno@clisp.org>
15210         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15211         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15212         is in use.
15213         * tests/test-printf-posix2.c: Likewise.
15215 2019-03-10  Bruno Haible  <bruno@clisp.org>
15217         uninorm tests: Free allocated memory.
15218         * tests/uninorm/test-u32-normalize-big.h
15219         (struct normalization_test_file): Remove 'const' from allocated member.
15220         (free_normalization_test_file): New declaration.
15221         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15222         memory.
15223         (free_normalization_test_file): New function.
15224         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15225         'struct normalization_test_file' contents.
15226         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15227         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15228         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15230 2019-03-10  Bruno Haible  <bruno@clisp.org>
15232         di-set: Fix memory leak.
15233         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15234         not free().
15236 2019-03-10  Bruno Haible  <bruno@clisp.org>
15238         tests: Free allocated memory.
15239         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15240         * tests/test-astrxfrm.c (main): Free allocated memory.
15241         * tests/test-bitset.c (compare, check_attributes): Free allocated
15242         bitsets.
15243         * tests/test-filenamecat.c (main): Free allocated memory.
15244         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15245         * tests/test-freadptr.c (main): Likewise.
15246         * tests/test-freadptr2.c (main): Free allocated memory.
15247         * tests/test-freadseek.c (main): Likewise.
15248         * tests/test-gc-arcfour.c (main): Close allocated context.
15249         * tests/test-gc-arctwo.c (main): Likewise.
15250         * tests/test-gc-des.c (main): Close all allocated contexts.
15251         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15252         * tests/test-pipe-filter-ii1.c (main): Likewise.
15253         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15254         allocated file actions.
15255         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15256         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15257         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15258         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15259         * tests/test-strfmon_l.c (main): Free allocated locales.
15260         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15261         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15262         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15263         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15264         * tests/unistr/test-chr.h (main): Free input32.
15265         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15267 2019-03-10  Bruno Haible  <bruno@clisp.org>
15269         tests: Prepare for using valgrind.
15270         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15271         * tests/*/*.sh: Likewise.
15272         * tests/test-freadptr.c (main): Update accordingly.
15273         * tests/test-freadseek.c (main): Likewise.
15275 2019-03-09  Bruno Haible  <bruno@clisp.org>
15277         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15278         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15279         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15280         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15281         before exiting.
15283 2019-03-09  Jim Meyering  <meyering@fb.com>
15285         test-userspec.c: don't print NULL
15286         * tests/test-userspec.c (main): A test release of gcc,
15287         9.0.1 20190310, warned that this test would attempt to
15288         print a NULL pointer via a %s printf format.  Fix that
15289         and remove the unnecessary preceding "!diag" conjunct.
15290         Also add a comment.
15292 2019-03-03  Bruno Haible  <bruno@clisp.org>
15294         getloadavg: Write NULL for the null pointer.
15295         Reported by Michal Privoznik <mprivozn@redhat.com>.
15296         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15298 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15300         alloca, tsearch-tests: Write NULL for the null pointer.
15301         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15302         * tests/test-tsearch.c (mangle_tree): Likewise.
15304 2019-03-09  Bruno Haible  <bruno@clisp.org>
15306         strfmon_l: Fix -fsanitize=address finding.
15307         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15308         <string.h>.
15309         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15310         (directive_t, directives_t): New types.
15311         (fmon_parse): New function.
15312         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15313         format string. Consume 'long double' arguments in places where the
15314         format string indicates so.
15315         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15317 2019-03-09  Bruno Haible  <bruno@clisp.org>
15319         crypto/des: Fix undefined behaviour.
15320         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15321         shift operations on 'int'.
15323 2019-03-09  Bruno Haible  <bruno@clisp.org>
15325         Fix undefined behaviour.
15326         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15327         'unsigned int', to avoid shift operations on 'int'.
15328         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15329         * tests/test-count-leading-zeros.c (main): Use a random number that has
15330         as many bits as TYPE, not only 2*15 or 2*31 bits.
15331         * tests/test-count-trailing-zeros.c (main): Likewise.
15332         * tests/test-count-one-bits.c (main): Likewise.
15333         * tests/test-memmem.c: Don't include "null-ptr.h".
15334         (main): Use zerosize_ptr() instead of null_ptr().
15335         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15337 2019-03-08  Bruno Haible  <bruno@clisp.org>
15339         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15340         Reported by Jeffrey Walton <noloader@gmail.com>.
15341         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15342         invoke memset with a zero size.
15343         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15344         Likewise.
15345         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15346         Adjust accordingly.
15348 2019-03-08  Bruno Haible  <bruno@clisp.org>
15350         unistr/*, uniconv/*: Fix undefined behaviour.
15351         Reported by Jeffrey Walton <noloader@gmail.com>.
15352         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15353         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15354         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15355         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15357 2019-03-08  Bruno Haible  <bruno@clisp.org>
15359         unistr/u8-cmp: Fix undefined behaviour.
15360         Reported by Jeffrey Walton <noloader@gmail.com>.
15361         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15363 2019-03-08  Bruno Haible  <bruno@clisp.org>
15365         unictype/numeric: Fix undefined behaviour.
15366         Reported by Jeffrey Walton <noloader@gmail.com>.
15367         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15368         on shift overflow, caught by "gcc -fsanitize=undefined".
15369         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15370         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15371         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15373 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15375         git-version-gen: fix --version copyright year
15376         * build-aux/git-version-gen, build-aux/move-if-change (version):
15377         --version output copyright year is now taken from script year,
15378         so that it no longer needs to be updated by hand.
15380 2019-03-04  Bruno Haible  <bruno@clisp.org>
15382         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15383         This approach supports relocatable installation of shared libraries
15384         which depend on other shared libraries from the same package.
15385         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15386         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15387         wrapper around the original LIBTOOL.
15388         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15389         token '@loader_path' instead of '$ORIGIN'.
15390         * build-aux/libtool-reloc: New file.
15391         * modules/relocatable-prog (Files): Add it.
15392         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15393         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15394         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15395         Makefile.am, not in configure.ac.
15397 2019-03-04  Bruno Haible  <bruno@clisp.org>
15399         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15400         * build-aux/install-reloc: Revert change.
15401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15403 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15405         nstrftime: support the ‘+’ flag
15406         * lib/nstrftime.c (add, __strftime_internal):
15407         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15408         (__strftime_internal): New arg ‘width’.  All uses changed.
15409         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15411 2019-02-24  Bruno Haible  <bruno@clisp.org>
15413         relocatable-prog: Improve verbose output.
15414         * build-aux/install-reloc (func_verbose): Escape characters that would
15415         be interpreted by the shell.
15417 2019-02-24  Bruno Haible  <bruno@clisp.org>
15419         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15420         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15421         "sys/stat.h".
15422         * lib/lstat.c: Likewise.
15423         * lib/fstat.c: Likewise.
15424         * lib/fstatat.c: Likewise.
15426 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15428         long-options: add parse_gnu_standard_options_only
15429         Discussed in https://bugs.gnu.org/33468 .
15431         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15432         (parse_gnu_standard_options_only): Add function to process
15433         the GNU default options --help and --version and fail for
15434         any other unknown long or short option. See
15435         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15436         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15437         * modules/long-options (depends-on): Add stdbool, exitfail.
15438         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15439         syntax-check rule, add new function name.
15441 2019-02-23  Bruno Haible  <bruno@clisp.org>
15443         relocatable-prog: Update documentation.
15444         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15445         the recent changes.
15447 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15449         nstrftime: tweak arg order
15450         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15451         All callers changed.  Suggested by TAMUKI Shoichi in:
15452         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15454 2019-02-23  Bruno Haible  <bruno@clisp.org>
15456         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15457         Reported by Paul Smith <psmith@gnu.org>.
15458         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15459         (func_relativize): New function, from gnulib-tool.
15460         Handle mode 'macosx' through invocations of 'otool' and
15461         'install_name_tool'.
15462         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15463         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15464         'install-reloc' invocation with mode 'macosx'.
15466 2019-02-23  Bruno Haible  <bruno@clisp.org>
15468         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15469         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15470         Hurd with glibc >= 2.27.
15472 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15474         nstrftime: merge glibc strftime changes
15475         This incorporates:
15476         2019-02-11 Fix a few whitespace arrangement inconsistencies
15477         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15478         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15479         2019-01-11 strftime: use the "L_" macro with character literals
15480         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15481         callers changed.  Default width of %Ey is now 2.  This is needed
15482         for proper handling of Japanese dates starting on 2019-05-01.
15484 2019-02-19  Bruno Haible  <bruno@clisp.org>
15486         relocatable-prog: Use $ORIGIN trick on more platforms.
15487         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15488         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15489         Solaris >= 10, Haiku. But don't use it on Android.
15490         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15491         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15493 2019-02-19  Bruno Haible  <bruno@clisp.org>
15495         progreloc: Speed up executable lookup on various platforms.
15496         * lib/progreloc.c: Include <errno.h>.
15497         (safe_read, full_read): New functions.
15498         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15499         prefer the information from the /proc file system to a PATH search.
15501 2019-02-19  Bruno Haible  <bruno@clisp.org>
15503         progreloc: Simplify code for Android.
15504         * lib/progreloc.c (executable_fd): Don't define on Android.
15505         (maybe_executable, find_executable): Don't use executable_fd on Android.
15507 2019-02-15  Bruno Haible  <bruno@clisp.org>
15509         gnulib-tool: Support --import with just a few tests, not --with-tests.
15510         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15511         'inctests' when generating files; use 'inctests' only for computing the
15512         transitive closure.
15514 2019-02-14  Bruno Haible  <bruno@clisp.org>
15516         gnulib-tool: Improve handling of multiple --local-dir options.
15517         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15518         options work.
15519         * gnulib-tool (func_path_prepend): Remove function.
15520         (func_path_foreach): Make IFS handling more robust.
15521         (local_gnulib_path): Collect --local-dir values using func_path_append,
15522         not func_path_prepend.
15523         (func_determine_path_separator): Make IFS handling more robust.
15524         (func_lookup_file_cb): New function.
15525         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15526         func_lookup_local_file. Apply the patches in the reverse order of their
15527         origin in $local_gnulib_path.
15528         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15529         * NEWS: Mention that the first --local-dir option is the one with
15530         highest priority.
15532 2019-02-10  Bruno Haible  <bruno@clisp.org>
15534         libtextstyle: New module.
15535         * m4/libtextstyle.m4: New file.
15536         * modules/libtextstyle: New file.
15538 2019-02-05  Bruno Haible  <bruno@clisp.org>
15540         declared.sh: Fix bug with variables of pointer type.
15541         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15542         before the symbol to be omitted if the preceding character is a '*'.
15544 2019-02-04  Bruno Haible  <bruno@clisp.org>
15546         Add script for running tests under valgrind.
15547         * build-aux/run-test: New file, from GNU libunistring.
15548         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15549         as well.
15551 2019-02-04  Bruno Haible  <bruno@clisp.org>
15553         declared.sh: Fix --version output.
15554         * build-aux/declared.sh (func_version): Update package name.
15556 2019-02-03  Bruno Haible  <bruno@clisp.org>
15558         Add script for determining the set of symbols to export from a library.
15559         * build-aux/declared.sh: New file, from GNU libunistring.
15560         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15561         Mention it.
15563 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15565         vla: add commentary about VLA_ELEMS
15566         * lib/vla.h (VLA_ELEMS): Add commentary,
15567         some inspired by Bruno Haible’s proposal in:
15568         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15570         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15571         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15572         assume the C99 signatures for strtod and strtold.  Programs that
15573         require stricter adherence to C99 should also use the strtod and
15574         strtold modules as needed, and we no longer need the
15575         HAVE_C99_STRTOLD macro.
15576         * NEWS: Mention this.
15577         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15578         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15579         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15580         (Files): Remove m4/c-strtod.m4.
15581         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15582         exists.
15584 2019-02-02  Bruno Haible  <bruno@clisp.org>
15586         fma: Improve code style.
15587         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15589 2019-02-02  Colin Watson  <cjwatson@debian.org>
15591         *-map tests: Fix compilation error.
15592         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15593         * tests/test-hash_map.c: Likewise.
15594         * tests/test-linkedhash_map.c: Likewise.
15596 2019-01-31  Bruno Haible  <bruno@clisp.org>
15598         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15599         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15600         GNULIB_defined_strtold_function): New macros.
15601         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15602         (STRTOD): Ignore HAVE_C99_STRTOLD.
15603         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15604         deemed buggy. But do use it on platforms where uselocale exists and is
15605         usable.
15606         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15607         deemed buggy. On platforms where uselocale exists and is usable, use
15608         uselocale and strtod/strtold.
15609         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15610         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15611         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15612         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15613         (Depends-on): Add strtod.
15614         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15615         (Depends-on): Add strtold.
15617 2019-01-31  Bruno Haible  <bruno@clisp.org>
15619         strtod, strtold: Use the locale's decimal point.
15620         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15621         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15622         (parse_number): Add a radixchar argument. Use it instead of '.'.
15623         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15624         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15625         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15626         * tests/test-strtod1.c: New file.
15627         * tests/test-strtod1.sh: New file.
15628         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15629         locale-fr.m4 and its dependencies.
15630         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15631         (Makefile.am): Arrange to compile test-strtod1.c and run
15632         test-strtod1.sh.
15633         * tests/test-strtold1.c: New file.
15634         * tests/test-strtold1.sh: New file.
15635         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15636         locale-fr.m4 and its dependencies.
15637         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15638         (Makefile.am): Arrange to compile test-strtold1.c and run
15639         test-strtold1.sh.
15641 2019-01-31  Bruno Haible  <bruno@clisp.org>
15643         strtod, strtold tests: Simplify tests.
15644         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15645         * tests/test-strtold.c (main): Likewise.
15647 2019-01-31  Bruno Haible  <bruno@clisp.org>
15649         strtod, strtold: Avoid unnecessary rounding errors.
15650         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15651         decimal to DOUBLE conversion.
15653 2019-01-31  Bruno Haible  <bruno@clisp.org>
15655         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15656         * lib/strtod.c (STRTOD): When there is an extra character after the
15657         exponent marker 'p', reparse the number.
15658         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15659         * doc/posix-functions/strtold.texi: Likewise.
15661 2019-01-29  Bruno Haible  <bruno@clisp.org>
15663         strtold: Add tests.
15664         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15665         * modules/strtold-tests: New file.
15667 2019-01-29  Bruno Haible  <bruno@clisp.org>
15669         strtold: New module.
15670         * lib/stdlib.in.h (strtold): New declaration.
15671         * lib/strtold.c: New file.
15672         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15673         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15674         USE_LDEXP): New macros.
15675         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15676         USE_LONG_DOUBLE.
15677         (underlying_strtod): Remove function. Replace with some macros.
15678         Re-add the code for a missing underlying function that was removed on
15679         2013-02-19.
15680         * m4/strtold.m4: New file.
15681         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15682         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15683         REPLACE_STRTOLD.
15684         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15685         REPLACE_STRTOLD.
15686         * modules/strtold: New file.
15687         * doc/posix-functions/strtold.texi: Document the new module.
15689 2019-01-29  Bruno Haible  <bruno@clisp.org>
15691         strtod: Fix compilation error on IRIX 6.5.
15692         * modules/strtod (Depends-on): Add 'math'.
15694 2019-01-28  Bruno Haible  <bruno@clisp.org>
15696         Fix build error when building a shared libunistring on Android.
15697         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15698         (main): Add 'volatile', to defeat a GCC optimization that would
15699         eliminate the reference.
15700         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15701         (main): Add 'volatile', to defeat a GCC optimization that would
15702         eliminate the reference.
15703         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15704         (main): Add 'volatile', to defeat a GCC optimization that would
15705         eliminate the reference.
15706         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15707         (main): Add 'volatile', to defeat a GCC optimization that would
15708         eliminate the reference.
15710 2019-01-27  Bruno Haible  <bruno@clisp.org>
15712         Avoid build errors due to wrong references between modules.
15713         * lib/uninorm/canonical-decomposition.c: Include
15714         "uninorm/decomposition-table.h", not "decomposition-table.h".
15715         * lib/uninorm/decomposition.c: Likewise.
15716         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15717         not "decompose-internal.h".
15718         * lib/uninorm/u16-normalize.c: Likewise.
15719         * lib/uninorm/u32-normalize.c: Likewise.
15720         * lib/uninorm/uninorm-filter.c: Likewise.
15721         * lib/uninorm/nfkc.c: Likewise.
15722         * lib/uninorm/nfkd.c: Likewise.
15723         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15724         "caseprop.h".
15725         * lib/unicase/u8-ct-totitle.c: Likewise.
15726         * lib/unicase/u8-prefix-context.c: Likewise.
15727         * lib/unicase/u8-suffix-context.c: Likewise.
15728         * lib/unicase/u16-casemap.c: Likewise.
15729         * lib/unicase/u16-ct-totitle.c: Likewise.
15730         * lib/unicase/u16-prefix-context.c: Likewise.
15731         * lib/unicase/u16-suffix-context.c: Likewise.
15732         * lib/unicase/u32-casemap.c: Likewise.
15733         * lib/unicase/u32-ct-totitle.c: Likewise.
15734         * lib/unicase/u32-prefix-context.c: Likewise.
15735         * lib/unicase/u32-suffix-context.c: Likewise.
15736         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15737         "unicasemap.h".
15738         * lib/unicase/u8-toupper.c: Likewise.
15739         * lib/unicase/u8-ct-tolower.c: Likewise.
15740         * lib/unicase/u8-ct-toupper.c: Likewise.
15741         * lib/unicase/u16-tolower.c: Likewise.
15742         * lib/unicase/u16-toupper.c: Likewise.
15743         * lib/unicase/u16-ct-tolower.c: Likewise.
15744         * lib/unicase/u16-ct-toupper.c: Likewise.
15745         * lib/unicase/u32-tolower.c: Likewise.
15746         * lib/unicase/u32-toupper.c: Likewise.
15747         * lib/unicase/u32-ct-tolower.c: Likewise.
15748         * lib/unicase/u32-ct-toupper.c: Likewise.
15749         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15750         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15751         * lib/unicase/u16-ct-casefold.c: Likewise.
15752         * lib/unicase/u32-ct-casefold.c: Likewise.
15754 2019-01-27  Bruno Haible  <bruno@clisp.org>
15756         gperf: Fix error when this module is required by some test module.
15757         * modules/gperf (Applicability): Set to 'all'.
15759 2019-01-27  Bruno Haible  <bruno@clisp.org>
15761         tmpfile: Add support for Android.
15762         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15763         works.
15764         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15765         Android.
15766         * modules/tmpfile (Depends-on): Add 'stdbool'.
15767         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15768         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15770 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15772         bitsetv: allow free on NULL.
15773         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15775 2019-01-27  Bruno Haible  <bruno@clisp.org>
15777         test-framework-sh: Improve maintainability.
15778         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15780 2019-01-27  Bruno Haible  <bruno@clisp.org>
15782         tests: Don't assume that /tmp exists.
15783         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15784         * tests/test-copy-acl-1.sh: Likewise.
15785         * tests/test-file-has-acl-1.sh: Likewise.
15786         * tests/test-copy-file-1.sh: Likewise.
15788 2019-01-27  Bruno Haible  <bruno@clisp.org>
15790         tests: Accommodate a shell that is not in /bin/sh.
15791         * tests/init.sh (setup_): Set srcdir and builddir.
15792         (BOURNE_SHELL): New variable.
15793         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15794         * modules/file-has-acl-tests (Depends-on): Likewise.
15795         * modules/copy-file-tests (Depends-on): Likewise.
15796         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15797         scripts through $BOURNE_SHELL.
15798         * tests/test-set-mode-acl-2.sh: Likewise.
15799         * tests/test-copy-acl-1.sh: Likewise.
15800         * tests/test-copy-acl-2.sh: Likewise.
15801         * tests/test-file-has-acl-1.sh: Likewise.
15802         * tests/test-file-has-acl-2.sh: Likewise.
15803         * tests/test-copy-file-1.sh: Likewise.
15804         * tests/test-copy-file-2.sh: Likewise.
15805         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15806         invoker.
15807         * tests/test-copy-acl.sh (builddir): Likewise.
15808         * tests/test-file-has-acl.sh (builddir): Likewise.
15809         * tests/test-copy-file.sh (builddir): Likewise.
15810         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15811         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15812         * tests/test-vc-list-files-git.sh: Likewise.
15814 2019-01-27  Bruno Haible  <bruno@clisp.org>
15816         tests: Fix some "unused variable" warnings.
15817         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15818         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15819         * tests/test-striconveh.c (main): Move some variable into the
15820         '#if HAVE_ICONV'.
15821         * tests/test-striconveha.c (main): Likewise.
15822         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15823         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15824         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15825         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15826         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15827         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15828         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15829         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15830         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15831         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15832         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15833         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15834         * tests/test-tsearch.c (main): Move some variable into the
15835         '#if HAVE_INITSTATE'.
15837 2019-01-27  Bruno Haible  <bruno@clisp.org>
15839         unigbrk/uc-grapheme-breaks: Fix build failure.
15840         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15841         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15843 2019-01-27  Bruno Haible  <bruno@clisp.org>
15845         mountlist: Merge two .m4 files.
15846         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15847         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15848         * m4/ls-mntd-fs.m4: Remove file.
15849         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15851 2019-01-27  Bruno Haible  <bruno@clisp.org>
15853         tests: Enable Linux specific tests on Android.
15854         * tests/test-flock.c (main): Treat Android like Linux.
15855         * tests/test-openat-safer.c (main): Likewise.
15857 2019-01-27  Bruno Haible  <bruno@clisp.org>
15859         relocatable-prog: Use Linux code on Android.
15860         * lib/progreloc.c: Treat Android like Linux.
15862 2019-01-26  Bruno Haible  <bruno@clisp.org>
15864         getloadavg: Add support for Android.
15865         * lib/getloadavg.c: Treat Android like Linux.
15867 2019-01-26  Bruno Haible  <bruno@clisp.org>
15869         vma-iter: Add support for Android.
15870         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15871         * lib/vma-iter.c: Treat Android like Linux.
15872         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15874 2019-01-26  Bruno Haible  <bruno@clisp.org>
15876         fts: Optimize on Android.
15877         * lib/fts.c: Treat Android like Linux.
15879 2019-01-26  Bruno Haible  <bruno@clisp.org>
15881         fts: Add support for Android.
15882         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15883         defined by this module and the ones in libc.
15884         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15886 2019-01-26  Bruno Haible  <bruno@clisp.org>
15888         mountlist: Use Linux code on Android.
15889         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15890         (unescape_tab, read_file_system_list): Enable Linux code on Android
15891         as well.
15892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15893         and endmntent.
15894         * modules/mountlist (Depends-on): Add 'getline'.
15896 2019-01-26  Bruno Haible  <bruno@clisp.org>
15898         localename tests: Fix test failure on Android.
15899         * modules/localename-tests (Depends-on): Add 'setlocale'.
15901 2019-01-26  Bruno Haible  <bruno@clisp.org>
15903         mountlist: Port better to Android.
15904         * lib/mountlist.c (MOUNTED): Redefine on Android.
15905         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15906         Android.
15908 2019-01-26  Bruno Haible  <bruno@clisp.org>
15910         striconveh: Fix use of uninitialized iconv_t.
15911         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15912         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15913         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15915 2019-01-26  Bruno Haible  <bruno@clisp.org>
15917         nonblocking-socket-tests: Fix test failure on Android 4.3.
15918         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15919         also on Android.
15921 2019-01-26  Bruno Haible  <bruno@clisp.org>
15923         sh-filename: Add support for Android 4.3.
15924         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15926 2019-01-26  Bruno Haible  <bruno@clisp.org>
15928         ptsname_r: Work around bug on Android 4.3.
15929         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15930         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15931         correct.
15932         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15933         is defined, just fix the return value.
15934         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15935         The behaviour of musl libc is nothing to be "fixed", since it is
15936         compliant with the next POSIX standard.
15938 2019-01-26  Bruno Haible  <bruno@clisp.org>
15940         ttyname_r: Work around bug on Android 4.3.
15941         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15942         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15943         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15944         * doc/posix-functions/ttyname.texi: Likewise.
15946 2019-01-25  Bruno Haible  <bruno@clisp.org>
15948         getprogname: Port to Android 4.3.
15949         * lib/getprogname.c (getprogname): On Android, take only the last
15950         component of __progname.
15952 2019-01-25  Bruno Haible  <bruno@clisp.org>
15954         wcrtomb: Work around bug on Android 4.3.
15955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15956         the C locale.
15957         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15958         which does not have the 'wctomb' function.
15959         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15960         * tests/test-wcrtomb.c (main): Accept argument '5'.
15961         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15963 2019-01-25  Bruno Haible  <bruno@clisp.org>
15965         setlocale: Work around bug on Android 4.3.
15966         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15967         the "C" locale.
15968         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15969         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15971 2019-01-24  Bruno Haible  <bruno@clisp.org>
15973         memchr: Work around bug on Android <= 5.0.
15974         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15975         * doc/posix-functions/memchr.texi: Mention the Android bug.
15977 2019-01-24  Bruno Haible  <bruno@clisp.org>
15979         random: Fix compilation error on Android 4.3.
15980         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15981         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15982         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15983         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15984         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15986         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15987         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15988         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15989         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15990         REPLACE_INITSTATE, REPLACE_SETSTATE.
15991         * doc/posix-functions/random.texi: Correct the description of the
15992         situation on Android.
15993         * doc/posix-functions/srandom.texi: Likewise.
15994         * doc/posix-functions/rand.texi: Likewise.
15995         * doc/posix-functions/srand.texi: Likewise.
15997 2019-01-24  Bruno Haible  <bruno@clisp.org>
15999         mbtowc: Fix compilation error on Android 4.3.
16000         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16001         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16002         HAVE_MBTOWC.
16003         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16004         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16005         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16006         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16007         * doc/posix-functions/mbtowc.texi: Mention the change.
16009 2019-01-24  Bruno Haible  <bruno@clisp.org>
16011         fdatasync: Fix compilation error on Android 4.3.
16012         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16013         test whether fdatasync() exists.
16015 2019-01-24  Bruno Haible  <bruno@clisp.org>
16017         unlinkat: Fix compilation error on Android 4.3.
16018         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16019         also on Android.
16020         * doc/posix-functions/unlinkat.texi: Mention the issue.
16022 2019-01-24  Bruno Haible  <bruno@clisp.org>
16024         renameat: Fix compilation error on Android 4.3.
16025         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16026         * doc/posix-functions/renameat.texi: Mention the issue.
16028 2019-01-24  Bruno Haible  <bruno@clisp.org>
16030         fchownat: Fix compilation error on Android 4.3.
16031         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16032         use.
16033         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16034         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16035         * doc/posix-functions/fchownat.texi: Mention the issue.
16037 2019-01-23  Bruno Haible  <bruno@clisp.org>
16039         gnulib-tool: Support running testdirs on Android.
16040         * build-aux/test-driver.diff: New file.
16041         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16042         build-aux/test-driver after running automake.
16044 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16046         relocatable-prog: avoid warnings from Automake
16047         * modules/relocatable-prog: Don't declare PHONY dependencies in
16048         Automake conditionals.
16050 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16052         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16053         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16055 2019-01-23  Bruno Haible  <bruno@clisp.org>
16057         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16058         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16059         preceding -Wl,--as-needed option. Don't check whether the linker
16060         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16062 2019-01-23  Bruno Haible  <bruno@clisp.org>
16064         thread: Force linking with -lpthread, even when --as-needed is in use.
16065         Reported by Richard W.M. Jones <rjones@redhat.com> in
16066         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16067         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16069 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16070             Bruno Haible  <bruno@clisp.org>
16072         relocatable: avoid compiler warnings (-Wshadow)
16073         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16074         to avoid name collisions with global variables.
16076 2019-01-22  Bruno Haible  <bruno@clisp.org>
16078         vasnprintf: Don't use %n on Android.
16079         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16080         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16081         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16083 2019-01-22  Bruno Haible  <bruno@clisp.org>
16085         *printf: Support cross-compilation to Android.
16086         * m4/printf.m4: Add cross-compilation guesses for Android.
16088 2019-01-21  Bruno Haible  <bruno@clisp.org>
16090         diacrit: Mark deprecated.
16091         * modules/diacrit (Status, Notice): Mark as deprecated.
16092         * NEWS: Mention it.
16094 2019-01-20  Bruno Haible  <bruno@clisp.org>
16096         rintl: Override broken implementation on NetBSD.
16097         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16098         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16099         REPLACE_RINTL.
16100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16101         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16102         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16103         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16105 2019-01-20  Bruno Haible  <bruno@clisp.org>
16107         log10l: Work around inaccurate implementation on NetBSD.
16108         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16109         * lib/log10l.c: Comment out too simplistic override.
16110         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16112 2019-01-20  Bruno Haible  <bruno@clisp.org>
16114         logl: Work around inaccurate implementation on NetBSD.
16115         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16116         * lib/logl.c: Comment out unused code.
16117         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16119 2019-01-20  Bruno Haible  <bruno@clisp.org>
16121         expm1l: Work around inaccurate implementation on NetBSD.
16122         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16123         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16124         REPLACE_EXPM1L.
16125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16126         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16127         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16128         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16130 2019-01-20  Bruno Haible  <bruno@clisp.org>
16132         expl: Work around inaccurate implementation on NetBSD.
16133         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16134         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16135         REPLACE_EXPL.
16136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16137         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16138         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16139         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16141 2019-01-20  Bruno Haible  <bruno@clisp.org>
16143         exp2l: Work around inaccurate implementation on NetBSD.
16144         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16145         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16147 2019-01-20  Bruno Haible  <bruno@clisp.org>
16149         floor, floorl: Avoid autoconf warnings.
16150         * modules/floor (configure.ac): Use AC_REQUIRE.
16151         * modules/floorl (configure.ac): Likewise.
16153 2019-01-20  Bruno Haible  <bruno@clisp.org>
16155         Defeat current GCC optimizations in math autoconf tests.
16156         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16157         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16158         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16159         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16160         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16161         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16162         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16163         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16164         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16165         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16166         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16167         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16168         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16169         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16170         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16171         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16172         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16173         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16174         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16175         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16176         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16177         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16178         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16179         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16180         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16181         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16182         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16183         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16184         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16185         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16186         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16187         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16188         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16191         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16192         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16193         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16195 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16197         gettext: support disabling use of VLAs
16198         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16200 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16202         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16203         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16205 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16207         fcntl: Fix syntax error (regression from 2018-10-05).
16208         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16210 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16212         relocatable: improve documentation.
16213         * doc/relocatable-maint.texi (Supporting Relocation): For
16214         substitutions performed by config.status, we need more variables
16215         (for instance datarootdir defaults to '${prefix}/share' so we need
16216         prefix).
16218 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16220         backup: update dependencies
16221         * modules/backup-rename (Depends-on): It now depends on opendirat
16222         instead of opendir.  It also uses stdint, and xalloc-oversized.
16223         But no longer dirfd.
16224         * modules/backupfile (Depends-on): Add xalloc-oversized.
16226 2019-01-13  Bruno Haible  <bruno@clisp.org>
16228         getcwd: Fix test failure when building on a Linux 9p file system.
16229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16230         EINVAL from mkdir like ENAMETOOLONG.
16231         * tests/test-getcwd.c (test_long_name): Likewise.
16233 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16235         Fix typos found by codespell.
16236         * lib/*.[hc]: Fix typos in comments.
16237         * pygnulib/*.py: Fix typos in error messages and comments.
16239 2019-01-12  Bruno Haible  <bruno@clisp.org>
16241         doc: Fix documentation about container data types.
16242         Reported by Werner Lemberg <wl@gnu.org>.
16243         * doc/containers.texi (Container data types): Fix typo.
16245 2019-01-10  Bruno Haible  <bruno@clisp.org>
16247         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16248         Reported by Reuben Thomas <rrt@sc3d.org>.
16249         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16251 2019-01-06  Bruno Haible  <bruno@clisp.org>
16253         maintainer-makefile: Make the configure.ac section optional.
16254         * top/maint.mk (GREP, SED): Define if not defined.
16256 2019-01-06  Bruno Haible  <bruno@clisp.org>
16258         localename: Assume setlocale function.
16259         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16260         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16262 2019-01-06  Bruno Haible  <bruno@clisp.org>
16264         doc: Add documentation about container data types.
16265         * doc/containers.texi: New file.
16266         * doc/gnulib.texi (Particular Modules): Include it.
16268 2019-01-06  Bruno Haible  <bruno@clisp.org>
16270         doc: Update documentation about 'progname' module.
16271         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16272         title. Rewrite.
16273         * doc/gnulib.texi (Particular Modules): Update.
16275 2019-01-06  Bruno Haible  <bruno@clisp.org>
16277         doc: Document the xstdopen and *-safer modules.
16278         * doc/xstdopen.texi: New file.
16279         * doc/gnulib.texi (Particular Modules): Include it.
16281 2019-01-06  Bruno Haible  <bruno@clisp.org>
16283         xstdopen: Add tests.
16284         * tests/test-xstdopen.c: New file.
16285         * tests/test-xstdopen.sh: New file.
16286         * modules/xstdopen-tests: New file.
16288         xstdopen: New module.
16289         * lib/xstdopen.h: New file.
16290         * lib/xstdopen.c: New file.
16291         * modules/xstdopen: New file.
16293 2019-01-06  Bruno Haible  <bruno@clisp.org>
16295         stdopen: Fix compilation error with IRIX cc.
16296         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16298 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16300         xfreopen need not include stdio--.h
16301         * lib/xfreopen.c: Do not include stdio--.h.
16303         xfreopen need not depend on freopen-safer
16304         * modules/xfreopen (Depends-on):
16305         Depend on freopen, not freopen-safer.
16307         stdopen: modernize and simplify
16308         * lib/stdopen.c: Update copyright date
16309         Do not include sys/types.h; no longer needed these days.
16310         (stdopen): Use C99-style decl in loop.  Return int errno
16311         value, rather than just a bool.  Do not worry about fd mismatches,
16312         since the caller cares only if 0, 1, 2 are occupied.
16313         * lib/stdopen.h: No need to include <stdbool.h>.
16314         * m4/stdopen.m4: Remove.
16315         * modules/stdopen: New file.
16317         stdopen: copy from last use in coreutils
16318         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16319         New files, taken from their last commit in coreutils
16320         2007-07-23T12:35:58Z!jim@meyering.net
16321         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16323 2019-01-05  Bruno Haible  <bruno@clisp.org>
16325         argp: Don't pass an invalid argument to dgettext().
16326         Reported by He X <xw897002528@gmail.com>.
16327         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16328         dgettext().
16330 2019-01-05  Bruno Haible  <bruno@clisp.org>
16332         argp: Don't pass an invalid argument to dgettext().
16333         Reported by He X <xw897002528@gmail.com>.
16334         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16335         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16336         dgettext().
16338 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16340         stdioext: port to newer 32-bit Android
16341         Problem reported by Tom Yan in:
16342         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16343         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16344         (fp_) [__ANDROID__]: Use it.
16346 2019-01-04  Bruno Haible  <bruno@clisp.org>
16348         lock: Fix link error with --enable-threads=pth.
16349         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16350         Mark as weak.
16352 2019-01-04  Bruno Haible  <bruno@clisp.org>
16354         Fix link errors in unit tests.
16355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16356         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16357         * modules/array-map-tests (Makefile.am): Link test-array_map against
16358         libintl.
16359         * modules/array-set-tests (Makefile.am): Link test-array_set against
16360         libintl.
16361         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16362         libintl.
16363         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16364         libintl.
16365         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16366         against libintl.
16367         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16368         against libintl.
16370 2019-01-04  Bruno Haible  <bruno@clisp.org>
16372         Fix incorrect 'Link' sections.
16373         * modules/regex (Link): Mention the link requirement of module 'lock'.
16374         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16376 2019-01-04  Bruno Haible  <bruno@clisp.org>
16378         Fix some 'Link' sections.
16379         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16380         dependency.
16381         * modules/getaddrinfo (Link): Likewise.
16383 2019-01-04  Bruno Haible  <bruno@clisp.org>
16385         Remove redundant 'Link' sections.
16386         * modules/canon-host (Link): Remove section.
16387         * modules/timevar (Link): Likewise.
16389 2019-01-04  Bruno Haible  <bruno@clisp.org>
16391         Remove incorrect 'Link' sections.
16392         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16393         the dependencies instead.
16394         * modules/crypto/md5 (Link): Likewise.
16395         * modules/crypto/sha1 (Link): Likewise.
16396         * modules/crypto/sha256 (Link): Likewise.
16397         * modules/crypto/sha512 (Link): Likewise.
16398         * modules/faccessat (Link): Likewise.
16399         * modules/fdutimensat (Link): Likewise.
16400         * modules/iconv_open-utf (Link): Likewise.
16401         * modules/propername (Link): Likewise.
16402         * modules/qacl (Link): Likewise.
16403         * modules/unicodeio (Link): Likewise.
16404         * modules/utimecmp (Link): Likewise.
16405         * modules/utimensat (Link): Likewise.
16406         * modules/xstriconv (Link): Likewise.
16407         * modules/xstriconveh (Link): Likewise.
16409 2019-01-04  Bruno Haible  <bruno@clisp.org>
16411         gnulib-tool: New option --extract-recursive-link-directive.
16412         * gnulib-tool (func_usage): Document the new options
16413         --extract-recursive-dependencies, --extract-recursive-link-directive.
16414         (func_verify_module): Document output variables.
16415         (func_get_dependencies_recursively): New function.
16416         (func_get_link_directive_recursively): New function.
16417         Use them to implement the new options
16418         --extract-recursive-dependencies, --extract-recursive-link-directive.
16419         * doc/gnulib-tool.texi (Link-time requirements): New section.
16421 2019-01-04  Bruno Haible  <bruno@clisp.org>
16423         Clarify meaning of 'Link' section in module description.
16424         * doc/gnulib.texi (Module description): Clarify the meaning of the
16425         'Link' section versus the one of the dependencies.
16426         * NEWS: Mention the change.
16428 2019-01-04  Bruno Haible  <bruno@clisp.org>
16430         pselect: Fix module description.
16431         * modules/pselect (Link): Put one link option per line.
16433 2019-01-04  Bruno Haible  <bruno@clisp.org>
16435         cosl: Fix module description.
16436         * modules/cosl (Link): Fix typo.
16437         * modules/mathl (configure.ac): Likewise.
16439 2019-01-04  Bruno Haible  <bruno@clisp.org>
16441         c-xvasprintf: Fix module dependencies.
16442         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16444 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16446         bootstrap: die when some submodules are not initialized
16447         * build-aux/bootstrap: Make sure all submodules are initialized.
16449 2019-01-04  Bruno Haible  <bruno@clisp.org>
16451         bitsetv: Fix module dependencies.
16452         * lib/bitsetv.c: Include xalloc.h.
16453         * modules/bitsetv (Depends-on): Add 'xalloc'.
16455 2019-01-04  Bruno Haible  <bruno@clisp.org>
16457         xmemdup0: Remove redundant code.
16458         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16460 2019-01-04  Bruno Haible  <bruno@clisp.org>
16462         backupfile: Fix module dependencies.
16463         * modules/backupfile (Depends-on): Add 'xalloc'.
16465 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16467         bitset, crypto/gc: fix conflicts with Solaris 11
16468         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16469         avoid clash with Solaris 11 <sys/bitset.h>.
16470         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16471         with Solaris 11 <xorg/gc.h>.
16473 2019-01-04  Bruno Haible  <bruno@clisp.org>
16475         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16476         Reported by Andy Fiddaman <andy@omniosce.org>.
16477         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16479 2019-01-03  Eric Blake  <eblake@redhat.com>
16481         maintainer-makefile: fix typo in previous patch
16482         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16483         of Roman's work.
16485 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16487         maintainer-makefile: prefer $(GREP) over grep
16488         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16489         defined.
16490         * top/maint.mk: Use it everywhere.
16492         maintainer-makefile: split long argument lines
16493         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16494         it would be too long for exec limits on BSD.
16496 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16498         mkfifo: bring back HAVE_MKFIFO macro
16499         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16500         Problem reported by Andrew Janke in:
16501         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16503 2018-12-21  Bruno Haible  <bruno@clisp.org>
16505         Assume Autoconf >= 2.63.
16506         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16507         versions < 2.60.
16509 2018-12-21  Bruno Haible  <bruno@clisp.org>
16511         memcmp: Mention the clang bug.
16512         * tests/test-memcmp.c: Add comment about a known test failure.
16513         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16515 2018-12-20  Jim Meyering  <meyering@fb.com>
16517         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16518         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16519           echo '123-x'|LC_ALL=C grep -E '.\bx'
16520         The goal is to revert the first, but reverting it requires to restore
16521         the function deleted in the second. I ran this to restore the deleted
16522         function:
16523           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16524             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16525             | patch -R -p1
16526         * lib/dfa.c (charclass_context): Restore deleted function.
16527         Reverting the primary commit removes this change:
16528         dfa: Simplify a building state
16529         * lib/dfa.c (build_state): Simplify a building state.
16531 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16533         version-etc: allow zero authors
16534         * lib/version-etc.c (version_etc_arn): If no authors are given,
16535         omit authorship info instead of dumping core.
16537 2018-12-19  Bruno Haible  <bruno@clisp.org>
16539         lchown tests: Be more permissive regarding errno values.
16540         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16541         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16542         alternative to ENOSYS.
16543         * modules/lchown-tests (Depends-on): Add 'errno'.
16544         * modules/fchownat-tests (Depends-on): Likewise.
16546 2018-12-18  Bruno Haible  <bruno@clisp.org>
16548         duplocale: Avoid test failure on AIX 7.
16549         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16550         (configure.ac): Invoke gt_FUNC_USELOCALE.
16551         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16552         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16553         works.
16555 2018-12-18  Bruno Haible  <bruno@clisp.org>
16557         localename: Fix test failure on AIX 7.
16558         Reported by Assaf Gordon in
16559         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16560         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16561         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16562         instead of ac_cv_func_uselocale.
16563         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16564         HAVE_USELOCALE.
16565         * lib/localename-table.h: Likewise.
16566         * lib/localename-table.c: Likewise.
16567         * tests/test-localename.c: Likewise.
16568         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16570 2018-12-18  Bruno Haible  <bruno@clisp.org>
16572         localename: Update comments regarding Cygwin.
16573         * lib/localename.c: Update comment.
16574         * doc/posix-functions/uselocale.texi: Update platforms list.
16575         * doc/posix-functions/newlocale.texi: Likewise.
16576         * doc/posix-functions/duplocale.texi: Likewise.
16577         * doc/posix-functions/freelocale.texi: Likewise.
16579 2018-12-16  Bruno Haible  <bruno@clisp.org>
16581         c-stack: Fix for Linux/sparc.
16582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16583         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16585 2018-12-16  Bruno Haible  <bruno@clisp.org>
16587         localename: Avoid test failure on some glibc systems.
16588         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16589         Unset environment variables that might disturb the first setlocale call,
16590         and verify that this setlocale call succeeds.
16592 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16594         random: Fix build error on native Windows (regression from 2018-06-21).
16595         * lib/random.c (__srandom, __initstate, __setstate, __random,
16596         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16597         to the symbols without '__' prefix.
16599 2018-12-16  Bruno Haible  <bruno@clisp.org>
16601         obstack, libc-config: Support HP-UX cc in C99 mode.
16602         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16603         compiler, even when in C99 mode.
16604         * lib/cdefs.h (__flexarr): Likewise.
16605         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16607 2018-12-16  Bruno Haible  <bruno@clisp.org>
16609         localename: Fix test failure on OpenBSD >= 6.2.
16610         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16611         locale system. Define HAVE_FAKE_LOCALES in this case.
16612         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16613         HAVE_USELOCALE.
16614         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16615         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16616         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16617         platforms list.
16618         * doc/posix-functions/newlocale.texi: Likewise.
16619         * doc/posix-functions/duplocale.texi: Update platforms list.
16620         * doc/posix-functions/freelocale.texi: Likewise.
16622 2018-12-16  Bruno Haible  <bruno@clisp.org>
16624         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16625         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16626         of the test, on platforms without <monetary.h>.
16628 2018-12-16  Bruno Haible  <bruno@clisp.org>
16630         localename: Update comments.
16631         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16633 2018-12-15  Jim Meyering  <meyering@fb.com>
16635         regex: fix indentation
16636         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16638 2018-12-15  Bruno Haible  <bruno@clisp.org>
16640         openat-safer tests: Avoid test failure on NetBSD 8.
16641         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16642         on Linux.
16644 2018-12-15  Jim Meyering  <meyering@fb.com>
16646         regex: work around a bug in glibc-2.27 and prior
16647         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16648         assertion for /0|()0|\1|0/.
16649         * tests/test-regex.c (main): Add the same test here.
16651 2018-12-15  Bruno Haible  <bruno@clisp.org>
16653         localename: Fix use of uninitialized shell variable.
16654         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16655         gt_cv_locale_solaris114 always before use. Remove assignment without
16656         effect.
16658 2018-12-15  Bruno Haible  <bruno@clisp.org>
16660         dfa tests: Avoid test failure on Alpine Linux.
16661         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16662         command found on Alpine Linux.
16664 2018-12-15  Jim Meyering  <meyering@fb.com>
16666         dfa: avoid new warnings from gcc
16667         These would prevent building with -Werror and a Dec snapshot of gcc.
16668         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16669         Rename each inner instance to "p".
16670         (charclass_context): Remove unused static function.
16672 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16674         mkdir-p: improve diagnostic for FUSE mounts
16675         Problem reported by Niklas Hambüchen in:
16676         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16677         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16678         errno to mkdir errno if the stat errno is likely more interesting.
16680 2018-12-14  Bruno Haible  <bruno@clisp.org>
16682         hash-map: Add tests.
16683         * tests/test-hash_map.c: New file.
16684         * modules/hash-map-tests: New file.
16686         linkedhash-map: Add tests.
16687         * tests/test-linkedhash_map.c: New file.
16688         * modules/linkedhash-map-tests: New file.
16690         array-map: Add tests.
16691         * tests/test-array_map.c: New file.
16692         * modules/array-map-tests: New file.
16694         xmap: New module.
16695         * lib/gl_xmap.h: New file.
16696         * lib/gl_xmap.c: New file.
16697         * modules/xmap: New file.
16699         hash-map: New module.
16700         * lib/gl_hash_map.h: New file.
16701         * lib/gl_hash_map.c: New file.
16702         * modules/hash-map: New file.
16704         linkedhash-map: New module.
16705         * lib/gl_linkedhash_map.h: New file.
16706         * lib/gl_linkedhash_map.c: New file.
16707         * lib/gl_anyhash1.h: Update comments.
16708         * lib/gl_anyhash2.h: Likewise.
16709         * modules/linkedhash-map: New file.
16711         array-map: New module.
16712         * lib/gl_array_map.h: New file.
16713         * lib/gl_array_map.c: New file.
16714         * modules/array-map: New file.
16716         map: New module.
16717         * lib/gl_map.h: New file.
16718         * lib/gl_map.c: New file.
16719         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16720         conflict with gl_map.h.
16721         * modules/map: New file.
16723 2018-12-13  Bruno Haible  <bruno@clisp.org>
16725         select tests: Avoid test failure on Cygwin.
16726         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16728 2018-12-13  Bruno Haible  <bruno@clisp.org>
16730         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16731         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16733 2018-12-13  Bruno Haible  <bruno@clisp.org>
16735         localeconv tests: Avoid test failure on Cygwin.
16736         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16737         'mon_grouping' tests.
16739 2018-12-11  Bruno Haible  <bruno@clisp.org>
16741         omap: Don't dispose the old value when the function returns it.
16742         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16743         here.
16744         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16745         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16746         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16747         here.
16749         array-omap, avltree-omap, rbtree-omap: Tweak style.
16750         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16751         false.
16752         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16754         rbtree-omap: Add tests.
16755         * tests/test-rbtree_omap.c: New file.
16756         * modules/rbtree-omap-tests: New file.
16758         avltree-omap: Add tests.
16759         * tests/test-avltree_omap.c: New file.
16760         * modules/avltree-omap-tests: New file.
16762         array-omap: Add tests.
16763         * tests/test-array_omap.c: New file.
16764         * modules/array-omap-tests: New file.
16766         xomap: New module.
16767         * lib/gl_xomap.h: New file.
16768         * lib/gl_xomap.c: New file.
16769         * modules/xomap: New file.
16771         rbtree-omap: New module.
16772         * lib/gl_rbtree_omap.h: New file.
16773         * lib/gl_rbtree_omap.c: New file.
16774         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16775         Parameterize.
16776         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16777         * modules/rbtree-omap: New file.
16778         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16779         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16781         avltree-omap: New module.
16782         * lib/gl_avltree_omap.h: New file.
16783         * lib/gl_avltree_omap.c: New file.
16784         * lib/gl_avltree_ordered.h: Code moved to here from
16785         lib/gl_avltree_oset.c. Parameterize.
16786         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16787         * lib/gl_anytree_omap.h: New file.
16788         * modules/avltree-omap: New file.
16789         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16790         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16792         array-omap: New module.
16793         * lib/gl_array_omap.h: New file.
16794         * lib/gl_array_omap.c: New file.
16795         * modules/array-omap: New file.
16797         omap: New module.
16798         * lib/gl_omap.h: New file.
16799         * lib/gl_omap.c: New file.
16800         * modules/omap: New file.
16802 2018-12-11  Bruno Haible  <bruno@clisp.org>
16804         hash-set, linkedhash-set: Reduce code duplication.
16805         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16806         lib/gl_anyhash_set1.h.
16807         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16808         lib/gl_anyhash_set2.h. Parameterize.
16809         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16810         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16811         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16812         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16813         * lib/gl_rbtreehash_list.c: Likewise.
16814         * lib/gl_linkedhash_list.c: Likewise.
16815         (hash_resize_after_add): Remove function.
16816         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16817         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16818         * gl_hash_set.c: Likewise.
16819         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16820         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16821         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16822         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16823         * modules/hash-set (Files, Makefile.am): Likewise.
16825 2018-12-11  Bruno Haible  <bruno@clisp.org>
16827         array-set: Optimize.
16828         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16829         outside the loop, not inside the loop.
16831 2018-12-11  Bruno Haible  <bruno@clisp.org>
16833         times: Fix tests.
16834         * tests/test-times.c (doublecmp): Implement a total order.
16836 2018-12-11  Bruno Haible  <bruno@clisp.org>
16838         array-set, linkedhash-set, hash-set: Fix tests.
16839         * tests/test-array_set.c (cmp_objects_in_array): New function.
16840         (check_equals): Use it.
16841         * tests/test-hash_set.c: Likewise.
16842         * tests/test-linkedhash_set.c: Likewise.
16844 2018-12-08  Bruno Haible  <bruno@clisp.org>
16846         Fix comments.
16847         * lib/gl_list.h (gl_list_free): Clarify what it does.
16848         * lib/gl_oset.h (gl_oset_free): Likewise.
16849         * lib/gl_set.h (gl_set_free): Likewise.
16850         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16851         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16852         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16853         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16855 2018-12-03  Bruno Haible  <bruno@clisp.org>
16857         hash-set: Add tests.
16858         * tests/test-hash_set.c: New file.
16859         * modules/hash-set-tests: New file.
16861         linkedhash-set: Add tests.
16862         * tests/test-linkedhash_set.c: New file.
16863         * modules/linkedhash-set-tests: New file.
16865         array-set: Add tests.
16866         * tests/test-array_set.c: New file.
16867         * modules/array-set-tests: New file.
16869         xset: New module.
16870         * lib/gl_xset.h: New file.
16871         * lib/gl_xset.c: New file.
16872         * modules/xset: New file.
16874         hash-set: New module.
16875         * lib/gl_hash_set.h: New file.
16876         * lib/gl_hash_set.c: New file.
16877         * modules/hash-set: New file.
16879         linkedhash-set: New module.
16880         * lib/gl_linkedhash_set.h: New file.
16881         * lib/gl_linkedhash_set.c: New file.
16882         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16883         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16884         * lib/gl_anyhash_primes.h: New file, extracted from
16885         lib/gl_anyhash_list2.h.
16886         * lib/gl_anyhash_list2.h: Include it.
16887         (primes, next_prime): Remove definitions.
16888         * modules/linkedhash-set: New file.
16889         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16890         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16891         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16892         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16893         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16894         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16896         array-set: New module.
16897         * lib/gl_array_set.h: New file.
16898         * lib/gl_array_set.c: New file.
16899         * modules/array-set: New file.
16901         set: New module.
16902         * lib/gl_set.h: New file.
16903         * lib/gl_set.c: New file.
16904         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16905         gl_set.h.
16906         * modules/set: New file.
16908 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16910         bison: don't force the Yacc mode
16911         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16912         errors when Bison features are used in the grammar file.  Some of
16913         these features (such as %expect) were flagged non-yacc recently.  Most
16914         of the time, -y is actually used to please Automake's ylwrap which
16915         expects the output to be y.tab.c.
16916         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16918 2018-12-01  Bruno Haible  <bruno@clisp.org>
16920         gnupload: Document short options.
16921         * build-aux/gnupload (usage): Document the short options.
16923 2018-11-28  Ben Elliston  <bje@gnu.org>
16925         gnupload: Support option -h as alias of --help.
16926         * build-aux/gnupload: Support -h.
16928 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16930         memrchr: port better to clang
16931         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16932         longword *, to pacify clang -Wcast-align (Bug#33544).
16934 2018-11-29  Eric Blake  <eblake@redhat.com>
16936         docs: mention printf %m considerations
16937         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16938         is not portable, and is easy enough to work around.
16939         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16940         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16941         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16942         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16943         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16944         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16945         * doc/posix-functions/printf.texi (printf): Likewise.
16946         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16947         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16948         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16949         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16950         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16951         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16952         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16953         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16954         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16955         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16956         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16957         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16959 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16961         bitset: rename ebitset/expandable.* as tbitset/table.*
16962         See
16963         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16964         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16965         * lib/bitset/table.h, lib/bitset/table.c: these.
16966         Rename all the ebitset* symbols as tbitset*.
16967         Adjust dependencies.
16969 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16971         bitset: check the operations
16972         * tests/test-bitset.c (bitset_random): New.
16973         Use it.
16974         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16976 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16978         bitset: properly use false/true instead of 0/1 for Booleans
16979         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16980         0/1, as Booleans.
16982 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16984         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16985         For consistency with the name of the file.
16986         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16987         * lib/bitset/stats.c, lib/bitset/vector.c
16988         (BITSET_VARRAY): Rename as...
16989         (BITSET_VECTOR): this.
16991 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16993         strerror_r-posix: memmove, not memcpy
16994         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16995         since the source and destination might overlap in the call
16996         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16997         Simplify.
16999 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17001         bitsetv: new module
17002         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17004 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17006         bitset: add tests and doc
17007         First stabs at providing a documentation and test for the bitset
17008         module.
17009         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17011 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17013         bitset: new module
17014         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17015         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17016         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17017         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17018         * lib/bitset/vector.h, modules/bitset:
17019         New.
17021 2018-11-23  Bruno Haible  <bruno@clisp.org>
17023         localename: Fix gettext test failures on mingw.
17024         * lib/localename.c (gl_locale_name_posix): Convert the result of
17025         gl_locale_name_environ to XPG syntax.
17027 2018-11-23  Karl Berry  <karl@freefriends.org>
17029         * config/srclistvars.txt,
17030         * config/srclist.txt: remove all gettext references;
17031         the gettext maintainers will sync as needed.
17033 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17035         mktime: add libc-config dependency
17036         I missed this when we synced from glibc.
17037         * modules/mktime (Depends-on): Add libc-config.
17039 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17041         longlong: fix comment typo
17042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17044 2018-11-11  Bruno Haible  <bruno@clisp.org>
17046         havelib: Remove the need to include asm-underscore.m4.
17047         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17048         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17049         gl_HOST_CPU_C_ABI.
17050         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17051         (Depends-on): Remove host-cpu-c-abi.
17053 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17055         parse-datetime: simplify test for mktime failure
17056         * lib/parse-datetime.y (mktime_ok): Simplify.
17057         Remove args TZ and T; no longer needed.  Callers changed.
17059         posixtm: simplify test for mktime failure
17060         * lib/posixtm.c (posixtime): Simplify.
17062         nstrftime: simplify test for mktime failure
17063         * lib/nstrftime.c (__strftime_internal): Simplify.
17065 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17067         gnulib-common.m4: port _Noreturn to C++
17068         Problem reported by Akim Demaille in:
17069         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17070         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17071         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17072         version.
17073         * lib/_Noreturn.h: Match gnulib-common.
17075 2018-10-30  Bruno Haible  <bruno@clisp.org>
17077         gnu-make: Fix for NetBSD 8 'make'.
17078         Reported by Reuben Thomas in
17079         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17080         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17081         output, ignoring exit codes.
17083 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17085         maintainer-makefile: fix syntax-check rule for "same.h"
17086         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17087         for 'same_nameat', too.
17089 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17091         havelib: fix nested ‘configure’ chatter
17092         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17093         AC_CACHE_CHECK calls, which resulted in confusing output like
17094         “checking for the common suffixes of directories in the library
17095         search path... checking for 64-bit host... no lib,lib”.
17097         backupfile: tweak for better code
17098         * lib/backupfile.c: Sort include directives, and remove
17099         unnecessary <limits.h> include.
17100         (FALLTHROUGH): New macro, copied from other modules.
17101         (backupfile_internal): Use it to avoid code duplication.
17102         This lets GCC 8.2.1 generate better code by inlining the
17103         call to check_extension.
17105 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17107         backupfile: new dir_fd args
17108         New module opendirat with code taken from fts.
17109         Use this module to let backupfile use a directory file descriptor.
17110         * NEWS: Document the incompatible change.
17111         * lib/backup-find.c (find_backup_file_name):
17112         * lib/backup-rename.c (backup_file_rename):
17113         New arg DIR_FD.
17114         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17115         (SIZE_MAX): Remove.
17116         Include opendirat.h rather than dirent--.h.
17117         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17118         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17119         (backupfile_internal): New arg DIR_FD.  All callers changed.
17120         * lib/fts.c: Include opendirat.h.
17121         (opendirat): Move to opendirat.c.
17122         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17123         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17124         Add opendirat.
17125         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17126         Add opendirat.
17128 2018-10-23  Bruno Haible  <bruno@clisp.org>
17130         localename: Simplify support for per-thread locales on Solaris 11.4.
17131         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17132         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17133         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17134         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17135         specific code.
17136         * lib/localename-table.h: Update comments.
17137         * lib/localename-table.c: Update comments.
17138         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17139         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17140         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17141         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17142         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17143         HAVE_NAMELESS_LOCALES here.
17144         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17145         m4/intlsolaris.m4.
17146         * modules/gettext (Files): Likewise.
17148 2018-10-22  Bruno Haible  <bruno@clisp.org>
17150         std-gnu11: Support Autoconf versions < 2.64.
17151         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17152         when _AC_DO_LIMIT does not exist.
17154 2018-10-22  Bruno Haible  <bruno@clisp.org>
17156         Assume Autoconf >= 2.63.
17157         * DEPENDENCIES: Mention the requirement.
17159         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17160         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17161         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17162         * m4/onceonly.m4: Remove file.
17164         * m4/openmp.m4: Remove file.
17165         * modules/openmp (Files): Remove m4/openmp.m4.
17167         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17168         htmldir, dvidir, pdfdir, psdir, localedir.
17169         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17171         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17172         Autoconf < 2.60.
17173         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17174         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17176         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17177         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17178         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17180         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17181         exists.
17182         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17185         Autoconf < 2.61.
17187         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17188         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17189         Autoconf >= 2.52.
17191         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17192         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17193         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17195 2018-10-22  Bruno Haible  <bruno@clisp.org>
17197         Assume Automake >= 1.11.
17198         * m4/configmake.m4: Update comments.
17199         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17200         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17201         of 'eval'.
17202         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17203         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17204         requires Automake >= 1.11.
17206 2018-10-22  Bruno Haible  <bruno@clisp.org>
17208         localename: Fix typo in comment.
17209         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17211 2018-10-22  Bruno Haible  <bruno@clisp.org>
17213         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17214         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17216 2018-10-21  Bruno Haible  <bruno@clisp.org>
17218         locale: Ease integration with GNU libintl.
17219         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17220         GNULIB_defined_freelocale): New macros.
17222 2018-10-21  Bruno Haible  <bruno@clisp.org>
17224         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17225         * lib/localename-table.h: New file, extracted from lib/localename.c.
17226         * lib/localename-table.c: Likewise.
17227         * lib/localename.c: Include localename-table.h.
17228         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17229         locale_hash_function instead of pointer_hash.
17230         * modules/localename (Files): Add lib/localename-table.h,
17231         lib/localename-table.c.
17232         (lib_SOURCES): Add localename-table.c.
17233         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17234         for Solaris 11.4 locale system only on Solaris. Test for it
17235         independently whether getlocalename_l exists.
17236         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17237         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17238         HAVE_NAMELESS_LOCALES.
17239         * modules/gettext (Files): Add m4/intlsolaris.m4.
17241 2018-10-21  Bruno Haible  <bruno@clisp.org>
17243         Small update from gettext.
17244         * m4/intl.m4: Update from gettext:
17245         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17246         mode on AIX.
17247         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17248         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17250 2018-10-16  Bruno Haible  <bruno@clisp.org>
17252         mountlist: Remove support for Cray with UNICOS 9.
17253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17254         MOUNTED_LISTMNTENT.
17255         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17257 2018-10-16  Bruno Haible  <bruno@clisp.org>
17259         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17261         STAT_STATFS2_FS_DATA.
17262         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17263         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17264         MOUNTED_GETMNT.
17265         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17266         * lib/getloadavg.c (decstation): Remove definition and case.
17267         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17268         * lib/getgroups.c: Likewise.
17269         * doc/posix-functions/getgroups.texi: Likewise.
17270         * lib/time.in.h: Update comments.
17272 2018-10-16  Bruno Haible  <bruno@clisp.org>
17274         getloadavg: Remove support for ConvexOS.
17275         * lib/getloadavg.c: Remove convex case.
17277 2018-10-16  Bruno Haible  <bruno@clisp.org>
17279         getloadavg: Remove support for Sony NEWS.
17280         * lib/getloadavg.c: Remove sony_news case.
17282 2018-10-16  Bruno Haible  <bruno@clisp.org>
17284         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17285         * lib/fsusage.c: Remove _SEQUENT_ case.
17286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17287         * lib/mountlist.c: Don't test for MNTTABNAME.
17288         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17289         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17290         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17291         * lib/stat-size.h: Don't mention the Sequent bug.
17292         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17294 2018-10-16  Bruno Haible  <bruno@clisp.org>
17296         fsusage: Remove support for AIX 3.
17297         * lib/fsusage.c: Remove code for AIX 3.
17298         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17300 2018-10-16  Bruno Haible  <bruno@clisp.org>
17302         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17303         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17304         * lib/fsusage.c: Remove code for AIX PS/2.
17305         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17306         * lib/getloadavg.c: Likewise.
17308 2018-10-16  Bruno Haible  <bruno@clisp.org>
17310         getloadavg: Remove support for HP-UX on m68k.
17311         * lib/getloadavg.c: Remove hp9000s300 case.
17313 2018-10-16  Bruno Haible  <bruno@clisp.org>
17315         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17316         * lib/fsusage.c: Remove DOLPHIN case.
17317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17318         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17320 2018-10-16  Bruno Haible  <bruno@clisp.org>
17322         getloadavg: Remove support for Alliant FX/2800.
17323         * lib/getloadavg.c: Remove alliant case.
17325 2018-10-16  Bruno Haible  <bruno@clisp.org>
17327         getloadavg: Remove support for tek4300.
17328         * lib/getloadavg.c: Remove tek4300 case.
17330 2018-10-16  Bruno Haible  <bruno@clisp.org>
17332         getloadavg: Remove support for Ardent.
17333         * lib/getloadavg.c: Remove ardent case.
17335 2018-10-16  Bruno Haible  <bruno@clisp.org>
17337         mountlist: Remove support for SVR2.
17338         Reported by Andrew Borodin <aborodin@vmail.ru> in
17339         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17340         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17342         MOUNTED_FREAD.
17344 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17346         libc-config: merge from glibc
17347         * lib/cdefs.h (__glibc_has_attribute): New macro.
17349         regex: depend on libc-config
17350         * modules/regex (Depends-on): Add libc-config.
17351         This is needed after the recent autoupdate from glibc.
17353 2018-10-14  Bruno Haible  <bruno@clisp.org>
17355         localename: Add support for per-thread locales on Solaris 11.4.
17356         * lib/locale.in.h (newlocale, freelocale): New declarations.
17357         (duplocale): Declare also when the 'localename' module requests it.
17358         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17359         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17360         (struniq): Update.
17361         (struct locale_categories_names, struct locale_hash_node): New types.
17362         (LOCALE_HASH_TABLE_SIZE): New constant.
17363         (locale_hash_table, locale_lock): New variables.
17364         (pointer_hash, get_locale_t_name): New functions.
17365         (newlocale, duplocale, freelocale): New overridden functions.
17366         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17367         * m4/intlsolaris.m4: New file.
17368         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17369         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17370         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17371         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17372         declared.
17373         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17374         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17375         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17376         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17377         * modules/localename (Files): Add intlsolaris.m4.
17378         (Depends-on): Add 'locale'.
17379         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17380         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17381         the signatures.
17383 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17385         timevar: use gethrxtime to get wall clock time
17386         clock_gettime is not portable.  gethrxtime takes the best available
17387         option to get the wall clock time, including clock_gettime (monotonic
17388         clock), and gettime (non monotonic).
17389         Also, using xtime_t instead of float preserves the precision.
17390         Suggested by Bruno Haible.
17391         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17392         * modules/timevar (Depends-on): We need gethrxtime.
17393         We no longer use times().
17394         (Link): Update.
17395         * lib/timevar.h (timevar_time_def): Use xtime_t.
17396         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17397         (timevar_print): Instead of checking whether the timings themselves
17398         are large enough for the timevar to be printed, check the percentages.
17400 2018-10-14  Bruno Haible  <bruno@clisp.org>
17402         wcsnrtombs: Work around Solaris 11.4 bug.
17403         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17404         macro.
17405         (gl_FUNC_WCSNRTOMBS): Invoke it.
17406         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17408 2018-10-14  Bruno Haible  <bruno@clisp.org>
17410         mbsnrtowcs: Work around Solaris 11.4 bug.
17411         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17412         macro.
17413         (gl_FUNC_MBSNRTOWCS): Invoke it.
17414         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17416 2018-10-14  Bruno Haible  <bruno@clisp.org>
17418         doc: Update for Solaris 11.4.
17419         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17420         mention Solaris 11.4.
17421         * m4/printf.m4: Update comments about Solaris.
17422         * m4/log.m4: Likewise.
17423         * m4/log10.m4: Likewise.
17424         * m4/logb.m4: Likewise.
17425         * m4/logbf.m4: Likewise.
17426         * m4/logbl.m4: Likewise.
17427         * m4/rename.m4: Likewise.
17428         * m4/wcrtomb.m4: Likewise.
17429         * m4/hostent.m4: Likewise.
17430         * m4/servent.m4: Likewise.
17432 2018-10-14  Bruno Haible  <bruno@clisp.org>
17434         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17435         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17436         pointer.
17437         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17438         pointer.
17439         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17440         pointer.
17441         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17442         pointer.
17443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17444         pointer.
17446 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17448         bootstrap: fix wget command for po files.
17449         * build-aux/bootstrap (po_download_command_format): Fix comment,
17450         and adjust callers.
17452 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17454         timevar: improve the output format
17455         Suggested by Bruno Haible.
17456         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17457         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17458         wall, since its resolution is much higher.
17460 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17462         timevar: expect that getrusage is available.
17463         Don't keep both times and getrusage as backend: both are guaranteed by
17464         gnulib, a single one suffices.  Using getrusage is open to possibly
17465         tracking other types of resources in the future.
17466         * modules/timevar (Depends-on): Add getrusage.
17467         (configure.ac): Remove gl_TIMEVAR.
17468         (Files): Remove m4/timevar.m4.
17469         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17470         * lib/timevar.h (timevar_enabled): Clarify documentation.
17471         * lib/timevar.c: Remove all the code about times.
17472         Remove all the CPP guards about getrusage: expect it to be present
17473         (courtesy of gnulib).
17475 2018-10-12  Bruno Haible  <bruno@clisp.org>
17477         mountlist: Improve support for Solaris in 64-bit mode.
17478         Reported by David Wood <David.Wood@deshaw.com> in
17479         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17481         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17482         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17484 2018-10-12  Bruno Haible  <bruno@clisp.org>
17486         mountlist: Add support for Minix.
17487         Reported by Assaf Gordon in
17488         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17489         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17490         AC_CHECK_FUNCS to check for 'getmntinfo'.
17491         * lib/mountlist.c: Update comments.
17493 2018-10-12  Bruno Haible  <bruno@clisp.org>
17495         Make better use of Autoconf.
17496         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17497         * m4/manywarnings.m4: Likewise.
17498         * m4/manywarnings-c++.m4: Likewise.
17499         * m4/socklen.m4: Likewise.
17500         * m4/sockpfaf.m4: Likewise.
17501         * m4/stdarg.m4: Likewise.
17502         * m4/visibility.m4: Likewise.
17503         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17504         indentation.
17505         * m4/ls-mntd-fs.m4: Likewise.
17507 2018-10-11  Bruno Haible  <bruno@clisp.org>
17509         mountlist: Modernize platform lists.
17510         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17511         platforms, deemphasizing the obsolete ones.
17512         * lib/mountlist.c: Likewise.
17514 2018-10-11  Bruno Haible  <bruno@clisp.org>
17516         getprogname: Add support for 32-bit programs on HP-UX.
17517         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17518         try the similar functions 32-bit programs on 64-bit HP-UX.
17520 2018-10-11  Bruno Haible  <bruno@clisp.org>
17522         getprogname: Work around program name truncation when possible.
17523         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17524         possibly use pst_cmd instead.
17526 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17528         fts: cleanup after FTS_NOATIME removal
17529         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17530         (FTS_STOP): Shrink to minimal values.  We don’t need to
17531         worry about binary compatibility in Gnulib, and the old way
17532         of doing things had a hole in the user options that caused
17533         FTS_OPTIONMASK to not work as desired.
17535 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17537         fts: remove FTS_NOATIME
17538         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17539         We cannot guarantee that O_NOATIME works: e.g. openat fails
17540         with EPERM if the effective user ID of the caller does not match
17541         the owner of the file and the caller is not privileged.
17542         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17543         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17544         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17545         (FTS_OPTIONMASK): Adjust.
17546         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17547         (fd_ring_check): Likewise.
17549 2018-10-08  Bruno Haible  <bruno@clisp.org>
17551         csharpcomp*, csharpexec*: Remove support for pnet.
17552         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17553         HAVE_CSCC.
17554         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17555         Don't test HAVE_CSCC.
17556         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17557         (compile_csharp_class): Don't invoke it.
17558         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17559         HAVE_ILRUN.
17560         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17561         Don't test HAVE_ILRUN.
17562         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17563         (execute_csharp_program): Don't invoke it.
17564         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17565         any more.
17567 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17569         renameatu: prefer renameat2 to syscall
17570         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17571         Use renameat2 instead of syscall (Bug#32796).
17572         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17574 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17576         bootstrap, gnulib-tool: use https instead of insecure rsync
17577         * build-aux/bootstrap (download_po_files, po_download_command_format):
17578         Don't try using rsync; always use wget over https to fetch PO files.
17579         * gnulib-tool (func_import): Likewise.
17580         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17582 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17584         bootstrap, gnulib-tool: correct the translations wget command
17585         * build-aux/bootstrap (po_download_command_format2): Restrict
17586         recursion to a single level.
17587         * gnulib-tool (func_import): Likewise.
17588         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17590 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17592         doc: the gnulib snapshots are not maintained
17593         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17595 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17597         timevar: add to lib_SOURCES
17598         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17600 2018-10-07  Bruno Haible  <bruno@clisp.org>
17602         dirent: Update documentation.
17603         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17605 2018-10-05  Bruno Haible  <bruno@clisp.org>
17607         strpbrk: Make it possible to namespace the defined symbol.
17608         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17610 2018-10-05  Bruno Haible  <bruno@clisp.org>
17612         strcspn: Make it possible to namespace the defined symbol.
17613         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17615 2018-10-05  Bruno Haible  <bruno@clisp.org>
17617         raise: Make it possible to namespace the defined symbol.
17618         * lib/raise.c (raise): Undefine only after the replacement function has
17619         been defined.
17620         (raise): Renamed from rpl_raise.
17621         (raise_nothrow): Move to the end of the compilation unit.
17623 2018-10-05  Bruno Haible  <bruno@clisp.org>
17625         memcmp: Make it possible to namespace the defined symbol.
17626         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17628 2018-10-05  Bruno Haible  <bruno@clisp.org>
17630         explicit_bzero: Make it possible to namespace the defined symbol.
17631         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17632         glibc.
17634 2018-10-05  Bruno Haible  <bruno@clisp.org>
17636         mkdir-p: Depend on 'mkdir'.
17637         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17639 2018-10-05  Bruno Haible  <bruno@clisp.org>
17641         tempname: Depend on 'mkdir'.
17642         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17643         at <https://savannah.gnu.org/bugs/?33379>.
17644         * modules/tempname (Depends-on): Add 'mkdir'.
17646 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17648         timevar: rely on gnulib modules for time portability.
17649         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17650         * m4/timevar.m4: Don't check for clock_t and struct tms,
17651         guaranteed by gnulib.
17652         * lib/timevar.h: Use extern "C" protection.
17653         Include <stdio.h> for FILE.
17654         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17655         they are guaranteed by gnulib.
17656         Remove uses of clock as (now useless) fallback.
17658 2018-10-04  Bruno Haible  <bruno@clisp.org>
17660         sh-filename: New module.
17661         * m4/sh-filename.m4: New file.
17662         * modules/sh-filename: New file.
17663         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17664         "/bin/sh".
17665         * tests/test-posix_spawn1.c (main): Likewise.
17666         * tests/test-posix_spawn2.c (main): Likewise.
17667         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17668         is_envjavac_gcj43): Likewise.
17669         * lib/javaexec.c (execute_java_class): Likewise.
17670         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17671         * modules/posix_spawnp-tests (Depends-on): Likewise.
17672         * modules/javacomp (Depends-on): Likewise.
17673         * modules/javaexec (Depends-on): Likewise.
17675 2018-10-04  Bruno Haible  <bruno@clisp.org>
17677         spawn-pipe tests: Avoid test failure on native Windows.
17678         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17679         that fd 2 is closed.
17681 2018-10-04  Bruno Haible  <bruno@clisp.org>
17683         fcntl: Make it possible to namespace the defined symbol.
17684         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17685         been defined.
17686         (fcntl): Renamed from rpl_fcntl.
17687         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17688         from fcntl.
17689         (klibc_fcntl): Move to the end of the compilation unit.
17691 2018-10-02  Bruno Haible  <bruno@clisp.org>
17693         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17694         * tests/test-vasnprintf.c (test_function): Change the test added on
17695         2018-09-23 to check only the 18 most significant digits.
17697         vasnprintf tests: Avoid test failure on Cygwin.
17698         * tests/test-vasnprintf.c (test_function): Change the test added on
17699         2018-09-23 to check only the 42 most significant digits.
17701 2018-10-01  Bruno Haible  <bruno@clisp.org>
17703         mkostemp, mkostemps: Update documentation.
17704         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17705         * doc/glibc-functions/mkostemps.texi: Likewise.
17707 2018-10-01  Tom Tromey  <tom@tromey.com>
17709         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17710         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17711         on OS X.
17713 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17715         hmac-*: refactor to remove repetitive code
17716         * lib/hmac.c: A new parameterized single implementation.
17717         * lib/hmac-md5.c: Define parameters and include implementation.
17718         * lib/hmac-sha1.c: Likewise.
17719         * lib/hmac-sha256.c: Likewise.
17720         * lib/hmac-sha512.c: Likewise.
17721         * modules/crypto/hmac-md5: Reference the new implementation file.
17722         * modules/crypto/hmac-sha1: Likewise.
17723         * modules/crypto/hmac-sha256: Likewise.
17724         * modules/crypto/hmac-sha512: Likewise.
17725         * tests/test-hmac-md5.c: Refactor common code to a single function.
17726         * tests/test-hmac-sha1.c: Likewise.
17727         * tests/test-hmac-sha256.c: Likewise.
17728         * tests/test-hmac-sha512.c: Likewise.
17730 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17732         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17733         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17734         key length to that output by sha512, not the blocksize.
17735         Otherwise uninitialized data from the stack
17736         is used when computing the hash.
17737         * tests/test-hmac-sha512.c: Add a shortened key test case.
17738         Reported at https://github.com/coreutils/gnulib/pull/5
17740 2018-09-30  Bruno Haible  <bruno@clisp.org>
17742         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17743         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17744         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17745         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17746         'unsigned int' before comparison with an unsigned value.
17748 2018-09-30  Bruno Haible  <bruno@clisp.org>
17750         grantpt: Remove unnecessary dependency.
17751         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17753 2018-09-30  Bruno Haible  <bruno@clisp.org>
17755         timevar: Small tweaks.
17756         * lib/timevar.h: Fix comments. Add parameter names to function
17757         declarations.
17758         * lib/timevar.c: Include timevar.h immediately after config.h.
17759         * lib/timevar.def: Fix comments.
17760         * modules/timevar (Maintainer): List Akim Demaille.
17762 2018-09-30  Bruno Haible  <bruno@clisp.org>
17764         timevar: Include documentation in gnulib manual.
17765         * doc/timevar.texi: Change node and section name to 'Profiling of
17766         program phases'.
17767         In the code snippets, tweak the #includes and use GNU coding style.
17768         * doc/gnulib.texi: Include timevar.texi.
17770 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17772         timevar: import from Bison.
17773         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17774         New files.
17775         * lib/timevar.def: New file.
17776         * doc/timevar.texi: New file.
17778 2018-09-26  Bruno Haible  <bruno@clisp.org>
17780         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17781         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17782         * lib/javacomp.c (default_target_version): Likewise.
17784 2018-09-26  Bruno Haible  <bruno@clisp.org>
17786         javacomp-script, javacomp: Add support for Java 11.
17787         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17788         target-version 11.
17789         * lib/javaversion.h: Update comments.
17790         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17791         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17792         TARGET_VERSION_BOUND, target_version_index,
17793         corresponding_classfile_version): Accept source_version 11 and
17794         target_version 11.
17795         * lib/javacomp.h: Update comments accordingly.
17797 2018-09-23  Bruno Haible  <bruno@clisp.org>
17799         vasnprintf: Fix heap memory overrun bug.
17800         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17801         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17802         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17803         memory.
17804         * tests/test-vasnprintf.c (test_function): Add another test.
17806 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17808         maint: mktime.c now shared with glibc
17809         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17810         are now the same in Gnulib and glibc.
17812         mktime: fix _LIBC typo
17813         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17815 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17817         dfa: optimization for state merge
17818         * lib/dfa.c (merge2): New function.
17819         (merge_nfa_state): Use it.
17821 2018-09-18  Jim Meyering  <meyering@fb.com>
17823         dfa: trivial comment fix: s/is/if/
17824         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17826 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17828         dfa: use more-informative function name
17829         * lib/dfa.c (maybe_disable_superset_dfa):
17830         Rename from dfautf8noss.  Use change.
17832         dfa: tweak allocation performance
17833         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17834         Prefer ptrdiff_t for indexes some more.
17835         Use char for flags, as it’s wide enough.
17836         Allocate queue and flags together, with one malloc call.
17837         No need to use xnmalloc since the multiplication and
17838         addition cannot overflow (it’s already been checked by
17839         earlier allocation).  Prefer memset to open-coding.
17841         dfa: prune states as we go
17842         * lib/dfa.c (prune): Remove.
17843         dfa: reorder enum for efficiency
17844         (merge_nfa_state): Prune as we go instead of at the end.
17845         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17847         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17848         of the enumeration to make it easier for GCC to generate
17849         efficient code by using fewer comparisons to check for
17850         ranges of values.
17851         (atom): Take advantage of the reordering.
17853 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17855         dfa: optimize alternation in NFA
17856         Even when similar states exist in alternation, the DFA treats them
17857         as separate items, which may complicate the transition in NFA and
17858         cause slowdown.  This change assembles the states into one.  For
17859         example, ab|ac is changed into a(b|c).  This change speeds-up
17860         matching for many branched patterns.  For example, grep speeds up
17861         more than 30× in:
17863           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17864           time -p env LC_ALL=C grep -vf in in
17866         * lib/dfa.c (prune): New function.
17867         (merge_nfa_state): New function.  It merges similar NFA states.
17868         (dfaoptimize): New function.  It seeks merged and removed nodes.
17869         (dfaanalyze): Call new function.
17870         (dfautf8noss): Change name from dfaoptimize because of addition of new
17871         function.
17872         (dfacomp): Update caller.
17874         dfa: simplify initial state
17875         Simplifying the initial state enables easier optimization of the NFA.
17876         * lib/dfa.c (enum token): Add new element BEG.
17877         (prtok): Adjust due to adding element BEG.
17878         (dfaparse): Put BEG at a head of tokens.
17879         (state_index): Adjust due to adding element BEG.
17880         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17881         build initial state.
17882         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17884 2018-09-18  Bruno Haible  <bruno@clisp.org>
17886         file-has-acl: Fix test failure on Cygwin 2.9.
17887         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17888         * lib/acl-internal.h: Likewise.
17889         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17890         * lib/acl-internal.c: Update comments regarding Cygwin.
17891         * lib/acl_entries.c: Likewise.
17892         * lib/file-has-acl.c: Likewise.
17893         (file_has_acl): For Cygwin, use a different way to determine whether
17894         the "default" ACL of a directory is nontrivial.
17895         * lib/get-permissions.c: Update comments regarding Cygwin.
17896         * lib/set-permissions.c: Likewise.
17898 2018-09-18  Bruno Haible  <bruno@clisp.org>
17900         stat-time tests: Fix test failure on Cygwin.
17901         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17903 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17905         doc: OS X 10.11 lacked ns time functions
17906         According to <https://github.com/zeromq/libzmq/issues/2175>,
17907         nanosecond-resolution timestamp functions were introduced
17908         in macOS 10.12, so document the last version (OS X 10.11)
17909         where they were absent.
17911         gettime: nanotime never existed
17912         Problem reported by Bruno Haible in:
17913         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17914         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17915         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17917 2018-09-18  Bruno Haible  <bruno@clisp.org>
17919         doc: Update statement about target platforms.
17920         Reported by Simon Sobisch.
17921         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17922         restrictions on MSVC versions.
17924 2018-09-18  Bruno Haible  <bruno@clisp.org>
17926         posix_spawn tests: Fix link error on 64-bit Cygwin.
17927         * tests/test-posix_spawn1.c (environ): Remove declaration.
17928         * tests/test-posix_spawn2.c (environ): Likewise.
17929         * tests/test-posix_spawn3.c (environ): Likewise.
17930         * tests/test-posix_spawn4.c (environ): Likewise.
17931         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17932         * modules/posix_spawnp-tests (Depends-on): Likewise.
17934 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17936         timespec: new function current_timespec
17937         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17938         and don’t worry about it failing on a CLOCK_REALTIME arg.
17939         POSIX requires it to succeed and I don’t know of any
17940         counterexamples where the fallbacks would work.
17941         (current_timespec): New function, taken from Emacs.  It is more
17942         convenient than gettime, and can help register allocation.
17943         * lib/timespec.h: Include arg-nonnull.h.
17944         (current_timespec): New declaration.
17945         (gettime, settime): Declare args to be nonnull.
17946         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17948 2018-09-16  Bruno Haible  <bruno@clisp.org>
17950         setlocale: Improve locale handling on macOS 10.12 or newer.
17951         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17952         gl_locale_name_canonicalize.
17953         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17954         and LC_MESSAGES.
17955         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17957 2018-09-16  Bruno Haible  <bruno@clisp.org>
17959         Update list of locale names with scripts on macOS.
17960         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17961         match Mac OS X 10.13 and recent glibc.
17963 2018-09-16  Bruno Haible  <bruno@clisp.org>
17965         gettext: Use newer macOS APIs when possible.
17966         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17967         CFLocaleCopyPreferredLanguages.
17969 2018-09-16  Bruno Haible  <bruno@clisp.org>
17971         localename: Revisit macOS specific code.
17972         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17973         Fix comments about Mac OS X versions.
17975 2018-09-15  Bruno Haible  <bruno@clisp.org>
17977         setlocale: Improve support for locales not supported by libc.
17978         Reported by Dapeng Gao <peter@dpgao.cc> at
17979         <https://savannah.gnu.org/bugs/?54479>.
17980         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17981         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17982         to be set is not supported by libc: Emit warnings instead of failing.
17984 2018-09-15  Bruno Haible  <bruno@clisp.org>
17986         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17987         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17988         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17989         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17991         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17992         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17993         * doc/glibc-functions/strcasestr.texi: Likewise.
17995 2018-09-14  Bruno Haible  <bruno@clisp.org>
17997         doc: Fix bottom of top-level page.
17998         Reported by Akim Demaille <akim.demaille@gmail.com> in
17999         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18000         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18001         mode.
18002         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18003         accordingly.
18005 2018-09-12  Bruno Haible  <bruno@clisp.org>
18007         Add test case from a recent glibc bug.
18008         * tests/test-strstr.c (main): Add test of long needle.
18009         * tests/test-strcasestr.c (main): Likewise.
18010         * tests/test-c-strstr.c (main): Likewise.
18011         * tests/test-c-strcasestr.c (main): Likewise.
18012         * tests/test-memmem.c (main): Likewise.
18014 2018-09-12  Bruno Haible  <bruno@clisp.org>
18016         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18017         * tests/test-c-strstr.c (main): Add the same tests here as well.
18019 2018-09-12  Bruno Haible  <bruno@clisp.org>
18021         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18022         * tests/test-memmem.c (main): Free haystack.
18023         * tests/test-strcasestr.c (main): Likewise.
18024         * tests/test-c-strcasestr.c (main): Likewise.
18026 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18028         xstrtol: fix missing-TYPE_SIGNED typo
18029         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18031 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18033         timespec: fix resolution confusion
18034         In normal usage, clock resolution is given in seconds, but the
18035         code was mistakenly using inverse seconds and calling it
18036         “resolution”.  Fix this, partly by renaming two identifiers.
18037         The old names will be kept for a bit, to ease transition.
18038         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18039         New constants, replacing TIMESPEC_RESOLUTION and
18040         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18041         All uses changed.
18043 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18045         mktime: simplify in prep for glibc merge
18046         * lib/mktime.c, lib/timegm.c [_LIBC]:
18047         Include mktime-internal.h (a small file just for glibc)
18048         instead of using a typedef.
18050 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18052         intprops: minor clarification of code
18053         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18054         Use _GL_INT_CONVERT rather than reinventing it.
18056 2018-09-07  Bruno Haible  <bruno@clisp.org>
18058         Fix a comment.
18059         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18061 2018-09-07  Bruno Haible  <bruno@clisp.org>
18063         posix_spawn_file_actions_addchdir: Add tests.
18064         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18065         * tests/test-posix_spawn4.c: New file.
18066         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18068 2018-09-07  Bruno Haible  <bruno@clisp.org>
18070         posix_spawn_file_actions_addchdir: New module.
18071         Suggested by Eric Blake in
18072         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18073         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18074         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18075         union member 'chdir_action'.
18076         * lib/spawn_faction_addchdir.c: New file.
18077         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18078         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18079         HAVE_WORKING_POSIX_SPAWN.
18080         * lib/spawn_faction_adddup2.c: Likewise.
18081         * lib/spawn_faction_addopen.c: Likewise.
18082         * m4/posix_spawn_faction_addchdir.m4: New file.
18083         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18084         'posix_spawn_file_actions_addchdir' is present and whether
18085         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18086         instead of HAVE_WORKING_POSIX_SPAWN.
18087         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18088         posix_spawn_file_actions_addchdir is declared.
18089         (gl_SPAWN_H_DEFAULTS): Initialize
18090         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18091         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18092         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18093         * modules/spawn (Makefile.am): Substitute
18094         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18095         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18097         * modules/posix_spawn_file_actions_addchdir: New file.
18098         * modules/posix_spawn_file_actions_addclose (Depends-on,
18099         configure.ac): Test also REPLACE_POSIX_SPAWN.
18100         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18101         configure.ac): Likewise.
18102         * modules/posix_spawn_file_actions_addopen (Depends-on,
18103         configure.ac): Likewise.
18104         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18105         signature.
18106         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18107         * doc/posix-functions/posix_spawnp.texi: Likewise.
18109 2018-09-06  Bruno Haible  <bruno@clisp.org>
18111         stddef: Override max_align_t on NetBSD 8.0/x86.
18112         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18113         the value of __alignof__ (max_align_t).
18114         * doc/posix-headers/stddef.texi: Mention the issue.
18116 2018-09-06  Bruno Haible  <bruno@clisp.org>
18118         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18119         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18120         system fcntl.
18121         * doc/posix-functions/fcntl.texi: Document the issue.
18123 2018-09-06  Bruno Haible  <bruno@clisp.org>
18125         count-trailing-zeros tests: Rely on limits-h module.
18126         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18127         definition.
18128         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18130 2018-09-06  Bruno Haible  <bruno@clisp.org>
18132         count-leading-zeros tests: Rely on limits-h module.
18133         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18134         definition.
18135         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18137 2018-09-06  Bruno Haible  <bruno@clisp.org>
18139         count-one-bits tests: Rely on limits-h module.
18140         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18141         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18143 2018-09-06  Bruno Haible  <bruno@clisp.org>
18145         xstrtoll: Rely on limits-h module.
18146         * lib/xstrtol.c: Don't include intprops.h.
18147         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18148         * modules/xstrtol (Depends-on): Remove 'intprops'.
18149         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18151 2018-09-06  Bruno Haible  <bruno@clisp.org>
18153         strtoll, strtoull: Rely on limits-h module.
18154         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18155         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18156         * modules/strtoll (Depends-on): Add limits-h.
18157         * modules/strtoull (Depends-on): Likewise.
18159 2018-09-06  Bruno Haible  <bruno@clisp.org>
18161         intprops tests: Fix compilation error with pre-C99 compiler.
18162         * tests/test-intprops.c (verify_stmt): New macro.
18163         (VERIFY, main): Use it.
18165 2018-09-06  Bruno Haible  <bruno@clisp.org>
18167         limits-h: Provide numerical limits macros.
18168         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18169         IRIX and for GCC.
18170         (WORD_BIT, LONG_BIT): Define.
18171         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18172         <limits.h> does not define LLONG_MAX or WORD_BIT.
18173         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18174         TYPE_MAXIMUM): New macros, from intprops.h.
18175         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18176         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18177         provides.
18179 2018-09-05  Bruno Haible  <bruno@clisp.org>
18181         fcntl: Don't access nonexistent optional argument.
18182         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18183         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18184         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18185         don't consume an argument. For actions that take an 'int' argument,
18186         consume an 'int' argument.
18188 2018-09-05  Eric Blake  <eblake@redhat.com>
18190         doc: mention environ pitfall
18191         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18192         environ is a glibc extension.
18194 2018-09-03  Bruno Haible  <bruno@clisp.org>
18196         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18197         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18198         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18199         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18200         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18201         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18203 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18205         mktime: fix unlikely race+overflow bug
18206         Problem reported by Alexandre Oliva in:
18207         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18208         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18209         to avoid an unlikely race if the compiler delays a load and
18210         if this cascades into a signed integer overflow.
18212 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18214         mktime, timegm: simplify glibc time64_t
18215         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18216         Now long int, not time_t, since long int is the longstanding type
18217         for this in glibc and there is no need to change it even if time_t
18218         becomes 64 bits - even int would do, though this would be a change
18219         to the glibc generated code.  When this change is merged into
18220         glibc, it should simplify the time_t vs time64_t situation.
18222         mktime, timegm: simplify merge to glibc
18223         Move code around to make a merge to glibc easier to audit.
18224         This should not change behavior.
18225         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18226         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18227         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18228         simplify later conditionals; default the others to zero.  In uses
18229         of these conditionals, explicitly spell out how _LIBC affects
18230         things, so it’s easier to review from a glibc viewpoint.
18231         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18232         compartmentalize tzset issues.  Move system-dependent tzsettish
18233         code here from mktime.
18234         (mktime): Move tzsettish code to my_tzset, and move
18235         localtime_offset to within mktime so that it doesn’t
18236         need a separate ifdef.
18238 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18240         intprops: avoid evaluation of some expressions
18241         This makes EXPR_SIGNED (e) easier to use, as it no longer
18242         evaluates the expression E.  Formerly, E was required to be free
18243         of side effects.
18244         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18245         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18246         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18248 2018-08-23  Bruno Haible  <bruno@clisp.org>
18250         getcwd: Add cross-compilation guesses.
18251         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18252         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18253         Based on a patch by Paul Eggert.
18254         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18255         guesses for all GNU systems.
18257 2018-08-19  Bruno Haible  <bruno@clisp.org>
18259         glob-h: Formalize side effects from other modules.
18260         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18261         * m4/glob.m4 (gl_GLOB): Invoke it.
18263         fnmatch-h: Formalize side effects from other modules.
18264         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18265         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18267         limits-h: Formalize side effects from other modules.
18268         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18269         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18271 2018-08-19  Bruno Haible  <bruno@clisp.org>
18273         getpass: Move declaration to <unistd.h>.
18274         * lib/unistd.in.h (getpass): New declaration.
18275         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18276         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18277         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18278         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18279         On glibc systems, don't set REPLACE_GETPASS to 1.
18280         * modules/getpass (Depends-on): Add 'unistd'.
18281         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18282         (Include): Specify <unistd.h> instead of "getpass.h".
18283         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18284         (configure.ac): Sync with the configure.ac section of modules/getpass.
18285         (Include): Specify <unistd.h> instead of "getpass.h".
18286         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18287         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18288         REPLACE_GETPASS.
18289         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18290         REPLACE_GETPASS.
18291         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18292         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18293         and musl.
18294         * NEWS: Mention the change.
18296 2018-08-19  Bruno Haible  <bruno@clisp.org>
18298         glob: Fix over-optimization due to attribute __nonnull__.
18299         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18301 2018-08-19  Bruno Haible  <bruno@clisp.org>
18303         glob: Fix another compilation error when glob.h is not replaced.
18304         Reported by Reuben Thomas <rrt@sc3d.org> in
18305         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18306         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18307         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18309 2018-08-18  Bruno Haible  <bruno@clisp.org>
18311         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18312         Reported by Reuben Thomas <rrt@sc3d.org> in
18313         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18314         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18315         in config.h.
18317 2018-08-18  Bruno Haible  <bruno@clisp.org>
18319         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18320         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18321         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18322         Solution proposed by Eli Zaretskii.
18323         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18324         * lib/gettimeofday.c (GetProcAddress): Likewise.
18325         * lib/link.c (GetProcAddress): Likewise.
18326         * lib/physmem.c (GetProcAddress): Likewise.
18327         * lib/poll.c (GetProcAddress): Likewise.
18328         * lib/select.c (GetProcAddress): Likewise.
18329         * lib/stat-w32.c (GetProcAddress): Likewise.
18331 2018-08-18  Bruno Haible  <bruno@clisp.org>
18333         glob: Fix another compilation error when glob.h is not replaced.
18334         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18335         * lib/globfree.c: Include <libc-config.h>.
18337 2018-08-18  Bruno Haible  <bruno@clisp.org>
18339         glob: Fix compilation error when glob.h is not replaced.
18340         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18341         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18342         * lib/glob_pattern_p.c: Include <libc-config.h>.
18343         * modules/glob (Depends-on): Add libc-config.
18345 2018-08-18  Bruno Haible  <bruno@clisp.org>
18347         scratch_buffer: Add tests.
18348         * tests/test-scratch-buffer.c: New file.
18349         * modules/scratch_buffer-tests: New file.
18351 2018-08-18  Bruno Haible  <bruno@clisp.org>
18353         scratch_buffer: Fix include file.
18354         Reported by Reuben Thomas <rrt@sc3d.org> in
18355         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18356         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18357         double-inclusion guard.
18359 2018-08-18  Bruno Haible  <bruno@clisp.org>
18361         glob-h: Revert Paul Eggert's revert.
18362         * m4/glob_h.m4: Revert to previous state.
18363         * modules/glob-h: Likewise.
18365 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18367         glob-h: always build glob.h
18368         This works around a problem reported by Reuben Thomas in:
18369         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18370         This workaround always builds glob.h, even on platforms that
18371         do not need it; perhaps this could be improved someday.
18372         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18373         is always created now.
18374         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18376 2018-08-13  Bruno Haible  <bruno@clisp.org>
18378         monetary: Simplify m4 code.
18379         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18380         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18382 2018-08-13  Bruno Haible  <bruno@clisp.org>
18384         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18385         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18386         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18387         and by Paul J. Lucas <paul@lucasmail.org> in
18388         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18389         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18391 2018-08-11  Bruno Haible  <bruno@clisp.org>
18393         setlocale: Trivial simplification.
18394         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18396 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18398         verify: port 'assume' to traditional tools
18399         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18400         and other tools that use /*NOTREACHED*/ comments.
18402 2018-08-10  Bruno Haible  <bruno@clisp.org>
18404         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18405         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18406         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18407         'fnmatch-gnu' is in use.
18409 2018-08-07  Bruno Haible  <bruno@clisp.org>
18411         glob-h: Add tests.
18412         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18413         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18414         tests/test-glob-h.c.
18415         * modules/glob-h-tests: New file.
18416         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18417         conditions.
18418         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18419         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18421 2018-08-07  Bruno Haible  <bruno@clisp.org>
18423         glob-h: New module.
18424         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18425         replacements.
18426         * lib/glob.c: Include <config.h>.
18427         * m4/glob_h.m4: New file.
18428         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18429         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18430         REPLACE_GLOB_PATTERN_P as appropriate.
18431         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18432         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18433         * modules/glob-h: New file.
18434         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18435         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18436         lstat, sys_stat. Change conditions.
18437         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18438         REPLACE_GLOB_PATTERN_P. Set module indicator.
18439         (Makefile.am): Remove code that is moved to glob-h.
18440         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18441         * modules/posixcheck (Depends-on): Add glob-h.
18443 2018-08-06  Bruno Haible  <bruno@clisp.org>
18445         Force generation of substitute .h file when C++ support is enabled.
18446         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18447         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18448         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18449         FNMATCH_H to non-empty.
18450         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18451         ICONV_H to non-empty.
18452         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18453         MONETARY_H to non-empty.
18454         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18455         non-empty.
18457 2018-08-06  Bruno Haible  <bruno@clisp.org>
18459         fnmatch-h: Fix test compilation error on mingw (regression from today).
18460         * lib/fnmatch.in.h: Fix conditions.
18462 2018-08-06  Bruno Haible  <bruno@clisp.org>
18464         sys_resource: Relicense under LGPLv2+.
18465         John Malmberg's approval is in
18466         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18467         * modules/sys_resource (License): Change to LGPLv2+.
18469 2018-08-06  Bruno Haible  <bruno@clisp.org>
18471         fnmatch-h: Add tests.
18472         * tests/test-fnmatch-h.c: New file.
18473         * modules/fnmatch-h-tests: New file.
18474         * tests/test-fnmatch-h-c++.cc: New file.
18475         * modules/fnmatch-h-c++-tests: New file.
18477 2018-08-06  Bruno Haible  <bruno@clisp.org>
18479         fnmatch-h: New module.
18480         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18481         replacements.
18482         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18483         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18484         'posixcheck' warning.
18485         * m4/fnmatch_h.m4: New file.
18486         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18487         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18488         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18489         as appropriate.
18490         * modules/fnmatch-h: New file.
18491         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18492         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18493         conditions.
18494         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18495         indicator.
18496         (Makefile.am): Remove code that is moved to fnmatch-h.
18497         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18498         REPLACE_FNMATCH.
18499         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18500         * modules/posixcheck (Depends-on): Add fnmatch-h.
18502 2018-08-06  Bruno Haible  <bruno@clisp.org>
18504         Enable more C++ tests.
18505         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18506         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18507         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18508         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18509         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18511 2018-08-06  Bruno Haible  <bruno@clisp.org>
18513         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18514         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18515         getopt.h.
18516         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18518 2018-08-05  Bruno Haible  <bruno@clisp.org>
18520         utime-h: Generate header file when module 'posixcheck' is in use.
18521         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18522         UTIME_H to non-empty.
18524 2018-08-05  Bruno Haible  <bruno@clisp.org>
18526         monetary: Generate header file when module 'posixcheck' is in use.
18527         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18528         use, set MONETARY_H to non-empty.
18530 2018-08-05  Bruno Haible  <bruno@clisp.org>
18532         iconv-h: Generate header file when module 'posixcheck' is in use.
18533         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18534         set ICONV_H to non-empty.
18536 2018-08-05  Bruno Haible  <bruno@clisp.org>
18538         Optimize the "checking whether ... is declared without a macro" checks.
18539         Suggested by Paul Eggert in
18540         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18541         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18542         Gnulib module 'posixcheck' is not in use.
18544 2018-08-05  Bruno Haible  <bruno@clisp.org>
18546         iconv-h: Enable 'posixcheck' warnings.
18547         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18548         iconv_open.
18549         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18551 2018-08-05  Bruno Haible  <bruno@clisp.org>
18553         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18554         * m4/extern-inline.m4: Add more comments.
18555         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18556         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18557         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18559 2018-08-04  Bruno Haible  <bruno@clisp.org>
18561         New module 'posixcheck'.
18562         * modules/posixcheck: New file.
18563         * m4/posixcheck.m4: New file.
18564         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18565         (Which modules?): Reference it.
18567 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18569         dfa: fix memory leak
18570         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18572 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18574         ieee754-h: new module
18575         It looks like Emacs can use this for some NaN processing.
18576         Emacs uses it only on double NaNs so it should be safe.
18577         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18578         * config/srclist.txt: Mention ieee754.h in a comment.
18579         * doc/glibc-headers/ieee754.texi (ieee754.h):
18580         Gnulib now has a substitute that should work
18581         except for long double and for non-IEEE platforms.
18582         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18583         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18585 2018-07-27  Bruno Haible  <bruno@clisp.org>
18587         iswcntrl: Mention minor problem on macOS.
18588         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18590 2018-07-26  Colin Watson  <cjwatson@debian.org>
18592         bootstrap, gnulib-tool: fix translations rsync
18593         Previously, we created files such as $pobase/Makefile.in.in and then the
18594         subsequent rsync would immediately delete them.
18595         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18596         non-.po files in target directory when rsyncing translations.
18597         * gnulib-tool (func_import): Likewise.
18598         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18600 2018-07-25  Jim Meyering  <meyering@fb.com>
18602         bootstrap: reinstate definition fo gnulib_mk.
18603         That variable is used at least by cppi.
18604         * build-aux/bootstrap (gnulib_mk): Restore definition.
18605         This reverts the deletion from v0.1-1844-gc66dba9ba.
18607 2018-07-23  Bruno Haible  <bruno@clisp.org>
18609         doc: For module names, use texinfo markup @code{} or @samp{}.
18610         * doc/alloca.texi: Mark gnulib module names with @code.
18611         * doc/alloca-opt.texi: Likewise.
18612         * doc/quote.texi: Likewise.
18613         * doc/posix-functions/freopen.texi: Likewise.
18614         * doc/posix-functions/open.texi: Likewise.
18615         * doc/posix-functions/readlink.texi: Likewise.
18616         * doc/posix-functions/readlinkat.texi: Likewise.
18617         * doc/posix-functions/stdout.texi: Likewise.
18618         * doc/posix-functions/stderr.texi: Likewise.
18619         * doc/posix-functions/unlink.texi: Likewise.
18620         * doc/posix-functions/unlinkat.texi: Likewise.
18621         * doc/posix-functions/utime.texi: Likewise.
18622         * doc/posix-functions/utimensat.texi: Likewise.
18623         * doc/posix-functions/utimes.texi: Likewise.
18624         * doc/posix-headers/stdint.texi: Likewise.
18625         * doc/glibc-functions/futimesat.texi: Likewise.
18626         * doc/glibc-functions/lutimes.texi: Likewise.
18627         * doc/glibc-functions/memmem.texi: Likewise.
18629 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18631         doc: Avoid some overfull lines in the TeX output.
18632         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18633         @example.
18634         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18635         newline before the long URL.
18636         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18637         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18638         Add line breaks in code snippets.
18640 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18642         hard-locale: simplify by removing hard-locale.m4
18643         * m4/hard-locale.m4: Remove.
18644         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18645         (configure.ac): Do not call gl_HARD_LOCALE.
18647         gnulib-tool: limit line length for git send-email
18648         * gnulib-tool (func_import): Break actioncmd log line
18649         into multiple lines.
18651 2018-07-16  Bruno Haible  <bruno@clisp.org>
18653         ffs: Ensure declaration on mingw.
18654         Reported by Daniel P. Berrangé <berrange@redhat.com>
18655         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18656         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18657         also declared.
18659 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18661         regex-tests: add dependency
18662         * modules/regex-tests (Depends-on): Add gettext-h.
18663         This is needed given the recent changes to regex,
18664         which no longer depends on gettext-h.
18666 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18668         regex: now in sync with glibc
18669         * config/srclist.txt: Gnulib and glibc regex code
18670         are synchronized again.
18672 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18674         renameatu: rename from renameat2
18675         It's looking like Glibc will add a renameat2 function
18676         that is incompatible with Gnulib renameat2; see:
18677         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18678         To help avoid future confusion, rename renameat2 to something else.
18679         Use the name 'renameatu', as the Gnulib function is close to the
18680         Glibc function.  Perhaps someday there will also be a renameat2
18681         Gnulib module, which mimicks the future glibc renameat2, but that
18682         can wait as nobody seems to need such a module now.
18683         * NEWS: Mention this.
18684         * lib/renameatu.c: Rename from lib/renameat2.c.
18685         * lib/renameatu.h: Rename from lib/renameat2.h.
18686         * modules/renameatu: Rename from modules/renameat2.
18687         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18688         All uses of "renameat2" in identifiers or file name
18689         changed to "renameatu", except for two instances in
18690         lib/renameatu.c that deal with the Linux kernel's
18691         renameat2 syscall.
18693 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18695         gnulib-tool: minor tweaks for --gnu-make
18696         * gnulib-tool: Do not allow --gnu-make in test modes,
18697         since they all require automake.
18698         (func_emit_lib_Makefile_am): Don’t emit automake comment
18699         if --gnu-make.
18701         regex: work around conditional-dependencies glitch
18702         * modules/regex (Depends-on): Add langinfo.
18703         Without this change, I had problems building an experimental
18704         version of GNU Emacs.  The symptom of the bug was a message
18705         ‘./configure: line 12726: test: =: unary operator expected’.
18706         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18707         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18708         was unset.  Although gl_FUNC_NL_LANGINFO has
18709         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18710         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18711         --conditional-dependencies sometimes arranges for the
18712         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18713         code.  Since the regex code includes <langinfo.h> it should be
18714         depending on the langinfo module anyway, and this happens to work
18715         around the bug, so install that as a workaround for now.  To
18716         reproduce the original problem, run the following shell script on
18717         the version of Gnulib just before this patch was installed.
18718                 rm -fr foo
18719                 mkdir foo
18720                 cat >foo/configure.ac <<'EOF'
18721                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18722                 gl_EARLY
18723                 gl_INIT
18724                 AC_OUTPUT
18725                 EOF
18726                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18727                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18728                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18729                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18730                 cd foo
18731                 aclocal -I m4
18732                 autoconf
18733                 ./configure --with-included-regex
18735 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18737         wchar: fix bug when checking for ‘inline’
18738         I discovered this when looking into using the regex module
18739         with Emacs.
18740         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18741         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18742         conftest1.c and conftest2.c but these files were not created.
18743         As far as I can see, this check never worked and nobody reported
18744         it until now, which is a bit worrisome.
18746 2018-06-30  Jim Meyering  <meyering@fb.com>
18748         bootstrap: s/--option val/--option=val/
18749         * build-aux/bootstrap (gnulib_tool_options): Change the
18750         spelling of "--option val" pairs to "--option=val", for
18751         aesthetics, and also so that this file no longer triggers
18752         a common help2man syntax-check warning when copied into
18753         projects like grep, gzip, etc.
18755 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18757         manywarnings: omit -Wswitch-default
18758         This should make things more consistent, as we already ignore
18759         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18760         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18761         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18762         Add -Wswitch-default.
18763         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18764         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18765         Remove -Wswitch-default.
18767         regex: revert most trimming
18768         Problems reported by Bruno Haible in:
18769         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18770         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18771         and wctype back in.  lock because regex users shouldn’t
18772         need to know that regex needs locking, and the rest because
18773         gnulib-tool should ordinarily ignore them anyway.
18775 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18777         regex: trim module dependencies
18778         * modules/regex (Depends-on): Remove gettext-h and lock,
18779         since the regex code should work OK without these modules,
18780         and Emacs uses it that way.  Also remove memcmp, memmove,
18781         and wctype, as these modules are obsolete and should not be
18782         needed any more.
18784 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18786         regex: glibc does not use intprops.h
18787         Maybe we can talk glibc into using intprops.h someday, but
18788         now doesn’t seem to be a good time.
18789         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18790         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18791         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18793 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18795         regex: port to recently proposed glibc regex merge
18796         This patch is inspired by Adhemerval Zanella's recent proposal
18797         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18798         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18799         the glibc side, without keeping Gnulib portable.
18800         * lib/regex.h: Fix a problem with glibc installed-header checking,
18801         as follows:
18802         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18803         (_Restrict_arr_): Prefer __restrict_arr if defined,
18804         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18805         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18806         (build_wcs_upper_buffer, build_upper_buffer)
18807         (re_string_translate_buffer, re_string_context_at):
18808         Move decls here from lib/regex_internal.h, for glibc internal tests.
18809         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18810         glibc BZ #18496.
18811         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18812         -Wunused-value.
18813         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18814         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18815         (bitset_mask): Now static inline, and without any __attribute__
18816         ((unused)) decoration, for glibc internal tests.
18818 2018-06-25  Bruno Haible  <bruno@clisp.org>
18820         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18821         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18822         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18823         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18824         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18825         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18826         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18827         / -lthread / -lpth does not get optimized away by a preceding
18828         --as-needed option.
18830 2018-06-25  Bruno Haible  <bruno@clisp.org>
18832         Continue to use spaces for indentation, not tabs.
18833         * MODULES.html.sh: Untabify.
18834         * doc/regex.texi: Likewise.
18835         * lib/acl-internal.c: Likewise.
18836         * lib/dfa.c: Likewise.
18837         * lib/exclude.c: Likewise.
18838         * lib/exclude.h: Likewise.
18839         * lib/get-permissions.c: Likewise.
18840         * lib/gettimeofday.c: Likewise.
18841         * lib/parse-datetime.y: Likewise.
18842         * lib/pselect.c: Likewise.
18843         * lib/set-permissions.c: Likewise.
18844         * lib/time.in.h: Likewise.
18845         * m4/canonicalize.m4: Likewise.
18846         * m4/gc.m4: Likewise.
18847         * m4/gnulib-common.m4: Likewise.
18848         * m4/pthread_sigmask.m4: Likewise.
18849         * m4/vararrays.m4: Likewise.
18850         * tests/test-digest.h: Likewise.
18851         * tests/test-fcntl-h.c: Likewise.
18852         * tests/test-timespec.c: Likewise.
18853         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18855 2018-06-25  Bruno Haible  <bruno@clisp.org>
18857         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18858         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18859         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18860         -Wjump-misses-init.
18862 2018-06-25  Jim Meyering  <meyering@fb.com>
18864         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18865         * lib/acl-internal.h (free_permission_context): Remove that
18866         attribute directive.  Otherwise, it would provoke this from GCC 9:
18867         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18868           returning 'void' [-Werror=attributes]
18870 2018-06-24  Jim Meyering  <meyering@fb.com>
18872         parse-datetime: accommodate gcc-4.8.5
18873         Bruno Haible reported the build failure in
18874         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18875         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18876         on declaration of new local.
18878 2018-06-24  Bruno Haible  <bruno@clisp.org>
18880         af_alg: Fail in continuable manner on Linux/powerpc64le.
18881         Reported by Assaf Gordon <assafgordon@gmail.com>
18882         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18883         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18884         byte send() as the first round.
18886 2018-06-24  Bruno Haible  <bruno@clisp.org>
18888         af_alg: Fix state of stream after sendfile() succeeds.
18889         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18890         the stream is correctly positioned afterwards.
18891         * modules/crypto/af_alg (Depends-on): Add fflush.
18892         * tests/test-digest.h (test_digest_on_files): Verify that after the
18893         operation the stream is positioned at end of file.
18895 2018-06-24  Jim Meyering  <meyering@fb.com>
18897         canon-host: take GCC9's advice rather than ignoring warning
18898         Pádraig Brady suggested not to ignore this GCC9 advice.
18899         * lib/canon-host.c: Undo preceding change.
18900         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18902         parse-datetime.y: avoid spurious GCC 9 warning
18903         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18904         a function local prior to the first "goto fail".  The prior use would
18905         evoke this:
18906         parse-datetime.y: In function 'parse_datetime2':
18907         parse-datetime.y:1791:19: error: jump skips variable initialization \
18908           [-Werror=jump-misses-init]
18909         parse-datetime.y:2385:2: note: label 'fail' defined here
18910         parse-datetime.y:188:43: note: '({anonymous})' declared here
18911         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18913         canon-host.c: avoid spurious GCC 9 warning
18914         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18916         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18917         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18918         * m4/manywarnings.m4: Remove them.
18919         Otherwise, building coreutils, I would see this:
18920         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18921         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18922         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18923           which is also used by default
18924         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18926 2018-06-24  Bruno Haible  <bruno@clisp.org>
18928         af_alg tests: Add another test.
18929         * tests/test-digest.h (test_digest_on_files): Also check a large file
18930         with a skipped header.
18931         * tests/test-md5.c: Include macros.h.
18932         * tests/test-sha1.c: Likewise.
18933         * tests/test-sha256.c: Likewise.
18934         * tests/test-sha512.c: Likewise.
18935         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18936         * modules/crypto/sha1-tests (Files): Likewise.
18937         * modules/crypto/sha256-tests (Files): Likewise.
18938         * modules/crypto/sha512-tests (Files): Likewise.
18940 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18942         maint: clarify comments about sticky EOF
18943         * lib/af_alg.c: Be more direct that we can't
18944         assume stickiness of EOF for portability reasons.
18945         * lib/md5.c: Clarify that this isn't just a glibc issue.
18946         * lib/sha1.c: Likewise.
18947         * lib/sha256.c: Likewise.
18948         * lib/sha512.c: Likewise.
18950 2018-06-24  Bruno Haible  <bruno@clisp.org>
18952         af_alg: Comment and style improvements.
18953         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18954         (afalg_buffer, afalg_stream): Improve comments.
18956 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18958         af_alg: disable kernel hash functions by default
18959         All the kernel routines were seen to be significantly slower
18960         with these relatively recent components on an i3-2310M system:
18961           kernel-4.10.6-200.fc25.x86_64
18962           openssl-1.0.2m-1.fc25.x86_64
18963         sha1 was nearly twice as slow in the kernel for example.
18964         Further considerations why this should not be the default, at:
18965         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18967         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18968         * m4/gl-openssl.m4: Tweak accordingly.
18970 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18972         af_alg: avoid hangs when reading from streams
18973         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18974         and thus avoid doing a fread() when feof() is set.
18975         * lib/md5.c: Ensure feof() is called before fread().
18976         * lib/sha1.c: Likewise.
18977         * lib/sha256.c: Likewise.
18978         * lib/sha512.c: Likewise.
18980 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18982         af_alg: fix error handling when hash not returned
18983         * lib/af_alg.c (afalg_stream): Handle the case where we've
18984         successfully written data to the kernel in the read/write loop,
18985         but the kernel doesn't respond with the hash.
18987 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18989         libc-config: merge from glibc
18990         * lib/cdefs.h (__inline, __restrict):
18991         Copy from current glibc.  This fixes glibc bug 17721,
18992         which Gnulib had already fixed in a different way.
18993         (__nonnull): Lessen the distance from glibc by using the
18994         glibc definition inside an ‘#ifndef __nonnull’.
18995         (__attribute_nonstring__): New macro, copied from
18996         current glibc.
18997         * lib/libc-config.h (__attribute_nonstring__): New undef.
18998         (__restrict): Remove; workaround no longer needed.
18999         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19000         support more compilers than the glibc __inline can.
19002 2018-06-24  Bruno Haible  <bruno@clisp.org>
19004         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19005         * lib/mbrtowc.c (enc_t): New enum type.
19006         (locale_enc, locale_enc_cached): New functions.
19007         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19008         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19009         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19010         instead.
19011         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19012         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19013         * modules/wcwidth (configure.ac): Invoke it.
19015 2018-06-24  Bruno Haible  <bruno@clisp.org>
19017         wchar-single: Fix test failure in wcwidth tests.
19018         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19019         skip the tests in the C locale.
19021 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19023         crypto: mention --without-linux-crypto in --with-openssl --help
19024         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19025         routines take precedence in --with-openssl help output.
19027 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19029         wchar-single: a new module to enable optimizations in wchar replacements
19030         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19031         GNULIB_WCHAR_SINGLE is enabled.
19032         * lib/wcwidth.c (wcwidth): Likewise.
19034 2018-06-23  Bruno Haible  <bruno@clisp.org>
19036         libc-config: Fix conflict with FreeBSD include files.
19037         * lib/cdefs.h (__nonnull): Remove definition.
19038         * lib/libc-config.h (__nonnull): Remove undefinition.
19040 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19042         random_r: do not crash if state is unaligned
19043         Problem reported by Bruce Korb in:
19044         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19045         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19046         with 'cc -O2 -xmemalign=8s'.
19047         * lib/random_r.c: Include string.h, for memcpy.
19048         (get_int32, set_int32): New functions.
19049         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19050         Use them to avoid assumption that state pointer is aligned.
19051         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19052         * tests/test-random_r.c (test_failed): New function.
19053         (main): Use it, to test for alignment bugs.
19055         random_r: omit unnecessary include
19056         * lib/random_r.c: Do not include limits.h.
19058         random, random_r: merge from glibc
19059         * lib/random.c, lib/random_r.c:
19060         Include libc-config.h if !_LIBC, not config.h unilaterally.
19061         * lib/random.c:
19062         Do not include stdint.h or time.h; not needed.
19063         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19064         (unsafe_state): Rename from generator.  All uses changed.
19065         Use C99-style initializers.
19066         (__random, __srandom, __initstate, __setstate): Rename from
19067         non-underscored version, but define it to non-underscored version
19068         on Gnulib.  Add a lock.
19069         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19070         Likewise.
19071         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19072         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19073         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19074         (__random_r): Use uint32 to fix glibc bug 17343.
19075         * modules/random, modules/random_r (Depends-on): Add libc-config.
19076         Depend on stdint only if $HAVE_RANDOM = 0.
19078 2018-06-19  Jim Meyering  <meyering@fb.com>
19080         README-release: also run any check-very-expensive tests
19081         * top/README-release: Adjust instructions so they run the
19082         check-very-expensive tests when there is such a target.
19084 2018-06-18  Bruno Haible  <bruno@clisp.org>
19086         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19087         * m4/pthread_rwlock_rdlock.m4: Add comment.
19088         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19089         are reader-preferring in glibc.
19090         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19091         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19093 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19095         crypto: use byteswap
19096         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19097         * lib/sm3.c: Include <byteswap.h>.
19098         (SWAP): Use its macros rather than reinventing the wheel.
19099         * modules/crypto/md4, modules/crypto/md5-buffer:
19100         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19101         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19102         (Depends-on): Add byteswap.
19104 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19106         gendocs.sh: fix support for legacy --texi2html
19107         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19108         to the default makeinfo invocation.
19109         Reported by Bruce Korb
19111 2018-06-17  Bruno Haible  <bruno@clisp.org>
19113         gettext po infrastructure: Update from current gettext git.
19114         Reported by Akim Demaille <akim@lrde.epita.fr>.
19115         * build-aux/po/Makefile.in.in: Update from current gettext git.
19116         * build-aux/po/remove-potcdate.sin: Likewise.
19117         * config/srclist.txt: Temporarily disable sync for these files.
19119 2018-06-17  Bruno Haible  <bruno@clisp.org>
19121         getloadavg: Return 0 on Windows without Cygwin.
19122         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19124 2018-06-17  Paul Smith  <psmith@gnu.org>
19126         getloadavg: Allow building on Windows without Cygwin
19127         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19128         * m4/getloadavg.m4: Check for unistd.h.
19130 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19132         Port crypto/af_alg to GCC 4.8.4
19133         Problem reported by Peter Simons in:
19134         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19135         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19137 2018-05-27  Colin Watson  <cjwatson@debian.org>
19139         bootstrap: document source fetching in --help
19140         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19142 2018-04-09  Colin Watson  <cjwatson@debian.org>
19144         bootstrap: allow non-submodule control of gnulib
19145         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19146         bootstrap.conf when fetching gnulib using "git clone" or via
19147         GNULIB_SRCDIR.
19149 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19151         crypto: omit stream ops Emacs doesn’t need
19152         * lib/md5.c (md5_stream):
19153         * lib/sha1.c (sha1_stream):
19154         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19155         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19156         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19157         defined.  Emacs needs this, as it does not use the stream
19158         operations and doesn’t need all the af_alg stuff we’ve recently
19159         added.  Perhaps a similar change is needed to the other crypto
19160         modules, but this patch changes only those needed for Emacs.
19161         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19162         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19163         New modules, used by Emacs.
19164         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19165         * modules/crypto/sha512: Rewrite to depend on the new modules.
19167 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19169         fts: avoid a memory leak edge case
19170         * lib/fts.c (fts_open): Set an appropriate fts_level
19171         so that an immediate fts_close() will free the allocation.
19172         * tests/test-fts.c (fts_dealloc): Add a test case which
19173         will trigger under valgrind or address sanitizer.
19174         Fixes https://bugs.gnu.org/31439
19176 2018-05-20  Bruno Haible  <bruno@clisp.org>
19178         wcwidth tests: Fix link error.
19179         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19180         $(LIBUNISTRING).
19182 2018-05-20  Bruno Haible  <bruno@clisp.org>
19184         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19185         * modules/regex (Files): Add m4/glibc21.m4.
19187 2018-05-20  Bruno Haible  <bruno@clisp.org>
19189         localcharset: Optimize.
19190         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19191         platforms where these don't matter. This reduces the table size,
19192         which in turn reduces the lookup time.
19194 2018-05-19  Bruno Haible  <bruno@clisp.org>
19196         localcharset: Map the locale encodings found in newer OSes.
19197         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19198         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19199         IRIX 6.5, Minix 3.3.
19200         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19202 2018-05-19  Bruno Haible  <bruno@clisp.org>
19204         localcharset: Move mapping tables into the code. Use a binary search.
19205         * lib/localcharset.h: Document the GNU canonical names for character
19206         encodings here.
19207         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19208         relocatable.h, configmake.h.
19209         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19210         macros.
19211         (charset_aliases): Remove variable.
19212         (get_charset_aliases): Remove function.
19213         (struct table_entry): New type.
19214         (alias_table, locale_table): New constants.
19215         (locale_charset): Use the alias_table or locale_table to get the
19216         canonicalized encoding name.
19217         * lib/config.charset: Remove file.
19218         * lib/ref-add.sin: Remove file.
19219         * lib/ref-del.sin: Remove file.
19220         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19221         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19222         * modules/localcharset (Notice): Remove.
19223         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19224         glibc21.m4.
19225         (Depends-on): Remove configmake.
19226         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19227         (Makefile.am): Simplify.
19228         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19230 2018-05-19  Bruno Haible  <bruno@clisp.org>
19232         localcharset: Add a manual test.
19233         * tests/test-localcharset.c: New file.
19234         * modules/localcharset-tests: New file.
19236 2018-05-19  Bruno Haible  <bruno@clisp.org>
19238         localcharset: Remove support for obsolete platforms.
19239         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19240         Mac OS X 10.2. Comment out dubious entry for Solaris.
19242 2018-05-19  Jim Meyering  <meyering@fb.com>
19244         gnupload: adjust comment
19245         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19246         more likely we'll remove the just-added code in a year or two.
19248 2018-05-19  Bruno Haible  <bruno@clisp.org>
19250         gnupload: Fix "gpg-agent is not available in this session" error.
19251         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19253 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19255         crypto/af_alg: fix --help
19256         * m4/af_alg.m4: Avoid spurious newline in --help output.
19258 2018-05-13  Bruno Haible  <bruno@clisp.org>
19260         nl_langinfo: Fix compilation error on Android.
19261         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19262         INT_CURR_SYMBOL, etc. only if these items are defined.
19264 2018-05-13  Bruno Haible  <bruno@clisp.org>
19266         truncate: Fix compilation error on Android.
19267         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19268         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19269         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19270         HAVE_TRUNCATE.
19271         * modules/truncate: Likewise.
19272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19273         not HAVE_TRUNCATE.
19274         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19275         HAVE_TRUNCATE.
19276         * doc/posix-functions/truncate.texi: Mention the issue.
19278 2018-05-13  Bruno Haible  <bruno@clisp.org>
19280         pthread: Fix compilation error on Android.
19281         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19282         recursive inclusion of this file.
19284 2018-05-13  Bruno Haible  <bruno@clisp.org>
19286         posix_spawn: Fix compilation error on Android.
19287         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19288         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19289         (posix_spawn_file_actions_t): Consider also the case
19290         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19292 2018-05-13  Bruno Haible  <bruno@clisp.org>
19294         tsearch: Move from K&R C to ANSI C.
19295         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19297 2018-05-13  Bruno Haible  <bruno@clisp.org>
19299         tsearch: Fix compilation error on Android.
19300         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19301         is 0.
19302         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19303         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19304         GNULIB_defined_tsearch is true.
19305         (twalk): Define only if GNULIB_defined_twalk is true.
19306         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19307         is 0.
19308         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19309         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19310         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19312 2018-05-13  Bruno Haible  <bruno@clisp.org>
19314         imaxdiv: Fix compilation error on Android.
19315         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19316         is not defined.
19317         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19318         HAVE_DECL_IMAXDIV, is 0.
19319         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19320         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19322 2018-05-13  Bruno Haible  <bruno@clisp.org>
19324         Support selective inclusion mechanism of recent mingw.org header files.
19325         Reported by Eli Zaretskii <eliz@gnu.org>.
19326         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19327         __need_ssize_t, or __need_time_t is defined, just include the system's
19328         <sys/types.h>.
19329         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19330         include the system's <locale.h>.
19332 2018-05-13  Bruno Haible  <bruno@clisp.org>
19334         Avoid compilation error due to 'mmap' on Android.
19335         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19336         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19337         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19338         Undefine on Android.
19340 2018-05-13  Bruno Haible  <bruno@clisp.org>
19342         Add cross-compilation guesses for Linux systems without glibc.
19343         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19345         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19346         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19347         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19348         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19349         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19350         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19351         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19352         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19353         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19354         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19355         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19356         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19357         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19358         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19359         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19360         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19362 2018-05-13  Bruno Haible  <bruno@clisp.org>
19364         getpagesize: Fix compilation error on Android.
19365         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19366         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19367         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19368         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19369         HAVE_GETPAGESIZE accordingly.
19370         * modules/getcwd (Files): Add m4/getpagesize.m4.
19372 2018-05-13  Bruno Haible  <bruno@clisp.org>
19374         tcgetsid: Fix compilation error on Android.
19375         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19376         AC_CHECK_FUNC.
19378 2018-05-13  Bruno Haible  <bruno@clisp.org>
19380         getpass: Fix configure test for Android.
19381         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19382         AC_CHECK_FUNC.
19384 2018-05-13  Bruno Haible  <bruno@clisp.org>
19386         ffs: Fix compilation error on Android.
19387         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19389 2018-05-13  Bruno Haible  <bruno@clisp.org>
19391         mkfifo: Fix compilation error on Android.
19392         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19393         AC_CHECK_FUNC.
19395 2018-05-13  Bruno Haible  <bruno@clisp.org>
19397         c-strtod: Fix configure test for Android.
19398         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19399         AC_CHECK_FUNC.
19401 2018-05-13  Bruno Haible  <bruno@clisp.org>
19403         random: Fix compilation error on Android.
19404         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19405         AC_CHECK_FUNC.
19407 2018-05-13  Bruno Haible  <bruno@clisp.org>
19409         grantpt: Fix compilation error on Android.
19410         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19411         AC_CHECK_FUNC.
19413 2018-05-13  Bruno Haible  <bruno@clisp.org>
19415         stdioext: Fix compilation errors with newer Android headers.
19416         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19417         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19418         fallbacks for Android.
19419         * lib/fpending.c: Update comments.
19420         * lib/fpurge.c: Likewise.
19421         * lib/freadable.h: Likewise.
19422         * lib/freadable.c: Likewise.
19423         * lib/freadahead.c: Likewise.
19424         * lib/freading.h: Likewise.
19425         * lib/freadptr.c: Likewise.
19426         * lib/fseterr.c: Likewise.
19427         * lib/fwritable.h: Likewise.
19428         * lib/fwritable.c: Likewise.
19429         * lib/fwriting.h: Likewise.
19430         * lib/fwriting.c: Likewise.
19432 2018-05-13  Bruno Haible  <bruno@clisp.org>
19434         doc: Add info about Android versions 2.0 to 8.1.
19435         * doc/**/*.texi: Add info about functions in all released versions of
19436         Bionic.
19438 2018-05-12  Bruno Haible  <bruno@clisp.org>
19440         fseeko: On mingw, don't use the hidden function _fseeki64.
19441         Reported by Eli Zaretskii <eliz@gnu.org>.
19442         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19443         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19445 2018-05-12  Bruno Haible  <bruno@clisp.org>
19447         glob: Choose 'dirent_type' in a way that works better on mingw.
19448         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19449         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19451 2018-05-12  Bruno Haible  <bruno@clisp.org>
19453         execute, spawn-pipe: Avoid warning about redefining 'close'.
19454         Reported by Eli Zaretskii <eliz@gnu.org>.
19455         * lib/execute.c: Undefine 'close' before redefining it.
19456         * lib/spawn-pipe.c: Likewise.
19458 2018-05-12  Bruno Haible  <bruno@clisp.org>
19460         nanosleep: Avoid test failure on mingw when it has nanosleep.
19461         Reported by Eli Zaretskii <eliz@gnu.org>.
19462         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19463         If it does not exist, use a simpler test program that does not call
19464         alarm().
19466 2018-05-10  Bruno Haible  <bruno@clisp.org>
19468         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19469         Reported by Devin Hussey <husseydevin@gmail.com>.
19470         Based on a patch by Paul Eggert.
19471         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19472         as witness of libpthread.
19473         * lib/glthread/cond.h (pthread_in_use): Likewise.
19474         * lib/glthread/thread.h (pthread_in_use): Likewise.
19475         * lib/glthread/tls.h (pthread_in_use): Likewise.
19477 2018-05-10  Bruno Haible  <bruno@clisp.org>
19479         cond tests: Fix compilation error on Solaris.
19480         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19481         macro.
19483 2018-05-10  Bruno Haible  <bruno@clisp.org>
19485         doc: Add partial info about Android 4.3.
19486         * doc/*-functions/*.texi: Add info about functions that were added
19487         to Bionic between Android 4.3 and Android 9.0.
19489 2018-05-10  Bruno Haible  <bruno@clisp.org>
19491         doc: Add info about Android 9.0.
19492         * doc/**/*.texi: Add info about functions and headers in Bionic from
19493         Android 9.0.
19495 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19497         af_alg: fix my typo in afalg_buffer
19498         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19499         (afalg_stream): Simplify and avoid the need for a runtime test
19500         at the end.
19502         af_alg: recover better from crypto failures
19503         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19504         input stream is seekable, by repositioning the stream back to
19505         where it was, possibly by just calling sendfile with an offset
19506         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19507         cases, which lets our callers try again with user-mode code.
19508         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19509         instead of on fflush and lseek.
19511         af_alg: distiguish I/O errors better
19512         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19513         not -EIO, if it’s OK for the caller to try again with user-mode code.
19514         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19515         some other error number) if fflush fails, as the caller should not
19516         try again that case.
19518         af_alg: avoid gotos
19519         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19520         gotos, as they were a source of unreliability and made the code a
19521         bit harder to follow.
19523         af_alg: don’t leak file descriptors into children
19524         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19525         This code should be compiled only on recent GNU/Linux platforms
19526         so we shouldn’t have to also depend on the accept4 module.
19528         af_alg: coalesce socket creation
19529         * lib/af_alg.c (alg_socket): New function.
19530         (afalg_buffer, afalg_stream): Use it.  This avoids some
19531         code duplication and gotos.
19533         af_alg: fix file descriptor leak
19534         * lib/af_alg.c (afalg_stream): Close leak.
19536         af_alg: Pacify --enable-gcc-warnings on GCC 8
19537         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19538         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19540 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19542         af_alg: Pacify --enable-gcc-warnings
19543         Problem reported by Assaf Gordon in:
19544         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19545         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19546         gcc -Wjump-misses-init.
19547         * lib/sha512.c (shaxxx_stream): Now static.
19549 2018-05-06  Bruno Haible  <bruno@clisp.org>
19551         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19552         * lib/af_alg.h (afalg_buffer): New declaration.
19553         * lib/af_alg.c (afalg_buffer): New function.
19555 2018-05-06  Bruno Haible  <bruno@clisp.org>
19557         af_alg: Avoid warnings.
19558         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19559         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19561 2018-05-06  Bruno Haible  <bruno@clisp.org>
19563         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19564         * tests/bench-digest.h: New file.
19565         * tests/bench-md5.c: New file.
19566         * tests/bench-sha1.c: New file.
19567         * tests/bench-sha224.c: New file.
19568         * tests/bench-sha256.c: New file.
19569         * tests/bench-sha384.c: New file.
19570         * tests/bench-sha512.c: New file.
19571         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19572         tests/bench-digest.h.
19573         (Depends-on): Add getrusage, gettimeofday.
19574         (Makefile.am): Add variables to build bench-md5.
19575         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19576         tests/bench-digest.h.
19577         (Depends-on): Add getrusage, gettimeofday.
19578         (Makefile.am): Add variables to build bench-sha1.
19579         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19580         tests/bench-sha256.c, tests/bench-digest.h.
19581         (Depends-on): Add getrusage, gettimeofday.
19582         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19583         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19584         tests/bench-sha512.c, tests/bench-digest.h.
19585         (Depends-on): Add getrusage, gettimeofday.
19586         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19588 2018-05-06  Bruno Haible  <bruno@clisp.org>
19590         af_alg: Fix a resource leak.
19591         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19592         New local variable 'result'.
19594 2018-05-06  Bruno Haible  <bruno@clisp.org>
19596         af_alg: Fix bug with streams that are not at position 0.
19597         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19598         assume that the stream is positioned at position 0.
19599         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19600         of the stream.
19601         * lib/md5.h (md5_stream): Likewise.
19602         * lib/sha1.h (sha1_stream): Likewise.
19603         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19604         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19605         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19607         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19608         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19609         stream that is not positioned at the beginning.
19611 2018-05-06  Bruno Haible  <bruno@clisp.org>
19613         af_alg: Add configure option to enable/disable use of Linux crypto API.
19614         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19615         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19616         USE_LINUX_CRYPTO_API.
19617         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19618         * lib/af_alg.c: Likewise.
19620 2018-05-06  Bruno Haible  <bruno@clisp.org>
19622         Followup to 'af_alg: New module.'.
19623         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19624         * modules/crypto/sha1 (Depends-on): Likewise.
19625         * modules/crypto/sha256 (Depends-on): Likewise.
19626         * modules/crypto/sha512 (Depends-on): Likewise.
19628 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19630         crypto/{md5,sha1,sha256,sha512}: simplify
19631         * lib/md5.c (md5_stream):
19632         * lib/sha1.c (sha1_stream):
19633         * lib/sha256.c (shaxxx_stream):
19634         Simplify, partly by assuming C99.
19635         * lib/sha256.c (shaxxx_stream):
19636         New function, which implements both sha256 and sha224.
19637         Simplify, partly by assuming C99.
19638         (sha256_stream, sha224_stream):
19639         Use it to avoid code duplication, removing a FIXME.
19640         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19641         Likewise.
19643         af_alg: Improve comments.
19644         * lib/af_alg.h: Use imperatives and tighten up wording.
19646 2018-05-05  Bruno Haible  <bruno@clisp.org>
19648         af_alg: Improve comments.
19649         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19651 2018-05-05  Bruno Haible  <bruno@clisp.org>
19653         af_alg: New module.
19654         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19655         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19656         * lib/md5.c: Include "af_alg.h" unconditionally.
19657         (md5_stream): Invoke afalg_stream unconditionally.
19658         * lib/sha1.c: Include "af_alg.h" unconditionally.
19659         (sha1_stream): Invoke afalg_stream unconditionally.
19660         * lib/sha256.c: Include "af_alg.h" unconditionally.
19661         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19662         * lib/sha512.c: Include "af_alg.h" unconditionally.
19663         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19664         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19665         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19666         * modules/crypto/af_alg: New file.
19667         * modules/crypto/md5 (Files): Remove files that are now in the
19668         'crypto/af_alg' module.
19669         (Depends-on): Add crypto/af_alg.
19670         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19671         (Makefile.am): Don't mention af_alg.c here.
19672         * modules/crypto/sha1 (Files): Remove files that are now in the
19673         'crypto/af_alg' module.
19674         (Depends-on): Add crypto/af_alg.
19675         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19676         (Makefile.am): Don't mention af_alg.c here.
19677         * modules/crypto/sha256 (Files): Remove files that are now in the
19678         'crypto/af_alg' module.
19679         (Depends-on): Add crypto/af_alg.
19680         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19681         (Makefile.am): Don't mention af_alg.c here.
19682         * modules/crypto/sha512 (Files): Remove files that are now in the
19683         'crypto/af_alg' module.
19684         (Depends-on): Add crypto/af_alg.
19685         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19686         (Makefile.am): Don't mention af_alg.c here.
19688 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19690         crypto tests: pacify GCC
19691         * tests/test-digest.h (test_digest_on_files):
19692         Don’t assume digest size fits in int (!).
19694         af_alg: minor style improvements
19695         * lib/af_alg.c (afalg_stream): Prefer C99 style
19696         decl-after-statement, since we’re already assuming C99.  Clarify
19697         by strengthening the bind test and omit unnecessary assignment.
19699 2018-05-05  Bruno Haible  <bruno@clisp.org>
19701         af_alg: Fix bug on empty files.
19702         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19703         stream is empty.
19705 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19707         sys-limits.h: new file for crypto and safe I/O
19708         * lib/af_alg.c: Include sys-limits.h.
19709         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19710         (afalg_stream): Also reject negative sizes for sendfile; they
19711         should not happen and the code is a bit cleaner and faster this way.
19712         * lib/safe-read.c: Include sys-limits.h.
19713         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19714         * lib/sys-limits.h: New file, with values and commentary derived
19715         from the old safe-read.c and from GNU Emacs sysdep.c.
19716         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19717         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19718         Add lib/sys-limits.h to Files section.
19720 2018-05-05  Bruno Haible  <bruno@clisp.org>
19722         af_alg: Improve function signature.
19723         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19724         * lib/af_alg.c (afalg_stream): Likewise.
19725         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19727 2018-05-05  Bruno Haible  <bruno@clisp.org>
19729         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19730         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19731         * modules/crypto/sha1 (Depends-on): Likewise.
19732         * modules/crypto/sha256 (Depends-on): Likewise.
19733         * modules/crypto/sha512 (Depends-on): Likewise.
19735 2018-05-05  Bruno Haible  <bruno@clisp.org>
19737         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19738         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19739         * modules/crypto/sha1 (Depends-on): Likewise.
19740         * modules/crypto/sha256 (Depends-on): Likewise.
19741         * modules/crypto/sha512 (Depends-on): Likewise.
19743 2018-05-05  Bruno Haible  <bruno@clisp.org>
19745         af_alg: Add documentation.
19746         * lib/af_alg.h: Add comments.
19748 2018-05-05  Bruno Haible  <bruno@clisp.org>
19750         sha512: Add tests.
19751         * tests/test-sha512.c: New file.
19752         * modules/crypto/sha512-tests: New file.
19754 2018-05-05  Bruno Haible  <bruno@clisp.org>
19756         sha256: Add tests.
19757         * tests/test-sha256.c: New file.
19758         * modules/crypto/sha256-tests: New file.
19760 2018-05-05  Bruno Haible  <bruno@clisp.org>
19762         sha1 tests: Add test for sha1_stream.
19763         * tests/test-sha1.c: Include test-digest.h.
19764         (main): Invoke test_digest_on_files on 'sha1_stream'.
19765         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19767 2018-05-05  Bruno Haible  <bruno@clisp.org>
19769         md5 tests: Add test for md5_stream.
19770         * tests/test-digest.h: New file.
19771         * tests/test-md5.c: Include test-digest.h.
19772         (main): Invoke test_digest_on_files on 'md5_stream'.
19773         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19775 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19777         md5sum: Use AF_ALG when available.
19778         * lib/md5.c: Include af_alg.h.
19779         (md5_stream): Use afalg_stream when available.
19780         * modules/crypto/md5 (Files): Add the af_alg files.
19781         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19782         (Makefile.am): Add af_alg.c.
19784 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19786         sha512sum: Use AF_ALG when available.
19787         * lib/sha512.c: Include af_alg.h.
19788         (sha512_stream, sha384_stream): Use afalg_stream when available.
19789         * modules/crypto/sha512 (Files): Add the af_alg files.
19790         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19791         (Makefile.am): Add af_alg.c.
19793 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19795         sha256sum: Use AF_ALG when available.
19796         * lib/sha256.c: Include af_alg.h.
19797         (sha256_stream, sha224_stream): Use afalg_stream when available.
19798         * modules/crypto/sha256 (Files): Add the af_alg files.
19799         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19800         (Makefile.am): Add af_alg.c.
19802 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19804         sha1sum: Use AF_ALG when available.
19805         * lib/af_alg.h: New file.
19806         * lib/af_alg.c: New file.
19807         * lib/sha1.c: Include af_alg.h.
19808         (sha1_stream): Use afalg_stream when available.
19809         * m4/linux-if-alg.m4: New file.
19810         * modules/crypto/sha1 (Files): Add the new files.
19811         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19812         (Makefile.am): Add af_alg.c.
19814 2018-05-05  Bruno Haible  <bruno@clisp.org>
19816         all: Replace more http URLs by https URLs.
19817         * lib/localename.c: Use https: URL.
19818         * lib/timespec.h: Likewise.
19820 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19822         maint: port more modules to GCC 8
19823         * lib/dirname.h (base_name):
19824         * lib/exclude.h (new_exclude):
19825         * lib/xstrndup.h (xstrndup):
19826         Add malloc attribute.
19827         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19828         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19829         This pacifies GCC 8.
19830         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19831         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19833 2018-05-03  Bruno Haible  <bruno@clisp.org>
19835         Simplify code. Drop support for Borland C++ on Windows.
19836         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19837         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19838         'defined _WIN32'.
19839         * lib/canonicalize-lgpl.c: Likewise.
19840         * lib/classpath.c: Likewise.
19841         * lib/clean-temp.c: Likewise.
19842         * lib/csharpexec.c: Likewise.
19843         * lib/ctime.c: Likewise.
19844         * lib/dosname.h: Likewise.
19845         * lib/dup2.c: Likewise.
19846         * lib/errno.in.h: Likewise.
19847         * lib/error.c: Likewise.
19848         * lib/euidaccess.c: Likewise.
19849         * lib/execute.c: Likewise.
19850         * lib/fcntl.in.h: Likewise.
19851         * lib/fcntl.c: Likewise.
19852         * lib/filename.h: Likewise.
19853         * lib/findprog.c: Likewise.
19854         * lib/flock.c: Likewise.
19855         * lib/fopen.c: Likewise.
19856         * lib/freopen.c: Likewise.
19857         * lib/fstat.c: Likewise.
19858         * lib/fsync.c: Likewise.
19859         * lib/gc-gnulib.c: Likewise.
19860         * lib/get-rusage-data.c: Likewise.
19861         * lib/getaddrinfo.c: Likewise.
19862         * lib/getdelim.c: Likewise.
19863         * lib/getdtablesize.c: Likewise.
19864         * lib/gethostname.c: Likewise.
19865         * lib/getlogin.c: Likewise.
19866         * lib/getlogin_r.c: Likewise.
19867         * lib/getopt.c: Likewise.
19868         * lib/getpagesize.c: Likewise.
19869         * lib/getpass.c: Likewise.
19870         * lib/getrusage.c: Likewise.
19871         * lib/gettimeofday.c: Likewise.
19872         * lib/glob.c: Likewise.
19873         * lib/inttypes.in.h: Likewise.
19874         * lib/isapipe.c: Likewise.
19875         * lib/javaexec.c: Likewise.
19876         * lib/link.c: Likewise.
19877         * lib/localcharset.c: Likewise.
19878         * lib/localename.h: Likewise.
19879         * lib/localename.c: Likewise.
19880         * lib/localtime.c: Likewise.
19881         * lib/lseek.c: Likewise.
19882         * lib/mbsinit.c: Likewise.
19883         * lib/mkdir.c: Likewise.
19884         * lib/msvc-nothrow.h: Likewise.
19885         * lib/nanosleep.c: Likewise.
19886         * lib/nl_langinfo.c: Likewise.
19887         * lib/nonblocking.c: Likewise.
19888         * lib/nproc.c: Likewise.
19889         * lib/open.c: Likewise.
19890         * lib/openpty.c: Likewise.
19891         * lib/pathmax.h: Likewise.
19892         * lib/pipe-filter-aux.c: Likewise.
19893         * lib/pipe-filter-gi.c: Likewise.
19894         * lib/pipe-filter-ii.c: Likewise.
19895         * lib/pipe.c: Likewise.
19896         * lib/pipe2.c: Likewise.
19897         * lib/poll.c: Likewise.
19898         * lib/popen.c: Likewise.
19899         * lib/posix_openpt.c: Likewise.
19900         * lib/printf-parse.c: Likewise.
19901         * lib/progreloc.c: Likewise.
19902         * lib/putenv.c: Likewise.
19903         * lib/read.c: Likewise.
19904         * lib/relocatable.c: Likewise.
19905         * lib/rename.c: Likewise.
19906         * lib/same-inode.h: Likewise.
19907         * lib/secure_getenv.c: Likewise.
19908         * lib/select.c: Likewise.
19909         * lib/sethostname.c: Likewise.
19910         * lib/setlocale.c: Likewise.
19911         * lib/sigaction.c: Likewise.
19912         * lib/sigprocmask.c: Likewise.
19913         * lib/sleep.c: Likewise.
19914         * lib/spawn-pipe.h: Likewise.
19915         * lib/spawn-pipe.c: Likewise.
19916         * lib/spawni.c: Likewise.
19917         * lib/stat-time.h: Likewise.
19918         * lib/stat-w32.c: Likewise.
19919         * lib/stat.c: Likewise.
19920         * lib/stdio.in.h: Likewise.
19921         * lib/stdio-impl.h: Likewise.
19922         * lib/stdio-read.c: Likewise.
19923         * lib/stdio-write.c: Likewise.
19924         * lib/stdlib.in.h: Likewise.
19925         * lib/strerror_r.c: Likewise.
19926         * lib/strftime-fixes.c: Likewise.
19927         * lib/sys_stat.in.h: Likewise.
19928         * lib/sys_types.in.h: Likewise.
19929         * lib/sys_wait.in.h : Likewise.
19930         * lib/system-quote.h: Likewise.
19931         * lib/system-quote.c: Likewise.
19932         * lib/tmpdir.c: Likewise.
19933         * lib/tzset.c: Likewise.
19934         * lib/uname.c: Likewise.
19935         * lib/unistd.in.h: Likewise.
19936         * lib/utime.in.h: Likewise.
19937         * lib/utime.c: Likewise.
19938         * lib/utimecmp.c: Likewise.
19939         * lib/utimens.c: Likewise.
19940         * lib/vasnprintf.c: Likewise.
19941         * lib/vma-iter.h: Likewise.
19942         * lib/vma-iter.c: Likewise.
19943         * lib/wait-process.c: Likewise.
19944         * lib/wcsftime.c: Likewise.
19945         * lib/wctype.in.h: Likewise.
19946         * lib/write.c: Likewise.
19947         * tests/nap.h: Likewise.
19948         * tests/test-cloexec.c: Likewise.
19949         * tests/test-dup-safer.c: Likewise.
19950         * tests/test-dup2.c: Likewise.
19951         * tests/test-dup3.c: Likewise.
19952         * tests/test-fcntl.c: Likewise.
19953         * tests/test-get-rusage-data.c: Likewise.
19954         * tests/test-getaddrinfo.c: Likewise.
19955         * tests/test-getlogin.h: Likewise.
19956         * tests/test-isatty.c: Likewise.
19957         * tests/test-localename.c: Likewise.
19958         * tests/test-mbrtowc-w32.c: Likewise.
19959         * tests/test-nonblocking.c: Likewise.
19960         * tests/test-nonblocking-pipe-main.c: Likewise.
19961         * tests/test-nonblocking-socket-main.c: Likewise.
19962         * tests/test-nonblocking-socket.h: Likewise.
19963         * tests/test-pipe.c: Likewise.
19964         * tests/test-pipe2.c: Likewise.
19965         * tests/test-poll.c: Likewise.
19966         * tests/test-pthread_sigmask1.c: Likewise.
19967         * tests/test-select.h: Likewise.
19968         * tests/test-sethostname2.c: Likewise.
19969         * tests/test-sigprocmask.c: Likewise.
19970         * tests/test-spawn-pipe-child.c: Likewise.
19971         * tests/test-stat-time.c: Likewise.
19972         * tests/test-system-quote-main.c: Likewise.
19973         * tests/test-utimens-common.h: Likewise.
19974         * tests/test-wcrtomb-w32.c: Likewise.
19975         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19976         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19977         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19978         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19979         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19981         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19982         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19984         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19985         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19986         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19987         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19988         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19989         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19990         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19992 2018-05-02  Bruno Haible  <bruno@clisp.org>
19994         localename: Fix test failures on mingw.
19995         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19996         native Windows.
19997         (gl_locale_name_posix): Move code specific to native Windows here.
19998         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19999         Accept result without charset suffix, as it appears on mingw.
20001 2018-04-28  Paul Smith  <psmith@gnu.org>
20003         bootstrap: Avoid gnulib operations if not needed
20004         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20005         Set $gnulib_extra_files early so it can be overridden in .conf.
20006         Remove redundant --import flag from $gnulib_tool_options.
20007         Set $use_gnulib to false if no gnulib modules or files are needed.
20008         If $use_gnulib is false, don't do anything related to gnulib.
20009         A lot of this is just whitespace (indentation) changes.
20011 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20013         manywarnings: port to GCC 8.0
20014         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20015         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20016         fact that the GCC help message now mentions operands for
20017         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20018         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20019         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20020         and -Wunused-const-variable.
20021         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20022         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20023         -Wmissing-attributes, -Wmultistatement-macros,
20024         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20025         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20027 2018-04-24  Bruno Haible  <bruno@clisp.org>
20029         sys_socket: Make SO_REUSEPORT available across platforms.
20030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20031         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20032         * doc/posix-headers/sys_socket.texi: Mention the issue.
20033         * tests/test-poll.c (SO_REUSEPORT): Remove.
20034         * tests/test-select.h: Include <sys/socket.h>.
20035         (SO_REUSEPORT): Remove.
20036         * modules/select-tests (Depends-on): Add 'sys_socket'.
20038 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20040         localcharset: short-circuit the search for an alias on a Mac
20041         * lib/localcharset.c (get_charset_aliases): Add a tautological
20042         UTF-8 entry to speed up the search for this case.
20043         Most machines default to a UTF-8 locale nowadays, so begin the
20044         list of aliases with a dummy UTF-8 entry so it will be found
20045         immediately and a time-consuming search through the rest of
20046         the list is avoided.
20048 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20050         fts: add comment
20051         * lib/fts.c (fts_build): Explain why ==, not >.
20052         See remark by Bernhard Voelker in:
20053         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20055         fts: fix bug in find across filesystems
20056         This fixes a bug I introduced last summer.
20057         Problem reported by Kamil Dudka in:
20058         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20059         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20060         (leaf_optimization):
20061         New arg for file descriptor.  All callers changed.
20062         (fts_build): Check for whether inodes should be sorted
20063         before closing the directory.
20065 2018-04-07  Bruno Haible  <bruno@clisp.org>
20067         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20068         Reported by Genki Sky <sky@genki.is>.
20069         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20070         version 0.9.10 or newer.
20071         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20072         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20073         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20074         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20075         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20077 2018-04-07  Bruno Haible  <bruno@clisp.org>
20079         execute: Update comment.
20080         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20082 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20084         fts: treat CIFS like NFS
20085         Problem reported by Kamil Dudka in:
20086         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20087         * lib/fts.c (S_MAGIC_CIFS): New macro.
20088         (dirent_inode_sort_may_be_useful, leaf_optimization):
20089         Treat CIFS like NFS.
20091 2018-03-28  Bruno Haible  <bruno@clisp.org>
20093         c-stack: Fix possible build failure on some platforms.
20094         * lib/c-stack.c (die): Define whenever this function is referenced.
20096 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20098         time_rz: fix workaround for Mac OS X 10.6 infloop
20099         Problems reported by Charles A. Roelli (Bug#27736#117).
20100         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20101         Also, discard output, which clutters the 'configure' log.
20103 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20105         havelib: port to Solaris 10 /bin/sh
20106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20107         instead of '! test EXPR'.
20109 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20111         time_rz: work around Mac OS X 10.6 infloop
20112         * doc/posix-functions/localtime.texi:
20113         * doc/posix-functions/localtime_r.texi: Mention the bug.
20114         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20115         better to fix localtime and localtime_r instead, but that would be
20116         more work and is not needed to fix the Emacs problem.
20117         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20119 2018-03-24  Jim Meyering  <meyering@fb.com>
20121         test-version-etc.sh: don't use diff directly: use init.sh's compare
20122         We'd rather not sacrifice readable "diff -u" output even for
20123         "diff -c" output (not supported by busybox) or for even less
20124         readable ed-style "diff" output.  So use init.sh's compare function
20125         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20126         Remove "./" from invocation of test-version-etc, so we use path.
20127         And s/diff/compare/.
20128         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20129         to get init.sh.
20130         Prompted by Eric Blake's comments in
20131         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20133 2018-03-24  Bruno Haible  <bruno@clisp.org>
20135         javacomp-script, javacomp: Add support for Java 10.
20136         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20137         target-version 10.
20138         * lib/javaversion.h: Update comments.
20139         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20140         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20141         TARGET_VERSION_BOUND, target_version_index,
20142         corresponding_classfile_version): Accept source_version 10 and
20143         target_version 10.
20144         * lib/javacomp.h: Update comments accordingly.
20146 2018-03-24  Bruno Haible  <bruno@clisp.org>
20148         javacomp-script, javacomp: Update comments.
20149         * m4/javacomp.m4: Update comments regarding gcj.
20150         * lib/javacomp.h: Likewise.
20152 2018-03-24  Bruno Haible  <bruno@clisp.org>
20154         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20155         * lib/javaversion.h: Update comments.
20156         * lib/javacomp.h: Likewise.
20157         * lib/javacomp.c (default_target_version, source_version_index,
20158         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20159         "1.9".
20160         (TARGET_VERSION_BOUND): Bump to 9.
20161         (target_version_index, corresponding_classfile_version): Recognize "9"
20162         instead of "1.9".
20163         (get_source_version_for_javac): New function.
20164         (is_envjavac_nongcj_usable, is_javac_usable): Add
20165         source_version_for_javac argument.
20166         (compile_java_class): Determine and pass source_version_for_javac.
20167         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20168         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20169         appropriate.
20171 2018-03-23  Jim Meyering  <meyering@fb.com>
20173         test-version-etc.sh: port to diff without -c
20174         * tests/test-version-etc.sh: Don't use diff's -c option.
20175         This caused spurious test failure on Alpine Linux, which
20176         uses busybox's diff. Reported by Assaf Gordon in
20177         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20179 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20181         c-stack: port to recent GCC build
20182         Problem reported by The Fireplace (Bug#30913).
20183         * lib/c-stack.c (die): Define only if used.
20185 2018-03-20  Bruno Haible  <bruno@clisp.org>
20187         euidaccess: Port to native Windows.
20188         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20189         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20191 2018-03-19  Bruno Haible  <bruno@clisp.org>
20193         javacomp: Add support for Java 7, 8, 9.
20194         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20195         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20196         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20197         and target_version 1,7, 1.8, 1.9.
20198         * lib/javacomp.h: Update comments accordingly.
20200 2018-03-19  Bruno Haible  <bruno@clisp.org>
20202         javacomp-script: Add support for Java 9.
20203         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20204         target-version 1.9.
20206 2018-03-16  Bruno Haible  <bruno@clisp.org>
20208         glob: Don't compile replacements on recent glibc systems.
20209         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20210         REPLACE_GLOB is 0, include the system's <glob.h> and use
20211         _GL_CXXALIAS_SYS.
20212         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20213         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20214         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20215         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20216         Remove snippet/warn-on-use.
20217         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20218         (Makefile.am): Create glob.h always. Update list of substitutions in
20219         glob.h. Don't depend on $(WARN_ON_USE_H).
20221 2018-03-16  Bruno Haible  <bruno@clisp.org>
20223         glob: Fix link error on native Windows.
20224         * modules/glob (Depends-on): Add 'lstat'.
20226 2018-03-15  Bruno Haible  <bruno@clisp.org>
20228         glob: Fix compilation error in C++ mode.
20229         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20231 2018-03-15  Bruno Haible  <bruno@clisp.org>
20233         host-cpu-c-abi: Support for RISC-V CPU.
20234         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20235         riscv32 and riscv64 ABIs.
20236         References:
20237         https://github.com/riscv/riscv-toolchain-conventions
20238         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20239         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20241 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20243         fflush: be more paranoid about libio.h change
20244         Suggested by Eli Zaretskii in:
20245         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20246         * lib/fbufmode.c (fbufmode):
20247         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20248         (disable_seek_optimization, rpl_fflush):
20249         * lib/fpending.c (__fpending):
20250         * lib/fpurge.c (fpurge):
20251         * lib/freadable.c (freadable):
20252         * lib/freadahead.c (freadahead):
20253         * lib/freading.c (freading):
20254         * lib/freadptr.c (freadptr):
20255         * lib/freadseek.c (freadptrinc):
20256         * lib/fseeko.c (fseeko):
20257         * lib/fseterr.c (fseterr):
20258         * lib/fwritable.c (fwritable):
20259         * lib/fwriting.c (fwriting):
20260         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20262 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20264         maint: write-file-hooks -> before-save-hook
20265         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20266         it's time to use the recommended replacement.
20267         Problem reported by Glenn Morris in:
20268         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20269         * build-aux/announce-gen, build-aux/bootstrap:
20270         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20271         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20272         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20273         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20274         * build-aux/update-copyright, build-aux/useless-if-before-free:
20275         * build-aux/vc-list-files:
20276         Update hook usage for files where Gnulib is the canonical source.
20278 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20280         binary-io: pacify gcc -Wunused-parameter
20281         Problem reported by Reuben Thomas in:
20282         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20283         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20284         Use _GL_UNUSED where appropriate.
20286         fflush: adjust to glibc 2.28 libio.h removal
20287         Problem reported by Daniel P. Berrangé in:
20288         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20289         * lib/fbufmode.c (fbufmode):
20290         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20291         (disable_seek_optimization, rpl_fflush):
20292         * lib/fpending.c (__fpending):
20293         * lib/fpurge.c (fpurge):
20294         * lib/freadable.c (freadable):
20295         * lib/freadahead.c (freadahead):
20296         * lib/freading.c (freading):
20297         * lib/freadptr.c (freadptr):
20298         * lib/freadseek.c (freadptrinc):
20299         * lib/fseeko.c (fseeko):
20300         * lib/fseterr.c (fseterr):
20301         * lib/fwritable.c (fwritable):
20302         * lib/fwriting.c (fwriting):
20303         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20304         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20305         Define if not already defined.
20307 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20309         environ: fix link error on 32-bit Cygwin
20310         Problem reported for GNU Emacs by Ken Brown in:
20311         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20312         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20314 2018-02-24  Bruno Haible  <bruno@clisp.org>
20316         mbrtowc tests: Fix regression on glibc.
20317         Reported by Bernhard Voelker.
20318         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20320 2018-02-24  Bruno Haible  <bruno@clisp.org>
20322         striconveha, uniconv/*: Avoid test failures on musl libc.
20323         * tests/iconvsupport.c: New file.
20324         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20325         does not support the ISO-2022-JP-2 encoding.
20326         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20327         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20328         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20329         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20330         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20331         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20332         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20333         (Makefile.am): Link test-striconveha with iconvsupport.o.
20334         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20335         tests/iconvsupport.c.
20336         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20337         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20338         tests/iconvsupport.c.
20339         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20340         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20341         tests/iconvsupport.c.
20342         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20343         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20344         tests/iconvsupport.c.
20345         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20346         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20347         tests/iconvsupport.c.
20348         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20349         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20350         tests/iconvsupport.c.
20351         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20353 2018-02-24  Bruno Haible  <bruno@clisp.org>
20355         localename: Add support for musl libc.
20356         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20357         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20358         on Linux platforms which define NL_LOCALE_NAME.
20360 2018-02-24  Bruno Haible  <bruno@clisp.org>
20362         mbrtowc tests: Don't make assumptions about the charset the C locale.
20363         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20364         particular mapping in the C locale.
20366 2018-02-24  Bruno Haible  <bruno@clisp.org>
20368         ptsname_r: Don't expect that this function sets errno.
20369         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20370         from ptsname_r().
20371         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20373 2018-02-23  Bruno Haible  <bruno@clisp.org>
20375         xmalloca: pacify gcc -Wbad-function-cast
20376         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20378 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20380         nl_langinfo: pacify gcc -Wunused-function
20381         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20382         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20383         this case.  Without this change, I got a diagnostic when building
20384         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20386         same: pacify gcc -Wunused-variable
20387         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20388         Omit unused variable.
20390         malloca: pacify gcc -Wbad-function-cast
20391         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20392         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20393         To pacify GCC, I had to cast alloca’s result to some type other
20394         than void * before casting that to uintptr_t.
20396 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20398         utimecmp: new function utimecmpat
20399         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20400         Do not include utimens.h.
20401         (utimecmpat): New function, generalizing utimecmp.
20402         (utimecmp): Now a thin layer around utimecmpat.
20403         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20404         utimensat instead of on lstat and utimens.
20406         same: new function same_nameat
20407         * lib/same.c: Include fcntl.h.
20408         * lib/same.c (same_nameat): New function, generalizing same_name.
20409         (same_name): Now a thin layer around same_nameat.
20410         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20411         * modules/same (Depends-on): Depend on fstatat, openat.
20413 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20415         warnings: Add support for Objective C.
20416         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20417         macro.
20419 2018-02-17  Bruno Haible  <bruno@clisp.org>
20421         lock: Fix test-once1 crash on FreeBSD11.
20422         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20423         'pthread_create', not 'pthread_cancel'.
20425 2018-02-17  Bruno Haible  <bruno@clisp.org>
20427         lock: Add test of gl_once.
20428         * tests/test-once.c: New file.
20429         * modules/lock-tests (Files): Add it.
20430         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20432 2018-02-17  Bruno Haible  <bruno@clisp.org>
20434         thread: Fix compilation error on IRIX.
20435         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20436         needed; include it outside the C++ extern "C" {} block.
20437         * doc/posix-headers/pthread.texi: Mention the problem with
20438         pthread_atfork on IRIX.
20440 2018-02-04  Bruno Haible  <bruno@clisp.org>
20442         nl_langinfo: Override the system's nl_langinfo() when needed.
20443         Reported by Jim Meyering.
20444         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20445         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20447 2018-02-04  Bruno Haible  <bruno@clisp.org>
20449         signal-h, monetary, strings: Fix build failure in some cases.
20450         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20451         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20452         as delimiter in sed command, not '|'.
20453         * modules/monetary (Makefile.am): Likewise.
20454         * modules/strings (Makefile.am): Likewise.
20456 2018-02-03  Jim Meyering  <meyering@fb.com>
20458         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20459         * top/maint.mk (sc_file_system): Don't complain about
20460         "/proc/filesystems".
20462 2018-02-03  Bruno Haible  <bruno@clisp.org>
20464         stdlib: Fix compilation error on OpenIndiana.
20465         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20466         <sys/time.h>.
20467         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20468         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20470 2018-02-03  Bruno Haible  <bruno@clisp.org>
20472         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20473         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20474         and use $EGREP instead of 'grep -E'.
20475         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20476         'grep -E'.
20478 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20480         malloca: Add a compile-time verification.
20481         * lib/malloca.c (small_t): Verify that it is wide enough.
20482         * modules/malloca (Depends-on): Add verify.
20484 2018-02-02  Bruno Haible  <bruno@clisp.org>
20486         malloca: Add an argument check.
20487         Suggested by Paul Eggert.
20488         * lib/malloca.c (freea): Check against an invalid argument.
20490 2018-02-02  Bruno Haible  <bruno@clisp.org>
20492         localename: Add support for OpenIndiana.
20493         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20494         Solaris 11 variants with uselocale() but without getlocalename_l().
20496 2018-02-02  Bruno Haible  <bruno@clisp.org>
20498         malloca, xmalloca: Make multithread-safe.
20499         Reported by Florian Weimer <fweimer@redhat.com>.
20500         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20501         * lib/malloca.h (malloca): In the stack allocation case, return a
20502         pointer that is a multiple of 2 * sa_alignment_max.
20503         (sa_increment): Remove enum item.
20504         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20505         a pointer that is a multiple of 2 * sa_alignment_max.
20506         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20507         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20508         HASH_TABLE_SIZE, mmalloca_results): Remove.
20509         (small_t): New type.
20510         (mmalloca, free): Rewritten.
20511         * lib/malloca.valgrind: Remove file.
20512         * modules/malloca (Files): Remove it.
20513         (Depends-on): Remove verify.
20515 2018-01-31  Bruno Haible  <bruno@clisp.org>
20517         environ: Fix link error on 64-bit Cygwin.
20518         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20519         __declspec(dllimport) attribute.
20520         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20522 2018-01-30  Bruno Haible  <bruno@clisp.org>
20524         get-rusage-data: Add support for Minix 3.
20525         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20527 2018-01-30  Bruno Haible  <bruno@clisp.org>
20529         vma-iter: Add support for Minix 3.
20530         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20531         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20533 2018-01-27  Bruno Haible  <bruno@clisp.org>
20535         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20536         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20538         _HPUX_ALT_XOPEN_SOCKET_API.
20539         * modules/accept (Depends-on): Add 'extensions'.
20540         * modules/getpeername (Depends-on): Likewise.
20541         * modules/getsockname (Depends-on): Likewise.
20542         * modules/getsockopt (Depends-on): Likewise.
20543         * modules/recvfrom (Depends-on): Likewise.
20544         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20545         * doc/posix-functions/getpeername.texi: Likewise.
20546         * doc/posix-functions/getsockname.texi: Likewise.
20547         * doc/posix-functions/getsockopt.texi: Likewise.
20548         * doc/posix-functions/recvfrom.texi: Likewise.
20550 2018-01-27  Bruno Haible  <bruno@clisp.org>
20552         getsockname tests: More tests.
20553         * tests/test-getsockname.c (open_server_socket): New function, mostly
20554         copied from test-poll.c.
20555         (main): Check that getsockname fills in addr.
20556         * modules/getsockname-tests (Depends-on): Add the necessary
20557         dependencies.
20558         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20560 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20562         manywarnings: fix maintainer comment
20563         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20564         it does not mistakenly think that ‘-1)’ is an option.
20566 2018-01-26  Bruno Haible  <bruno@clisp.org>
20568         langinfo: Fix last commit.
20569         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20570         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20572 2018-01-24  Bruno Haible  <bruno@clisp.org>
20574         langinfo, nl_langinfo: Add support for alternative month names.
20575         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20576         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20577         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20578         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20579         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20580         * doc/posix-functions/nl_langinfo.texi: Likewise.
20582 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20584         Merge strftime.c changes from glibc
20585         This incorporates:
20586         2017-11-14 [BZ #10871] Implement alternative month names
20587         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20588         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20589         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20590         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20591         Use locale_t, not __locale_t.
20592         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20593         (__strftime_internal): Add support for alternate months.
20595 2018-01-23  Bruno Haible  <bruno@clisp.org>
20597         doc: Mention another prerequisite for using Gnulib.
20598         Reported at <https://stackoverflow.com/questions/48378214/>.
20599         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20600         AC_CONFIG_HEADERS.
20602 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20604         build: GuixSD doesn't have /bin/bash
20605         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20607 2018-01-21  Bruno Haible  <bruno@clisp.org>
20609         Avoid test failures on Microsoft Windows Subsystem for Linux.
20610         * tests/test-fcntl.c (main): Allow a different errno.
20611         * tests/test-rename.h (test_rename): Likewise.
20612         * tests/test-renameat.c (main): Likewise.
20613         * tests/test-renameat2.c (main): Likewise.
20615 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20617         filenamecat: make base a suffix of result
20618         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20619         (mfile_name_concat): Always make BASE a suffix of the result, as
20620         cp expects this.  To implement this, separate with '.' instead of
20621         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20622         * tests/test-filenamecat.c (main): Adjust tests to match
20623         current behavior.  Check that BASE_IN_RESULT points to
20624         a copy of BASE and is a suffix of the resultk, and that DIR
20625         is a prefix of the result that is no longer than the prefix
20626         indicated by BASE_IN_RESULT.
20628 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20630         update-copyright: Handle use of ©
20631         * build-aux/update-copyright ($circle_c_re): Update regex to
20632         handle use of © in headers.
20634 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20636         Fix -Wundef warning in user-included header lib/cdefs.h.
20637         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20639 2018-01-04  Bruno Haible  <bruno@clisp.org>
20641         pthread_sigmask: Avoid compilation error on mingw.
20642         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20643         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20644         macro.
20646 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20648         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20649         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20650         Suggested by Bob Proulx (Bug#29968).
20651         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20653 2018-01-02  Eric Blake  <eblake@redhat.com>
20655         stat-time: silence -Wunused-parameter regression
20656         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20657         Prefer attribute over cast-to-void.
20658         (stat_time_normalize): Mark st as potentially unused.
20660 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20662         test-framework-sh: avoid netstat
20663         Problem reported by Kristýna Streitová (Bug#29947).
20664         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20665         deprecated on SuSE and it's not that important anyway.
20667 2018-01-01  Jim Meyering  <meyering@fb.com>
20669         update-copyright: add code to handle more special cases
20670         After running "make update-copyright" this year, five files
20671         required additional manual changes.  Automate those adjustments
20672         for next year.
20673         * Makefile (_year_and_prev): Define.
20674         (update-copyright): Add perl commands to induce this year's post-
20675         update-copyright adjustments.
20677 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20679         version-etc: new year
20680         * build-aux/gendocs.sh (version):
20681         * doc/gendocs_template:
20682         * doc/gendocs_template_min:
20683         * doc/gnulib.texi:
20684         * lib/version-etc.c (COPYRIGHT_YEAR):
20685         Update copyright dates by hand in templates and the like.
20687         maint: fix 'make update-copyright'
20688         * Makefile (update-copyright): Adjust to 2016-11-23 change
20689         to config/srclist-update, which changed the format of srclist.txt.
20691 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20693         chdir-safer: remove this module
20694         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20695         * NEWS: Document removal.
20696         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20697         * modules/chdir-safer: Remove these files.
20699 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20701         Add cross-compilation results for GNU/Hurd.
20702         * m4/calloc.m4: Add GNU/Hurd guess.
20703         * m4/cbrtl.m4: Likewise.
20704         * m4/ceil.m4: Likewise.
20705         * m4/ceilf.m4: Likewise.
20706         * m4/ceill.m4: Likewise.
20707         * m4/chown.m4: Likewise.
20708         * m4/duplocale.m4: Likewise.
20709         * m4/exp2l.m4: Likewise.
20710         * m4/expm1.m4: Likewise.
20711         * m4/fchdir.m4: Likewise.
20712         * m4/floor.m4: Likewise.
20713         * m4/floorf.m4: Likewise.
20714         * m4/fmod.m4: Likewise.
20715         * m4/fmodf.m4: Likewise.
20716         * m4/fmodl.m4: Likewise.
20717         * m4/getcwd.m4: Likewise.
20718         * m4/getgroups.m4: Likewise.
20719         * m4/gettimeofday.m4: Likewise.
20720         * m4/hypot.m4: Likewise.
20721         * m4/hypotf.m4: Likewise.
20722         * m4/hypotl.m4: Likewise.
20723         * m4/link-follow.m4: Likewise.
20724         * m4/link.m4: Likewise.
20725         * m4/linkat.m4: Likewise.
20726         * m4/log.m4: Likewise.
20727         * m4/log10.m4: Likewise.
20728         * m4/log10f.m4: Likewise.
20729         * m4/log1p.m4: Likewise.
20730         * m4/log1pf.m4: Likewise.
20731         * m4/log1pl.m4: Likewise.
20732         * m4/log2.m4: Likewise.
20733         * m4/log2f.m4: Likewise.
20734         * m4/logf.m4: Likewise.
20735         * m4/lstat.m4: Likewise.
20736         * m4/malloc.m4: Likewise.
20737         * m4/mbrlen.m4: Likewise.
20738         * m4/mbrtowc.m4: Likewise.
20739         * m4/mkdir.m4: Likewise.
20740         * m4/mkfifo.m4: Likewise.
20741         * m4/mknod.m4: Likewise.
20742         * m4/mkstemp.m4: Likewise.
20743         * m4/modf.m4: Likewise.
20744         * m4/modff.m4: Likewise.
20745         * m4/modfl.m4: Likewise.
20746         * m4/printf.m4: Likewise.
20747         * m4/pselect.m4: Likewise.
20748         * m4/ptsname.m4: Likewise.
20749         * m4/putenv.m4: Likewise.
20750         * m4/readlink.m4: Likewise.
20751         * m4/realloc.m4: Likewise.
20752         * m4/remainder.m4: Likewise.
20753         * m4/remainderf.m4: Likewise.
20754         * m4/remainderl.m4: Likewise.
20755         * m4/rmdir.m4: Likewise.
20756         * m4/round.m4: Likewise.
20757         * m4/roundf.m4: Likewise.
20758         * m4/roundl.m4: Likewise.
20759         * m4/select.m4: Likewise.
20760         * m4/setenv.m4: Likewise.
20761         * m4/signbit.m4: Likewise.
20762         * m4/sleep.m4: Likewise.
20763         * m4/stat.m4: Likewise.
20764         * m4/strerror.m4: Likewise.
20765         * m4/strtok_r.m4: Likewise.
20766         * m4/symlink.m4: Likewise.
20767         * m4/symlinkat.m4: Likewise.
20768         * m4/trunc.m4: Likewise.
20769         * m4/truncf.m4: Likewise.
20770         * m4/truncl.m4: Likewise.
20771         * m4/tzset.m4: Likewise.
20772         * m4/ungetc.m4: Likewise.
20773         * m4/usleep.m4: Likewise.
20774         * m4/wcwidth.m4: Likewise.
20776 2017-12-28  Bruno Haible  <bruno@clisp.org>
20778         gnulib-tool: Make --conditional-dependencies work better.
20779         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20780         * gnulib-tool (Options): Don't reject the combination of
20781         --conditional-dependencies with --with-tests.
20782         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20783         Don't reference $modules.
20784         (func_import, func_create_testdir): Pass it.
20786 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20788         regex: use re_malloc etc. consistently
20789         Problem and original patch reported by Arnold Robbins in:
20790         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20791         * lib/regcomp.c (re_comp):
20792         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20793         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20795 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20796             Paul Eggert  <eggert@cs.ucla.edu>
20798         glob: Silence warning about void pointer arithmetic.
20799         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20800         arithmetic.
20802 2017-12-15  Bruno Haible  <bruno@clisp.org>
20804         spawn-pipe: Silence a clang warning.
20805         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20806         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20807         in this file.
20809 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20811         explicit_bzero: port to macOS + Clang 9.0.0
20812         Problem reported by Marcus Johnson (Bug#29658).
20813         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20814         Don’t use asm.
20816 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20818         doc: Improve explanation of supporting relocatable libraries.
20819         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20820         properly how to build the relocatable module for
20821         libraries. (Method and example code from Bruno Haible.)
20823 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20825         doc: Use better texinfo tags in a few cases.
20826         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20827         instead of @samp in a few places.
20829 2017-12-11  Bruno Haible  <bruno@clisp.org>
20831         unistr/base: Update comment.
20832         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20834 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20836         test-faccessat.c: unlink temp file to avoid subsequent test failure
20837         * tests/test-faccessat.c: Remove the file to avoid failure
20838         to open the file on subsequent runs due to being created
20839         with no permissions.
20841 2017-12-10  Bruno Haible  <bruno@clisp.org>
20843         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20844         * doc/gnulib-tool.texi (Modified build rules): New node.
20846 2017-12-10  Bruno Haible  <bruno@clisp.org>
20848         doc: Tweak wording.
20849         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20850         "binaries".
20852 2017-12-05  Sam Steingold  <sds@gnu.org>
20853             Bruno Haible  <bruno@clisp.org>
20855         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20856         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20857         AC_EGREP_CPP pattern.
20859 2017-12-03  Bruno Haible  <bruno@clisp.org>
20861         all: Replace more http URLs by https URLs.
20862         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20863         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20864         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20865         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20867 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20869         Port better to CentOS 5
20870         Problems reported by Tom G. Christensen in:
20871         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20872         * doc/glibc-functions/strverscmp.texi (strverscmp):
20873         Document strverscmp bug with glibc 2.9 and earlier.
20874         * doc/posix-functions/tzset.texi (tzset):
20875         Document that TZ with angle brackets is POSIX-2001 and later.
20876         * tests/test-nstrftime.c: Include unistd.h.
20877         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20878         (TZ): Use it to skip tests with angle brackets in TZ,
20879         for older systems.
20881         stat: add missing module dependencies
20882         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20883         Add stat-time.
20885 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20887         stat: fix compilation failure on macOS Sierra
20888         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20889         https://savannah.gnu.org/bugs/?52546
20890         * lib/stat.c: Add missing include of stat-time.h.
20892 2017-11-28  Jim Meyering  <meyering@fb.com>
20894         test-faccessat.c: correct BASE definition to avoid parallel test failure
20895         * tests/test-faccessat.c (BASE): Define using this file's name, not
20896         that of test-lstat.c.  Using the latter caused this test to fail
20897         sometimes when run concurrently with test-lstat.
20899 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20901         unicase: fix VPATH build
20902         * modules/unicase/special-casing (Makefile.am): Ensure that the
20903         base directory is created when generating
20904         unicase/special-casing.h.
20906 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20908         libunistring: update to Unicode 9.0.0
20909         * lib/gen-uni-tables.c (fill_properties): Recognize
20910         Sentence_Terminal and Prepended_Concatenation_Mark.
20911         (is_property_default_ignorable_code_point): Exclude U+08E2.
20912         (fill_arabicshaping): Allow missing whitespace when parsing;
20913         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20914         (output_blocks): Increase the element size of the level1 table to
20915         accommodate more blocks.
20916         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20917         Update each class according to the standard.
20918         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20919         E_Base_GAZ characters.
20920         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20921         Glue_After_Zwj, and E_Base_GAZ characters.
20922         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20923         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20924         enum value.
20925         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20926         value.
20927         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20928         LBP_ZWJ, LBP_EB, and LBP_EM.
20929         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20930         enum value.
20931         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20932         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20933         declaration.
20934         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20935         (uniwbrk_table): Implement WB14.
20936         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20937         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20938         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20939         uc-is-grapheme-break.
20940         * modules/unigbrk/uc-grapheme-breaks: New module.
20941         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20942         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20943         enum value.
20944         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20945         * lib/unigbrk/u-grapheme-breaks.h: New file.
20946         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20947         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20948         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20949         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20950         29.
20951         * tests/unigbrk/test-uc-gbrk-prop.c
20952         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20953         GBP_GAZ, and GBP_EBG.
20954         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20955         * tests/unigbrk/test-uc-is-grapheme-break.c
20956         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20957         GBP_GAZ, and GBP_EBG.
20958         (main): Skip unsupported rules involving 3 or more characters,
20959         namely GB10, GB12, and GB13.
20960         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20961         * all generated files under lib/uni* and tests/uni*: Regenerate.
20962         * all the affected modules: Bump version.
20964 2017-11-26  Bruno Haible  <bruno@clisp.org>
20966         strfmon_l: Fix compilation error with glibc 2.5.
20967         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20968         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20969         * lib/monetary.in.h: Include also <locale.h>.
20971 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20973         posixtm: remove PDS_LEADING_YEAR
20974         This changes the API slightly, in a hopefully-innocuous way.
20975         Without this change the code had undefined behavior when a
20976         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20977         Problem reported by Pádraig Brady in:
20978         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20979         * NEWS: Mention this.
20980         * lib/posixtm.c (posix_time_parse): Treat the absence of
20981         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20982         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20983         present, but define it as zero, for compatibility with existing
20984         source code).  All other PDS_* values moved up.
20985         * tests/test-posixtm.c (LY): New macro.
20986         (T): Use it.  Do not expect a particular numeric encoding
20987         for PDS_CENTURY etc.
20989 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20991         stat: work around Solaris bug with tv_nsec < 0
20992         * doc/posix-functions/fstat.texi (fstat):
20993         * doc/posix-functions/fstatat.texi (fstatat):
20994         * doc/posix-functions/lstat.texi (lstat):
20995         * doc/posix-functions/stat.texi (stat):
20996         Mention Solaris 11 bug.
20997         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20998         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20999         * lib/lstat.c (rpl_lstat):
21000         * lib/stat.c (rpl_stat):
21001         Normalize resulting timestamps.
21002         * lib/fstatat.c (normal_fstatat): New function.
21003         (rpl_fstatat): Use it.
21004         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21005         (stat_time_normalize): New function.
21006         * m4/fstat.m4 (gl_FUNC_FSTAT):
21007         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21008         * m4/lstat.m4 (gl_FUNC_LSTAT):
21009         * m4/stat.m4 (gl_FUNC_STAT):
21010         Replace on Solaris.
21011         * modules/fstat (Depends-on):
21012         * modules/fstatat (Depends-on):
21013         Add stat-time.
21014         * modules/stat-time (Depends-on): Add errno, intprops.
21016 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21018         regex: merge from glibc
21019         * lib/regcomp.c (init_word_char): Add comments.
21021 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21023         regex: merge from glibc
21024         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21025         * lib/regex_internal.h (internal_function): Remove.
21026         All uses removed.
21028 2017-11-20  Bruno Haible  <bruno@clisp.org>
21030         crypto/gc-sm3: Fix buffer overrun.
21031         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21032         Reported by Coverity.
21034 2017-11-12  Jim Meyering  <meyering@fb.com>
21036         maint: shorten https://lists.gnu.org/archive/html/... links
21037         Each /archive/html/ part can be replace with /r/.
21038         Run this to induce the change:
21039         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21040         * ChangeLog: Perform that substitution.
21041         * Makefile: Likewise.
21042         * STATUS-libposix: Likewise.
21043         * build-aux/bootstrap: Likewise.
21044         * doc/maintain.texi: Likewise.
21045         * gnulib-tool: Likewise.
21046         * lib/allocator.h: Likewise.
21047         * lib/argp-ba.c: Likewise.
21048         * lib/argp-pv.c: Likewise.
21049         * lib/canon-host.c: Likewise.
21050         * lib/canonicalize-lgpl.c: Likewise.
21051         * lib/float.in.h: Likewise.
21052         * lib/fstat.c: Likewise.
21053         * lib/getdelim.c: Likewise.
21054         * lib/getprogname.c: Likewise.
21055         * lib/glthread/thread.h: Likewise.
21056         * lib/intprops.h: Likewise.
21057         * lib/mbsrtowcs-state.c: Likewise.
21058         * lib/safe-read.c: Likewise.
21059         * lib/signal.in.h: Likewise.
21060         * lib/stat.c: Likewise.
21061         * lib/stdbool.in.h: Likewise.
21062         * lib/stdio-impl.h: Likewise.
21063         * lib/stdio.in.h: Likewise.
21064         * lib/sysexits.in.h: Likewise.
21065         * lib/timespec.h: Likewise.
21066         * lib/wcsrtombs-state.c: Likewise.
21067         * m4/alloca.m4: Likewise.
21068         * m4/extern-inline.m4: Likewise.
21069         * m4/fstatat.m4: Likewise.
21070         * m4/gnulib-common.m4: Likewise.
21071         * m4/lib-ignore.m4: Likewise.
21072         * m4/printf.m4: Likewise.
21073         * m4/regex.m4: Likewise.
21074         * m4/stat-size.m4: Likewise.
21075         * m4/std-gnu11.m4: Likewise.
21076         * m4/stdbool.m4: Likewise.
21077         * m4/sys_types_h.m4: Likewise.
21078         * m4/threadlib.m4: Likewise.
21079         * m4/vararrays.m4: Likewise.
21080         * pygnulib/GLImport.py: Likewise.
21081         * tests/test-exp.h: Likewise.
21082         * tests/test-exp2.h: Likewise.
21083         * tests/test-expm1.h: Likewise.
21084         * tests/test-fflush2.c: Likewise.
21085         * tests/test-getopt_long.h: Likewise.
21086         * tests/test-intprops.c: Likewise.
21087         * tests/test-log.h: Likewise.
21088         * tests/test-log10.h: Likewise.
21089         * tests/test-log1p.h: Likewise.
21090         * tests/test-log2.h: Likewise.
21091         * tests/test-printf-posix.h: Likewise.
21092         * tests/test-regex.c: Likewise.
21093         * tests/test-snprintf-posix.h: Likewise.
21094         * tests/test-sprintf-posix.h: Likewise.
21095         * tests/test-stdalign.c: Likewise.
21096         * tests/test-stdbool.c: Likewise.
21097         * tests/test-vasnprintf-posix.c: Likewise.
21098         * tests/test-vasprintf-posix.c: Likewise.
21099         * top/maint.mk: Likewise.
21101 2017-11-12  Bruno Haible  <bruno@clisp.org>
21103         faccessat: Make the last change more robust.
21104         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21105         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21107 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21109         faccessat: port to macOS (Bug#29231)
21110         macOS faccessat has the same bug that lstat does: if the file
21111         name ends in '/' it ignores the trailing slash.
21112         Problem reported for Emacs by Vincent Zhang.
21113         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21114         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21115         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21116         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21117         Include "unistd.h" after defining it.
21118         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21119         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21120         Handle in the usual way.
21121         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21122         lstat dereferences symlinks, since faccessat is likely to
21123         have the same problem.
21124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21125         * modules/faccessat (Depends-on): Add fstatat.
21126         Depend if REPLACE_FACCESSAT is 1, too.
21127         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21128         * modules/faccessat-tests (Depends-on): Add symlink.
21129         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21130         * tests/test-faccessat.c (main): Test for the bug.
21132 2017-11-11  Bruno Haible  <bruno@clisp.org>
21134         getprogname: Fix compilation error on IRIX.
21135         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21136         'namesize'.
21138 2017-11-11  Bruno Haible  <bruno@clisp.org>
21140         year2038: Tweak last patch.
21141         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21143 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21145         year2038: be more insistent about 64-bit time_t
21146         Applications requiring access to arbitrary files should not be
21147         built with 32-bit time_t on hosts that have 64-bit timestamps,
21148         as this can lead to real trouble at runtime.
21149         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21150         Check on all systems, not just MinGW.  Use a heuristic involving
21151         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21152         output a failure or just a warning, to make it more likely that
21153         builders will select 64-bit time_t.
21155 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21157         havelib: fix typo in previous change
21158         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21160         Don’t use AC_EGREP_CPP if affected by CFLAGS
21161         * m4/float_h.m4 (gl_FLOAT_H):
21162         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21163         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21164         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21165         * m4/year2038.m4 (gl_YEAR2038):
21166         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21167         likely to be affected by the choice of CFLAGS, since CFLAGS are
21168         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21169         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21171         fstatat: pacify GCC on unusual platform
21172         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21173         Omit, as it’s unused in this case.
21175 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21177         timespec: prefer ‘assume’ to ‘assure’
21178         This avoids some runtime tests.  The rest of the module makes
21179         similar assumptions and there is little point to testing here.
21180         * lib/timespec.h: Include verify.h instead of assure.h.
21181         (timespec_cmp): Use ‘assume’, not ‘assure’.
21182         Also, remove an unnecessary cast to ‘int’, as lots of other
21183         code in this module now causes -Wconversion to complain, and
21184         this is a problem with -Wconversion not with the code.
21186         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21188         Port recent gnulib-tool change to Dash
21189         * gnulib-tool (func_create_testdir): Don't assume that the shell
21190         retokenizes after expanding "$@" inside the call to
21191         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21193 2017-10-27  Jim Meyering  <meyering@fb.com>
21195         timespec.h: use "assure" to avoid a spurious warning
21196         * lib/timespec.h: Include "assure.h" and use it to help
21197         gcc7's -Wstrict-overflow avoid a false positive warning
21198         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21199         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21200         * modules/timespec (Depends-on): Add assure.
21202 2017-10-29  Bruno Haible  <bruno@clisp.org>
21204         Avoid several test failures with traditional locales on Haiku.
21205         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21206         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21207         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21208         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21209         LOCALE_ZH_CN=none.
21211 2017-10-29  Bruno Haible  <bruno@clisp.org>
21213         strerror_r-posix: Fix behaviour and test failure on Haiku.
21214         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21215         are positive. Work around return value 0 instead of ERANGE on Haiku.
21216         For unknown error numbers, use a format string consistent with perror().
21217         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21218         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21219         are positive.
21221 2017-10-29  Bruno Haible  <bruno@clisp.org>
21223         get-rusage-data: Avoid crash on Haiku.
21224         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21226 2017-10-29  Bruno Haible  <bruno@clisp.org>
21228         get-rusage-as: Avoid crash on Haiku.
21229         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21231 2017-10-29  Bruno Haible  <bruno@clisp.org>
21233         ilogbl: Ensure replacement on Haiku.
21234         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21235         REPLACE_ILOGBL if ilogbl does not work.
21236         (gl_FUNC_ILOGBL_WORKS): New macro.
21237         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21239         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21240         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21241         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21243 2017-10-29  Bruno Haible  <bruno@clisp.org>
21245         expl: Ensure replacement on Haiku.
21246         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21247         zero.
21248         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21250 2017-10-29  Bruno Haible  <bruno@clisp.org>
21252         math: Fix test failure on Haiku.
21253         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21254         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21255         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21256         * doc/posix-headers/math.texi: Mention the Haiku problem.
21258 2017-10-29  Bruno Haible  <bruno@clisp.org>
21260         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21261         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21262         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21264 2017-10-29  Bruno Haible  <bruno@clisp.org>
21266         crypto/*: Verify that the header file is self-contained.
21267         * tests/test-gc-*.c: Include the module's header file immediately after
21268         <config.h>.
21269         * tests/test-hmac-*.c: Likewise.
21270         * tests/test-arcfour.c: Likewise.
21271         * tests/test-arctwo.c: Likewise.
21272         * tests/test-des.c: Likewise.
21273         * tests/test-md2.c: Likewise.
21274         * tests/test-md4.c: Likewise.
21275         * tests/test-md5.c: Likewise.
21276         * tests/test-rijndael.c: Likewise.
21277         * tests/test-sha1.c: Likewise.
21278         * tests/test-sm3.c: Likewise.
21280 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21281             Bruno Haible  <bruno@clisp.org>
21283         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21284         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21286 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21288         New module: crypto/gc-sm3
21289         * lib/gc.h: Declare SM3-related stuffs.
21290         * lib/gc-gnulib.c: Support sm3 in internal functions.
21291         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21292         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21293         * modules/crypto/gc-sm3: Define gc-sm3 module.
21294         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21295         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21296         * MODULES.html.sh: List gc-sm3 module.
21298 2017-10-29  Bruno Haible  <bruno@clisp.org>
21300         random, random_r: Mention different prototypes on Haiku.
21301         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21302         * doc/glibc-functions/random_r.texi: Likewise.
21303         * doc/glibc-functions/initstate_r.texi: Likewise.
21304         * doc/glibc-functions/setstate_r.texi: Likewise.
21306 2017-10-28  Bruno Haible  <bruno@clisp.org>
21308         posix_spawn: Avoid spurious message in configure output.
21309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21310         'cmp' command.
21312 2017-10-28  Bruno Haible  <bruno@clisp.org>
21314         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21315         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21316         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21318 2017-10-28  Bruno Haible  <bruno@clisp.org>
21320         ioctl: Override non-POSIX declaration on Haiku.
21321         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21322         * lib/sys_ioctl.in.h: Add comment about Haiku.
21323         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21324         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21326 2017-10-28  Bruno Haible  <bruno@clisp.org>
21328         crypto/sm3: Add overview documentation to the .h file.
21329         * lib/sm3.h: Add comments.
21331 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21333         New module: crypto/sm3
21334         This new module can be used to compute SM3 message digest of files or
21335         memory blocks according to the specification GM/T 004-2012
21336         Cryptographic Hash Algorithm SM3, published by State Cryptography
21337         Administration, China.
21338         The official SM3 cryptographic hash algorithm specification is
21339         available at
21340         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21341         * lib/sm3.h: Declare the APIs of sm3 module.
21342         * lib/sm3.c: Implement SM3 hash algorithm.
21343         * m4/sm3.m4: m4 file for sm3 module.
21344         * modules/crypto/sm3: Define sm3 module.
21345         * tests/test-sm3.c: Implement SM3 test case.
21346         * modules/crypto/sm3-tests: Define sm3 test module.
21347         * MODULES.html.sh: List sm3 module.
21349 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21351         gc-libgcrypt: fix undefined enum type in switch statement
21352         Resolve the following build failure:
21353         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21354         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21355         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21356              case 0:
21357              ^~~~
21358         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21359         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21361 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21363         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21364         Resolve the following build failure:
21365         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21366         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21367         in signedness [-Werror=pointer-sign]
21368             digest = gcry_md_read (ctx->gch, 0);
21369                    ^
21370         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21372 2017-10-26  Bruno Haible  <bruno@clisp.org>
21374         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21375         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21376         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21378 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21380         glob: fix another heap buffer overflow
21381         Problem reported by Tim Rühsen in:
21382         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21383         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21385 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21387         quotearg: pacify compiler re unsigned
21388         * lib/quotearg.c (quotearg_n_options):
21389         Rewrite to avoid diagnostic from overly-picky compiler.
21390         Problem reported by Sami Kerola in:
21391         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21393         glob: fix heap buffer overflow
21394         * lib/glob.c (glob): Fix off-by-one error introduced into
21395         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21396         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21397         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21398         Fix suggested by Bruno Haible.
21400 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21402         glob: pacify fuzzer for mempcpy
21403         Problem reported by Tim Rühsen in:
21404         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21405         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21407 2017-10-12  Bruno Haible  <bruno@clisp.org>
21409         doc: Fix syntax error (regression from 2017-10-03).
21410         * doc/posix-functions/strncpy.texi: Fix syntax error.
21412 2017-10-12  Bruno Haible  <bruno@clisp.org>
21414         doc: Update for Solaris 11.3.
21415         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21416         mention Solaris 11.3.
21417         * m4/log2.m4: Fix comments.
21418         * m4/log2f.m4: Likewise.
21419         * m4/printf.m4: Update comments.
21420         * m4/rename.m4: Likewise.
21421         * m4/strncat.m4: Likewise.
21423         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21425 2017-10-10  Bruno Haible  <bruno@clisp.org>
21427         doc: Improve doc about ioctl.
21428         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21429         prototype.
21431 2017-10-09  Bruno Haible  <bruno@clisp.org>
21433         wcwidth: Don't use obsolete syntax of 'test'.
21434         Reported by Eric Blake.
21435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21436         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21438 2017-10-09  Bruno Haible  <bruno@clisp.org>
21440         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21441         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21442         and Daniel P. Berrange <berrange@redhat.com>.
21443         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21444         on glibc systems. The getopt-pfx-core.h file declares exactly what
21445         unistd.h needs, nothing more.
21447 2017-10-08  Bruno Haible  <bruno@clisp.org>
21449         vma-iter: Improve support for FreeBSD.
21450         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21451         vma_iterate.
21452         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21454 2017-10-08  Bruno Haible  <bruno@clisp.org>
21456         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21457         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21459 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21461         test-framework-sh: Fix 'invalid path dir' error.
21462         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21463         separator between a drive letter and directory parts.
21464         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21465         treated as an invalid path dir.
21466         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21467         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21468         instead of hard coded ':'.
21470 2017-10-07  Bruno Haible  <bruno@clisp.org>
21472         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21473         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21474         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21475         (rof_open): On Linux, do multiple read() calls and make sure
21476         MIN_LEFTOVER bytes are left when read() returns.
21478 2017-10-07  Bruno Haible  <bruno@clisp.org>
21480         vma-iter: Improve support for GNU/Hurd.
21481         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21482         API, not the /proc file system.
21484 2017-10-07  Bruno Haible  <bruno@clisp.org>
21486         test-framework-sh: Don't require bash on Windows and OS/2.
21487         Reported by KO Myung-Hun.
21488         * tests/test-init.sh: Use 'shopt' only when running in bash.
21490 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21492         wcwidth: check a macro version of wcwidth () as well
21493         * lib/wchar.in.h: Revert commit from 2016-01-14.
21494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21496 2017-10-06  Bruno Haible  <bruno@clisp.org>
21498         getopt-posix: Clarify copyright header.
21499         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21500         * lib/getopt-pfx-core.h: Likewise.
21501         * lib/getopt-pfx-ext.h: Likewise.
21502         * lib/getopt-cdefs.in.h: Likewise.
21504 2017-10-03  Bruno Haible  <bruno@clisp.org>
21506         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21507         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21508         gl_HOST_CPU_C_ABI.
21510 2017-10-03  Bruno Haible  <bruno@clisp.org>
21512         doc: warn about misuse of strncpy and wcsncpy.
21513         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21514         memory allocation.
21515         * doc/posix-functions/wcscpy.texi: Likewise.
21516         * doc/posix-functions/strncpy.texi: Describe what this function is not
21517         useful for.
21518         * doc/posix-functions/wcsncpy.texi: Likewise.
21520 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21522         fsuage: fix typo in previous change
21523         * lib/fsusage.c: Remove stray include of full-read.h.
21524         Problem reported by Sam Steingold for macOS (Bug#28669).
21526 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21528         fsusage: remove SVR2 support
21529         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21530         and its code was getting in the way of use of this module by
21531         Emacs, which has its own ‘read’ function anyway.
21532         * lib/fsusage.c: Do not include sys/filsys.h.
21533         (get_fs_usage): Remove SVR2-specific code.
21534         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21535         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21536         * modules/fsusage (Depends-on): Do not depend on full-read.
21538         Simplify autoupdate of licenses
21539         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21540         place.
21542 2017-10-01  Bruno Haible  <bruno@clisp.org>
21544         vma-iter: Add support for GNU/Hurd.
21545         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21546         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21548 2017-09-30  Bruno Haible  <bruno@clisp.org>
21550         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21551         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21552         fail when module 'largefile' is in use.
21553         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21554         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21555         Don't test HAVE_SYS_PROCFS_H.
21557 2017-09-30  Bruno Haible  <bruno@clisp.org>
21559         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21560         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21561         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21562         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21564 2017-09-30  Bruno Haible  <bruno@clisp.org>
21566         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21567         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21568         scope of local variables.
21570 2017-09-28  Bruno Haible  <bruno@clisp.org>
21572         string: code style
21573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21574         substitutable variables.
21575         * modules/string (Makefile.am): Likewise.
21577 2017-09-26  Bruno Haible  <bruno@clisp.org>
21579         uniname/uniname-tests: Tighten code.
21580         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21581         local variables into one.
21583 2017-09-26  Bruno Haible  <bruno@clisp.org>
21585         vma-iter: Improvements for Linux and BSD platforms.
21586         - Add support for DragonFly BSD.
21587         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21588         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21589         Read the entire file into memory in a single system call.
21590         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21591         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21593 2017-09-26  Bruno Haible  <bruno@clisp.org>
21595         vma-iter: Provide the protection flags on FreeBSD.
21596         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21597         skip three fields between the addresses and the protection flags.
21599 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21601         glob: remove bogus extern decl
21602         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21603         extern declaration.  Problem reported by Adhemerval Zanella in:
21604         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21606 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21608         uniname/uniname-tests: integer overflow fix
21609         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21610         Check for integer overflow.
21612         duplocale-tests: fix unlikely crash
21613         * tests/test-duplocale.c (get_locale_dependent_values):
21614         Don’t crash with absurdly long month names.
21616         maint: fix overflow checking in nap.h
21617         * modules/chown-tests:
21618         * modules/fchownat-tests, modules/fdutimensat-tests:
21619         * modules/futimens-tests, modules/lchown-tests:
21620         * modules/stat-time-tests, modules/utime-tests:
21621         * modules/utimens-tests, modules/utimensat-tests:
21622         Depend on intprops.
21623         * tests/nap.h: Include intprops.h.
21624         (diff_timespec): Handle overflow properly.
21626         sys_types: update URL
21627         * m4/sys_types_h.m4: Use https: URL.
21629         parse-datetime: fix dependency
21630         * modules/parse-datetime (Depends-on): Depend
21631         on nstrftime, not strftime.
21633         parse-datetime, posixtm: avoid uninit access
21634         * lib/parse-datetime.y (parse_datetime2):
21635         * lib/posixtm.c (posixtime):
21636         Do not access uninitialized storage, even though the resulting
21637         value is never used.
21639 2017-09-25  Bruno Haible  <bruno@clisp.org>
21641         vma-iter: Improvements for BSD platforms.
21642         - Add support for GNU/kFreeBSD.
21643         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21644         - Speed up on OpenBSD.
21645         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21646         (vma_iterate_bsd): New function.
21647         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21648         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21649         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21650         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21652 2017-09-23  Bruno Haible  <bruno@clisp.org>
21654         strfmon_l: New module.
21655         * modules/strfmon_l: New file.
21656         * lib/strfmon_l.c: New file.
21657         * m4/strfmon_l.m4: New file.
21658         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21659         * modules/strfmon_l-tests: New file.
21660         * tests/test-strfmon_l.c: New file.
21662         monetary: New module.
21663         * modules/monetary: New file.
21664         * lib/monetary.in.h: New file.
21665         * m4/monetary_h.m4: New file.
21666         * doc/posix-headers/monetary.texi: Mention the new module.
21667         * modules/monetary-tests: New file.
21668         * tests/test-monetary.c: New file.
21669         * modules/monetary-c++-tests: New file.
21670         * tests/test-monetary-c++.cc: New file.
21671         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21673 2017-09-23  Bruno Haible  <bruno@clisp.org>
21675         duplocale tests: Fix test crash on Linux/x86.
21676         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21677         locale from the current thread before freeing it.
21679 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21681         mktime: port to OpenVMS
21682         Problem reported by John E. Malmberg in:
21683         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21684         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21686 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21688         manywarnings: port to GCC on 64-bit MS-Windows
21689         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21690         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21691         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21693 2017-09-13  Bruno Haible  <bruno@clisp.org>
21695         all: Replace many more http URLs by https URLs. Update stale URLs.
21696         * users.txt: Remove mention of 'newts'.
21697         * lib/localename.c: Update comment about LANG_SOTHO.
21699 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21701         all: Replace many http URLs by https URLs.
21703 2017-09-12  Bruno Haible  <bruno@clisp.org>
21705         doc: Prefer https URLs where possible.
21706         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21707         * doc/ld-output-def.texi: Remove unavailable URL.
21709 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21711         maintainer-makefile: FTP -> HTTPS
21712         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21713         of FTP, which is planned to be decommissioned on 2017-11-01.
21715 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21717         libc-config: Fix __GNUC_PREREQ macro.
21718         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21719         __GNUC_MINOR.
21721 2017-09-09  Bruno Haible  <bruno@clisp.org>
21723         gnulib-tool: Simplify commit from 2015-08-20.
21724         * gnulib-tool (func_add_or_update): Remove local variable
21725         is_binary_file.
21727 2017-09-08  Bruno Haible  <bruno@clisp.org>
21729         stddef: Avoid conflict with system-defined max_align_t.
21730         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21731         Reported by Werner Lemberg <wl@gnu.org> in
21732         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21733         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21734         (max_align_t): Define as a macro.
21735         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21736         definitions of rpl_max_align_t in different copies of gnulib-generated
21737         <stddef.h>.
21739 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21741         libc-config: port to MSVC
21742         Problems reported by Gisle Vanem in:
21743         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21744         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21745         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21746         * m4/__inline.m4: New file.
21747         * modules/libc-config (Files): Add it.
21748         (Depends-on): Use it.
21750         glob: Use enum for __glob_pattern_type result
21751         From a patch proposed by Adhemerval Zanella in:
21752         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21753         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21754         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21755         * lib/glob_internal.h (__glob_pattern_type):
21756         * lib/glob.c (glob):
21757         * lib/glob_pattern_p.c (__glob_pattern_p):
21758         Use them.
21760         glob: fix for use in glibc
21761         Problem reported by Adhemerval Zanella in:
21762         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21763         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21764         Do not redefine if _LIBC.
21766 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21768         glob: fix bugs with long login names
21769         Problem reported by Adhemerval Zanella in:
21770         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21771         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21772         (glob): Use the same scratch buffer for both getlogin_r and
21773         getpwnam_r.  Don’t require preallocation of the login name.  This
21774         simplifies storage allocation, and corrects the handling of
21775         long login names.
21777 2017-09-02  Bruno Haible  <bruno@clisp.org>
21779         dirent: Update doc.
21780         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21782 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21784         glob: fix getpwnam_r errno typo
21785         * lib/glob.c (glob): Fix longstanding misuse of errno after
21786         getpwnam_r, which returns an error number rather than setting
21787         errno.
21789         glob: fix typo in recent change
21790         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21791         Fix recently-introduced typo.
21793 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21795         glob: don't save and restore errno unnecessarily
21796         * lib/glob.c (glob): Don't save and restore errno
21797         merely because we have getpwnam_r.
21799         glob: don't assume getpwnam_r
21800         * lib/glob.c (glob): Port recent patches to platforms
21801         lacking getpwnam_r.
21803         scratch_buffer: don’t use private glibc API
21804         Suggested by Florian Weimer in:
21805         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21806         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21807         * lib/scratch_buffer_grow.c: Rename to
21808         lib/malloc/scratch_buffer_grow.c.
21809         * lib/scratch_buffer_grow_preserve.c: Rename to
21810         lib/malloc/scratch_buffer_grow_preserve.c.
21811         * lib/scratch_buffer_set_array_size.c: Rename to
21812         lib/malloc/scratch_buffer_set_array_size.c.
21813         * lib/scratch_buffer.h: New file.
21814         * modules/scratch_buffer (Files, Makefile.am):
21815         Adjust to source-file renaming.
21817 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21819         glob: use scratch_buffer instead of extend_alloca
21820         Much of the lib/glob.c part of this patch comes from a glibc patch
21821         proposed by Adhemerval Zanella in:
21822         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21823         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21824         included via glob.h, does this for us now.
21825         (__set_errno): Remove, as libc-config does this for us now.
21826         Include <scratch_buffer.h>.
21827         (GETPW_R_SIZE_MAX): Remove.
21828         (glob): Use struct scratch_buffer instead of extend_alloca.
21829         * lib/glob.in.h: Include libc-config.h rather than
21830         including <sys/cdefs.h> conditionally.
21831         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21832         (__glibc_unlikely, __restrict, weak_alias):
21833         Remove, as libc-config does this for us now.
21834         * m4/glob.m4 (gl_PREREQ_GLOB):
21835         Remove sys/cdefs.h tests; no longer needed.
21836         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21837         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21839         scratch_buffer: new module
21840         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21841         * lib/scratch_buffer_grow_preserve.c:
21842         * lib/scratch_buffer_set_array_size.c:
21843         New files, copied from glibc with very minor changes that can be
21844         copied back.
21845         * modules/scratch_buffer: New file.
21847         libc-config: new module
21848         * MODULES.html.sh: Add libc-config.
21849         * lib/cdefs.h: New file, copied from the GNU C Library with very
21850         minor changes that can be copied back.
21851         * lib/libc-config.h, modules/libc-config: New files.
21853 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21855         glob: match dangling symlinks
21856         This fixes a bug I inadvertently introduced to Gnulib when I
21857         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21858         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21859         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21860         * doc/posix-functions/glob.texi: Update list of affected platforms.
21861         * lib/glob.c (__lstat64): New macro.
21862         (is_dir): New function.
21863         (glob, glob_in_dir): Match symlinks even if they are dangling.
21864         (link_stat, link_exists_p): Remove.  All uses removed.
21865         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21866         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21867         * modules/glob-tests (Depends-on): Add symlink.
21868         * tests/test-glob.c: Include errno.h, unistd.h.
21869         (BASE): New macro.
21870         (main): Test dangling symlinks, if symlinks are supported.
21872         glob, backupfile: inode 0 is a valid inode number
21873         * doc/posix-functions/readdir.texi (readdir):
21874         * doc/posix-headers/dirent.texi (dirent.h):
21875         Document more readdir portability issues.
21876         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21877         (numbered_backup): Don’t treat inode 0 any differently from
21878         other inode values.
21879         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21880         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21881         All uses removed.
21882         * modules/glob (Depends-on): Remove d-ino.
21884         glob: simplify symlink detection
21885         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21886         uint8_t, as C99 does not require uint8_t.
21887         (struct readdir_result): Use it.  Do not define skip_entry unless
21888         it is needed; this saves a byte on platforms lacking d_ino.
21889         (readdir_result_type, readdir_result_skip_entry):
21890         New functions, replacing ...
21891         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21892         ... these functions, which were removed.  This makes the callers
21893         easier to read.  All callers changed.
21894         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21896 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21898         fts-tests: tag as a longrunning-test so not included by default
21899         * modules/fts-tests: This test takes about 20s on current systems,
21900         and uses about 285M of space on ext4.
21902 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21904         renameat2: fix compilation on alpine linux
21905         * m4/renameat.m4: Check for <linux/fs.h> presence.
21906         * lib/renameat2.h: Only include <linux/fs.h> if present.
21907         Reported by Assaf Gordon on Alpine Linux.
21909 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21911         glob: try to port recent changes to MS-Windows
21912         Problem reported by Bruno Haible in:
21913         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21914         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21915         * lib/glob.in.h (__glob_pattern_p): ... to here.
21917 2017-08-24  Eric Blake  <eblake@redhat.com>
21919         warnings: fix compilation with old autoconf
21920         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21921         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21922         AC_DEFUN.
21923         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21924         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21926 2017-08-24  Bruno Haible  <bruno@clisp.org>
21928         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21929         * modules/glob (Depends-on): Add c99.
21931 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21933         glob: fix typo that broke platforms lacking d_ino
21934         This typo also hurt performance on GNU/Linux and similar hosts.
21935         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21936         in previous change.
21938 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21940         glob: merge from glibc with Zanella glob changes
21941         Merge glob from glibc, with changes for glob proposed
21942         by Adhemerval Zanella in the thread starting here:
21943         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21944         plus some fixes for this merge.
21945         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21946         New files, ported from glibc.
21947         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21948         with __restrict.
21949         (__size_t): Remove.  All uses replaced by size_t.
21950         (size_t): Define by defining __need_size_t and including <stddef.h>.
21951         This should work even in non-glibc platforms, where any name
21952         pollution is OK.
21953         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21954         (struct stat64): Don’t worry about __GLOB_GNULIB.
21955         (glob, globfree, glob_pattern_p): Remove macros for
21956         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21957         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21958         but set errno.
21959         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21960         removed since the glibc behavior works on null pointers.
21961         Do not include stdio.h; old SunOS is irrelevant now.
21962         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21963         Include glob_internal.h.
21964         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21965         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21966         worked only coincidentally.
21967         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21968         Remove macros; now done in glob.in.h.
21969         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21970         (glob): Properly initialize glob structure with
21971         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21972         Remove old code using SHELL since Bash no longer
21973         uses this.
21974         (glob, prefix_array): Separate MS code better.
21975         (glob, glob_in_dir): Use C99 decls before statements when glibc
21976         does.
21977         (glob_in_dir): Remove old Amiga and VMS code.
21978         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21979         separate files.
21980         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21981         (__glibc_unlikely):
21982         Move here from glob.c.
21983         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21984         (weak_alias): New macro.
21985         (__size_t): Remove.  All uses replaced by size_t.
21986         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21987         * modules/glob (Files): Add +lib/glob_internal.h,
21988         lib/glob_pattern_p.c, lib/globfree.c.
21989         (Depends-on): Remove snippet/arg-nonnull.
21991 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21993         glob: port to clang's Undefined Sanitizer
21994         Problem reported by Tim Rühsen in:
21995         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21996         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21997         (glob_in_dir): Do not rely on undefined behavior in accessing
21998         struct members beyond their bounds.  Use a flexible array member
21999         instead.
22001 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22003         vc-list-files: port to Solaris 10
22004         * build-aux/vc-list-files: Don't assume test -e works.
22006 2017-08-21  Karl Berry  <karl@freefriends.org>
22008         * doc/posix-functions/srandom.texi (srandom): typo }.
22010 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22012         git-version-gen: port to Solaris 10
22013         Problem reported by Dagobert Michelsen in:
22014         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22015         * build-aux/git-version-gen (v_from_git):
22016         Use expr instead of shell substitution.
22018 2017-08-19  Bruno Haible  <bruno@clisp.org>
22020         host-cpu-c-abi: Improve detection of MIPS ABI.
22021         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22022         _MIPS_SIM.
22024 2017-08-17  Bruno Haible  <bruno@clisp.org>
22026         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22027         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22029 2017-08-17  Bruno Haible  <bruno@clisp.org>
22031         float: Fix LDBL_MIN value on FreeBSD/x86.
22032         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22034 2017-08-17  Bruno Haible  <bruno@clisp.org>
22036         random: Fix test compilation failure on Cygwin 1.5.25.
22037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22038         HAVE_DECL_SETSTATE.
22039         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22040         declared.
22041         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22042         HAVE_DECL_SETSTATE.
22043         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22044         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22045         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22046         * doc/posix-functions/random.texi: Likewise.
22047         * doc/posix-functions/setstate.texi: Likewise.
22048         * doc/posix-functions/srandom.texi: Likewise.
22050 2017-08-16  Bruno Haible  <bruno@clisp.org>
22052         stdnoreturn: Fix test compilation failure on Cygwin.
22053         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22054         <stdnoreturn.h> replacement.
22055         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22056         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22058 2017-08-16  Bruno Haible  <bruno@clisp.org>
22060         thread: Fix conflict with pthread_sigmask module.
22061         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22062         it's defined as a macro.
22063         * modules/thread (Depends-on): Add pthread_sigmask.
22065 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22067         rename: port better to NetBSD
22068         * doc/posix-functions/rename.texi (rename): NetBSD 7
22069         does not have the link-count bug.
22070         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22071         broken merely because rename ("a", "b") removes "a" when the two
22072         names are hard links to the same file.
22074 2017-08-16  Bruno Haible  <bruno@clisp.org>
22076         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22077         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22078         the target file names with '$(srcdir)/'.
22079         * modules/unicase/locale-language (Makefile.am): Likewise.
22080         * modules/unicase/special-casing (Makefile.am): Likewise.
22081         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22082         * modules/unictype/category-byname (Makefile.am): Likewise.
22083         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22084         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22085         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22086         * modules/unictype/property-byname (Makefile.am): Likewise.
22087         * modules/unictype/scripts (Makefile.am): Likewise.
22088         * modules/uninorm/composition (Makefile.am): Likewise.
22090 2017-08-16  Bruno Haible  <bruno@clisp.org>
22092         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22093         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22094         value for OpenBSD.
22096 2017-08-16  Bruno Haible  <bruno@clisp.org>
22098         rename, renameat: Update doc regarding NetBSD.
22099         * doc/posix-functions/rename.texi: Clarify that when using
22100         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22101         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22102         version.
22104 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22106         renameat2: port better to macOS
22107         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22109         futimens: don’t assume struct timespec layout
22110         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22111         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22112         * tests/test-fdutimensat.c (main):
22113         * tests/test-futimens.h (test_futimens):
22114         * tests/test-lutimens.h (test_lutimens):
22115         * tests/test-utimens.h (test_utimens):
22116         * tests/test-utimensat.c (main):
22117         Don’t assume that struct timespec is a two-member structure in
22118         tv_sec, tv_nsec order.  Although this is true on all platforms we
22119         know about, POSIX does not guarantee it.
22121         rename: document+test NetBSD rename
22122         Test failure reported by Bruno Haible in:
22123         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22124         This is an area where NetBSD is better-behaved than POSIX,
22125         so allow the NetBSD behavior in tests.
22126         * doc/posix-functions/rename.texi:
22127         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22128         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22130 2017-08-15  Bruno Haible  <bruno@clisp.org>
22132         renameat: Ensure declaration in <stdio.h> on NetBSD.
22133         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22134         * doc/posix-functions/renameat.texi: Mention this problem.
22136 2017-08-15  Bruno Haible  <bruno@clisp.org>
22138         duplocale: Work around NetBSD 7.0 bug.
22139         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22140         * lib/duplocale.c: Add comment about NetBSD problem.
22141         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22143 2017-08-15  Bruno Haible  <bruno@clisp.org>
22145         duplocale tests: Verify use with *_l functions.
22146         * modules/duplocale-tests (configure.ac): Test for uselocale and
22147         some *_l functions.
22148         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22149         from main.
22150         (get_locale_dependent_values_from, test_with_locale_parameter): New
22151         functions.
22152         (main): Test both test_with_uselocale and test_with_locale_parameter.
22154 2017-08-15  Bruno Haible  <bruno@clisp.org>
22156         extensions: Enable NetBSD specific extensions.
22157         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22159 2017-08-14  Bruno Haible  <bruno@clisp.org>
22161         open, openat: Update doc about O_CLOEXEC.
22162         * doc/posix-functions/open.texi: More concrete list of platforms.
22163         * doc/posix-functions/openat.texi: Likewise.
22165 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22167         open: support O_CLOEXEC
22168         * NEWS, doc/posix-functions/open.texi:
22169         * doc/posix-functions/openat.texi: Document this.
22170         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22171         (GNULIB_defined_O_CLOEXEC): New symbol.
22172         * lib/open.c: Include cloexec.h.
22173         (open): Support O_CLOEXEC.
22174         * lib/openat.c: Include cloexec.h.
22175         (rpl_openat): Support O_CLOEXEC.
22176         * lib/popen-safer.c: Do not include cloexec.h.
22177         (open_noinherit): Remove.
22178         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22179         * lib/save-cwd.c: Do not include cloexec.h.
22180         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22181         * m4/open-cloexec.m4: New file.
22182         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22183         Replace 'open' if O_CLOEXEC is not present.
22184         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22185         Replace 'openat' if O_CLOEXEC is not present.
22186         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22187         * modules/open (Files): Add m4/open-cloexec.m4.
22188         (Depends-on): Depend on cloexec if replacing 'open'.
22189         * modules/openat (Files): Add m4/open-cloexec.m4.
22190         (Depends-on): Depend on cloexec if replacing openat.
22191         * modules/popen-safer (Depends-on): Remove cloexec.
22192         * modules/save-cwd (Depends-on): Remove cloexec, and add
22193         fd-safer-flag and 'open'.
22195 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22197         reallocarray: minor fixes
22198         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22199         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22200         * modules/reallocarray (License): Change from GPL to LGPL.
22201         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22202         Indent properly and don't use tabs.
22204 2017-08-13  Darshit Shah  <darnir@gnu.org>
22206         reallocarray: New module
22207         reallocarray is a new function in glibc 2.26 to safely allocate an array
22208         of memory locations with integer overflow protection.
22209         * MODULES.html.sh: Add reallocarray.
22210         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22211         * lib/reallocarray.c: New file to implement module reallocarray.
22212         * lib/stdlib.in.h: Add function declarations for reallocarray.
22213         * m4/reallocarray.m4: New file.
22214         * m4/stdlib_h.m4: Declare reallocarray.
22215         * modules/reallocarray: New file.
22216         * modules/reallocarray-test: New file.
22217         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22218         * tests/test-reallocarray.c: New test.
22220 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22222         dirent-safer: fix cloexec race
22223         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22224         (opendir_safer): Use F_DUPFD_CLOEXEC.
22225         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22226         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22227         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22228         instead of dup_safer.
22230         fts: fix cloexec races
22231         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22232         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22233         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22234         (fd_ring_check): Set cloexec flag on new file descriptors.
22235         (fts_build, fd_ring_check): While we’re at it, make sure the
22236         resulting file descriptor is not 0, 1, or 2, since that is easy.
22238 2017-08-11  Bruno Haible  <bruno@clisp.org>
22240         fts tests: Fix link error.
22241         Reported by Tom G. Christensen in
22242         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22243         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22245 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22247         fts: port recent changes to CentOS 6
22248         Problem reported by Tom G. Christensen in:
22249         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22250         * lib/fts.c (fsword): New type.
22251         (struct dev_type, filesystem_type): Use it.
22252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22253         Also, check for f_type only if fstatfs and sys/vfs.h work.
22255 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22257         tempname: do not depend on secure_getenv
22258         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22259         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22260         * modules/tempname (Depends-on): Remove secure_getenv.
22262 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22264         extensions: add _OPENBSD_SOURCE
22265         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22267 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22268             Bruno Haible  <bruno@clisp.org>
22270         manywarnings: Add support for C++.
22271         * build-aux/g++-warning.spec: New file.
22272         * m4/manywarnings-c++.m4: New file.
22273         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22274         redirects to manywarnings-c++.m4.
22275         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22277 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22279         git-version-gen: another fix for tags with "-"
22280         * build-aux/git-version-gen: Improve fix for tags containing "-".
22281         Suggested by Markus Armbruster in:
22282         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22284 2017-08-06  Bruno Haible  <bruno@clisp.org>
22286         warnings, manywarnings: Add support for multiple languages, not just C.
22287         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22288         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22289         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22290         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22291         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22292         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22293         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22294         of the current language. If C++ is the current language, modify
22295         WARN_CXXFLAGS instead of WARN_CFLAGS.
22296         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22297         gl_MANYWARN_ALL_GCC.
22298         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22300 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22302         git-version-gen: Fix for tags containing '-'
22304         Really old versions of git-describe (before v1.5.0, Feb 2007)
22305         don't have the number of commits in their long format output,
22306         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22307         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22308         recognizes both patterns, and normalizes the old format to the new one.
22310         Unfortunately, this normalization code gets confused when the tag
22311         contains '-'.  Reproducer:
22313             $ git-tag -m test v0.2-rc1
22314             $ build-aux/git-version-gen .tarball-version; echo
22315             build-aux/git-version-gen: WARNING: git rev-list failed
22316             UNKNOWN
22318         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22319         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22320         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22322         * git-version-gen: We could perhaps drop support for versions from
22323         more than a decade ago.  But tightening the pattern match is easy
22324         enough, so do that.  Still breaks when you use version tags ending in
22325         something matching -g????, but you arguably get what you deserve then.
22327 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22329         valgrind-tests: use ls, and cache
22330         * m4/valgrind-tests.m4: Test ls, not bash.
22331         Problem reported by Reuben Thomas.
22332         Also, cache the result so that it can be overridden.
22334 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22336         manywarnings: port to 64-bit GCC builds of Emacs
22337         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22338         object size rather than hardwiring 2147483647.  This is needed to
22339         build GNU Emacs, which has one conditional (and used
22340         only-in-theory) call to malloc with a literal greater than
22341         2147483647.
22343 2017-08-04  Bruno Haible  <bruno@clisp.org>
22345         Relax the license of some modules with no runtime code.
22346         * modules/std-gnu11 (License): Set to 'unlimited'.
22347         * modules/c99 (License): Likewise.
22348         Reported by Reuben Thomas <rrt@sc3d.org>.
22349         * modules/d-ino (License): Set to 'LGPL'.
22350         * modules/host-os (License): Likewise.
22351         * modules/longlong (License): Likewise.
22353 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22355         renameat2: port to RHEL 7 + NFS
22356         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22357         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22358         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22360 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22362         renameat2: port to non-renameat platforms
22363         Problem reported for MSVC-2015 by Gisle Vanem in:
22364         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22365         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22366         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22368 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22370         manywarnings: port to 32-bit GCC bug
22371         Problem reported by Pino Toscano in:
22372         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22373         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22374         not 2**63 - 1, to work around the following GCC bug:
22375         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22377 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22379         backupfile: new function to validate backup suffix
22380         * lib/backupfile.c (set_simple_backup_suffix): New function.
22381         (backupfile_internal): Use it.
22383         canonicalize: fix EOVERFLOW commentary
22384         Problem reported by Bruno Haible in:
22385         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22386         * lib/canonicalize.c (canonicalize_filename_mode):
22387         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22389         Don't interpret EOVERFLOW to mean nonexistence
22390         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22391         may be EOVERFLOW; this is likely more useful than reporting the
22392         stat errno.
22393         * lib/glob.c (link_stat): Rename from link_exists2_p and
22394         return -1/0 instead of 0/1.  Caller changed.
22395         * lib/glob.c (link_exists_p):
22396         * lib/renameat2.c (rename_noreplace, renameat2):
22397         * lib/tempname.c (try_nocreate):
22398         If errno == EOVERFLOW then the directory entry exists, so do not
22399         act as if it does not exist.
22401         backup-rename: new module
22402         It is like backupfile, except it avoids some race conditions,
22403         and it does not output to stderr or exit.
22404         * MODULES.html.sh: Add backup-rename.
22405         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22406         * modules/backup-rename: New files.
22407         * lib/backupfile.c: Turn this into an internals file, which
22408         contains code common to backupfile and backup_rename.  Include
22409         backupfile-internal.h instead of backupfile.h.  Do not include
22410         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22411         renameat2.h and fcntl.h.
22412         (BACKUP_NOMEM): New constant.
22413         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22414         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22415         (backupfile_internal): Rename from find_backup_file_name.
22416         Support new arg RENAME.
22417         (backup_args, backup_types, get_version, xget_version):
22418         Move to lib/backup-find.c.
22419         * lib/backupfile.h (backup_file_rename): New decl.
22420         * modules/backupfile (Files): Add lib/backup-internal.h,
22421         lib/backup-find.c.
22422         (Depends-on): Add dirfd, fcntl, renameat2.
22423         (lib_SOURCES): Add backup-find.c.
22425         renameat2: port better to older Solaris
22426         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22427         Add goto to use a label, to silence picky compilers.
22429         fts-tests: port to gcc -Wwrite-strings
22430         * tests/test-fts.c (base, base_d): New static vars.
22431         (argv, remove_tree, main): Use them.
22433 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22435         relocatable-lib{,-lgpl}: improve documentation
22436         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22437         Various other updates.
22439 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22440             Bruno Haible  <bruno@clisp.org>
22442         relocatable-lib{,-lgpl}: add Valgrind suppressions
22443         * lib/relocatable.valgrind: New file.
22444         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22445         * modules/relocatable-lib-lgpl: Likewise.
22447 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22449         relocatable: Make the license on the sources the GPL.
22450         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22451         LGPL, which was a special case so that the relocatable source files
22452         could be used without gnulib-tool, to GPL. They can still be used under
22453         the LGPL, using the --lgpl option to gnulib-tool.
22455 2017-07-30  Bruno Haible  <bruno@clisp.org>
22457         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22458         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22459         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22460         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22461         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22463 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22465         faccessat: document AT_SYMLINK_NOFOLLOW issue
22466         * doc/posix-functions/faccessat.texi: Modernize platform list.
22467         Document AT_SYMLINK_NOFOLLOW limitation.
22469         renameat2: port to Solaris 10
22470         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22471         with AT_SYMLINK_NOFOLLOW (which is not portable).
22472         (renameat): Undef before using, to avoid endless recursion when
22473         the replacement renameat calls renameat2 which calls the
22474         replacement renameat.
22475         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22476         * modules/renameat2 (Depends-on): Remove faccessat.
22477         * modules/renameat-tests (test_renameat_LDADD):
22478         * modules/renameat2-tests (test_renameat2_LDADD):
22479         Remove $(LIB_EACCESS).
22481         renameat2: new module
22482         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22483         useful to have access to its RENAME_NOREPLACE flag.
22484         * MODULES.html.sh (func_all_modules): Add renameat2.
22485         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22486         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22487         * lib/renameat.c (renameat): Move most of the implementation
22488         to renameat2, and just call renameat2.
22489         * modules/renameat (Files): Remove lib/at-func2.c.
22490         (Depends-on): Depend only on renameat2.
22491         (Include): Remove <fcntl.h>.
22492         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22493         since renameat (via renameat2) might use faccessat.
22495 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22497         vc-list-files: Adjust the script to support git worktrees
22498         * build-aux/vc-list-files: Require existence, not directory.
22500 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22502         doc: bring MODULES.html.sh up to date
22503         Somehow a few months ago we stopped updating MODULES.html.sh.
22504         I don’t recall explicitly deciding this, so I updated it now.
22505         Alternatively I suppose we could remove it.
22506         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22507         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22508         truncate, utime, utime-h, windows-stat-inodes,
22509         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22511 2017-07-26  Jim Meyering  <meyering@fb.com>
22513         fprintftime: fix build-break caused by recent renaming
22514         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22515         "strftime.c".
22516         * modules/fprintftime: Depend directly on nstrftime.
22518 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22520         regex: work with GCC7's -Werror=implicit-fallthrough=
22521         * lib/regex_internal.h (FALLTHROUGH): New macro.
22522         * lib/regcomp.c (peek_token_bracket, parse_expression):
22523         * lib/regexec.c (check_node_accept): Use it.
22525 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22527         fts: simplify fts_build
22528         * lib/fts.c (fts_build): Simplify, and be lazier about
22529         calling leaf_optimization.
22531         fts: three levels of leaf optimization
22532         * lib/fts.c (enum leaf_optimization): New type with three values.
22533         (S_MAGIC_AFS): New macro.  Sort them.
22534         (leaf_optimization): Rename from leaf_optimization_applies, and
22535         return enum leaf_optimization instead of bool.  All uses changed.
22536         Add cases for unknown type and for AFS.
22537         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22539         fts: cache dirent_inode_sort_may_be_useful too
22540         * lib/fts.c (struct dev_type): New struct.
22541         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22542         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22543         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22544         Now takes FTSENT const *, not int.  All uses changed.  Use
22545         filesystem_type to cache.
22546         (link_count_optimize_ok): Remove.  Caller changed to use
22547         leaf_optimization_applies, which now uses shared cache.
22549         fts: introduce MIN_DIR_NLINK
22550         * lib/fts.c (MIN_DIR_NLINK): New constant.
22551         Use it instead of 2, whenever we are talking about link counts.
22553         fts: nlink_t signedness fixups
22554         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22555         so that root need not be a special case later.
22556         (fts_read): Remove now-redundant test for fts_level.
22557         Do not assume that nlink_t is signed.
22558         (fts_build): Remove useless decrement of nlinks.
22559         (fts_stat): Avoid unlikely signed integer overflow later, if
22560         nlink_t is signed.
22562         fts-tests: new module
22563         * modules/fts-tests, tests/test-fts.c: New files.
22565 2017-07-23  Bruno Haible  <bruno@clisp.org>
22567         Rename module 'strftime' to 'nstrftime'.
22568         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22569         * lib/nstrftime.c: Renamed from lib/strftime.c.
22570         * modules/nstrftime: Renamed from modules/strftime.
22571         (Files, Makefile.am): Update.
22572         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22573         Fix comment.
22574         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22575         (Files, Makefile.am): Update.
22576         * modules/strftime: New file, an obsolete indirection.
22577         * doc/posix-functions/strftime.texi: Update reference.
22578         * config/srclist.txt: Update info.
22579         * NEWS: Mention the change.
22581 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22583         malloca: Silence a warning from clang's memory sanitizer.
22584         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22585         (freea): Use it.
22587 2017-07-18  Bruno Haible  <bruno@clisp.org>
22589         host-cpu-c-abi: Fix detection of MIPS ABI.
22590         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22591         ABI, not the CPU instruction set.
22593 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22595         explicit_bzero: new module
22596         The explicit_bzero function has been added to glibc.
22597         This module is intended to supports its use in GNU programs.
22598         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22599         * m4/explicit_bzero.m4, modules/explicit_bzero:
22600         New files.
22601         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22602         * lib/string.in.h (explicit_bzero): Declare.
22603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22604         * modules/string (string.h): Substitute its vars.
22606 2017-07-16  Bruno Haible  <bruno@clisp.org>
22608         threadlib: Support static linking.
22609         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22610         set gl_cv_have_weak to 'no'.
22612 2017-07-16  Bruno Haible  <bruno@clisp.org>
22614         unicase/locale-language: Fix link dependencies.
22615         * modules/unicase/locale-language (Link): New section.
22616         * modules/unicase/locale-language-tests (Makefile.am): Link
22617         test-locale-language program with $(LIBTHREAD).
22619 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22621         sys_socket: Add support for OpenVMS.
22622         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22623         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22625 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22627         sys_resource: Add support for OpenVMS.
22628         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22629         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22631 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22632             Bruno Haible  <bruno@clisp.org>
22634         math: Add support for OpenVMS.
22635         * lib/math.in.h [__VMS]: Include <fp.h>.
22636         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22638 2017-07-15  Bruno Haible  <bruno@clisp.org>
22640         getdtablesize: Add minimal support for OpenVMS.
22641         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22642         * modules/getdtablesize (Description): Fix.
22643         * lib/getdtablesize.c: Fix comment.
22644         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22645         getdtablesize() function, even though the test fails.
22646         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22647         limitation on OpenVMS.
22649 2017-07-13  Bruno Haible  <bruno@clisp.org>
22651         Revisit cross-compilation guesses.
22652         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22654 2017-07-13  Bruno Haible  <bruno@clisp.org>
22656         Improve cross-compilation guesses for native Windows.
22657         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22658         Windows.
22659         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22661         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22662         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22663         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22664         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22665         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22666         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22667         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22668         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22669         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22670         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22671         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22672         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22673         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22674         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22675         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22677         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22678         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22679         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22680         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22681         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22682         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22683         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22684         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22685         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22686         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22687         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22688         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22689         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22691         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22692         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22693         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22694         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22695         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22696         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22697         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22698         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22700         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22701         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22702         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22703         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22704         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22705         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22706         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22707         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22708         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22709         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22710         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22711         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22712         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22713         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22714         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22715         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22716         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22717         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22718         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22720         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22721         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22722         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22723         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22725         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22726         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22727         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22728         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22729         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22730         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22731         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22732         * m4/regex.m4 (gl_REGEX): Likewise.
22733         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22734         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22735         gl_FUNC_REMAINDERF_WORKS): Likewise.
22736         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22737         gl_FUNC_REMAINDERL_WORKS): Likewise.
22738         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22739         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22740         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22741         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22742         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22744         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22745         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22746         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22747         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22748         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22749         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22750         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22751         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22752         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22753         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22754         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22755         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22756         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22757         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22758         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22759         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22760         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22761         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22762         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22764         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22765         Likewise.
22766         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22767         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22768         Windows. Enable also on Autoconf 2.70.
22769         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22770         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22771         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22772         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22773         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22774         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22775         for native Windows.
22776         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22777         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22779 2017-07-13  Bruno Haible  <bruno@clisp.org>
22781         Improve cross-compilation guesses for native Windows.
22782         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22783         Windows.
22784         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22785         memchr.m4.
22786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22788 2017-07-13  Bruno Haible  <bruno@clisp.org>
22790         Improve cross-compilation guesses for native Windows.
22791         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22792         native Windows.
22793         (gl_FUNC_FFLUSH): Update accordingly.
22794         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22795         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22797 2017-07-11  Bruno Haible  <bruno@clisp.org>
22799         More systematic m4 quoting and indentation.
22800         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22801         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22802         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22803         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22804         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22805         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22806         gl_WINSIZE_IN_PTEM): Likewise.
22807         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22808         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22809         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22810         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22811         Correct indentation.
22812         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22813         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22814         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22815         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22816         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22817         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22819 2017-07-10  Bruno Haible  <bruno@clisp.org>
22821         round, roundf: Avoid compiler warning in configure test.
22822         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22823         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22825 2017-07-10  Bruno Haible  <bruno@clisp.org>
22827         getlogin tests: Avoid #ifdefs when sharing code between modules.
22828         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22829         * modules/getlogin-tests (Files): Likewise. Remove
22830         tests/test-getlogin_r.c.
22831         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22832         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22833         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22834         getlogin().
22836 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22838         getlogin: don’t assume one name per uid
22839         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22840         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22841         (ttyname): Remove test.
22842         * modules/getlogin_r-tests (ttyname): Remove test.
22843         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22844         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22845         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22846         getlogin rather than getlogin_r.  This avoids code duplication.
22847         (main): Use isatty and fstat rather than ttyname and stat.
22848         Use getpwnam instead of getpwuid, to be portable to test platforms
22849         that have multiple login names for the same uid.
22851 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22852             Bruno Haible  <bruno@clisp.org>
22854         glob: Fix more memory leaks.
22855         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22856         returning.
22857         Reported by Tim Rühsen.
22859 2017-07-10  Bruno Haible  <bruno@clisp.org>
22861         Make sure $host and $host_os are defined when used.
22862         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22863         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22864         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22865         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22866         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22867         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22868         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22869         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22870         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22871         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22872         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22873         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22874         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22875         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22876         m4_ifdef block.
22878 2017-07-09  Bruno Haible  <bruno@clisp.org>
22880         *printf: Fix cross-compilation guess for Solaris.
22881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22882         2010-12-21.
22884 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22885             Bruno Haible  <bruno@clisp.org>
22887         vasnprintf: port to macOS 10.13
22888         Problem reported by comex in:
22889         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22890         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22892 2017-07-06  Bruno Haible  <bruno@clisp.org>
22894         imaxdiv tests: Fix logic.
22895         * tests/test-imaxdiv.c (main): Use == instead of =.
22896         Reported by Coverity.
22898 2017-07-06  Bruno Haible  <bruno@clisp.org>
22900         uninorm/filter: Fix use-after-free bug.
22901         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22902         sortbuf == filter->sortbuf invariant.
22903         Reported by Coverity.
22905 2017-07-06  Bruno Haible  <bruno@clisp.org>
22907         glob: Fix more memory leaks.
22908         * lib/glob.c (glob): Free dirname before returning.
22909         Reported by Coverity and Tim Rühsen.
22911 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22913         parse-datetime: fix uninit var bug
22914         Reported by Bruno Haible in:
22915         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22916         * lib/parse-datetime.y (parse_datetime2): Do not use
22917         uninitialized.
22919 2017-07-05  Bruno Haible  <bruno@clisp.org>
22921         doc: Update for MSVC 14.
22922         * doc/posix-headers/*.texi: Add info about MSVC 14.
22923         * doc/posix-functions/*.texi: Likewise.
22924         * doc/pastposix-functions/*.texi: Likewise.
22925         * doc/glibc-headers/*.texi: Likewise.
22926         * doc/glibc-functions/*.texi: Likewise.
22928 2017-07-05  Bruno Haible  <bruno@clisp.org>
22930         sched: Fix build failure on native Windows (regression from 2017-06-19).
22931         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22933 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22935         stdioext: Port to OpenVMS.
22936         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22937         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22938         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22939         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22940         * lib/fpurge.c (fpurge): Likewise.
22941         * lib/freadable.c (freadable): Likewise.
22942         * lib/freadahead.c (freadahead): Likewise.
22943         * lib/freading.c (freading): Likewise.
22944         * lib/freadptr.c (freadptr): Likewise.
22945         * lib/freadseek.c (freadseek): Likewise.
22946         * lib/fseeko.c (fseeko): Likewise.
22947         * lib/fseterr.c (fseterr): Likewise.
22948         * lib/fwritable.c (fwriteable): Likewise.
22949         * lib/fwriting.c (fwriting): Likewise.
22951 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22953         glob: Declare variables at the very start of their scope.
22954         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22955         its separate scope, so the functions will compile on Haiku.
22957 2017-07-01  Bruno Haible  <bruno@clisp.org>
22959         logbl: Work around a glibc bug on PowerPC64LE.
22960         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22961         numbers.
22962         * doc/posix-functions/logbl.texi: Update.
22964 2017-06-29  Bruno Haible  <bruno@clisp.org>
22966         stat, fstat: Compile stat-w32.c only on platforms that need it.
22967         Suggested by Paul Eggert.
22968         * modules/stat (configure.ac): Request stat-w32.o only on native
22969         Windows.
22970         * modules/fstat (configure.ac): Likewise.
22972 2017-06-25  Bruno Haible  <bruno@clisp.org>
22974         stat: Improve last change.
22975         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22977 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22979         stat: port to xlc 12.01
22980         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22981         12.01 complains "Compilation unit is empty."
22983 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22985         xalloc-oversized: port to icc
22986         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22987         __builtin_mul_overflow if ICC is defined, as this results in
22988         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22989         20170213.
22991 2017-06-19  Bruno Haible  <bruno@clisp.org>
22993         classpath: Avoid including config.h twice, as it produces warnings.
22994         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22995         * lib/classpath.h: Conditionalize the include of config.h.
22997 2017-06-19  Bruno Haible  <bruno@clisp.org>
22998             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23000         sched: Fix compilation failure on OpenVMS.
23001         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23002         test whether <pthread.h> exists and defines struct sched_param.
23003         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23005 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23007         diffseq: port to GCC 7 with --enable-gcc-warnings
23008         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23009         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23010         not complain about big_snake being defined but not used.
23012 2017-06-15  Bruno Haible  <bruno@clisp.org>
23014         gettext-h: Update theoretical condition for use of variable size arrays.
23015         Reported by Paul Eggert.
23016         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23017         to include the theoretical condition for availability of variable size
23018         arrays, if we could trust the value of __STDC_VERSION__.
23020 2017-06-12  Bruno Haible  <bruno@clisp.org>
23022         Relicense some modules under LGPLv2+.
23023         Daiki Ueno's approval is in
23024         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23025         * modules/uniwidth/base (License): Change to LGPLv2+.
23026         * modules/uniwidth/width (License): Likewise.
23028 2017-06-11  Bruno Haible  <bruno@clisp.org>
23030         localename: Fix test failure on DragonFly BSD.
23031         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23032         like FreeBSD.
23034 2017-06-11  Bruno Haible  <bruno@clisp.org>
23036         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23037         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23038         * lib/float.in.h: Likewise.
23039         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23041 2017-06-11  Bruno Haible  <bruno@clisp.org>
23043         gnulib-tool: Clean up after autotools.
23044         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23045         useless directory left over by the Autotools.
23047 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23049         getopt-posix: port to glibc 2.25.90
23050         Problem reported by Daniel P. Berrange in:
23051         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23052         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23053         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23054         #undef if __GETOPT_PREFIX is defined.
23056 2017-06-11  Bruno Haible  <bruno@clisp.org>
23058         strtod-obsolete: Fix license.
23059         * modules/strtod-obsolete (License): Change to LGPL.
23061 2017-06-10  Jim Meyering  <meyering@fb.com>
23063         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23064         * lib/savewd.c (FALLTHROUGH): Define.
23065         (savewd_save, savewd_restore): Use this, rather than a comment,
23066         whenever one switch case falls through into the next.
23068 2017-06-08  Bruno Haible  <bruno@clisp.org>
23070         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23071         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23072         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23073         case.
23075 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23077         doc: remove robots, add prereqs
23078         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23079         builds.  Simon's robot site does not seem to be up, so remove
23080         mentions of it for now.
23082 2017-06-08  Bruno Haible  <bruno@clisp.org>
23084         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23085         * gnulib-tool (func_symlink_target): New function, extracted from
23086         func_symlink.
23087         (func_symlink, func_symlink_if_changed): Use it.
23089 2017-06-08  Bruno Haible  <bruno@clisp.org>
23091         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23092         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23094 2017-06-07  Bruno Haible  <bruno@clisp.org>
23096         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23097         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23098         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23099         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23100         override, pass 2 arguments to getcwd, not 3.
23102 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23104         same-inode: port better to VMS 8.2 and later
23105         Problem reported by John E. Malmberg in:
23106         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23107         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23108         Use the usual POSIX definition.
23109         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23111 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23113         error: fix POSIX violation for va_end
23114         Problem reported by Bruno Haible in:
23115         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23116         * lib/error.c (error_tail): Do not call va_end here.
23117         (error, error_at_line): Call it here instead.
23119 2017-05-28  Bruno Haible  <bruno@clisp.org>
23121         c-strtod: Make it usable in C++ mode.
23122         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23124 2017-05-25  Jim Meyering  <meyering@fb.com>
23126         quotearg: fix compilation failure due to FALLTHROUGH misuse
23127         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23128         macro back to /* fall through */ comment.  The macro can apply only
23129         to a following case statement.  Reported by Assaf Gordon.
23131 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23133         intprops: port to recent icc
23134         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23135         but does not support __builtin_add_overflow etc.
23136         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23137         Define to 0.
23139 2017-05-23  Karl Berry  <karl@freefriends.org>
23141         * config/srclist.txt (iconv.m4): sync broken, comment out
23142         until (hopefully) the next gettext release.
23144 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23146         Remove repeated words in comments.
23148 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23150         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23151         quotearg.c: Reinstate this instance which is significant
23152         when the if branch is not taken.
23154 2017-05-21  Bruno Haible  <bruno@clisp.org>
23156         gnulib-tool: Add options to create hard links.
23157         * gnulib-tool (func_usage): Document options --hardlink,
23158         --local-hardlink, --more-hardlinks.
23159         (func_symlink): Renamed from func_ln.
23160         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23161         (func_hardlink): New function.
23162         (copymode, lcopymode): New variables.
23163         (symbolic, lsymbolic): Remove variables.
23164         (Options): Implement options --hardlink, --local-hardlink,
23165         --more-hardlinks.
23166         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23167         (func_add_file, func_update_file): Update invocation of
23168         func_should_link. Invoke func_hardlink when appropriate.
23169         (func_import): Update comments.
23170         (func_create_testdir): Update invocation of func_should_link. Invoke
23171         func_hardlink when appropriate.
23172         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23173         the hard links on git.
23175 2017-05-20  Bruno Haible  <bruno@clisp.org>
23177         argp: Simplify bit manipulation.
23178         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23179         on a signed integer type.
23181 2017-05-20  Bruno Haible  <bruno@clisp.org>
23183         Avoid wrong configure results with gcc -fsanitize=address.
23184         This completes the work done on 2016-02-06 on this topic.
23185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23188         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23189         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23190         returning.
23191         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23192         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23193         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23194         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23195         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23196         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23198         free allocated memory before returning.
23199         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23200         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23201         objects before returning.
23202         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23203         returning.
23205 2017-05-20  Bruno Haible  <bruno@clisp.org>
23207         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23208         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23210 2017-05-20  Bruno Haible  <bruno@clisp.org>
23212         argp, tsearch tests: Fix file list.
23213         * modules/argp-tests (Files): Add tests/macros.h.
23214         * modules/tsearch-tests (Files): Likewise.
23216 2017-05-20  Bruno Haible  <bruno@clisp.org>
23218         getopt-posix tests: Remove redundant include.
23219         * tests/test-getopt.h: Don't include "macros.h". It's already included
23220         by tests/test-getopt-main.h.
23222 2017-05-19  Jim Meyering  <meyering@fb.com>
23224         dfa: two small simplifications
23225         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23227 2017-05-18  Jim Meyering  <meyering@fb.com>
23229         fallthrough: update for GCC 7/8
23230         * lib/quotearg.c (FALLTHROUGH): New macro.
23231         Use it whenever one switch case falls through into the next,
23232         replacing "/* Fall through */" comments.  This exposed one
23233         instance of an unwarranted "fall through" comment: unwarranted
23234         because it preceded a "goto" label not a case statement.
23235         * lib/freopen-safer.c (freopen_safer): Likewise.
23236         * lib/fts.c (leaf_optimization_applies): Likewise.
23237         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23238         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23239         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23240         tests/macros.h for the definition.
23241         * tests/test-argp.c (group1_parser): Likewise.
23242         * tests/test-getopt.h (getopt_loop): Likewise.
23244 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23246         argp: fix shift bug
23247         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23248         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23250         argp: fix pointer-subtraction bug
23251         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23252         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23253         See the thread containing Bruno Haible’s report in:
23254         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23256 2017-05-19  Bruno Haible  <bruno@clisp.org>
23258         printf-posix tests: Avoid test failure with "gcc --coverage".
23259         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23260         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23261         than 5000000.
23262         * tests/test-fprintf-posix2.c (main): Likewise.
23264 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23266         closeout: don’t close stderr when sanitizing
23267         * NEWS: Document this.
23268         * lib/closeout.c (__has_feature): New macro, if not already defined.
23269         (SANITIZE_ADDRESS): New constant.
23270         (close_stdout): Don’t close stderr if sanitizing addresses.
23272 2017-05-19  Bruno Haible  <bruno@clisp.org>
23274         get-rusage-data tests: Avoid failure on Linux/glibc.
23275         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23276         on glibc systems.
23278 2017-05-18  Bruno Haible  <bruno@clisp.org>
23280         localename: Include necessary header files on Cygwin.
23281         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23282         where NL_LOCALE_NAME is defined.
23284 2017-05-18  Bruno Haible  <bruno@clisp.org>
23286         gettext: Update macros from gettext git.
23287         * m4/intldir.m4: Require Autoconf >= 2.60.
23288         * m4/progtest.m4: Fix typos in copyright notice.
23290 2017-05-18  Bruno Haible  <bruno@clisp.org>
23292         copy-file tests: Fix link error (regression from 2017-05-01).
23293         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23294         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23295         $(LIB_CLOCK_GETTIME).
23297 2017-05-18  Bruno Haible  <bruno@clisp.org>
23299         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23300         (regression from 2017-02-13).
23301         * lib/unicase/special-casing.in.h: Renamed from
23302         lib/unicase/special-casing.h.
23303         * modules/unicase/special-casing (Files): Add
23304         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23305         (Makefile.am): Add rule for generating unicase/special-casing.h.
23306         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23307         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23308         not "special-casing.h".
23309         * lib/unicase/u*.c: Likewise.
23311 2017-05-17  Bruno Haible  <bruno@clisp.org>
23313         README: Don't ask people to read a TeXinfo file.
23314         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23315         * README: Tell people how to read the HTML formatted manual.
23317 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23319         parse-datetime: Fix memleak
23320         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23321         localtime_rz() failure.
23323 2017-05-16  Bruno Haible  <bruno@clisp.org>
23325         javacomp: Fix handle leak.
23326         Found by Coverity.
23327         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23329 2017-05-16  Bruno Haible  <bruno@clisp.org>
23331         relocate: Make it easier to reclaim allocated memory.
23332         * lib/relocatable.h (relocate2): New declaration/macro.
23333         * lib/relocatable.c (relocate2): New function.
23334         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23335         relocate2 function.
23336         * lib/localcharset.c (relocate2): Define fallback.
23337         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23338         allocated memory.
23339         * lib/javaversion.c (relocate2): Define fallback.
23340         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23341         allocated memory.
23343 2017-05-16  Bruno Haible  <bruno@clisp.org>
23345         relocate: Simplify EMX specific code.
23346         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23347         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23349 2017-05-16  Bruno Haible  <bruno@clisp.org>
23351         sigpipe tests: Fix file list.
23352         * modules/sigpipe-tests (Files): Add tests/macros.h.
23354 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23356         manywarnings: update for GCC 7
23357         * build-aux/gcc-warning.spec:
23358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23359         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23360         requires a non-comment fallthrough attribute.  This is a bit
23361         cleaner than the comment versions.
23362         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23363         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23364         Use it whenever one switch case falls through into the next.
23365         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23366         Use FALLTHROUGH macro.
23368 2017-05-15  Bruno Haible  <bruno@clisp.org>
23370         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23371         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23372         @ALLOCA@, not @LTALLOCA@.
23374 2017-05-15  Bruno Haible  <bruno@clisp.org>
23376         sys_select: Avoid "was expanded before it was required" warning.
23377         * modules/sys_select (configure.ac): Require, not invoke,
23378         gl_HEADER_SYS_SELECT.
23380 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23382         gnulib-tool: improve GNU Make debugging
23383         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23384         Report autoconf diagnostics when it fails, in the output makefile.
23386 2017-05-14  Bruno Haible  <bruno@clisp.org>
23388         stat-time tests: Improve comment.
23389         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23391 2017-05-14  Bruno Haible  <bruno@clisp.org>
23393         same-inode: Adapt for windows-stat-inodes.
23394         * lib/same-inode.h: Include <sys/types.h>.
23395         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23396         * modules/same-inode (Depends-on): Add sys_types.
23398 2017-05-14  Bruno Haible  <bruno@clisp.org>
23400         windows-stat-inodes: New module.
23401         * m4/windows-stat-inodes.m4: New file.
23402         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23403         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23404         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23405         (_GL_WINDOWS_STAT_INODES): New macro.
23406         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23407         (GetFileInformationByHandleExFunc): New variable.
23408         (initialize): Initialize it.
23409         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23410         st_ino appropriately.
23411         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23412         a fallback, because it does not provide st_dev and st_ino values.
23413         * modules/fstat (Depends-on): Add 'verify'.
23414         * modules/windows-stat-inodes: New file.
23415         * doc/windows-stat-inodes.texi: New file.
23416         * doc/gnulib.texi: Include it.
23417         * doc/posix-headers/sys_stat.texi: Mention the new module.
23419 2017-05-14  Bruno Haible  <bruno@clisp.org>
23421         stat-time tests: Workaround for native Windows.
23422         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23423         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23424         New variables.
23425         (initialize_filenames): New function.
23426         (main): Invoke it.
23427         (cleanup, prepare_test): Update.
23429 2017-05-14  Bruno Haible  <bruno@clisp.org>
23431         stat-time: Adapt for windows-stat-timespec.
23432         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23433         entire st_ctim field.
23435 2017-05-13  Jim Meyering  <meyering@fb.com>
23437         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23438         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23439         file that uses the assume macro, claiming that verify.h is unused.
23441 2017-05-13  Bruno Haible  <bruno@clisp.org>
23443         Use symbolic values for _WIN32_WINNT.
23444         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23445         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23447 2017-05-13  Bruno Haible  <bruno@clisp.org>
23449         year2038: New module.
23450         * m4/year2038.m4: New file.
23451         * modules/year2038: New file.
23452         * doc/year2038.texi: New file.
23453         * doc/gnulib.texi: Include it.
23455 2017-05-13  Bruno Haible  <bruno@clisp.org>
23457         largefile: Simplify.
23458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23459         of _GL_WINDOWS_64_BIT_ST_SIZE.
23461 2017-05-13  Bruno Haible  <bruno@clisp.org>
23463         largefile: Improve and document.
23464         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23465         the mingw headers already define 'stat' appropriately.
23466         * modules/largefile (Description): Clarify.
23467         * doc/largefile.texi: New file.
23468         * doc/gnulib.texi: Include it.
23469         * doc/posix-headers/sys_types.texi: Update.
23471 2017-05-13  Bruno Haible  <bruno@clisp.org>
23473         truncate: New module.
23474         * lib/unistd.in.h (truncate): New declaration.
23475         * lib/truncate.c: New file.
23476         * m4/truncate.m4: New file.
23477         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23478         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23479         REPLACE_TRUNCATE.
23480         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23481         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23482         * modules/truncate: New file.
23483         * tests/test-unistd-c++.cc (truncate): Test signature.
23484         * doc/posix-functions/truncate.texi: Mention the new module.
23486         * tests/test-truncate.c: New file.
23487         * modules/truncate-tests: New file.
23489 2017-05-13  Bruno Haible  <bruno@clisp.org>
23491         windows-stat-timespec: New module.
23492         * modules/windows-stat-timespec: New file.
23493         * m4/windows-stat-timespec.m4: New file.
23494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23495         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23496         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23497         fields st_atim, st_mtim, st_ctim.
23498         (st_atime, st_mtime, st_ctime): Define as macros.
23499         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23500         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23501         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23502         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23503         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23504         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23505         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23506         FILETIME to 'struct timespec', not 'time_t'.
23507         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23508         FILETIME to 'struct timespec', not 'time_t'.
23509         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23510         _GL_WINDOWS_STAT_TIMESPEC.
23511         * doc/windows-stat-timespec.texi: New file.
23512         * doc/gnulib.texi: Include it.
23514 2017-05-13  Bruno Haible  <bruno@clisp.org>
23516         windows-stat-override: New module.
23517         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23518         definition. Define GNULIB_defined_struct_stat.
23519         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23520         link error if this symbol is used and the corresponding module is not
23521         in use.
23522         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23523         GNULIB_OVERRIDES_STRUCT_STAT.
23524         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23525         GNULIB_OVERRIDES_STRUCT_STAT.
23526         * modules/sys_stat (Makefile.am): Substitute
23527         GNULIB_OVERRIDES_STRUCT_STAT.
23528         * modules/windows-stat-override: New file.
23530 2017-05-13  Bruno Haible  <bruno@clisp.org>
23532         fstat: Fix module dependency conditions.
23533         * modules/fstat (Depends-on): Fix typo.
23535 2017-05-13  Bruno Haible  <bruno@clisp.org>
23537         stat, fstat: Complete removal of old native Windows code.
23538         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23539         * lib/fstat.c: Likewise.
23540         * lib/stat-w32.c: Likewise.
23542 2017-05-13  Bruno Haible  <bruno@clisp.org>
23544         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23545         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23547 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23549         getopt-posix: port to mingw
23550         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23551         Problem reported by Daniel P. Berrage in:
23552         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23554 2017-05-11  Bruno Haible  <bruno@clisp.org>
23556         gettimeofday: Increase precision on mingw.
23557         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23558         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23559         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23560         GetSystemTimePreciseAsFileTime based implementation always.
23561         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23562         mingw.
23564 2017-05-11  Bruno Haible  <bruno@clisp.org>
23566         poll: Fix confusion between SOCKETs and FDs on native Windows.
23567         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23568         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23570 2017-05-11  Bruno Haible  <bruno@clisp.org>
23572         doc: Clarify doc about socket functions on native Windows.
23573         This reworks doc that was added on 2008-09-29.
23574         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23575         clearer wording.
23576         * doc/posix-functions/accept.texi: Use clearer wording.
23577         * doc/posix-functions/bind.texi: Likewise.
23578         * doc/posix-functions/connect.texi: Likewise.
23579         * doc/posix-functions/getpeername.texi: Likewise.
23580         * doc/posix-functions/getsockname.texi: Likewise.
23581         * doc/posix-functions/getsockopt.texi: Likewise.
23582         * doc/posix-functions/ioctl.texi: Likewise.
23583         * doc/posix-functions/listen.texi: Likewise.
23584         * doc/posix-functions/recv.texi: Likewise.
23585         * doc/posix-functions/recvfrom.texi: Likewise.
23586         * doc/posix-functions/send.texi: Likewise.
23587         * doc/posix-functions/sendto.texi: Likewise.
23588         * doc/posix-functions/setsockopt.texi: Likewise.
23589         * doc/posix-functions/shutdown.texi: Likewise.
23590         * doc/posix-functions/socket.texi: Likewise.
23592 2017-05-10  Bruno Haible  <bruno@clisp.org>
23594         poll: Fix link error on native Windows.
23595         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23597 2017-05-10  Bruno Haible  <bruno@clisp.org>
23599         time: Fix missing initialization of HAVE_TIMEZONE_T.
23600         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23601         here...
23602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23603         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23604         gl_HEADER_SYS_TIME_H_DEFAULTS.
23605         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23606         (configure.ac): Remove useless quoting.
23608 2017-05-10  Bruno Haible  <bruno@clisp.org>
23610         Implement a way to opt out from MSVC support, part 2.
23611         * modules/msvc-inval (Include): Document recommended idiom.
23612         * modules/msvc-nothrow (Include): Likewise.
23614         Implement a way to opt out from MSVC support.
23615         This is useful for Emacs.
23616         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23617         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23618         * lib/error.c: Likewise.
23619         * lib/fcntl.c: Likewise.
23620         * lib/flock.c: Likewise.
23621         * lib/fstat.c: Likewise.
23622         * lib/fsync.c: Likewise.
23623         * lib/ioctl.c: Likewise.
23624         * lib/isapipe.c: Likewise.
23625         * lib/lseek.c: Likewise.
23626         * lib/nonblocking.c: Likewise.
23627         * lib/poll.c: Likewise.
23628         * lib/select.c: Likewise.
23629         * lib/sockets.h: Likewise.
23630         * lib/sockets.c: Likewise.
23631         * lib/stdio-read.c: Likewise.
23632         * lib/stdio-write.c: Likewise.
23633         * lib/utimens.c: Likewise.
23634         * lib/w32sock.h: Likewise.
23635         * lib/w32spawn.h: Likewise.
23636         * tests/test-cloexec.c: Likewise.
23637         * tests/test-dup-safer.c: Likewise.
23638         * tests/test-dup2.c: Likewise.
23639         * tests/test-dup3.c: Likewise.
23640         * tests/test-fcntl.c: Likewise.
23641         * tests/test-pipe.c: Likewise.
23642         * tests/test-pipe2.c: Likewise.
23643         * lib/ftruncate.c: Likewise.
23644         (chsize_nothrow): Renamed from chsize.
23645         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23646         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23647         * lib/close.c: Likewise.
23648         * lib/dup.c: Likewise.
23649         * lib/fclose.c: Likewise.
23650         * lib/raise.c: Likewise.
23651         * tests/test-fgetc.c: Likewise.
23652         * tests/test-fputc.c: Likewise.
23653         * tests/test-fread.c: Likewise.
23654         * tests/test-fwrite.c: Likewise.
23655         * lib/getdtablesize.c: Likewise.
23656         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23657         * lib/isatty.c: Don't include msvc-inval.h if
23658         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23659         Include <io.h> as an alternative to msvc-nothrow.h.
23660         * lib/read.c: Likewise.
23661         * lib/write.c: Likewise.
23662         * lib/dup2.c: Likewise.
23663         (dup2_nothrow): New function.
23664         (ms_windows_dup2): Use it.
23665         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23666         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23667         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23668         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23669         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23670         * m4/read.m4 (gl_FUNC_READ): Likewise.
23671         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23672         * doc/windows-without-msvc.texi: New file.
23673         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23674         section.
23676 2017-05-10  Bruno Haible  <bruno@clisp.org>
23678         wait-process: Adjust native Windows support.
23679         * lib/wait-process.c: Use the usual condition for recognizing a native
23680         Windows platform.
23682 2017-05-10  Bruno Haible  <bruno@clisp.org>
23684         doc: New chapter "Native Windows Support".
23685         * doc/gnulib.texi (Native Windows Support): New chapter.
23686         * doc/windows-libtool.texi: Small wording changes.
23687         * doc/windows-sockets.texi: Small wording and formatting changes.
23689 2017-05-10  Bruno Haible  <bruno@clisp.org>
23691         doc: Move section "Library version handling".
23692         * doc/gnulib.texi: Move section "Library version handling"
23693         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23695 2017-05-10  Bruno Haible  <bruno@clisp.org>
23697         doc: Move section "Running self-tests under valgrind".
23698         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23699         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23701 2017-05-10  Bruno Haible  <bruno@clisp.org>
23703         doc: New chapter "Build Infrastructure Modules".
23704         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23706 2017-05-10  Bruno Haible  <bruno@clisp.org>
23708         Prepare for reordering sections in the manual.
23709         * doc/gnulib.texi: Move several sections to separate files. Include
23710         these files.
23711         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23712         * doc/obsolete.texi: Likewise.
23713         * doc/extra-tests.texi: Likewise.
23714         * doc/transversal.texi: Likewise.
23715         * doc/namespace.texi: Likewise.
23716         * doc/check-version.texi: Likewise.
23717         * doc/windows-sockets.texi: Likewise.
23718         * doc/windows-libtool.texi: Likewise.
23719         * doc/licenses-texi.texi: Likewise.
23720         * doc/build-automation.texi: Likewise.
23721         * doc/c-locale.texi: Likewise.
23723 2017-05-10  Bruno Haible  <bruno@clisp.org>
23725         Fix instructions how to update manual on www.gnu.org.
23726         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23728 2017-05-09  Bruno Haible  <bruno@clisp.org>
23730         tzset: Expand comment about TZ problem on native Windows.
23731         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23732         Paul Eggert.
23733         * lib/ctime.c (rpl_ctime): Likewise.
23734         * lib/localtime.c (rpl_localtime): Likewise.
23735         * lib/mktime.c (mktime): Likewise.
23736         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23737         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23739 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23741         intprops: don’t depend on ‘verify’
23742         Problem reported by Ævar Arnfjörð Bjarmason in:
23743         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23744         * lib/intprops.h: Do not include verify.h, and move compile-time
23745         checks from here ...
23746         * tests/test-intprops.c (main): ... to here, if they’re not here
23747         already.  Check widths of other standard integer types.
23748         * modules/intprops (Depends-on): Remove ‘verify’.
23750 2017-05-07  Bruno Haible  <bruno@clisp.org>
23752         utimens: On native Windows, support 100ns resolution also if fd < 0.
23753         * lib/utime.in.h: Include <time.h>.
23754         (_gl_utimens_windows): New declaration.
23755         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23756         (utime): Invoke it.
23757         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23758         instead of utime.
23759         * modules/utime (Depends-on): Add 'time'.
23761 2017-05-07  Bruno Haible  <bruno@clisp.org>
23763         utimens: Improve error code on native Windows.
23764         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23765         error code EACCES, not EINVAL.
23767 2017-05-07  Bruno Haible  <bruno@clisp.org>
23769         utime: Handle more Windows error codes.
23770         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23771         Based on explanations by Billy O'Neal.
23773 2017-05-05  Bruno Haible  <bruno@clisp.org>
23775         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23776         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23777         union.
23778         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23779         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23780         value of cipher->IV.
23782 2017-05-05  Bruno Haible  <bruno@clisp.org>
23784         wctype-h-c++-tests: Update.
23785         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23787 2017-05-05  Bruno Haible  <bruno@clisp.org>
23789         wchar-c++-tests: Update.
23790         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23792 2017-05-05  Bruno Haible  <bruno@clisp.org>
23794         utime-h-c++-tests: New module.
23795         * tests/test-utime-h-c++.cc: New file.
23796         (utime): Declare, missing since 2017-04-30.
23797         * modules/utime-h-c++-tests: New file.
23799 2017-05-05  Bruno Haible  <bruno@clisp.org>
23801         unistd-c++-tests: Update.
23802         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23803         (read): Declare, missing since 2011-04-15.
23804         (sethostname): Declare, missing since 2011-12-03.
23806 2017-05-05  Bruno Haible  <bruno@clisp.org>
23808         time-c++-tests: Update.
23809         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23810         (localtime, gmtime): Declare, missing since 2017-04-30.
23811         (ctime): Declare, missing since 2017-04-30.
23812         (strftime): Declare, missing since 2017-04-30.
23813         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23814         2015-07-24.
23816 2017-05-05  Bruno Haible  <bruno@clisp.org>
23818         sys_resource-c++-tests: New module.
23819         * tests/test-sys_resource-c++.cc: New file.
23820         (getrusage): Declare, missing since 2012-04-13.
23821         * modules/sys_resource-c++-tests: New file.
23823 2017-05-05  Bruno Haible  <bruno@clisp.org>
23825         strings-c++-tests: New module.
23826         * tests/test-strings-c++.cc: New file.
23827         (ffs): Declare, missing since 2011-07-12.
23828         * modules/strings-c++-tests: New file.
23830 2017-05-05  Bruno Haible  <bruno@clisp.org>
23832         string-c++-tests: Update.
23833         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23834         (ffsll): Declare, missing since 2011-07-15.
23836 2017-05-05  Bruno Haible  <bruno@clisp.org>
23838         stdlib-c++-tests: Update.
23839         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23840         2011-10-18.
23841         (ptsname_r): Declare, missing since 2011-11-07.
23842         (qsort_r): Declare, missing since 2014-08-29.
23843         (random, srandom, initstate, setstate): Declare, missing since
23844         2012-01-14.
23845         (secure_getenv): Declare, missing since 2013-02-05.
23847 2017-05-05  Bruno Haible  <bruno@clisp.org>
23849         stdio-c++-tests: Update.
23850         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23852 2017-05-05  Bruno Haible  <bruno@clisp.org>
23854         signal-h-c++-tests: Update.
23855         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23857 2017-05-05  Bruno Haible  <bruno@clisp.org>
23859         math-c++-tests: Update.
23860         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23861         (fma): Declare, missing since 2011-10-17.
23862         (fmal): Declare, missing since 2011-10-17.
23864 2017-05-05  Bruno Haible  <bruno@clisp.org>
23866         locale-c++-tests: Update.
23867         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23868         2012-03-25.
23870 2017-05-05  Bruno Haible  <bruno@clisp.org>
23872         inttypes-c++-tests: New module.
23873         * tests/test-inttypes-c++.cc: New file.
23874         (strtoimax): Declare, missing since 2012-01-05.
23875         (strtoumax): Declare, missing since 2012-01-05.
23876         * modules/inttypes-c++-tests: New file.
23878 2017-05-05  Bruno Haible  <bruno@clisp.org>
23880         dirent-c++-tests: Update.
23881         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23882         (rewinddir): Declare, missing since 2011-09-13.
23883         (dirfd): Declare, missing since 2010-03-08.
23885 2017-05-04  Bruno Haible  <bruno@clisp.org>
23887         argp: Fix mistake in 2017-04-23 commit.
23888         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23889         assume that strerror_r returns 'int', not 'char *'.
23891 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23893         argp: Fix typo.
23894         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23896 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23898         utimens: port to Emacs + MS-Windows
23899         Skip the new MS-Windows-specific code if Emacs.
23900         * lib/utimens.c [EMACS_CONFIGUATION]:
23901         Avoid new MS-Windows-specific code.
23902         (USE_SETFILETIME): New macro.
23903         (fdutimens): Use it.
23905 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23907         tzset: update doc for TZ problems on MS-Windows
23908         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23909         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23910         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23911         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23912         * doc/posix-functions/wcsftime.texi:
23913         Mention some issues with TZ under MS-Windows.
23915 2017-05-01  Bruno Haible  <bruno@clisp.org>
23917         copy-file: Fix build error on mingw.
23918         * modules/copy-file (Depends-on): Add 'close'.
23920 2017-05-01  Bruno Haible  <bruno@clisp.org>
23922         tzset: Work around TZ problem on native Windows.
23923         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23924         Windows, set REPLACE_TZSET to 1.
23925         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23926         invoke '_tzset' instead of 'tzset'.
23927         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23929         * modules/time_rz (Depends-on): Add tzset.
23930         * lib/time_rz.c (tzset): Remove fallback definition.
23931         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23933 2017-05-01  Bruno Haible  <bruno@clisp.org>
23935         mktime: Fix dependencies.
23936         * modules/mktime (Depends-on): Add 'time'.
23938 2017-05-01  Bruno Haible  <bruno@clisp.org>
23940         New module 'localtime-buffer', split off from module 'gettimeofday'.
23941         * lib/localtime-buffer.h: New file.
23942         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23943         * lib/time.in.h (tzset): New declaration.
23944         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23945         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23946         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23947         moved to lib/localtime-buffer.c or lib/tzset.c.
23948         * m4/localtime-buffer.m4: New file.
23949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23950         HAVE_TZSET, REPLACE_TZSET.
23951         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23952         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23953         gl_LOCALTIME_BUFFER_NEEDED.
23954         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23955         since 2007-01-18.
23956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23957         tzset.
23958         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23959         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23960         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23961         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23962         * modules/localtime-buffer: New file.
23963         * modules/time (Depends-on): Remove 'gettimeofday'.
23964         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23965         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23966         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23967         (Files): Add lib/tzset.c.
23968         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23969         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23970         gl_TIME_MODULE_INDICATOR.
23971         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23973 2017-05-01  Bruno Haible  <bruno@clisp.org>
23975         copy-file: Preserve sub-second time stamps.
23976         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23977         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23978         transport the time stamps from the original file to the destination
23979         file.
23980         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23981         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23982         utime-h.
23984 2017-05-01  Bruno Haible  <bruno@clisp.org>
23986         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23987         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23988         also on MSVC.
23989         Reported by Eli Zaretskii <eliz@gnu.org>.
23991 2017-05-01  Bruno Haible  <bruno@clisp.org>
23993         wchar: Fix compilation error with the original mingw.org mingw.
23994         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23995         <stddef.h> instead.
23996         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23997         gl_WCTYPE_H.
23998         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23999         gl_TYPE_WINT_T_PREREQ instead.
24000         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24001         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24002         Reported by Eli Zaretskii <eliz@gnu.org>.
24004 2017-04-30  Bruno Haible  <bruno@clisp.org>
24006         utimecmp: Add support for native Windows.
24007         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24009 2017-04-30  Bruno Haible  <bruno@clisp.org>
24011         utimens: Add support for native Windows.
24012         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24013         (fdutimens): Provide a native Windows implementation, like utime.c with
24014         added tv_nsec support.
24015         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24016         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24018 2017-04-30  Bruno Haible  <bruno@clisp.org>
24020         wcsftime: New module.
24021         * lib/wchar.in.h (wcsftime): New declaration.
24022         * lib/wcsftime.c: New file.
24023         * m4/wcsftime.m4: New file.
24024         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24025         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24026         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24028         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24029         * modules/wcsftime: New file.
24030         * doc/posix-functions/wcsftime.texi: Mention the new module.
24032 2017-04-30  Bruno Haible  <bruno@clisp.org>
24034         strftime-fixes: New module.
24035         * lib/time.in.h (strftime): New declaration.
24036         * lib/strftime-fixes.c: New file.
24037         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24038         (gl_FUNC_STRFTIME): Remove macro.
24039         * m4/strftime-fixes.m4: New file.
24040         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24041         REPLACE_STRFTIME.
24042         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24043         REPLACE_STRFTIME.
24044         * modules/strftime-fixes: New file.
24045         * doc/posix-functions/strftime.texi: Mention the new module.
24047 2017-04-30  Bruno Haible  <bruno@clisp.org>
24049         mktime: Work around TZ problem on native Windows.
24050         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24051         from the native Windows workaround.
24052         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24053         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24054         'guessing no'.
24055         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24056         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24057         NEED_MKTIME_WINDOWS.
24058         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24059         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24060         NEED_MKTIME_INTERNAL.
24061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24062         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24063         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24064         not REPLACE_MKTIME.
24065         * doc/posix-functions/mktime.texi: Mention the native Windows
24066         workaround.
24068 2017-04-30  Bruno Haible  <bruno@clisp.org>
24070         localtime: New module.
24071         * lib/time.in.h (localtime): Declare also if requested by module
24072         'localtime'.
24073         * lib/localtime.c: New file.
24074         * m4/localtime.m4: New file.
24075         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24076         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24077         * modules/localtime: New file.
24078         * doc/posix-functions/localtime.texi: Mention the new module.
24080 2017-04-30  Bruno Haible  <bruno@clisp.org>
24082         ctime: New module.
24083         * lib/time.in.h (ctime): New declaration.
24084         * lib/ctime.c: New file.
24085         * m4/ctime.m4: New file.
24086         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24087         REPLACE_CTIME.
24088         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24089         * modules/ctime: New file.
24090         * doc/posix-functions/ctime.texi: Mention the new module.
24092 2017-04-30  Bruno Haible  <bruno@clisp.org>
24094         gettimeofday: Provide higher resolution on native Windows.
24095         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24096         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24097         (initialize): Initialize it.
24098         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24099         'struct timeval'. Don't use _ftime().
24100         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24101         <sys/timeb.h> and _ftime.
24103 2017-04-30  Bruno Haible  <bruno@clisp.org>
24105         Document the problem with the Cygwin environment variable TZ.
24106         * doc/posix-functions/tzset.texi: Add note about TZ.
24107         * doc/posix-functions/ctime.texi: Likewise.
24108         * doc/posix-functions/localtime.texi: Likewise.
24109         * doc/posix-functions/mktime.texi: Likewise.
24110         * doc/posix-functions/strftime.texi: Likewise.
24111         * doc/posix-functions/wcsftime.texi: Likewise.
24112         * doc/pastposix-functions/ftime.texi: Likewise.
24114 2017-04-30  Bruno Haible  <bruno@clisp.org>
24116         utime-tests: New module.
24117         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24118         * tests/test-utimens-common.h: Include <sys/stat.h>.
24119         * modules/utime-tests: New file.
24121 2017-04-29  Bruno Haible  <bruno@clisp.org>
24123         utime: New module.
24124         * lib/utime.in.h: Add comment for snippets.
24125         (utime): New declaration.
24126         * lib/utime.c: New file.
24127         * m4/utime.m4: New file.
24128         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24129         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24130         REPLACE_UTIME.
24131         * modules/utime-h (Depends-on): Add snippets.
24132         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24133         Insert snippets.
24134         * modules/utime: New file.
24135         * doc/posix-functions/utime.texi: Mention the new module.
24137 2017-04-29  Bruno Haible  <bruno@clisp.org>
24139         utime-h: Modernize handling of 'struct utimbuf'.
24140         * lib/utime.in.h: Include next <utime.h> if it exists.
24141         (utimbuf): Define to _utimbuf on native Windows.
24142         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24143         Set UTIME_H on native Windows.
24144         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24145         * modules/utime-h (Depends-on): Add include_next.
24146         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24147         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24149         * lib/utimens.c (utimbuf): Remove fallback definition.
24150         * m4/utimens.m4 (gl_UTIMENS): Don't require
24151         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24152         * m4/utimbuf.m4: Remove file.
24153         * modules/utimens (Files): Remove m4/utimbuf.m4.
24155 2017-04-29  Bruno Haible  <bruno@clisp.org>
24157         Make use of module 'utime-h'.
24158         * modules/copy-file (Depends-on): Add utime-h.
24159         * lib/copy-file.c: Assume that <utime.h> exists.
24160         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24162         * modules/utimens (Depends-on): Add utime-h.
24163         * lib/utimens.c: Assume that <utime.h> exists.
24165 2017-04-29  Bruno Haible  <bruno@clisp.org>
24167         utime-h: New module.
24168         * m4/utime_h.m4: New file.
24169         * lib/utime.in.h: New file.
24170         * modules/utime-h: New file.
24171         * doc/posix-headers/utime.texi: Mention the new module.
24173         * tests/test-utime-h.c: New file.
24174         * modules/utime-h-tests: New file.
24176 2017-04-30  Bruno Haible  <bruno@clisp.org>
24178         Fix a few typos.
24179         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24180         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24181         * doc/posix-functions/fstat.texi: Fix a plural typo.
24182         * doc/posix-functions/stat.texi: Likewise.
24183         * m4/include_next.m4: Update comments.
24185 2017-04-29  Bruno Haible  <bruno@clisp.org>
24187         error: Fix mistake in 2017-04-23 commit.
24188         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24189         assume that strerror_r returns 'int', not 'char *'.
24191 2017-04-29  Bruno Haible  <bruno@clisp.org>
24193         stat: Fix time_t values and other problems on native Windows platforms.
24194         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24195         implementations of stat().
24196         * lib/stat.c: Include filename.h instead of dosname.h. Include
24197         malloca.h, stat-w32.h.
24198         (is_unc_root): New function.
24199         (rpl_stat): New implementation for native Windows. Remove
24200         REPLACE_FUNC_STAT_DIR code.
24201         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24202         Don't define REPLACE_FUNC_STAT_DIR.
24203         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24204         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24205         (Depends-on): Remove dosname. Add filename, malloca.
24206         (configure.ac): Also compile lib/stat-w32.c.
24208 2017-04-29  Bruno Haible  <bruno@clisp.org>
24210         fstat: Fix time_t values on native Windows platforms.
24211         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24212         * lib/stat-w32.h: New file.
24213         * lib/stat-w32.c: New file.
24214         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24215         stat-w32.h instead.
24216         (fstat_nothrow): Remove function.
24217         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24218         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24219         always.
24220         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24221         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24222         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24223         (configure.ac): Also compile lib/stat-w32.c.
24225 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24227         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24228         Problem reported by Assaf Gordon and Gavin Smith in:
24229         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24230         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24231         #define this, too.
24233 2017-04-29  Bruno Haible  <bruno@clisp.org>
24235         strerror_r-posix: Fixes for MSVC 14.
24236         * lib/strerror_r.c: Include <stdarg.h>.
24237         (strerror_r): Provide error messages for errno values 100...140.
24238         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24240 2017-04-28  Bruno Haible  <bruno@clisp.org>
24242         noreturn: New module.
24243         * lib/noreturn.h: New file.
24244         * modules/noreturn: New file.
24245         * tests/test-noreturn.c: New file.
24246         * modules/noreturn-tests: New file.
24247         * tests/test-noreturn-c++.cc: New file.
24248         * modules/noreturn-c++-tests: New file.
24250 2017-04-27  Bruno Haible  <bruno@clisp.org>
24252         wctype-h: Fix compilation error with the original mingw.org mingw.
24253         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24254         HAVE_CRTDEFS_H.
24255         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24256         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24257         <stddef.h> instead.
24258         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24260 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24262         nap.h: Fix compilation on non windows platforms
24263         * tests/nap.h: Move misplaced endif.
24265 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24266         and Paul Eggert  <eggert@cs.ucla.edu>
24268         time_rz: fix heap buffer overflow vulnerability
24269         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24270         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24271         whether there is enough buffer space available, thus avoiding
24272         the problematic promotion of signed to unsigned causing an invalid
24273         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24274         the start of the buffer.
24275         * tests/test-parse-datetime.c (main): Add a test case written by
24276         Paul Eggert, which overwrites enough of the heap so that
24277         standard glibc will fail with "free(): invalid pointer"
24278         without the patch applied.
24280 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24282         xalloc: add missing integer overflow check
24283         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24284         overflow when P is null.
24286 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24288         parse-datetime: make it standalone
24289         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24290         (_GL_ATTRIBUTE_FORMAT): New macro.
24291         These are needed to get './gnulib-tool --test parse-datetime' to work.
24293 2017-04-23  Bruno Haible  <bruno@clisp.org>
24295         nap.h: Port to native Windows.
24296         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24297         use nap_fd instead. On native Windows, close and reopen nap_fd.
24298         (nap_works): Don't compare the ctimes, because on native Windows, these
24299         are the creation times.
24300         (nap): Update.
24302 2017-04-23  Bruno Haible  <bruno@clisp.org>
24304         nap.h: Fix logic.
24305         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24307 2017-04-23  Bruno Haible  <bruno@clisp.org>
24309         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24310         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24311         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24312         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24313         * lib/argp-help.c (__argp_failure): Likewise.
24315 2017-04-23  Bruno Haible  <bruno@clisp.org>
24317         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24318         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24319         * lib/strerror_r.c: Likewise.
24321 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24323         Target a C99 subset, not a C89 subset
24324         For many years Gnulib has targeted C89 and has resisted using C99
24325         features, as some Gnulib-using programs still wanted to target
24326         C89.  As this no longer seems to be the case, relax the porting
24327         requirements to allow some C99 features.  This is merely a change
24328         to the documentation, to give other Gnulib developers a chance to
24329         weigh in on the topic.
24330         * doc/extern-inline.texi (extern inline):
24331         * doc/gnulib-readme.texi (Portability guidelines):
24332         * doc/gnulib-tool.texi (Initial import):
24333         * doc/gnulib.texi (Header files):
24334         Modernize to talk about C99 and C11 instead of C89 and C99.
24335         * doc/gnulib-readme.texi (Portability guidelines):
24336         Now a section, not merely a subsection, so that it
24337         can be split up.  Modernize a bit.
24338         (C language versions, C99 features assumed)
24339         (C99 features avoided):
24340         New sections.
24342 2017-04-23  Bruno Haible  <bruno@clisp.org>
24344         doc: New section "Modules that modify the way other modules work".
24345         * doc/gnulib.texi (Modules that modify the way other modules work): New
24346         section.
24348 2017-04-23  Bruno Haible  <bruno@clisp.org>
24350         stat-time: Update comments.
24351         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24352         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24353         Windows.
24355 2017-04-01  Bruno Haible  <bruno@clisp.org>
24357         glob: Fix more memory leaks.
24358         * lib/glob.c (glob): Free allocated memory before returning.
24359         Reported by Coverity via Tim Rühsen.
24361 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24363         poll: improve fast check for out-of-range NFD
24364         * lib/poll.c: Do not include intprops.h.
24365         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24366         * modules/poll (Depends-on): Remove intprops.
24368         ftoastr: cite a newer paper
24369         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24370         instead of Loitsch 2010.
24372 2017-04-22  Bruno Haible  <bruno@clisp.org>
24374         poll: Enable argument check also in the Windows implementation.
24375         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24376         Reported by Paul Eggert.
24378 2017-04-22  Bruno Haible  <bruno@clisp.org>
24380         getlogin_r: Work around bug in Mac OS X 10.12.
24381         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24382         bug.
24383         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24384         given size minus 1, call getlogin_r a second time, on a larger buffer.
24385         * modules/getlogin_r (Depends-on): Add malloca.
24386         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24388 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24390         parse-datetime: fix %z and prefer signed int
24391         %z problem reported by Pádraig Brady in:
24392         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24393         While fixing it, I decided to prefer signed ints to size_t, as
24394         they are less error-prone (e.g., ubsan catches overflow).
24395         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24396         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24397         counts, since signed integers make for better debugging.
24398         (date): Don’t assume %z works in printf formats.
24399         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24400         sizes of buffers known to be small, e.g., because we’re using snprintf.
24401         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24403 2017-04-22  Bruno Haible  <bruno@clisp.org>
24405         *printf: Work around rounding bug on Mac OS X.
24406         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24407         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24408         Mac OS X and FreeBSD.
24409         * doc/glibc-functions/*printf.texi: Likewise.
24411 2017-04-22  Bruno Haible  <bruno@clisp.org>
24413         vasnprintf tests: Avoid warnings.
24414         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24415         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24416         test.
24418 2017-04-22  Bruno Haible  <bruno@clisp.org>
24420         sys_file tests: Avoid warning.
24421         * tests/test-sys_file.c (main): Add a default clause to the switch
24422         statement.
24424 2017-04-22  Bruno Haible  <bruno@clisp.org>
24426         sethostname: Update doc.
24427         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24428         Mac OS X.
24430 2017-04-22  Bruno Haible  <bruno@clisp.org>
24432         quotearg tests: Avoid warnings.
24433         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24434         false.
24436 2017-04-22  Bruno Haible  <bruno@clisp.org>
24438         poll: Enable argument check.
24439         * lib/poll.c: Include intprops.h.
24440         (poll): Check value of nfd correctly.
24441         * modules/poll (Depends-on): Add intprops.
24443 2017-04-22  Bruno Haible  <bruno@clisp.org>
24445         get-rusage-data: Avoid warnings on Mac OS X.
24446         * lib/get-rusage-data.c: On Mac OS X, don't define
24447         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24448         (get_rusage_data) [Mac OS X]: Just return 0.
24450 2017-04-22  Bruno Haible  <bruno@clisp.org>
24452         xbinary-io: Fix build error.
24453         * modules/xbinary-io (Depends-on): Add gettext-h.
24454         * lib/xbinary-io.c: Include gettext.h and define _().
24455         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24456         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24458 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24460         parse-datetime: overflow and debug cleanups
24461         This long patch was triggered by this bug report from Ruediger Meier:
24462         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24463         I fixed the bug he noted, then found some others nearby, and then
24464         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24465         up some of the code to follow GNU standards while I was at it.
24466         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24467         use c_isdigit.
24468         (EPOCH_YEAR): Remove; unused.
24469         (TM_YEAR_BASE): Now an enum rather than a macro.
24470         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24471         time zone offset, since timezones now are in terms of seconds and
24472         not minutes.
24473         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24474         appropriate.  Verify that intmax_t is wide enough.
24475         (time_overflow, time_zone_str): New functions, used to deal
24476         more reliably with overflow.
24477         (dbg_printf): Add printf attribute, to help catch integer width errors.
24478         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24479         (%union, to_hour, yylex, parse_datetime2):
24480         Use intmax_t instead of long int and/or long_time_t.
24481         All uses changed.
24482         (DBGBUFSIZE): Move earlier.
24483         (relative_time, set_hhmmss, parser_control):
24484         Just use int for nanoseconds and for time zones; that’s wide enough.
24485         (parser_control): Use bool for members like year_seen that can
24486         be booleans instead of counters.  All uses changed.
24487         Remove debug_default_input_timezone; no longer needed.
24488         All uses removed.
24489         (apply_relative_time): Return a bool overflow flag.
24490         All uses changed to check for overflow.
24491         (apply_relative_time, zone, date, relunit, relunit_snumber)
24492         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24493         Check for integer overflow portably.
24494         (str_days): Use just int for N, as it’s wide enough.
24495         Prefer 2D char arrays to arrays of char * when it looks like
24496         2D is a win on typical platforms.
24497         Prefer snprintf to strncpy/strncat, for simplicity;
24498         all buffers are smaller than INT_MAX so this is safe.
24499         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24500         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24501         as this is not true on x32.  Output "." before any nanoseconds.
24502         (debug_print_current_time, parse_datetime2):
24503         Output local zones using a more-consistent format.
24504         (debug_print_current_time, date, parse_datetime2):
24505         (main) [TEST]:
24506         Don’t assume time_t is the same width as long.
24507         (print_rel_part): New function, replacing ...
24508         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24509         (debug_print_relative_time): Use bool for boolean.
24510         (local_zone): dsts_seen now counts only tDST instances.
24511         (date): Fix printf of size_t to use %z.  Do not assume numeric
24512         tokens have negative values merely because the context suggests
24513         a syntax with "-" separating tokens.
24514         (time_zone_hhmm): Return bool success indicator, which checks for
24515         overflow.  Store result into PC->time_zone instead.  All callers
24516         changed.
24517         (tm_year_str): New function.  Return a bool success indicator and
24518         store the result into a buffer.  All callers changed.  Output the
24519         numerically correct string even if adding 1900 to the year would
24520         overflow.
24521         (to_tm_year): New function, replacing the old to_year.  All
24522         callers changed.
24523         (tm_diff): Sync with glibc.
24524         (lookup_word): Use to_uchar instead of doing it by hand.
24525         (TZBUFSIZE): Now local to the only function that needs it.
24526         (debug_strfdatetime): Simplify now that time zones are int seconds.
24527         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24528         (get_effective_timezone): Remove.  All uses removed.
24529         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24530         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24531         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24532         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24533         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24534         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24535         * modules/parse-datetime (Depends-on): Add inttypes.
24537 2017-04-21  Bruno Haible  <bruno@clisp.org>
24539         gettext-h: Avoid -Wundef warning.
24540         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24541         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24542         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24544 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24546         error: Avoid "function declaration isn't a prototype" warning.
24547         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24549 2017-04-21  Bruno Haible  <bruno@clisp.org>
24551         vasnprintf: Fix for MSVC 14.
24552         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24553         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24554         of !HAVE_SNPRINTF_RETVAL_C99.
24556 2017-04-21  Bruno Haible  <bruno@clisp.org>
24558         mbrtowc tests: Fix test failures on MSVC 14.
24559         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24560         behaviour for invalid input.
24562 2017-04-21  Bruno Haible  <bruno@clisp.org>
24564         mbsinit: Fix for MSVC 14.
24565         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24566         implementation that is in sync with mbrtowc.c. On other platforms, use
24567         an adequate ad-hoc implementation.
24569 2017-04-21  Bruno Haible  <bruno@clisp.org>
24571         Fix test-mbrtowc5.sh failure on native Windows.
24572         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24573         "C".
24575 2017-04-21  Bruno Haible  <bruno@clisp.org>
24577         Avoid accidental use of native Windows APIs on Cygwin.
24578         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24579         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24580         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24582 2017-04-20  Bruno Haible  <bruno@clisp.org>
24584         Remove red warnings from the generated MODULES.html.
24585         * modules/fcntl (Description): Disambiguate function references.
24586         * modules/getcwd-lgpl (Description): Likewise.
24587         * modules/hostent (Description): Likewise.
24588         * modules/servent (Description): Likewise.
24589         * modules/tempname (Description): Likewise.
24591 2017-04-20  Bruno Haible  <bruno@clisp.org>
24593         verify tests: Fix spurious failure with parallel make.
24594         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24595         EXTRA_PROGRAMS.
24596         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24597         * tests/test-verify-try.c: New file.
24598         * modules/verify-tests (Files): Add it.
24599         (EXTRA_PROGRAMS): Add test-verify-try.
24600         (MOSTLYCLEANFILES): Update accordingly.
24601         Reported by Adam James Stewart <ajstewart@anl.gov>.
24603 2017-04-18  Bruno Haible  <bruno@clisp.org>
24605         vma-iter: Fix compilation error on Solaris 7.
24606         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24607         like on IRIX, OSF/1.
24608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24610 2017-04-18  Bruno Haible  <bruno@clisp.org>
24612         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24613         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24614         included.
24615         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24616         <sys/procfs.h>.
24617         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24618         <sys/procfs.h> cannot be included.
24619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24621 2017-04-18  Bruno Haible  <bruno@clisp.org>
24623         getopt-gnu: Add comments.
24624         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24625         * modules/getopt-gnu (configure.ac): Likewise.
24627 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24629         regex: port better to Solaris 10
24630         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24631         gettext, and this causes a double #define.
24632         Problem reported by Gavin Smith in:
24633         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24634         * lib/regex_internal.h (gettext): #undef before #defining.
24636 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24638         intprops: improve comments
24639         * lib/intprops.h: Improve and shorten commentary.
24640         For the record, if we ever run into a pedantic compiler that
24641         behaves differently from GCC when converting an out-of-range value
24642         to a signed integer, we can work around the problem with something
24643         like the following code, where UCT is the signed counterpart of T
24644         (UCT is sometimes narrower than UT) and all callers are changed
24645         accordingly:
24646         #if __SUNPRO_C <= 0x5120
24647         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24648            ((t) ((ut) (a) op (ut) (b)))
24649         #else
24650         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24651            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24652             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24653                + TYPE_MINIMUM (t)) \
24654             : (t) (uct) ((ut) (a) op (ut) (b)))
24655         #endif
24657 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24659         intprops: try to avoid tickling similar bugs
24660         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24661         needs to be the same width as T; it can be wider.
24662         Change callers so that UT is at least as wide as unsigned int,
24663         as I suspect that this is less likely to run into compiler bugs.
24665         intprops: port to Oracle Studio 12.3 x86
24666         Problem reported by Gavin Smith in:
24667         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24668         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24669         Convert unsigned to signed via the usual rather than the standard way,
24670         to avoid a compiler bug in Oracle Studio 12.3 x86.
24672 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24674         getopt: prefer - to _ in new file names
24675         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24676         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24677         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24678         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24679         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24680         All uses changed.
24682         getopt: port recent getopt changes to macOS
24683         Problem reported by Harald Maier (Bug#26398).
24684         The macOS C compiler uses __nonnull for its own purposes and that
24685         clashes with glibc's __nonnull.
24686         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24687         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24688         * lib/getopt_core.h (getopt):
24689         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24690         Use _GL_ARG_NONNULL, not __nonnull.
24691         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24692         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24693         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24694         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24696 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24698         getopt-gnu: omit some duplicate code
24699         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24700         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24701         gnulib-tool already does this.
24702         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24703         getopt-posix, which we depend on.
24705         getopt-posix: use angle-bracket include
24706         * lib/getopt1.c: Include <config.h>, not "config.h".
24708 2017-04-06  Zack Weinberg  <zackw@panix.com>
24710         getopt: annotate files with relationship to glibc
24712         As the final act in this patchset, adjust the message at the top of
24713         each file to indicate which files are synced with glibc.  (This has
24714         already been done for most of the headers.)
24716         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24717         Mention in top-of-file boilerplate that these files are shared
24718         between glibc and gnulib.
24721         getopt: split up getopt.in.h and eliminate __need_getopt
24723         Over in glibc, all of the __need macros are being phased out in favor
24724         of small headers that declare only the necessary components, as this
24725         is much simpler and less prone to bugs.  As getopt is shared with
24726         glibc, gnulib needs to do the same for __need_getopt.
24728         __need_getopt is misnamed; what it really means is "we want only the
24729         getopt features specified in POSIX, not the GNU extensions".  glibc
24730         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24731         these files can be shared verbatim with gnulib.  The portability
24732         wrapper, on the other hand, they have renounced altogether; glibc's
24733         getopt.h will no longer be shared with gnulib at all.  In exchange,
24734         certain glibc-specific quirks (having to do with __posix_getopt) no
24735         longer need appear in gnulib's headers at all.
24737         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24738         splits up the current gnulib-side portability wrapper into three
24739         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24740         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24741         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24742         unistd.in.h just use them.  All new files are clearly marked with
24743         whether they are shared with glibc.
24745         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24746         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24747         with glibc, and ...
24748         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24749         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24750         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24751         instead of defining __need_getopt and including the full getopt.h.
24753         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24754         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24755         * modules/getopt-posix (Files): Add new headers and sort list.
24756         (Depends-on): No longer need snippet/arg-nonnull.
24757         (Makefile.am): Generate getopt_cdefs.h.
24760         getopt: better handling of ambiguous options
24762         glibc's getopt uses alloca to construct a linked list of possibilities
24763         for an "ambiguous" long option.  In gnulib, malloc should be used
24764         instead.  Providing for both cases complicates things a fair bit.
24766         This patch rewrites ambiguous-option handling to use a boolean vector
24767         instead of a linked list.  There is then only one allocation that
24768         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24769         and in gnulib we define __libc_use_alloca to always be false, so we
24770         don't need ifdefs in the middle of the function.  This should also be
24771         slightly more efficient in the normal case of long options being fully
24772         spelled out -- I think most people aren't even aware they _can_
24773         sometimes abbreviate long options.
24775         One interesting consequence is that the list of possibilities is now
24776         printed in exactly the order they appear in the list of long options,
24777         instead of the first possibility being shuffled to the end.
24779         (The patch looks bigger than it really is because there's a fair bit
24780         of reindentation and code rearrangement.)
24782         * lib/getopt.c: When used standalone, define __libc_use_alloca
24783         as always false and alloca to abort if called.
24784         (process_long_option): Rewrite handling of ambiguous long options
24785         to use a single boolean vector, not a linked list; use
24786         __libc_use_alloca to decide whether to allocate this using alloca.
24789         getopt: refactor long-option handling
24791         There were two copies of the bulk of the code to handle long options.
24792         Now there is only one.
24794         This change temporarily removes the logic to avoid using alloca when
24795         standalone; the next patch in the series will restore it.
24797         * lib/getopt.c (process_long_option): New function split out
24798         from _getopt_internal_r.
24799         (_getopt_internal_r): Replace both copies of the long-option
24800         processing code with calls to process_long_option.
24803         getopt: tidy up _getopt_initialize a bit
24805         _getopt_data.__posixly_correct is completely redundant to
24806         _getopt_data.__ordering, and some work that logically belongs in
24807         _getopt_initialize was being done by _getopt_internal_r, making the
24808         code harder to understand.
24810         As a side effect, getenv will no longer be called if the first
24811         character of the options string is '+' or '-', which is probably a
24812         Good Thing.  (Perhaps we should have a flag character that
24813         specifically asks for the permutation behavior?)
24815         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24816         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24817         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24820         getopt: merge from glibc: repetition reduction
24822         The definitions of the entry point functions 'getopt' and
24823         '__posix_getopt' can be made substantially less repetitive with a
24824         helper macro.
24826         While I was merging the const-correctness changes from gnulib into
24827         glibc I noticed there are still some unnecessary casts in
24828         _getopt_internal_r.
24830         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24831         a macro.  Consistently cast 'argv' to 'char **' when calling
24832         _getopt_internal.
24833         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24836         getopt: clean up error reporting
24838         getopt can print a whole bunch of error messages, and when used
24839         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24840         cancellation point and getopt isn't, and also applying fprintf to a
24841         stream in wide-character mode is not allowed.  So every single error
24842         reporting case has an #ifdef _LIBC block in which it calls internal
24843         libc functions instead.  The counterpart patch series in glibc makes
24844         it possible to simplify all of that down to a set of #defines at the
24845         top of the file; core code is written as if it is safe to just call
24846         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24847         call any *other* stdio functions.)
24849         * lib/getopt.c: When _LIBC is defined, define fprintf to
24850         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24851         to _IO_funlockfile.  When neither _LIBC nor
24852         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24853         funlockfile as no-ops.
24854         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24855         standalone error-printing code can now be used for libc as well.
24856         Add an flockfile/funlockfile pair around one case where the error
24857         message is printed in several chunks.  Don't use fputc.
24860         getopt: fix fencepost error in ambiguous-W-option handling
24862         getopt_long contains an undocumented (AFAICT) feature in which, if you
24863         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24864         treated as equivalent to '--foo'.  This is implemented with a partial
24865         second copy of the code for handling long options, and that code
24866         increments optind one too many times when recovering from an ambiguous
24867         abbreviated option, which can cause the main loop to walk past the end
24868         of argv and crash.
24870         I discovered this while writing a test case that tries to exercise all
24871         of getopt's error reporting paths; I wouldn't be surprised to learn
24872         that this feature is never used by real applications.
24874         * lib/getopt.c (_getopt_internal_r): Don't increment
24875         d->optind a second time when reporting ambiguous -W options.
24878         getopt: clean up getopt.c and getopt1.c file headers
24880         In getopt.c, there is no need to include wchar.h at all, and it is
24881         safe nowadays to assume that stdlib.h does declare getenv (several
24882         other gnulib modules make this assumption).
24884         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24885         by using "" inclusions consistently, and there is no actual need to
24886         include stdlib.h (except in the #ifdef TEST block, where it should be
24887         unconditional), nor to provide a backup definition of NULL at all.
24889         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24890         Move inclusion of stdlib.h to #ifdef TEST block and make
24891         unconditional.  Do not define NULL.
24892         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24893         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24894         * modules/getopt-gnu, modules/getopt-posix: Don't call
24895         gl_PREREQ_GETENV.
24898         getopt: harmonize comments with glibc
24900         The comments explaining how the behavior of 'getopt' varies depending
24901         on whether it's the standalone version and whether there are special
24902         characters at the beginning of the options string were inconsistent
24903         between gnulib and glibc, and also out of sync with the code.
24905         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24908         getopt: remove USE_NONOPTION_FLAGS
24910         getopt includes code to parse an environment variable named
24911         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24912         in decimal); but all of it has been #ifdefed out since 2001, with no
24913         official way to turn it back on.
24915         According to commentary in glibc's config.h.in, bash version 2.0
24916         set this environment variable to indicate argv elements that were
24917         the result of glob expansion and therefore should not be treated
24918         as options, but the feature was "disabled later" because "it
24919         caused problems".  According to bash's CHANGES file, "later" was
24920         release 2.01; it gives no more detail about what the problems
24921         were.
24923         Version 2.0 of bash was released on the last day of 1996, and version
24924         2.01 in June of 1997.  Twenty years later, I think it is safe to
24925         assume that this environment variable isn't coming back.
24927         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24928         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24929         __libc_argc and __libc_argv externs, which were only used by
24930         #ifdef USE_NONOPTION_FLAGS blocks.
24933         getopt: tabify, in preparation for merge with glibc
24935         glibc sticks to the GNU default of indenting with a mix of
24936         8-column tabs and spaces; make the gnulib copy match.
24938         getopt.h is not included because it is *not* going to be merged in its
24939         present form.
24941         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24943 2017-04-02  Bruno Haible  <bruno@clisp.org>
24945         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24946         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24947         like it was done in modules/relocatable-lib on 2011-05-21 and in
24948         modules/relocatable-prog on 2011-08-15.
24949         Reported by Reuben Thomas <rrt@sc3d.org>.
24951 2017-03-31  Bruno Haible  <bruno@clisp.org>
24953         glob: Fix invalid free() call.
24954         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24955         static storage to home_dir.
24956         Reported by Coverity via Tim Rühsen.
24958 2017-03-31  Bruno Haible  <bruno@clisp.org>
24960         glob: Fix memory leaks.
24961         * lib/glob.c (glob): Free allocated memory before returning.
24962         Reported by Coverity via Tim Rühsen.
24964 2017-03-31  Bruno Haible  <bruno@clisp.org>
24966         md5, sha1, sha256, sha512: Add comments regarding correctness.
24967         * lib/md5.h (buflen): Add comments regarding range.
24968         * lib/sha1.h (buflen): Likewise.
24969         * lib/sha256.h (buflen): Likewise.
24970         * lib/sha512.h (buflen): Likewise.
24971         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24972         * lib/sha1.c (sha1_process_bytes): Likewise.
24973         * lib/sha256.c (sha256_process_bytes): Likewise.
24974         * lib/sha512.c (sha512_process_bytes): Likewise.
24975         Reported by Coverity via Tim Rühsen.
24977 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24979         getopt: merge from glibc
24980         This does not change anything substantial; it merely simplifies
24981         hypothetical merges back to glibc.
24982         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24983         Change copyright notice to match what is in glibc.
24984         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24985         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24986         __open_memstream rather than open_memstream and __glibc_likely
24987         instead of __builtin_expect.
24988         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24990 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24992         dfa: make [0-9] faster in non-C locales
24993         Problem reported by John P. Linderman (Bug#26193).
24994         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24995         If both ends of the range are ASCII digits, do not worry about
24996         multi-character collating sequences and the like.  Be consistent
24997         about using isalpha as a precondition for setbit_case_fold_c.
24999 2017-03-19  Bruno Haible  <bruno@clisp.org>
25001         lock: Fix compilation error with HP-UX IA64 cc.
25002         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25003         weak on non-glibc platforms.
25005 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25007         stdalign: tweak version# and test for HP-UX IA64
25008         Problems reported by Bruno Haible in:
25009         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25010         * lib/stdalign.in.h (_Alignas):
25011         * m4/stdalign.m4 (gl_STDALIGN_H):
25012         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25013         used octal (as that is how they document it), but it is decimal in
25014         practice now and the ancient implementations no longer matter.
25015         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25017 2017-03-19  Bruno Haible  <bruno@clisp.org>
25019         vma-iter: Add support for Solaris.
25020         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25021         approach.
25022         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25023         * lib/get-rusage-as.c: Update comment about Solaris.
25024         * lib/get-rusage-data.c: Likewise.
25026 2017-03-19  Bruno Haible  <bruno@clisp.org>
25028         vma-iter: Prefer HP-UX specific API on HP-UX.
25029         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25030         * lib/vma-iter.h: Update.
25031         Just in case HP-UX ever implements mquery().
25033 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25035         stdalign: restore previous behavior for HP-UX IA64
25036         See Bruno Haible's email in:
25037         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25038         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25039         * lib/stdalign.in.h (_Alignas):
25040         Assume the '061200' applies to Itanium, not to PA-RISC.
25041         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25043 2017-03-17  Bruno Haible  <bruno@clisp.org>
25045         stat-time, timespec: Support use of the header files in C++ mode.
25046         * lib/stat-time.h: Add "C" linkage declaration.
25047         * lib/timespec.h: Likewise.
25049 2017-03-17  Bruno Haible  <bruno@clisp.org>
25051         stdalign: Make it work with HP-UX cc.
25052         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25053         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25054         for HP-UX cc.
25056 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25058         flexmember: try to detect HP-UX 11.31 cc bug
25059         Problem reported by Bruno Haible in:
25060         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25061         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25062         Attempt to detect bug in HP-UX 11.31 cc.
25064 2017-03-16  Bruno Haible  <bruno@clisp.org>
25066         stdint: Fix test compilation failure with HP-UX 11 cc.
25067         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25068         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25069         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25070         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25072 2017-03-14  Bruno Haible  <bruno@clisp.org>
25074         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25075         * gnulib-tool (func_modules_transitive_closure_separately): If
25076         testsrelated_modules ends up with no "real" modules, aside from
25077         modules with applicability 'all', set it to empty.
25079 2017-03-14  Bruno Haible  <bruno@clisp.org>
25081         vma-iter: Add support for HP-UX.
25082         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25083         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25084         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25085         * lib/get-rusage-as.c: Update comment about HP-UX.
25086         * lib/get-rusage-data.c: Likewise.
25087         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25089 2017-03-14  Bruno Haible  <bruno@clisp.org>
25091         limits-h: Make it work with HP-UX cc.
25092         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25093         defined.
25095 2017-03-14  Bruno Haible  <bruno@clisp.org>
25097         Fix test failures on DragonFlyBSD.
25098         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25099         * tests/test-select.h (test_bad_fd): Likewise.
25100         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25102 2017-03-14  Bruno Haible  <bruno@clisp.org>
25104         freadahead: Silence warning on DragonFlyBSD.
25105         * lib/freadahead.c (__sreadahead): Declare ourselves.
25107 2017-03-14  Bruno Haible  <bruno@clisp.org>
25109         vma-iter: Add comment about AIX.
25110         * lib/vma-iter.c: Add comment about why this module is not implemented
25111         on AIX.
25113 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25115         snippets: move unadjusted snippet sources to lib
25116         Problem reported by Michal Privoznik in:
25117         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25118         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25119         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25120         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25121         * lib/unused-parameter.h: Rename from
25122         build-aux/snippet/unused-parameter.h.
25123         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25124         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25125         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25126         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25127         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25128         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25129         Adjust to file renamings.
25131 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25133         gnulib-tool: don't automatically distribute files from top/
25134         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25135         not distribute top/README-release by default, don't distribute files
25136         from top/ unconditionally.
25137         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25138         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25140 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25142         gnulib-tool: fix typo in comment output
25143         * gnulib-tool (func_import): Fix typo with previous change.
25145         snippets: work around GNU Make 3.82 VPATH
25146         When using 'gnulib-tool --gnu-make' on Emacs, and building
25147         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25148         an out-of-source (VPATH) build failed because the sans-copyright
25149         snippet file was not built before the file that used it.
25150         Presumably this is some sort of VPATH thing.  Work around the
25151         problem by using the original snippet, i.e., don’t bother to
25152         remove its copyright notice.
25153         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25154         Don’t assume Automake in comments.  Omit long-incorrect comment.
25155         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25156         (MOSTLYCLEANFILES):
25157         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25158         (MOSTLYCLEANFILES):
25159         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25160         (MOSTLYCLEANFILES):
25161         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25162         (MOSTLYCLEANFILES):
25163         Remove.
25164         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25165         * modules/snippet/c++defs (CXXDEFS_H):
25166         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25167         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25168         Don’t bother to remove the copyright notice; just use the
25169         original snippet as-is.
25171 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25173         gnulib-tool: minor --gnu-make fixups
25174         * gnulib-tool (func_emit_lib_Makefile_am):
25175         Remove useless code that was a blind alley during implementation.
25176         Problem reported by Thien-Thi Nguyen in:
25177         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25178         (func_import): Note the "--gnu-make" option in the output comment.
25180 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25182         gnulib-tool: new option --gnu-make
25183         This is for applications like GNU Emacs that use GNU Make
25184         features instead of Automake.
25185         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25186         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25187         Do not assume Automake.
25188         * gnulib-tool (func_determine_path_separator)
25189         (func_modules_transitive_closure, func_update_file)
25190         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25191         (func_import): Add support for --gnu-make.
25193 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25195         gnulib-common.m4: avoid aclocal.m4 bloat
25196         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25197         Hide AM_PROG_AR from aclocal, so that aclocal does not
25198         install irrelevant macro definitions into aclocal.m4.
25200 2017-03-10  Bruno Haible  <bruno@clisp.org>
25202         vma-iter: Let callers know about error.
25203         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25204         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25206 2017-03-05  Bruno Haible  <bruno@clisp.org>
25208         Fix value of LD for 64-bit compilers on AIX.
25209         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25210         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25212 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25214         dtotimespec: simplify
25215         * lib/dtotimespec.c (dtotimespec): Simplify.
25217 2017-03-04  Bruno Haible  <bruno@clisp.org>
25219         test-calloc-gnu: Reenable test also for GCC 7.
25220         * tests/test-calloc-gnu.c (eight): New function.
25221         (main): Don't skip test; use eight() instead.
25223 2017-03-04  Jim Meyering  <meyering@fb.com>
25225         test-calloc-gnu: port to GCC7
25226         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25227         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25228         and newer would detect that at compilation time.
25230 2017-03-04  Bruno Haible  <bruno@clisp.org>
25232         tests: Avoid compiler warning about uses of null_ptr.
25233         * tests/null-ptr.h: New file.
25234         * tests/test-canonicalize.c: Include null-ptr.h.
25235         (null_ptr): Remove function.
25236         * tests/test-canonicalize-lgpl.c: Likewise.
25237         * tests/test-memmem.c: Likewise.
25238         * tests/test-ptsname_r.c: Likewise.
25239         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25240         * modules/canonicalize-lgpl-tests: Likewise.
25241         * modules/memmem-tests: Likewise.
25242         * modules/ptsname_r-tests: Likewise.
25243         Reported by Jim Meyering.
25245 2017-03-03  Bruno Haible  <bruno@clisp.org>
25247         doc: Mention Mac OS X deficiencies regarding semaphores.
25248         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25249         * doc/posix-functions/sem_destroy.texi: Likewise.
25250         * doc/posix-functions/sem_getvalue.texi: Likewise.
25252 2017-03-03  Bruno Haible  <bruno@clisp.org>
25254         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25255         Reported by Assaf Gordon <assafgordon@gmail.com> via
25256         Pádraig Brady <P@draigBrady.com>.
25257         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25258         semaphores.
25259         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25260         (atomic_int_semaphore): New macro.
25262 2017-02-28  Bruno Haible  <bruno@clisp.org>
25264         perror tests: Tweak for z/OS.
25265         Reported by Daniel Richard G. <skunk@iskunk.org>.
25266         * tests/test-perror.sh: Don't fail z/OS style perror output.
25268 2017-02-26  Bruno Haible  <bruno@clisp.org>
25270         nproc: Refactor large function.
25271         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25272         from num_processors.
25273         (num_processors): In this function, only deal with OMP.
25275 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25277         nproc: adjust handling of OpenMP environment variables
25278         to match the return value from omp_get_num_threads(), i.e.:
25279          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25280          - Treat 0 as an invalid value and ignore
25281         Also remove the call to omp_get_num_threads() because
25282         it's ineffective without the omp pragmas in place.
25283         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25284         so that it can be ignored.
25285         (num_processors): Honor OMP_THREAD_LIMIT even without
25286         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25287         variable being checked, from the previous recent commit.
25289 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25291         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25292         * lib/nproc.c (parse_omp_threads): A new function refactored
25293         from num_processors() to support parsing both of the
25294         above environment variables.
25295         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25296         to accurately reflect the current OpenMP nesting level.
25297         Also support the OMP_THREAD_LIMIT environment variable
25298         to limit the max value determined from OMP_NUM_THREADS.
25299         * modules/nproc: Depend on minmax header.
25300         Suggested by Oliver Heimlich.
25302 2017-02-25  Bruno Haible  <bruno@clisp.org>
25304         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25305         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25307 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25309         ftoastr: port to -Wdouble-promotion
25310         Work around -Wdouble-promotion false alarm in recent GCCs.
25311         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25312         (ftoastr_snprintf, FTOASTR): Use it.
25314 2017-02-21  Bruno Haible  <bruno@clisp.org>
25316         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25317         Reported by Rene Saavedra <rennes@openmailbox.org> in
25318         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25319         * lib/glthread/lock.h: On glibc systems without
25320         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25321         implementation of rwlocks.
25322         * lib/glthread/lock.c: Likewise.
25324 2017-02-20  Bruno Haible  <bruno@clisp.org>
25326         lock tests: Fix build failure on z/OS.
25327         Reported by Daniel Richard G. <skunk@iskunk.org>.
25328         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25329         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25330         exist.
25332 2017-02-19  Bruno Haible  <bruno@clisp.org>
25334         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25335         This helps when CC=clang.
25336         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25337         of /usr/bin/gcc.
25339         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25340         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25342 2017-02-19  Bruno Haible  <bruno@clisp.org>
25344         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25345         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25346         --with-tests --single-configure is specified.
25348 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25350         users.txt: Update links, use HTTPS where possible
25351         * users.txt: Updated to HTTPS where possible,
25352         fixed some links to new locations.
25354 2017-02-16  Bruno Haible  <bruno@clisp.org>
25356         xbinary-io: Fix inlining.
25357         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25359 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25361         xbinary-io: rename from xsetmode
25362         This patch is taken from suggestions by Bruno Haible in:
25363         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25364         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25365         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25366         not ENOTTY, when it is an inappropriate device.
25367         * lib/binary-io.h (SET_BINARY): Resurrect.
25368         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25369         (xset_binary_mode_error): Rename from xsetmode_error.
25370         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25371         (xset_binary_mode): Rename from xsetmode.
25372         All uses changed.
25373         * modules/xbinary-io: Rename from modules/xsetmode.
25374         Update file names.
25375         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25376         * NEWS: Update to match revised behavior.
25378 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25380         tests: Adjust to recent SET_BINARY change
25381         * tests/test-binary-io.c (main):
25382         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25383         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25384         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25385         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25387         xsetmode: new module
25388         This is to fix a problem noted by Eric Blake.
25389         Code was using xfreopen to change files to binary mode, but this
25390         fails for stdout when in append mode.  Such code should use
25391         xsetmode instead.
25392         * NEWS: Document incompatible changes to binary-io module.
25393         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25394         New function.
25395         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25396         (set_binary_mode): New function, which also checks for tty.
25397         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25399 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25401         headers: fix begin-end typos
25402         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25403         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25405         selinux-h: port to PGI 16.10
25406         * lib/se-selinux.in.h: Don't assume that include_next skips over
25407         duplicate -I DIR options.
25409         argp: port to PGI 16.10
25410         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25412 2017-02-13  Darshit Shah  <darnir@gnu.org>
25414         unicase: Update function protoype to match definition.
25415         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25416         uses 'size_t' as the datatype for the 'len' parameter in the functions
25417         it generates. Update the prototype specified here to match the newly
25418         generated function.
25420 2017-02-12  Bruno Haible  <bruno@clisp.org>
25422         times test: Avoid gcc warnings on Linux/x32.
25423         * tests/test-times.c (main): Really cast printf arguments from clock_t
25424         to 'long int'.
25426 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25428         glob: port better to emscripten
25429         Problem reported by Bruno Haible in:
25430         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25431         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25433 2017-02-11  Bruno Haible  <bruno@clisp.org>
25435         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25436         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25437         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25438         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25439         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25440         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25441         Distinguish hppa64 from hppa.
25443 2017-02-10  Bruno Haible  <bruno@clisp.org>
25445         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25446         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25447         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25448         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25450 2017-02-09  Bruno Haible  <bruno@clisp.org>
25452         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25453         * doc/gnulib.texi (Libtool and Windows): Recommend
25454         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25455         Reported by Reuben Thomas <rrt@sc3d.org>.
25457 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25459         stddef-tests: port to SIZE_MAX <= INT_MAX
25460         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25461         Do not assume that INT_MAX < SIZE_MAX.
25463 2017-02-01  Bruno Haible  <bruno@clisp.org>
25465         lock tests: Fix link error.
25466         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25469 2017-01-31  Bruno Haible  <bruno@clisp.org>
25471         lock: Fix link error (regression from 2017-01-05).
25472         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25473         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25474         pthread_rwlockattr_destroy weak.
25475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25477 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25479         Port to PGI 16.10 x86-64
25480         This patch fixes one real bug in gl_anylinked_list2.h, along with
25481         some minor glitches that are not bugs.  It does not silence PGI’s
25482         thousands of bogus warnings when compiling test-intprops.c.
25483         Fortunately, the warnings do not cause a failure.
25484         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25485         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25486         My goodness, PGI goes back a long ways - this predates C89!
25487         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25488         For example, ASYNCSAFE (const void *) should expand to
25489         ‘const void *volatile’, not to ‘volatile const void *’.
25490         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25491         * lib/verify.h (verify) [!__GNUC__]:
25492         Use shorter albeit meaningless string to bypass silly compiler limits.
25493         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25494         * tests/nan.h (NaNf, NaNd, NaNl):
25495         Use static functions to avoid misguided compiler diagnostics.
25496         Is there some reason we don’t use static functions on all platforms?
25498 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25500         parse-datetime: handle timezones reentrantly
25501         This API change was prompted by a report by Pádraig Brady in:
25502         https://bug.debian.org/851934#10
25503         To help fix the bug, make parse_datetime2 more reentrant.
25504         * NEWS: Document this incompatible change.
25505         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25506         Add two arguments, the timezone and the timezone name.
25507         All callers changed.  If TZ="..." is specified, use it for
25508         calculating defaults.
25509         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25510         this code should be usable in a library.
25511         (mktime_ok, get_effective_timezone):
25512         Accept timezone arg too.  All callers changed.
25513         (get_tz): Remove.
25514         (get_effective_timezone): Check for failures.
25516 2017-01-20  Eric Blake  <eblake@redhat.com>
25518         localename: port to cygwin 2.6
25519         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25520         Cygwin.
25521         * modules/localename (Depends-on): Add extensions, since
25522         NL_LOCALE_NAME() is not visible without it.
25524 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25526         parse-datetime: fix dependence on AC_PROG_SED
25527         * modules/parse-datetime: Use `sed` directly like all other modules.
25528         Reported by J William Piggott
25530 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25532         intprops: update doc URLs
25533         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25535 2017-01-16  Bruno Haible  <bruno@clisp.org>
25537         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25538         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25539         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25540         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25541         distinguish s390 and s390x.
25542         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25543         * NEWS: Mention the change regarding 'armel'.
25545 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25547         localeinfo: case_folded_counterparts and WEOF
25548         * NEWS: Document this.
25549         * lib/localeinfo.c (case_folded_counterparts):
25550         First arg is now wint_t, not wchar_t.  This generalizes the
25551         function to also work on WEOF, where it returns 0.
25553         dfa: port to gcc -fsanitize=undefined
25554         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25555         as this runs afoul of gcc -fsanitize=undefined.
25557 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25559         strftime: %z is -00 if unknown
25560         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25561         the caller's responsibility to set 'negative_number'.  All uses changed.
25562         (__strftime_internal): Put '-' before a zero UTC offset if the time
25563         zone abbreviation starts with "-", which is the recently-introduced
25564         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25565         * tests/test-strftime.c: Test for this.
25567 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25569         dfa: port to older GCC
25570         Problem reported by Assaf Gordon in:
25571         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25572         * modules/c99: New module.  This merely attempts to use the latest
25573         C version, which should be enough to solve this particular problem.
25574         The idea is to document which Gnulib modules assume C99 or later.
25575         * modules/dfa (Depends-on): Add it.
25577 2017-01-10  Bruno Haible  <bruno@clisp.org>
25579         Update DEPENDENCIES.
25580         * DEPENDENCIES: List only https URLs. Update recommended version for
25581         autoconf, automake, gperf.
25583 2017-01-10  Jim Meyering  <meyering@fb.com>
25585         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25586         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25587         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25589 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25591         dfa: minor simplification with emptyset
25592         * lib/dfa.c (build_state): Simplify by using emptyset.
25594 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25596         dfa: shrink constraints from 4 bits to 3
25597         * lib/dfa.c (newline_constraint, letter_constraint)
25598         (other_constraint, prev_newline_dependent)
25599         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25600         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25601         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25602         Constraints need only 3 bits, not 4.  Using smaller integers
25603         shrinks the code a bit and makes grep a tad faster on x86-64.
25605         dfa: omit unnecessary ptrdiff_t check
25606         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25607         overflow, since xnmalloc does that now.
25609         dfa: omit unnecessary allocation
25610         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25611         an all-zero follow set works just fine.
25613         dfa: omit unused local
25614         * lib/dfa.c (build_state): Fix up recent change.
25616         maint: remove stray .texi files
25617         Although these were superseded by other files like
25618         doc/posix-functions/ctime.texi, the old files were not removed.
25619         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25621 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25623         getprogname: fix port to IRIX
25624         * lib/getprogname.c (getprogname) [__sgi]:
25625         Don't dump core if malloc returns NULL.
25627         dfa: fix reallocation bug when matching newlines
25628         Problem reported for sed by S. Gilles (Bug#25390).
25629         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25630         (dfastate): Reallocate before moving any newline transition ...
25631         (build_state): ... instead of reallocating here, where it is too late.
25633 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25635         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25636         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25638 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25640         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25641         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25643 2017-01-07  Bruno Haible  <bruno@clisp.org>
25645         stdioext: Port to Minix 3.2 and newer.
25646         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25647         * lib/fseeko.c (fseeko): Likewise.
25648         Reported by Nelson Beebe via Paul Eggert.
25650 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25652         getprogname: port to IRIX
25653         * lib/getprogname.c (getprogname): Port to IRIX.
25654         Based on an idea by Bastien Roucariès at:
25655         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25656         via code from Bruno Haible at:
25657         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25659         localename-tests: port to NetBSD 7
25660         Problem reported by Nelson H. F. Beebe.
25661         * tests/test-localename.c:
25662         Test newlocale and uselocale only if both exist.
25664         glob, intprops, xalloc: work around Clang bug
25665         Work around LLVM bug 16404, which is still not fixed.
25666         https://llvm.org/bugs/show_bug.cgi?id=16404
25667         Problem reported by Nelson H. F. Beebe.
25668         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25669         Remove.
25670         * lib/glob.c (size_add_wrapv):
25671         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25672         * lib/xalloc-oversized.h (xalloc_oversized):
25673         Do not use overflow builtins if Clang.
25675         dfa: fix 'return' typo
25676         Problem reported by Nelson H. F. Beebe.
25677         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25679 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25681         parse-datetime: fix generated paths for coverage files
25682         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25683         within parse-datetime.c, so that gcc generates appropriate .gcno
25684         files, allowing lcov to proceed without error.  Previously it
25685         would error trying to find "lib/lib/parse-datetime.y".
25687 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25689         maint.mk: support parallel execution of coverage
25690         * top/maint.mk (coverage): Run dependencies serially,
25691         thus supporting parallel processing of each one,
25692         particularly build-coverage, which builds and runs tests.
25694 2017-01-05  Bruno Haible  <bruno@clisp.org>
25696         lock tests: Prefer semaphore over mutex.
25697         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25698         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25699         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25700         Suggested by Torvald Riegel <triegel@redhat.com>.
25702 2017-01-05  Bruno Haible  <bruno@clisp.org>
25704         lock: Provide guarantee to avoid writer starvation for rwlocks.
25705         The rationale is: 1) Read-preferring read-write locks are prone to
25706         writer starvation if the number of reader threads multiplied by the
25707         percentage of time they have the lock held is too high. 2) Write-
25708         preferring read-write locks are the only reliable way to avoid this.
25709         3) There have been reports of 'test-lock' hanging on glibc systems
25710         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25711         and glibc indeed implements read-preferring rwlocks by default, see
25712         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25713         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25714         * m4/pthread_rwlock_rdlock.m4: New file.
25715         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25716         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25717         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25718         of rwlock initialization on glibc systems without
25719         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25720         of rwlocks altogether on non-glibc systems without
25721         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25722         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25723         * lib/glthread/lock.c [USE_POSIX_THREADS]
25724         (glthread_rwlock_init_for_glibc): New function.
25725         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25726         comment.
25727         [USE_PTH_THREADS]: New implementation of rwlocks.
25728         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25729         readers.
25730         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25731         (Depends-on): Add 'extensions'.
25732         * tests/test-rwlock1.c: New file.
25733         * lock-tests (Files): Add it.
25734         (Depends-on): Add usleep.
25735         (Makefile.am): Add test-rwlock1 to the tests.
25737 2017-01-05  Bruno Haible  <bruno@clisp.org>
25739         thread: Fix pth port.
25740         * lib/glthread/thread.h (pth_init): Declare weak.
25741         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25742         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25743         function.
25745 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25747         parse-datetime: fix debug message on lone year number
25748         Input dates such as
25749           date -d "Apr 11 22:59:00 2011"
25750         are parsed as date (Apr 11, with default year 2016), then time, then a
25751         number (2011). Based on the combination of previously seen tokens,
25752         'digits_to_date_time' determines 2011 to be a year value.
25753         This fixes the debug messages to correctly show the updated year.
25754         Before:
25755             $ date --debug -d 'Apr 11 22:59:00 2011'
25756             date: parsed date part: (Y-M-D) 2016-04-11
25757             date: parsed time part: 22:59:00
25758             date: parsed number part: today/this/now
25759         After:
25760             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25761             date: parsed date part: (Y-M-D) 2016-04-11
25762             date: parsed time part: 22:59:00
25763             date: parsed number part: year: 2011
25764         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25765         'debug_year_seen' member fields.
25766         (digits_to_date_time): Update 'year_seen' as needed.
25767         (debug_print_current_time): Inform about year updates.
25768         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25770         parse-datetime: fix local timezone debug messages
25771         "Local timezones" are strings that affect only DST relative to the
25772         default timezone. The debug messages in parse-datetime.y printed
25773         wrong information when encountering local timezones.
25774         Examples:
25775         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25776              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25777              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25778         When the default timezone relates to the zone strings, EET/EEST are
25779         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25780         value (0/1, respectively):
25781              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25782              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25783         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25784         was seen, inform about DST change, don't print actual timezone.
25785         (debug_strfdatetime): If local timezone was seen, use default timezone
25786         (and adjust as needed) instead of using incorrect timezone.
25787         (parse_datetime2): Use correct time-zone source string, and adjust
25788         default timezone as needed.
25790         parse-datetime: add debug warning about DST changes
25791         Incorrect date arithmetic due to daylight saving time (DST) are a
25792         common (false) bug report in coreutils.
25793         Detect two such cases and print a warning:
25794         1. year/month/day adjustments (performed on 'struct tm'),
25795            where 'mktime' returns a different isdst value.
25796         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25797            where the result of 'localtime(3)' on the value will return a
25798            different isdst value.
25799         Note: DST changes could be harmless or unnoticeable.
25800         Examples (with 'TZ=America/New_York'):
25801         Unnoticeable: result is 2016-Dec-14
25802            $ date -d '2016-06-15 EDT + 6 months' +%b
25803            Dec
25804         Unnoticeable: result is 2016-Dec-15 11:00:00
25805            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25806            2016-12-15
25807         This is unexpected:
25808            $ date -d '2016-06-01 EDT + 6 months' +%F
25809            2016-11-30
25810         The new debug warnings will show:
25811            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25812            ...
25813            date: warning: daylight saving time changed after date adjustment
25814            ...
25815         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25816         print an appropriate warning message.
25818         parse-datetime: add debug warning about date arithmetic
25819         Date arithmetic are done directly on the fields of 'struct tm',
25820         which can result in invalid dates. Normalization with 'mktime(3)'
25821         will then produce a different date - which might cause unexpected
25822         results.
25823         Examples:
25824           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25825           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25826         Note that date normalization is not inherently wrong and not rejected,
25827         as it has legitimate uses:
25828           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25829         If the user asked to adjust months but 'mday' changed,
25830         or user asked to adjust years but 'month' changed - warn about it.
25831             $ ./src/date --debug -d '2016-10-31 - 1 month'
25832             ...
25833             date: warning: when adding relative months/years, \
25834                            it is recommended to specify the 15th of the month
25835             ...
25836             date: warning: month/year adjustment resulted in shifted dates:
25837             date:      adjusted Y M D: 2016 09 31
25838             date:    normalized Y M D: 2010 10 01
25839             ...
25840         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25841         a warning message. Improve recommendation of when to use 15 of the
25842         month or noon for date arithmetic.
25844         parse-datetime: fix debug message of relative part after timezone
25845         Relative part (e.g '+8 days') after a timezone string was not
25846         reported (was only reported after a timezone number). Due to the
25847         parser's structure, timezone strings with numbers were handled
25848         separately.
25849         before:
25850              # Timezone number + relative part: OK
25851              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25852              ...
25853              date: parsed relative part: -8 day(s)
25854              # Timezone string + relative part: missing
25855              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25856              [ missing message ]
25857         After: messages are printed in both cases.
25858         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25860         parse-datetime: fix incorrect debug message on lone number
25861         A lone number is an absolute value, not a relative time part.
25862         before:
25863            $ date --debug -d '20130101'
25864            date: parsed number part: today/this/now
25865         After:
25866            $ ./src/date --debug -d '20130101'
25867            date: parsed number part: (Y-M-D) 2013-01-01
25868         * lib/parse-datetime.y ('item'/'number' tokens): Call
25869         'debug_print_current_time' instead of 'debug_print_relative_time'.
25871 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25873         doc: modernize for C11 etc.
25874         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25875         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25876         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25878         dfa: prefer functions to FETCH_WC macro
25879         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25880         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25881         wint_t result into DFA->lex.wctok instead of to a separate arg.
25882         All callers changed.  Move more local decls closer to where
25883         they're used.
25885         dfa: narrow more local var scopes
25886         * lib/dfa.c: Move more local decls to be more local.
25888         dfa: remove duplicate assignment
25889         Problem reported by Bruno Haible in:
25890         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25891         * lib/dfa.c (parse_bracket_exp): Simplify.
25893 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25895         dfa: simplify constraint-dependency checking
25896         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25897         (prev_other_constraint): Remove.
25898         (prev_newline_dependent, prev_letter_dependent):
25899         Simplify, to avoid an unnecessary bitwise AND operation.
25901         dfa: prefer functions and constants to macros
25902         * lib/dfa.c: Prefer constants to macros where either will do.
25903         (streq, isasciidigit, newline_constraint)
25904         (letter_constraint, other_constraint, succeeds_in_context)
25905         (prev_newline_constraint, prev_letter_constraint)
25906         (prev_other_constraint, prev_newline_dependent)
25907         (prev_letter_dependent, accepting, accepts_in_context):
25908         Now static functions instead of function-like macros.
25909         Use lower-case names accordingly.  All uses changed.
25911         dfa: narrow more local var scopes
25912         * lib/dfa.c: Move some more local decls down to nearer where
25913         they're needed.
25915 2016-12-31  Jim Meyering  <meyering@fb.com>
25917         dfa: narrow the scope of many local variables
25918         * lib/dfa.c: Now that we are no longer constrained to c89, move
25919         declarations of many variables (often indices) "down" into the
25920         scope(s) where used or to the point of definition.  This is a
25921         no-semantic-change diff.
25923 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25925         version-etc: new year
25926         * build-aux/gendocs.sh (version):
25927         * doc/gendocs_template:
25928         * doc/gendocs_template_min:
25929         * doc/gnulib.texi:
25930         * lib/version-etc.c (COPYRIGHT_YEAR):
25931         Update copyright dates by hand in templates and the like.
25932         * all files: Run 'make update-copyright'.
25934 2016-12-31  Eric Blake  <eblake@redhat.com>
25936         do-release-commit-and-tag: avoid shell syntax error
25937         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25938         contain spaces when rebasing.
25940         maint.mk: hoist gnulib_dir definition earlier
25941         * top/maint.mk (gnulib_dir): Move near top of file.
25943 2016-12-31  Jim Meyering  <meyering@fb.com>
25945         maint.mk: do not always evaluate intprops-related shell
25946         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25947         using gnulib_dir undefined (gnulib_dir is defined later in the
25948         file, which will be fixed separately), and besides, there is no
25949         need to incur the cost of this shell invocation for every single
25950         use of this .mk file.  Reported by Eric Blake in
25951         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25953 2016-12-30  Jim Meyering  <meyering@fb.com>
25955         maint.mk: improve sc_prohibit_intprops_without_use
25956         * top/maint.mk (_intprops_names): Don't hard-code the list of
25957         symbol names.  Instead, derive it on the fly.
25959 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25961         dfa: shorten sbit, success
25962         * lib/dfa.c (struct regex_syntax.sbit):
25963         (struct dfa.success): Use char, not int, for array elements, since
25964         they are all in the range 0..7.
25966         dfa: simplify multibyte_prop etc.
25967         This follows up on a change made when dfa.c was in grep, namely grep
25968         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25969         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25970         That earlier simplification allows for some more simplification
25971         and trimming down here.
25972         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25973         (struct lexer_state): New mamber brack.
25974         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25975         since they must be in the range 0..3 now.
25976         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25977         the brack member now supersedes them.
25978         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25979         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25980         (dfaparse): Remove unnecessary initializations of already-0 storage.
25981         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25982         (dfassbuild): No need to clear sup->mbcsets.
25984         dfa: minor performance tweak
25985         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25987         dfa: wrap charclass inside a struct
25988         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25989         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25990         about 5% faster, where list.txt is generated by 'aspell dump
25991         master | head -n 100000 >list.txt'.  See Bug#22239.
25992         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25993         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25994         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25995         Adjust to this, e.g., by using charclass * rather than charclass.
25996         All callers changed as needed.
25997         (copyset): Remove.  All uses changed to simple assignment.
25998         (parse_bracket_exp): Use zeroset instead of memset.
26000 2016-12-30  Jim Meyering  <meyering@fb.com>
26002         maint.mk: update list of intprops.h symbol names
26003         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26004         This avoids a false failure of the sc_prohibit_intprops_without_use
26005         rule in grep.
26007 2016-12-29  Eric Blake  <eblake@redhat.com>
26009         getopt: fix parallel test failure
26010         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26011         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26012         * tests/test-getopt-main.h (main): Use different file names
26013         in case test-getopt-gnu and test-getopt-posix run in parallel.
26015 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26017         xalloc: x2nrealloc check for ptrdiff_t overflow
26018         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26019         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26021 2016-12-24  Bruno Haible  <bruno@clisp.org>
26023         lock test: Fix performance problem on multi-core machines.
26024         * tests/test-lock.c (USE_VOLATILE): New macro.
26025         (struct atomic_int): New type.
26026         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26027         functions.
26028         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26029         as 'struct atomic_int'.
26030         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26031         reclock_checker_thread, test_recursive_lock): Use the new functions.
26032         Reported by Eric Blake in
26033         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26034         and by Pádraig Brady in
26035         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26037 2016-12-19  Bruno Haible  <bruno@clisp.org>
26039         vma-iter: Fix endless loop on 64-bit Windows.
26040         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26041         'unsigned long'.
26043 2016-12-19  Bruno Haible  <bruno@clisp.org>
26045         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26047         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26048         Invoke gt_TYPE_WINT_T instead.
26049         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26050         * modules/stdint (Files): Add m4/wint_t.m4.
26051         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26052         * modules/wctype-h (Makefile.am): Likewise.
26053         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26054         not only on MSVC.
26055         * lib/wctype.in.h (wint_t): Likewise.
26057 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26059         getopt-posix-tests: fix Makefile typo
26060         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26061         Fix typo: the last ‘_’ was missing in the name.
26062         I suspect that the typo explains this build failure:
26063         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26064         although I can’t reproduce the problem on Solaris 10 sparc.
26066 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26068         dfa: improve worst-case 'replace' performance
26069         See my note in Bug#22357#71.
26070         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26071         (merge_constrained): New function, which is like
26072         the old 'merge' function, except with a new argument C2.
26073         Simplify the body by avoiding the need for different sections
26074         of code depending on whether one input is exhausted.
26075         (merge): Use the new function.
26076         (delete): Return the constraint of the deleted position,
26077         not the entire position.  Caller changed.
26078         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26080 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26082         dfa: performance improvement for removal of epsilon closure
26083         See Bug#22357#32.
26084         * lib/dfa.c (delete): Use binary search to find deleted index.
26085         (replace): New function.  It replaces a position with the followed set.
26086         (epsclosure): Replace it with a new algorithm.  Update caller.
26088 2016-12-18  Bruno Haible  <bruno@clisp.org>
26090         Split tests for getopt-posix and getopt-gnu.
26091         * tests/test-getopt-posix.c: New file.
26092         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26093         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26094         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26095         GNULIB_TEST_GETOPT_GNU.
26096         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26097         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26098         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26099         * modules/getopt-gnu-tests: New file.
26100         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26102 2016-12-18  Bruno Haible  <bruno@clisp.org>
26104         posix-modules: Add options for specific platforms.
26105         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26106         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26107         Invoke func_tmpdir. Filter out the excludes.
26109 2016-12-18  Bruno Haible  <bruno@clisp.org>
26111         getopt: Fix link error for users of getopt() in <unistd.h>.
26112         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26113         __need_getopt is defined. Undefine all macros before defining them.
26114         * modules/getopt (Include): Clarify that including <unistd.h> is also
26115         OK.
26116         * tests/test-getopt.c: Add comment.
26118 2016-12-17  Bruno Haible  <bruno@clisp.org>
26120         getaddrinfo tests: Avoid compilation error on MSVC.
26121         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26122         getaddrinfo on native Windows.
26124 2016-12-17  Bruno Haible  <bruno@clisp.org>
26126         getlogin, getlogin_r: Fix link errors on MSVC.
26127         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26128         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26129         (Link): New section.
26130         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26131         (configure.ac): Require gl_LIB_GETLOGIN.
26132         (Link): New section.
26133         * NEWS: Mention the new link requirements.
26134         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26135         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26137 2016-12-17  Bruno Haible  <bruno@clisp.org>
26139         Un-deprecate the 'progname' module.
26140         * NEWS: Describe the appropriate use-cases of 'progname' versus
26141         'getprogname'. Based on discussion summary at
26142         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26144 2016-12-17  Bruno Haible  <bruno@clisp.org>
26146         Reorganize NEWS a bit.
26147         * NEWS: Move some not so important changes away from section
26148         "Important Notes".
26150 2016-12-17  Bruno Haible  <bruno@clisp.org>
26152         tanhf: Avoid redefinition error on MSVC.
26153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26154         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26155         may be defined as an inline function.
26156         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26157         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26159 2016-12-17  Bruno Haible  <bruno@clisp.org>
26161         tanf: Avoid redefinition error on MSVC.
26162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26163         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26164         may be defined as an inline function.
26165         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26166         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26168 2016-12-17  Bruno Haible  <bruno@clisp.org>
26170         sqrtf: Avoid redefinition error on MSVC.
26171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26172         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26173         may be defined as an inline function.
26174         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26175         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26177 2016-12-17  Bruno Haible  <bruno@clisp.org>
26179         sinhf: Avoid redefinition error on MSVC.
26180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26181         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26182         may be defined as an inline function.
26183         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26184         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26186 2016-12-17  Bruno Haible  <bruno@clisp.org>
26188         sinf: Avoid redefinition error on MSVC.
26189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26190         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26191         may be defined as an inline function.
26192         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26193         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26195 2016-12-17  Bruno Haible  <bruno@clisp.org>
26197         logf: Avoid redefinition error on MSVC.
26198         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26199         may be defined as an inline function.
26201 2016-12-17  Bruno Haible  <bruno@clisp.org>
26203         log10l: Avoid redefinition error on MSVC.
26204         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26205         may be defined as an inline function.
26207 2016-12-17  Bruno Haible  <bruno@clisp.org>
26209         log10f: Avoid redefinition error on MSVC.
26210         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26211         may be defined as an inline function.
26213 2016-12-17  Bruno Haible  <bruno@clisp.org>
26215         hypotl: Avoid redefinition error on MSVC.
26216         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26217         may be defined as an inline function.
26219 2016-12-17  Bruno Haible  <bruno@clisp.org>
26221         hypotf: Avoid redefinition error on MSVC.
26222         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26223         may be defined as an inline function.
26225 2016-12-17  Bruno Haible  <bruno@clisp.org>
26227         fmodl: Avoid redefinition error on MSVC.
26228         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26229         may be defined as an inline function.
26231 2016-12-17  Bruno Haible  <bruno@clisp.org>
26233         fmodf: Avoid redefinition error on MSVC.
26234         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26235         may be defined as an inline function.
26237 2016-12-17  Bruno Haible  <bruno@clisp.org>
26239         expf: Avoid redefinition error on MSVC.
26240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26241         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26242         may be defined as an inline function.
26243         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26244         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26246 2016-12-17  Bruno Haible  <bruno@clisp.org>
26248         coshf: Avoid redefinition error on MSVC.
26249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26250         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26251         may be defined as an inline function.
26252         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26253         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26255 2016-12-17  Bruno Haible  <bruno@clisp.org>
26257         cosf: Avoid redefinition error on MSVC.
26258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26259         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26260         may be defined as an inline function.
26261         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26262         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26264 2016-12-17  Bruno Haible  <bruno@clisp.org>
26266         atan2f: Avoid redefinition error on MSVC.
26267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26268         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26269         may be defined as an inline function.
26270         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26271         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26273 2016-12-17  Bruno Haible  <bruno@clisp.org>
26275         atanf: Avoid redefinition error on MSVC.
26276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26277         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26278         may be defined as an inline function.
26279         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26280         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26282 2016-12-17  Bruno Haible  <bruno@clisp.org>
26284         asinf: Avoid redefinition error on MSVC.
26285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26286         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26287         may be defined as an inline function.
26288         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26289         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26291 2016-12-17  Bruno Haible  <bruno@clisp.org>
26293         acosf: Avoid redefinition error on MSVC.
26294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26295         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26296         may be defined as an inline function.
26297         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26298         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26300 2016-12-17  Bruno Haible  <bruno@clisp.org>
26302         Avoid redefinition errors on MSVC.
26303         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26304         the function may be defined as an inline function.
26305         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26306         the function may be defined as an inline function.
26308 2016-12-17  Bruno Haible  <bruno@clisp.org>
26310         Avoid redefinition errors on MSVC.
26311         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26312         * lib/unistd.in.h: Include <stdio.h> when necessary.
26314 2016-12-17  Bruno Haible  <bruno@clisp.org>
26316         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26317         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26318         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26319         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26320         WINT_MAX.
26322 2016-12-17  Bruno Haible  <bruno@clisp.org>
26324         Avoid autoconf warning.
26325         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26326         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26328 2016-12-17  Bruno Haible  <bruno@clisp.org>
26330         fpending: Revert workaround against Emacs bug.
26331         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26332         The Emacs bug is fixed by Eli Zaretskii in
26333         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26335 2016-12-17  Bruno Haible  <bruno@clisp.org>
26337         getlogin_r tests: Port to mingw.
26338         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26339         regression introduced on 2014-05-19.
26341 2016-12-17  Bruno Haible  <bruno@clisp.org>
26343         getlogin: Port to newer mingw.
26344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26345         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26346         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26347         HAVE_GETLOGIN.
26348         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26349         HAVE_GETLOGIN.
26350         * doc/posix-functions/getlogin.texi: Mention the issue.
26351         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26352         regression introduced on 2014-05-14.
26354 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26356         builtin-expect: improve port to IBM XL C
26357         Problem reported for z/OS by Daniel Richard G. in:
26358         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26359         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26360         Test for <builtins.h> directly.
26362         builtin-expect: port to IBM XL C
26363         Problem reported for z/OS by Daniel Richard G. in:
26364         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26365         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26366         Also allow __builtin_expect defined via a standard include file.
26368         regex: fix dependency
26369         Problem reported by Bruno Haible in:
26370         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26371         * modules/regex: Depend on builtin-expect.
26373         builtin-expect: new module
26374         Fix fnmatch to use it.
26375         Problem reported for z/OS by Daniel Richard G.
26376         * lib/fnmatch.c (__builtin_expect):
26377         * lib/glob.c (__builtin_expect):
26378         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26379         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26380         * lib/scandir.c (__builtin_expect):
26381         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26382         Remove macro; config.h now does this.
26383         * lib/gl_anytreehash_list1.h (add_to_bucket):
26384         * lib/regex_internal.h (BE):
26385         Assume __builtin_expect.
26386         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26387         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26388         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26389         * modules/scandir, modules/strstr-simple:
26390         Depend on builtin-expect.
26392 2016-12-15  Bruno Haible  <bruno@clisp.org>
26394         init.sh: Add possibility to not delete temporary files.
26395         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26396         to yes, don't erase the temporary directory.
26398 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26400         regex: fix integer-overflow bug in never-used code
26401         Problem reported by Clément Pit–Claudel in:
26402         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26403         * lib/regex_internal.h: Include intprops.h.
26404         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26405         behavior on integer overflow.
26406         * modules/regex (Depends-on): Add intprops.
26408         fpending: fix port to MinGW on Emacs
26409         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26410         Problem reported by Eli Zaretskii in:
26411         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26412         Is Plan 9 still a valid porting target, anyway?
26414 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26416         safe-alloc: use xalloc-oversized
26417         * lib/safe-alloc.c: Include xalloc-oversized.h.
26418         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26419         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26421         xalloc: do not exceed PTRDIFF_MAX
26422         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26423         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26424         bytes have pointer-subtraction problems.
26426         malloca: do not exceed PTRDIFF_MAX
26427         * lib/malloca.h: Include xalloc-oversized.
26428         (nmalloca): Use xalloc_oversized instead of rolling our own.
26429         * modules/malloca (Depends-on):
26430         * modules/relocatable-prog-wrapper (Depends-on):
26431         Add xalloc-oversized.
26433         quotearg: pacify GCC better
26434         * modules/quotearg (Depends-on): Add minmax, stdint.
26435         * lib/quotearg.c: Include minmax.h, stdint.h.
26436         (nslots): Now int, as there seems little point to going to extra
26437         work merely to support the INT_MAX slot, which nobody ever uses.
26438         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26439         and to catch (mostly-theoretical) ptrdiff_t problems too.
26440         This can be done via one comparison.
26442 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26444         xalloc-oversized: check for PTRDIFF_MAX too
26445         This avoids undefined behavior when subtracting pointers to
26446         objects containing more than PTRDIFF_MAX bytes.
26447         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26448         Also return 1 if the result would exceed PTRDIFF_MAX>
26449         * modules/xalloc-oversized (Depends-on):
26450         Add stdint.
26452         dfa: fix glitches in previous commit
26453         Sorry, I don't know how I managed to commit the wrong version.
26454         * lib/dfa.c (MIN): Move up.
26455         (xpalloc): Now static.
26457         dfa: fix some unlikely integer overflows
26458         I found these while reviewing the recent Coverity-related fix.
26459         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26460         size_t for object counts.  Using ptrdiff_t is the style typically
26461         used in Emacs; although it wastes a sign bit as sizes can never be
26462         negative, it makes -fsanitize=undefined more likely to catch
26463         integer overflows in index calculation, and nowadays the upside is
26464         typically more important than the downside.  Although perhaps the
26465         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26466         of dfa.c already does, since it uses state_num which is signed),
26467         that is a bigger change and is not needed to fix the bugs I found.
26468         * lib/dfa.c: Include stdint.h and intprops.h.
26469         (TOKEN_MAX): New macro.
26470         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26471         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26472         (realloc_trans_if_necessary, free_mbdata):
26473         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26474         This is safe because xpalloc checks that the sizes do not exceed
26475         either SIZE_MAX or PTRDIFF_MAX.
26476         (xpalloc): New function, mostly taken from Emacs.
26477         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26478         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26479         (charclass_index): Check for integer overflow in computing
26480         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26481         added to it later.
26482         (alloc_position_set): Check for integer overflow.  On typical
26483         platforms this check has zero overhead, since the constant
26484         expression is false.
26485         (realloc_trans_if_necessary):
26486         Remove assertion, which I hope Coverity no longer needs.
26488         * modules/dfa (Depends-on): Add intprops, stdint.
26490 2016-12-12  Jim Meyering  <meyering@fb.com>
26492         dfa: add an assertion to avoid coverity false positive
26493         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26494         warned that "newalloc1 - 2" could overflow.
26496 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26498         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26499         * dfa.h (DFA_CASE_FOLD): Remove.
26500         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26502 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26504         link: fix test to declare use of rename()
26505         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26506         -Werror=implicit-function-declaration
26508 2016-12-12  Bruno Haible  <bruno@clisp.org>
26510         fpending: Port to native Windows with MSVC.
26511         * lib/fpending.c: Include stdio-impl.h.
26512         (__fpending): Include all known implementations. Err out if it's not
26513         ported.
26514         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26515         * modules/fpending (Files): Add lib/stdio-impl.h.
26516         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26518 2016-12-12  Bruno Haible  <bruno@clisp.org>
26520         stdioext: Port to native Windows with MSVC.
26521         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26522         (struct _gl_real_FILE): New type.
26523         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26524         Windows.
26525         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26526         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26527         other SystemV derived implementations.
26528         * lib/fpurge.c (fpurge): Likewise.
26529         * lib/freadable.c (freadable): Likewise.
26530         * lib/freadahead.c (freadahead): Likewise.
26531         * lib/freading.c (freading): Likewise.
26532         * lib/freadptr.c (freadptr): Likewise.
26533         * lib/freadseek.c (freadptrinc): Likewise.
26534         * lib/fseeko.c (fseeko): Likewise.
26535         * lib/fseterr.c (fseterr): Likewise.
26536         * lib/fwritable.c (fwritable): Likewise.
26537         * lib/fwriting.c (fwriting): Likewise.
26538         Reported by Gisle Vanem <gvanem@yahoo.no>.
26540 2016-12-11  Jim Meyering  <meyering@fb.com>
26542         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26543         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26544         to work with most shells, but not with the one provided by many
26545         Solaris 10 systems, so running configure with such a /bin/sh evokes
26546         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26547         Reported by Assaf Gordon in
26548         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26550 2016-12-10  Bruno Haible  <bruno@clisp.org>
26552         threadlib: Optimize out runtime test on Solaris >= 10.
26553         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26554         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26555         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26557 2016-12-10  Bruno Haible  <bruno@clisp.org>
26559         stdint: Update doc about Solaris 9.
26560         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26562 2016-12-09  Bruno Haible  <bruno@clisp.org>
26564         c-ctype tests: Fix link error on Solaris 9.
26565         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26566         Reported at <https://savannah.gnu.org/bugs/?46827>.
26568 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26570         dfa: fix performance bug that recomputes trans
26571         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26572         25 on-demand changes.  The bug caused build_state to reset all
26573         d->trans elements to -2 even when d->trans was already non-null.
26574         Use C99 style decls after statements in this function.
26576         same-inode: port to MinGW
26577         Here st_ino is always 0, so change the definition of SAME_INODE so
26578         that 1 means the two files are the same, 0 with st_ino != 0 means
26579         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26580         reported by Bruno Haible (Bug#25146).
26581         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26582         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26584 2016-12-04  Bruno Haible  <bruno@clisp.org>
26586         javacomp-script: Support Java 7 and 8.
26587         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26588         target-version 1.7, 1.8.
26590 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26592         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26593         GPLv2" rewriting.
26595 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26597         * gnulib-tool (func_import): Adhere to the license guideline when
26598         rewriting the license text to "LGPLv3+ or GPLv2":
26599         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26601 2016-12-02  Bruno Haible  <bruno@clisp.org>
26603         localcharset: Avoid theoretical buffer overrun.
26604         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26605         return value from setlocale if it would lead to a buffer overrun.
26607 2016-12-01  Bruno Haible  <bruno@clisp.org>
26609         Relicense some modules under LGPLv2+.
26610         Kevin Cernekee's approval is in
26611         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26612         * modules/fseterr (License): Change to LGPLv2+.
26613         * modules/mbchar (License): Likewise.
26614         * modules/mbiter (License): Likewise.
26615         * modules/mbsnlen (License): Likewise.
26616         * modules/wcwidth (License): Likewise.
26618 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26620         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26621         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26622         OS/2 kLIBC.
26624 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26626         alphasort, scandir: Port to OS/2 kLIBC
26627         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26628         declaration.
26629         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26631 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26633         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26634         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26635         with '/@unixroot'.
26637 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26639         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26640         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26641         OS/2 kLIBC unless TCPV40HDRS is defined.
26643 2016-11-29  Jim Meyering  <meyering@fb.com>
26645         dfa: avoid new infinite loop
26646         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26647         * lib/dfa.c (dfastate): When constructing a new state table, we could
26648         initially declare that we had found a match, and later find that
26649         constraints eliminate that possibility, yet continue to use the
26650         now stale "matched" indicator.  That would lead to an infinite loop.
26651         The solution is to update "matched" when necessary.
26652         Introduced by commit v0.1-983-g403adf1.
26654 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26656         dfa: avoid match middle in multibyte character
26657         * lib/dfa.c (transit_state): If fails in matching single byte characters
26658         on a state including period expression in non-UTF8 multibyte locales,
26659         skip trailing bytes.
26660         (dfa_supported): Revert previous change.
26662 2016-11-27  Jim Meyering  <meyering@fb.com>
26664         dfa: avoid false match in non-UTF8 multibyte locales
26665         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26666         as "not supported" so that callers will resort to using regex-based
26667         matcher.  This will surely hurt performance, but correctness trumps
26668         performance here, and the affected locales are less and less relevant,
26669         these days.  See grep's bug report https://bugs.gnu.org/24975.
26671 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26673         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26674         * lib/ptsname_r.c: Include the appropriate headers.
26675         [__sun]: Delete sys/sysmacros.h include.
26676         [_AIX || __osf__]: Likewise.
26677         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26679 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26681         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26682         * lib/md4.c (md4_process_bytes): The existing define is made internal
26683         in recent versions of glibc, so also use this new public define.
26684         * lib/md5.c (md5_process_bytes): Likewise.
26685         * lib/sha1.c (sha1_process_bytes): Likewise.
26686         * lib/sha256.c (sha256_process_bytes): Likewise.
26687         * lib/sha512.c (sha512_process_bytes): Likewise.
26689 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26691         maint: use a more standard return from mbrtowc test
26692         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26693         from the test program as this often indicates an
26694         unhandled case in the test program.
26695         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26696         (gl_MBRTOWC_SANITYCHECK): Likewise.
26697         (gl_MBRTOWC_NULL_ARG2): Likewise.
26698         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26700 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26702         freopen: work around glibc bug with closed fd
26703         Work around glibc bug#15589, where freopen mishandles the case
26704         where stdin etc. are already closed.
26705         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26706         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26707         instead of __need_FILE, as the latter does not work with glibc.
26708         Include <fcntl.h>, for open flags.
26709         (rpl_freopen): Work around glibc bug.
26710         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26711         * modules/freopen (Depends-on): Add fcntl-h.
26712         * tests/test-freopen.c (main): Test for bug.
26714 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26716         fnmatch: fix typo introduced on 2016-08-17
26717         This fixes the port to non-GCC compilers that lack __builtin_expect.
26718         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26720         dfa: simplify with new function fillset
26721         * lib/dfa.c (fillset): New function.
26722         Use it for clarity when applicable.
26724         dfa: fix glitches with on-demand states
26725         Also, adjust commentary to better match new code.
26726         Some of these glitches predate the recent change.
26727         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26728         only non-initial states.
26729         (dfastate): Rename locals to better match new roles.
26730         Move them into nested scopes if this is easy.
26731         Omit unnecessary calls to zeroset.
26732         Simplify test for whether to throw in the positions of state 0.
26733         Omit C99-ism (decl after statement) since Gawk still wants C89.
26734         (build_state): Omit unnecessary test and assignment.
26735         Fix some confusion that counted transition tables inaccurately
26736         and could cause a memory leak.
26737         (dfaexec_main): Redo to make it clearer to the compiler that
26738         -1 and -2 are the only negative state numbers here.
26740 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26742         dfa: addition of new state on demand
26743         * src/dfa.c (dfastate): Add argument UC, the current input character.
26744         Fill only a group including the character in transition table.
26745         (realloc_trans_if_necessary): Add the dummy state which means that a
26746         transition table is assigned but the next state is not assigned.
26747         (build_state): Return the next state.  All callers updated.
26748         (transit_state_singlebyte): If we get the dummy state,
26749         fill the transition table.
26750         (dfaexec_main): Handle the dummy state.
26751         (free_mbdata, dfafree): Consider the dummy state.
26753 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26755         srclist: sync with released gettext
26756         * config/srclist.txt: Set "release" option to the files under
26757         $GETTEXT.
26759 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26761         srclist: add "release" option
26762         * config/srclist.txt: Change the format so that the first column
26763         of each line points to the top-level directory of the source
26764         archive.
26765         * config/srclist-update: Accept "release" option that checks files
26766         from the most recently tagged revision in the source archive.
26768 2016-11-21  Bruno Haible  <bruno@clisp.org>
26770         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26771         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26772         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26773         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26774         Inline and remove member function 'rpl ()' of the wrapper struct.
26776 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26778         dfa: fix logic typo
26779         Problem reported by Stephane Chazelas (Bug#24973).
26780         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26781         non-simple locales like fr_FR to be treated as simple.
26783 2016-11-20  Jim Meyering  <meyering@fb.com>
26785         fix test driver leaks: exclude, malloc, realloc
26786         * tests/test-exclude.c (main): Fix trivial leak.
26787         * tests/test-malloc-gnu.c (main): Likewise.
26788         * tests/test-realloc-gnu.c (main): Likewise.
26789         With these changes, grep's tests are now leak free.
26790         I.e., running them with ASAN elicits no failure:
26791           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26792             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26794 2016-11-11  Bruno Haible  <bruno@clisp.org>
26796         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26797         * modules/libunistring: (License): Change from LGPL to
26798         "LGPLv3+ or GPLv2".
26799         * modules/libunistring-optional: Likewise.
26800         * modules/unicase/*: Likewise.
26801         * modules/uniconv/*: Likewise.
26802         * modules/unictype/*: Likewise.
26803         * modules/unigbrk/*: Likewise.
26804         * modules/unilbrk/*: Likewise.
26805         * modules/uniname/*: Likewise.
26806         * modules/uninorm/*: Likewise.
26807         * modules/unistdio/*: Likewise.
26808         * modules/unistr/*: Likewise.
26809         * modules/uniwbrk/*: Likewise.
26810         * modules/uniwidth/*: Likewise.
26812 2016-11-12  Bruno Haible  <bruno@clisp.org>
26814         Relicense some modules under LGPLv2+.
26815         Paul Eggert's approval is in
26816         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26817         Eric Blake's approval is in
26818         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26819         Ludovic Courtès's approval is in
26820         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26821         * modules/isnand-nolibm (License): Change to LGPLv2+.
26822         * modules/isnanf-nolibm (License): Likewise.
26823         * modules/isnanl-nolibm (License): Likewise.
26825 2016-11-19  Bruno Haible  <bruno@clisp.org>
26827         Relicense some modules under LGPLv2+.
26828         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26829         modules/vasnprintf.
26830         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26831         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26832         All other significant changes to the files in lib/ of these modules
26833         are from me.
26834         * modules/memcmp2 (License): Change to LGPLv2+.
26835         * modules/amemxfrm (License): Likewise.
26836         * modules/fpieee (License): Likewise.
26837         * modules/fpucw (License): Likewise.
26838         * modules/frexp-nolibm (License): Likewise.
26839         * modules/frexpl-nolibm (License): Likewise.
26840         * modules/printf-frexp (License): Likewise.
26841         * modules/printf-frexpl (License): Likewise.
26842         * modules/printf-safe (License): Likewise.
26843         * modules/signbit (License): Likewise.
26845 2016-11-17  Bruno Haible  <bruno@clisp.org>
26847         Enable Unicode decoder safety unconditionally.
26848         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26849         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26850         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26851         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26852         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26853         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26854         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26855         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26856         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26857         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26858         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26859         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26860         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26861         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26862         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26863         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26864         * lib/unistr/u32-next.c (u32_next): Likewise.
26865         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26866         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26867         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26868         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26869         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26870         CONFIG_UNICODE_SAFETY tests unconditionally.
26871         * tests/unistr/test-u32-mblen.c (main): Likewise.
26872         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26873         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26874         * tests/unistr/test-u32-next.c (main): Likewise.
26875         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26876         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26877         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26878         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26879         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26880         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26881         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26882         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26883         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26884         * lib/unistr/u16-check.c (u16_check): Update comment.
26885         * NEWS: Mention the changes that callers should be aware of.
26887 2016-11-19  Bruno Haible  <bruno@clisp.org>
26889         relocatable-prog-wrapper: Fix breakage on Cygwin.
26890         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26891         (Depends-on): Remove intprops.
26892         * lib/relocwrapper.c: Update dependency tree.
26893         (strerror): Undefine.
26894         * build-aux/install-reloc (func_create_wrapper): Do not compile
26895         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26897 2016-11-19  Bruno Haible  <bruno@clisp.org>
26899         strerror: Make it compile in C++ mode.
26900         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26902 2016-11-15  Pedro Alves  <palves@redhat.com>
26904         sys_time: add gnulib::timeval for C++
26905         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26906         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26907         timeval macro.
26909 2016-11-14  Pedro Alves  <palves@redhat.com>
26911         snippet/c++defs: fix real-floating arg functions in C++ mode
26912         Also, define isfinite, isinf, isnan, signbit in the gnulib
26913         namespace instead of in the global namespace.
26914         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26915         (_GL_END_NAMESPACE): New.
26916         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26917         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26918         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26919         instead of in the global namespace.
26920         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26921         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26922         of in the global namespace.
26924 2016-11-13  Jim Meyering  <meyering@fb.com>
26926         strftime: don't use __THROW
26927         Each use of __THROW would provoke this from gcc-7-to-be:
26929           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26930             on unit local functions [-Wattributes]
26931           static int iso_week_days (int, int) __THROW;
26932           ^~~~~~
26933         * lib/strftime.c (__THROW): Don't define.
26934         Remove each use of __THROW.
26935         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26936         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26938 2016-11-14  Paul Eggert  <eggert@union>
26940         obstack: port to gcc -fcheck-pointer-bounds
26941         Problem found by 'make check' failure on bleeding-edge coreutils
26942         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26943         6.2.0-5ubuntu12), configured via "./configure
26944         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26945         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26946         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26947         New macro, copied from fts_.h.
26948         (struct _obstack_chunk.contents): Use it.
26950 2016-11-14  Eric Blake  <eblake@redhat.com>
26952         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26953         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26954         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26956 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26958         strptime: fix compile error in recent change
26959         * lib/strptime.c (__strptime_internal): Fix ported code.
26961 2016-11-11  Bruno Haible  <bruno@clisp.org>
26963         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26964         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26965         (func_import): Extend determination of license_incompatibilities.
26966         (func_create_testdir): Extend table of license compatibility. Handle
26967         also the licenses GPLv3+, GPL, LGPLv3+.
26969 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26971         strftime: tune %q
26972         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26974         Merge strftime.c changes from glibc
26975         This incorporates:
26976         2007-10-16 [BZ #5184] Add tzset_called argument
26977         2008-06-13 [BZ #6612] pass reference to tzset_called around
26978         2009-10-30 Implement Burmese language locale for Myanmar
26979         2010-01-09 Add support for XPG7 testing
26980         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26981         2015-10-20 Convert miscellaneous function definitions to prototype style
26982         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26983         it anyway and this lessens the difference between gnulib and glibc.
26984         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26985         (__THROW): Define if standard headers do not.
26986         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26987         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26988         Declare with __THROW.
26989         (__strftime_internal): Rename from strftime_case_. Add arg for
26990         whether tzset is called.  All uses changed.  Call tzset at most
26991         once.  Allow %OC, for Burmese.
26992         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26993         Don't assume values are in range.
26995 2016-11-12  Eric Blake  <eblake@redhat.com>
26997         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26998         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26999         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27000         different value.
27002 2006-11-12  Pedro Alves  <palves@redhat.com>
27004         Fix gnulib C++ namespace support and std::frexp
27005         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27006         _GL_CXXALIASWARN.
27008 2006-11-12  Pedro Alves  <palves@redhat.com>
27010         GNULIB_NAMESPACE::func need not pull in rpl_func
27011         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27012         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27013         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27014         struct instead of a function pointer.
27016 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27018         manywarnings: fix -Wno-missing-field-initializers detection
27019         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27020         to be independent of -Wunused-variable.  I.E. ensure the latter
27021         warning doesn't occur so that detection of the former is accurate.
27023 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27025         strftime,strptime: support %q to represent the quarter
27026         * lib/strftime.c (strftime_case_): Add %q case.
27027         * lib/strptime.c (__strptime_internal): Likewise.
27028         * tests/test-strftime.c (quarter_test): A new test case.
27030 2016-11-03  Eric Blake  <eblake@redhat.com>
27032         bootstrap: Fix get_version() for AIX 5.3
27033         * build-aux/bootstrap (get_version): Factor out sed script, since
27034         indented comments choke AIX 5.3 sed.
27035         Reported-by: Michael Felt <aixtools@gmail.com>
27037 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27039         intprops: port to older XL C
27040         Problem reported by Alexander Samoilov in:
27041         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27042         http://savannah.nongnu.org/bugs/?49448
27043         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27044         Define to 1 only for XL C 12.1 or later, since this bug
27045         occurs in XL C for AIX 6.0 but not in 12.1.
27047 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27049         backupfile: initialize default suffix within the implementation
27050         * lib/backupfile.c (find_backup_file_name): Initialize the
27051         global variable here, to simplify usage, and to only call
27052         getenv() when needed.
27054 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27056         futimens: remove FIXME for old Linux kernels
27057         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27058         this in 2012" FIXME, like that for utimensat.
27060         utimensat: remove FIXME for old Linux kernels
27061         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27062         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27063         this in 2012" FIXME, by assuming the file system bug is absent
27064         unless demonstrated to be present.  We no longer need to worry
27065         about Linux kernel 2.6.32 when building with newer kernels.
27067 2016-10-16  Bruno Haible  <bruno@clisp.org>
27069         qsort_r: Fix macrology for platforms that lack the function.
27070         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27071         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27072         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27073         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27074         not exist.
27075         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27076         the function exists.
27077         * modules/qsort_r: Add comments.
27079 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27081         sys_types: fix Texinfo typos
27082         * doc/glibc-functions/gnu_dev_major.texi:
27083         * doc/glibc-functions/gnu_dev_makedev.texi:
27084         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27086 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27088         getprogname: port to HP-UX
27089         See Bug#24805.
27090         * lib/getprogname.c (getprogname) [__hpux]: Port.
27091         * tests/test-getprogname.c (STREQ) [__hpux]:
27092         Special-case for HP-UX limitations on program name length.
27094 2016-10-20  Bruno Haible  <bruno@clisp.org>
27096         Update doc about target platforms.
27097         * doc/gnulib-intro.texi (Target Platforms): Update list.
27099 2016-10-15  Bruno Haible  <bruno@clisp.org>
27101         opendir, readdir, closedir: Relicense under LGPLv2+.
27102         * modules/opendir (License): Change to LGPLv2+.
27103         * modules/readdir (License): Likewise.
27104         * modules/closedir (License): Likewise.
27106 2016-10-16  Bruno Haible  <bruno@clisp.org>
27108         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27109         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27110         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27111         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27112         HAVE_DECL_STRERROR_R.
27114 2016-10-16  Bruno Haible  <bruno@clisp.org>
27116         Make the 'argp' module work without the 'error' module.
27117         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27119 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27121         diffseq: restore TOO_EXPENSIVE heuristic
27122         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27123         (Bug#24715).  The simplest solution is to restore the
27124         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27125         using a higher threshold to avoid Bug#16848 on smaller files.
27126         * lib/diffseq.h (struct context): Restore member too_expensive.
27127         (struct partition): Restore members lo_minimal, hi_minimal.
27128         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27129         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27130         1993 to make 'diff' run faster (but not as well) on large inputs,
27131         but use a threshold of 4096 instead of the old 256.
27132         * lib/fstrcmp.c (strcmp_bounded):
27133         * lib/git-merge-changelog.c (compute_differences):
27134         Adjust to diffseq.h changes.
27136 2016-10-22  Bruno Haible  <bruno@clisp.org>
27138         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27139         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27140         declaration yet, define ICONV_CONST to empty.
27142 2016-10-15  Bruno Haible  <bruno@clisp.org>
27144         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27145         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27146         module.
27148 2016-10-16  Bruno Haible  <bruno@clisp.org>
27150         system-quote tests: Avoid compiler warning on AIX.
27151         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27152         <stdio.h> does.
27154 2016-10-16  Bruno Haible  <bruno@clisp.org>
27156         Fix some "gcc -Wall" warnings.
27157         * tests/test-ffsl.c (main): Use variable x, not i.
27158         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27159         freopen.
27160         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27161         of sethostname.
27163 2016-10-16  Bruno Haible  <bruno@clisp.org>
27165         gnulib-tool: Make --create-testdir on all modules work again.
27166         * gnulib-tool (func_create_testdir): Don't include the
27167         non-recursive-gnulib-prefix-hack module.
27169 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27171         libunistring: change the maintainer to 'all'
27172         * modules/gen-uni-tables, modules/libunistring:
27173         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27174         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27175         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27176         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27177         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27178         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27179         * modules/uniwidth/*: Change the maintainer to 'all'.
27181 2016-10-16  Bruno Haible  <bruno@clisp.org>
27183         Simplify "configure: checking ..." messages.
27184         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27185         AC_MSG_NOTICE.
27186         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27188 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27190         quotearg-tests: pacify gcc -Wall
27191         Problem reported by Bruno Haible in:
27192         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27193         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27194         * tests/test-quotearg.h: ... from here.
27196 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27198         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27199         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27200         Needed on Centos <= 4.
27202 2016-10-20  Jim Meyering  <meyering@fb.com>
27204         printf.m4: fix a bug in detecting printf %j support
27205         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27206         uintmax_t is defined in neither stdint.h nor inttypes.h.
27207         Before, this macro might have mistakenly set
27208         gl_cv_func_printf_sizes_c99=yes on such a system.
27209         Spotted by Zev Weiss.
27211 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27213         sched: substitute HAVE_SYS_CDEFS_H too
27214         Problem reported by Tom G. Christensen in:
27215         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27216         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27217         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27219 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27221         quotearg: never write beyond the returned length
27222         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27223         scan of the string when we initially encounter a single quote when
27224         shell quoting, so that if we then switch to a more concise quoting method
27225         we will not have written beyond that returned length.
27226         This is significant for sh-quote, which has separate routines
27227         to determine the length and do the actual quoting.
27228         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27229         now that we never write more than the returned length.
27231 2016-10-18  Bruno Haible  <bruno@clisp.org>
27233         getprogname tests: Avoid failure in packages that use libtool.
27234         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27235         Based on a patch by Jim Meyering.
27237 2016-10-16  Bruno Haible  <bruno@clisp.org>
27239         getprogname: Fix test failure on Cygwin. Comments.
27240         * lib/getprogname.h: Add comments.
27241         * lib/getprogname.c: Add comments. Fix #elif indentation.
27242         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27243         ".exe" suffix.
27245 2016-10-16  Bruno Haible  <bruno@clisp.org>
27247         Make sure the libunistring detection rejects older versions with a
27248         known bug.
27249         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27250         * modules/unistr/u16-strtok (configure.ac): Likewise.
27251         * modules/unistr/u32-strtok (configure.ac): Likewise.
27253 2016-10-18  Bruno Haible  <bruno@clisp.org>
27255         sh-quote, system-quote: revert regression of unit test.
27256         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27257         * tests/test-system-quote-main.c (check_one): Likewise.
27259 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27261         quotearg: fix stale tests
27262         * tests/test-quotearg.c [locale_results]: Add the missing str7
27263         entries to the expected results.
27264         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27265         don't write beyond the returned length, since that's no longer the
27266         case if we switch to a more concise quoting style.
27267         * tests/test-sh-quote.c (check_one): Likewise.
27268         (main): Adjust for the new more concise quoting style.
27269         Reported by Bruno Haible.
27271 2016-10-16  Jim Meyering  <meyering@fb.com>
27273         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27274         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27275         to "$1".  This macro is always invoked with $1 == lib.
27276         Spotted by Bruno Haible
27278 2016-10-16  Bruno Haible  <bruno@clisp.org>
27280         Fix a test crash.
27281         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27282         fails.
27284 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27286         test-limits-h: suppress -Woverlength-strings
27287         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27289 2016-10-15  Bruno Haible  <bruno@clisp.org>
27291         gettime, timespec, utimens: Relicense under LGPL.
27292         * modules/gettime (License): Change to LGPL.
27293         * modules/timespec (License): Likewise.
27294         * modules/utimens (License): Likewise.
27296 2016-10-14  Bruno Haible  <bruno@clisp.org>
27297             Pádraig Brady  <P@draigBrady.com>
27299         canonicalize-lgpl: Support the case path_max > INT_MAX.
27300         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27301         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27303 2016-10-13  Jim Meyering  <meyering@fb.com>
27305         getprogname: IBM z/OS: avoid NULL-dereference
27306         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27307         upon strdup failure.
27309 2016-10-12  Jim Meyering  <meyering@fb.com>
27311         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27312         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27313         and an abbreviated diagnostic rather than verify with the full one,
27314         because the full-length strings would evoke warnings from gcc with
27315         -Woverlength-strings.
27317 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27319         stdint: port SIZE_MAX to glibc s390
27320         Problem reported by Eric Blake in:
27321         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27322         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27323         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27324         correct type, if possible.
27326 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27328         getprogname: port to IBM z/OS
27329         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27331 2016-10-11  Jim Meyering  <meyering@fb.com>
27333         maint: remove stray space after "." in AC_DEFINE comment.
27334         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27335         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27337 2016-10-05  Jim Meyering  <meyering@fb.com>
27339         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27340         * lib/long-options.c (parse_long_options): Add a break statement
27341         to avoid this new warning/failure:
27342         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27343           --create-testdir --dir=/t/x --with-tests --test long-options
27344         ../../gllib/long-options.c: In function 'parse_long_options':
27345         ../../gllib/long-options.c:66:12: error: this statement may \
27346           fall through [-Werror=implicit-fallthrough]
27347                    (*usage_func) (EXIT_SUCCESS);
27348                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27350 2016-10-05  Jim Meyering  <meyering@fb.com>
27352         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27353         Testing this module would fail when using GCC 7 like this:
27354         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27355           --dir=/tmp/x --with-tests --test utimecmp
27356         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27357         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27358           [-Werror=bool-operation]
27359                          time_t s = src_s & ~ (res == 2 * BILLION);
27360                                             ^
27361         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27362           [-Werror=bool-operation]
27363                src_s &= ~ (res == 2 * BILLION);
27364                         ^
27365         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27366         Instead, make it explicit that we intend to apply it to 0 or 1.
27368 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27370         dfa: save memory for states
27371         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27372         states if dfa has a lot of caches.
27374 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27376         wchar, wctype-h: fix for MinGW 3.22.2
27377         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27378         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27379         when included from <string.h>.
27380         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27381         convention for MinGW 3.22.2, to solve issues with their
27382         wctype.h when included from <ctype.h>.
27384 2016-10-05  Jim Meyering  <meyering@fb.com>
27386         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27387         * lib/long-options.c (parse_long_options): Add a break statement
27388         to avoid this new warning/failure:
27389         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27390           --create-testdir --dir=/t/x --with-tests --test long-options
27391         ../../gllib/long-options.c: In function ‘parse_long_options’:
27392         ../../gllib/long-options.c:66:12: error: this statement may \
27393           fall through [-Werror=implicit-fallthrough]
27394                    (*usage_func) (EXIT_SUCCESS);
27395                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27397         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27398         Testing this module would fail when using GCC 7 like this:
27399         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27400           --dir=/tmp/x --with-tests --test utimecmp
27401         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27402         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27403           [-Werror=bool-operation]
27404                          time_t s = src_s & ~ (res == 2 * BILLION);
27405                                             ^
27406         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27407           [-Werror=bool-operation]
27408                src_s &= ~ (res == 2 * BILLION);
27409                         ^
27410         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27411         Instead, make it explicit that we intend to apply it to 0 or 1.
27413 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27415         quotearg: minimize shell quoting using double quotes
27416         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27417         quote in encountered then use double quotes (c style quoting)
27418         when possible, as it simplifies the quoting.
27419         * tests/test-quotearg-simple.c: Add test cases.
27420         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27421         for the fact we now may write beyond the returned length.
27423 2016-10-02  Jim Meyering  <meyering@fb.com>
27425         vasnprintf.c: avoid spurious warning from GCC 7
27426         The presence of cpp directives renders this "FALLTHROUGH" comment
27427         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27428         from GCC 7 built from git on 2016-10-02.
27429         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27430         directives, so that it takes effect once again.  This is clearly
27431         not a proper change, and I will revert it once this bug is fixed:
27432         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27434 2016-10-01  Jim Meyering  <meyering@fb.com>
27436         getprogname: correct the test for a __progname variable
27437         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27438         and AC_LINK_IFELSE to check for a global __progname.  If found,
27439         define HAVE_VAR___PROGNAME.
27440         * lib/getprogname.c (getprogname): Reflect the new name of the
27441         feature- checked preprocessor symbol:
27442         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27444 2016-09-28  Jim Meyering  <meyering@fb.com>
27446         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27447         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27448         fall-through case with a /* fallthrough */ comment.
27450         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27451         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27452         /* fallthrough */ comment.
27454         getprogname: avoid __progname vs program_invocation_short_name pitfall
27455         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27456         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27457         not with Fedora 24's glibc-2.23.1-10.
27458         * lib/getprogname.c (__progname): Move this declaration down...
27459         (getprogname): ... into the #elif block where used, and make it
27460         explicitly "extern".
27462         getprogname: port to OpenBSD 5.1
27463         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27464         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27465         * modules/getprogname (configure.ac): Move most of this code...
27466         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27467         increment serial number, and add a test for __progname.
27468         https://bugs.gnu.org/24562
27469         Reported by Nelson H. F. Beebe.
27471 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27473         sched: port to GCC 6.2.1 on macOS Sierra
27474         Problem reported by Denis Davydov in:
27475         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27476         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27477         Include <sys/cdefs.h> before <sched.h>.
27478         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27479         so that we needn’t worry about the sched.h include bug here.
27480         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27481         and include it before <sched.h> if it exists, when
27482         checking for <sched.h>.
27484         tests/init.sh: port Alpine fix to AIX 7.1
27485         * tests/init.sh (compare_): When attempting to use diff -U3,
27486         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27487         diff -u not outputting a space after leading '+', as the users
27488         of 'compare' should not be that picky about its output format.
27489         In the AIX 7.1 case, return with diff exit status (or with 2 if
27490         trouble), instead of some random nonzero exit status.
27491         * tests/test-init.sh (test_compare): Remove space after leading
27492         '+', so that AIX 7.1 'diff' passes the test.
27494 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27496         nl_langinfo: pacify GCC
27497         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27498         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27500         stdint: also set GL_GENERATE_LIMITS_H
27501         Problem reported by Jim Meyering in:
27502         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27503         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27505         limits-h, stdint: Don't assume extensions, fix typo
27506         * m4/limits-h.m4 (gl_LIMITS_H):
27507         * m4/stdint.m4 (gl_STDINT_H):
27508         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27509         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27510         reported by Jim Meyering in:
27511         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27513 2016-09-21  Jim Meyering  <meyering@fb.com>
27515         getprogname: port to AIX
27516         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27517         and strdup to obtain a short program name string.  Using code from
27518         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27519         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27520         Assaf Gordon reported that this new file would fail to compile on
27521         AIX-7.1 32bit.
27523 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27525         extensions: fix typo in comment
27526         * m4/extensions.m4: Sync from Autoconf master.
27528         stdint: support new _WIDTH macros
27529         * doc/posix-headers/stdint.texi: Document this.
27530         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27531         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27532         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27533         * modules/stdint (Depends-on): Add limits-h.
27534         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27535         * modules/stdint-tests (Depends-on): Add extensions, so that
27536         INTMAX_MAX etc. are defined.
27537         * tests/test-stdint.c: Verify the new macros.
27539         limits-h: new module
27540         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27541         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27542         * doc/posix-headers/limits.texi: Document new module.
27543         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27544         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27546         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27547         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27548         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27549         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27551 2016-09-15  Eric Blake  <eblake@redhat.com>
27553         sys_types: avoid glibc 2.25 warnings about major()
27554         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27555         older autoconf.
27556         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27557         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27558         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27559         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27561         mountlist: include sysmacros.h for glibc
27562         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27563         AC_HEADER_MAJOR.
27564         * lib/mountlist.c (includes): Use correct headers.
27566 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27568         extensions: port to more ISO C TSes
27569         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27570         master, to add support for more recent ISO C TRs and TSes.
27572 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27574         intprops: new macro TYPE_WIDTH
27575         * lib/intprops.h (TYPE_WIDTH): New macro.
27576         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27577         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27578         * lib/parse-datetime.y (parse_datetime2):
27579         Use it.
27581         extensions: port to recent ISO C TRs
27582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27583         Sync from Autoconf master, to add support for recent ISO C TRs.
27584         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27585         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27586         the MinGW option is not an extension.
27588 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27590         dfa: port to Solaris 9
27591         Problems reported by Tom G. Christensen in:
27592         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27593         * modules/dfa (Depends-on): Add isblank.
27594         * modules/dfa-tests (dfa_match_aux_LDADD):
27595         Rename from test_stat_LDADD, to fix typo.
27596         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27598 2016-09-10  Jim Meyering  <meyering@fb.com>
27600         strverscmp: avoid link failure on OS X
27601         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27602         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27604 2016-08-16  Jim Meyering  <meyering@fb.com>
27606         dfa: new module, importing grep's DFA matcher
27607         Since grep's DFA matcher is now being used by two gnulib-enabled
27608         projects, grep and sed, it makes sense to version-control its
27609         sources and unit tests in one place: here.
27610         * modules/dfa: New module.
27611         * modules/dfa-tests: New file.
27612         * lib/dfa.c: New file, from grep.
27613         * lib/dfa.h: Likewise.
27614         * lib/localeinfo.c: Likewise.
27615         * lib/localeinfo.h: Likewise.
27616         * tests/dfa-match-aux.c: Likewise.
27617         * tests/dfa-invalid-char-class.sh: Likewise.
27618         * tests/dfa-match.sh: Likewise, with minor changes.
27619         * MODULES.html.sh (Misc): Add "dfa" to this list.
27621 2016-09-09  Jim Meyering  <meyering@fb.com>
27623         getprogname-tests: don't depend on assert-h
27624         * modules/getprogname-tests (Depends-on): Remove assert-h.
27625         It was not needed, and in fact would cause build failure for
27626         coreutils on some systems.  Reported by Assaf Gordon in https:
27627         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27629 2016-09-07  Jim Meyering  <meyering@fb.com>
27631         getprogname-tests: work also when EXEEXT is nonempty
27632         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27633         * tests/test-getprogname.c (main): Use it.
27634         Suggested by Gisle Vanem.
27636 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27638         getprogname: fix errors in previous change
27639         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27640         s/program_invocation_name/base/
27641         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27643 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27645         parse-datetime: restrict debug output to input string
27646         * lib/parse-datetime.y (parse_datetime2): If we parse
27647         all of the input but determine it's invalid, ensure
27648         we don't output the now invalid input pointer.
27649         This issue was seen with `date -d 'now +1'`.
27651 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27653         flexmember: new macro FLEXALIGNOF
27654         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27655         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27656         this macro.  Update comments.
27658 2016-09-07  Jim Meyering  <meyering@fb.com>
27660         getprogname: port to systems with __argv (mingw, msvc)
27661         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27662         last_component: more general than open coding it with hard-coded "/".
27663         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27664         * modules/getprogname (Depends-on): Add dirname-lgpl.
27665         (configure.ac): Check for __argv in <stdlib.h>.
27666         * modules/getprogname-tests: New file.
27667         * tests/test-getprogname.c: New file.
27668         Suggested by Gisle Vanem in
27669         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27671 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27673         flexmember: port better to GCC + valgrind
27674         With a char[] flexible array member in a struct with nontrivial
27675         alignment, GCC-generated code can access past the end of the
27676         array, because GCC assumes there are padding bytes to get the
27677         struct aligned.  So the common idiom of malloc (offsetof (struct
27678         s, m), n) does not properly allocate an n-byte trailing member, as
27679         malloc’s argument should be the next multiple of alignof (struct s).
27680         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27681         Although C11 apparently permits this GCC optimization (i.e., there
27682         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27683         See the thread containing:
27684         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27685         * lib/flexmember.h: New file.
27686         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27687         * lib/localename.c, lib/time_rz.c:
27688         Include flexmember.h.
27689         * lib/fnmatch_loop.c (struct patternlist):
27690         * lib/localename.c (struct hash_node):
27691         Use FLEXIBLE_ARRAY_MEMBER.
27692         * lib/fnmatch_loop.c (EXT):
27693         * lib/fts.c (fts_alloc):
27694         * lib/glob.c (glob_in_dir):
27695         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27696         * lib/localename.c (gl_lock_define_initialized):
27697         * lib/time_rz.c (tzalloc):
27698         Use FLEXSIZEOF instead of offsetof.
27699         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27700         Check that the size of the struct can be taken.
27701         * modules/flexmember (Files): Add lib/flexmember.h.
27702         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27703         Add flexmember.
27705 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27707         getprogname: port to Solaris 10
27708         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27709         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27710         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27712         stdalign: correct mistake in alignof doc
27713         Problem reported by Joseph Myers in:
27714         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27715         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27716         alignof(S) where S is a structure containing a flexible array
27717         member.  The Gnulib substitute does not support this, but C11 does.
27719 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27721         main.mk: remove sc_program_name, since there is no more need to
27722         use set_program_name in tools (getprogname is enough for most
27723         of the cases).
27724         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27725         * top/maint.mk (sc_program_name): Remove.
27727 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27729         Port tests away from progname, since modules that need the
27730         program name already depend on getprogname.
27731         * modules/acl-tests (Depends-on): Remove progname.
27732         * modules/argmatch (Depends-on): Likewise.
27733         * modules/argmatch-tests (Depends-on): Likewise.
27734         * modules/argp-tests (Depends-on): Likewise.
27735         * modules/argp-version-etc-tests (Depends-on): Likewise.
27736         * modules/array-list-tests (Depends-on): Likewise.
27737         * modules/array-oset-tests (Depends-on): Likewise.
27738         * modules/avltree-list-tests (Depends-on): Likewise.
27739         * modules/avltree-oset-tests (Depends-on): Likewise.
27740         * modules/avltreehash-list-tests (Depends-on): Likewise.
27741         * modules/carray-list-tests (Depends-on): Likewise.
27742         * modules/copy-file-tests (Depends-on): Likewise.
27743         * modules/exclude-tests (Depends-on): Likewise.
27744         * modules/fchownat-tests (Depends-on): Likewise.
27745         * modules/fdopendir-tests (Depends-on): Likewise.
27746         * modules/filenamecat-tests (Depends-on): Likewise.
27747         * modules/fstatat-tests (Depends-on): Likewise.
27748         * modules/fstrcmp-tests (Depends-on): Likewise.
27749         * modules/linked-list-tests (Depends-on): Likewise.
27750         * modules/linkedhash-list-tests (Depends-on): Likewise.
27751         * modules/mkdirat-tests (Depends-on): Likewise.
27752         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27753         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27754         * modules/obstack-printf-tests (Depends-on): Likewise.
27755         * modules/openat-tests (Depends-on): Likewise.
27756         * modules/parse-datetime-tests (Depends-on): Likewise.
27757         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27758         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27759         * modules/quotearg-simple-tests (Depends-on): Likewise.
27760         * modules/quotearg-tests (Depends-on): Likewise.
27761         * modules/rbtree-list-tests (Depends-on): Likewise.
27762         * modules/rbtree-oset-tests (Depends-on): Likewise.
27763         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27764         * modules/spawn-pipe-tests (Depends-on): Likewise.
27765         * modules/system-quote-tests (Depends-on): Likewise.
27766         * modules/uniname/uniname-tests (Depends-on): Likewise.
27767         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27768         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27769         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27770         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27771         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27772         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27773         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27774         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27775         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27776         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27777         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27778         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27779         * modules/unlinkat-tests (Depends-on): Likewise.
27780         * modules/version-etc-tests (Depends-on): Likewise.
27781         * modules/xalloc-die-tests (Depends-on): Likewise.
27782         * modules/xmemdup0-tests (Depends-on): Likewise.
27783         * modules/xprintf-posix-tests (Depends-on): Likewise.
27784         * modules/xvasprintf-tests (Depends-on): Likewise.
27785         * tests/test-argmatch.c: Do not include progname.h.
27786         (main) Stop calling set_program_name.
27787         * tests/test-argp-version-etc.c: Likewise.
27788         * tests/test-argp.c: Likewise.
27789         * tests/test-argv-iter.c: Likewise.
27790         * tests/test-array_list.c: Likewise.
27791         * tests/test-array_oset.c: Likewise.
27792         * tests/test-avltree_list.c: Likewise.
27793         * tests/test-avltree_oset.c: Likewise.
27794         * tests/test-avltreehash_list.c: Likewise.
27795         * tests/test-carray_list.c: Likewise.
27796         * tests/test-copy-acl.c: Likewise.
27797         * tests/test-copy-file.c: Likewise.
27798         * tests/test-exclude.c: Likewise.
27799         * tests/test-fchownat.c: Likewise.
27800         * tests/test-fdopendir.c: Likewise.
27801         * tests/test-filenamecat.c: Likewise.
27802         * tests/test-fstatat.c: Likewise.
27803         * tests/test-fstrcmp.c: Likewise.
27804         * tests/test-linked_list.c: Likewise.
27805         * tests/test-linkedhash_list.c: Likewise.
27806         * tests/test-mkdirat.c: Likewise.
27807         * tests/test-nonblocking-pipe-main.c: Likewise.
27808         * tests/test-nonblocking-socket-main.c: Likewise.
27809         * tests/test-obstack-printf.c: Likewise.
27810         * tests/test-openat.c: Likewise.
27811         * tests/test-parse-datetime.c: Likewise.
27812         * tests/test-pipe-filter-gi1.c: Likewise.
27813         * tests/test-pipe-filter-gi2-main.c: Likewise.
27814         * tests/test-pipe-filter-ii1.c: Likewise.
27815         * tests/test-pipe-filter-ii2-main.c: Likewise.
27816         * tests/test-quotearg-simple.c: Likewise.
27817         * tests/test-quotearg.c: Likewise.
27818         * tests/test-rbtree_list.c: Likewise.
27819         * tests/test-rbtree_oset.c: Likewise.
27820         * tests/test-rbtreehash_list.c: Likewise.
27821         * tests/test-sameacls.c: Likewise.
27822         * tests/test-set-mode-acl.c: Likewise.
27823         * tests/test-spawn-pipe-main.c: Likewise.
27824         * tests/test-system-quote-main.c: Likewise.
27825         * tests/test-unlinkat.c: Likewise.
27826         * tests/test-version-etc.c: Likewise.
27827         * tests/test-xalloc-die.c: Likewise.
27828         * tests/test-xfprintf-posix.c: Likewise.
27829         * tests/test-xmemdup0.c: Likewise.
27830         * tests/test-xprintf-posix.c: Likewise.
27831         * tests/test-xvasprintf.c: Likewise.
27832         * tests/uniname/test-uninames.c: Likewise.
27833         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27834         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27835         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27836         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27837         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27838         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27839         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27840         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27841         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27842         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27843         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27844         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27845         * tests/test-c-stack.c: (program_name): Do not define.
27846         (main): Do not set program_name.
27847         * tests/test-closein.c: Likewise.
27848         * tests/test-xstrtol.c: Likewise.
27849         * tests/test-yesno.c: Likewise.
27851 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27853         Port modules to use getprogname explicitly, instead of requiring
27854         progname to be used (or program_name to be provided).
27855         * lib/argmatch.c: Do not include progname.h.
27856         [TEST] (program_name): Do not define.
27857         [TEST] (main): Call getprogname instead of using program_name.
27858         * lib/c-stack.c: Do not include progname.h.
27859         (program_name): Do not define.
27860         (die): Call getprogname instead of using program_name.
27861         * lib/chdir-long.c: Do not include progname.h.
27862         [TEST_CHDIR] (main): Do not set program_name.
27863         * lib/error.c [!_LIBC]: Include progname.h.
27864         [!_LIBC] (program_name): Define using getprogname.
27865         * lib/euidaccess.c: Do not include progname.h.
27866         [TEST] (main): Do not set program_name.
27867         * lib/git-merge-changelog.c: Include getprogname.h instead of
27868         progname.h.
27869         (usage): Call getprogname instead of using program_name.
27870         (main): Likewise.  Stop calling set_program_name.
27871         * lib/group-member.c: Do not include progname.h.
27872         [TEST] (main): Do not set program_name.
27873         * modules/argmatch (Depends-on): Add getprogname.
27874         * modules/c-stack (Depends-on): Likewise.
27875         * modules/error (Depends-on): Likewise.
27876         * modules/git-merge-changelog (Depends-on): Likewise.
27877         Also remove progname.
27879 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27881         * NEWS: Document the deprecation of the 'progname' module.
27883 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27885         getprogname: new module
27886         This provides a LGPL module for getting the name of the current
27887         program, using the same API found on *BSD systems.
27888         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27889         * modules/getprogname: New files.
27890         * MODULES.html.sh (Misc): Add getprogname.
27892 2016-09-02  Jim Meyering  <meyering@fb.com>
27894         manywarnings: add -fno-common
27895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27896         to the list.  Quoting the manual, "Compiling with -fno-common is
27897         useful on targets for which it provides better performance, or if
27898         you wish to verify that the program will work on other systems that
27899         always treat uninitialized variable declarations this way [putting
27900         it in the data section]."  If diffutils had been using this sooner,
27901         it would have prevented this duplicate declaration issue:
27902         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27904 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27906         parse-datetime: Fix typo.
27907         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27909 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27911         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27912         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27913         GCC 5 and 6 that have __builtin_sub_overflow but not
27914         __builtin_sub_overflow_p.  With the recent changes, these
27915         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27916         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27917         since the former needs just one runtime comparison whereas the
27918         latter needs two.
27920         strverscmp: sync with glibc
27921         Although this doesn't exactly synchronize with glibc
27922         byte-for-byte, it makes the code behave the same as glibc.
27923         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27924         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27925         difference shouldn't matter in practical use.  All uses changed
27926         back to isdigit.
27927         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27928         (next_state): Now unsigned char array; redo elements.
27929         (result_type): Now signed char array; redo elements.
27930         (__strverscmp): Fix glibc bug 9913 by using new states.
27931         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27933 2016-08-29  Jim Meyering  <meyering@fb.com>
27935         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27936         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27937         similarly to how it was done to intprops.h.
27939 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27941         intprops.h: port recent changes to GCC 6.2.0
27942         * lib/intprops.h (__has_builtin): Move earlier.
27943         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27944         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27945         the last argument can be null.  All uses changed.
27946         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27947         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27948         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27949         and it's not clear which GCC versions it works for.
27950         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27951         its definiens.
27953         intprops.h: use __typeof__ with GCC 7
27954         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27955         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27956         This avoids computing the expression's value (which might overflow!).
27958 2016-08-29  Jim Meyering  <meyering@fb.com>
27960         intprops.h, xalloc-oversized.h: work with gcc 7
27961         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27962         __builtin_mul_overflow each accept a NULL pointer as the third
27963         argument.  However in gcc 7, that is no longer accepted.
27964         Instead, one must use the "_p"-suffixed names, with which, the
27965         third parameter is no longer a pointer.
27966         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27967         the definition: not true for gcc 7 and subsequent.
27968         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27969         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27970         Provide new definitions for gcc 7 and subsequent.
27971         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27972         that works with gcc-7.
27974         intprops.h: fix missing-backslash problems
27975         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27976         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27978 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27980         intprops: fix paren typo on old platforms
27981         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27982         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27983         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27984         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27985         && !defined LLONG_MAX]:
27986         Remove stray paren.
27988         intprops: port to OpenVMS
27989         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27990         * doc/posix-headers/limits.texi: Document the problem.
27991         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27992         Define if not already defined.
27994 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27996         parse-datetime: improve debug implementation
27997         Follow-up to commit 12ad79069 ("add optional debug printing").
27998         Improve parse-datetime's debug implementation: remove macros,
27999         replace global debug flag variable with a function parameter,
28000         use nstrftime for formatting.
28001         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28002         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28003         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28004         debug flag. Existing interface 'parse_datetime' left unmodified.
28005         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28006         (struct parser_control): add 'parse_datetime_debug' member variable.
28007         (parse_datetime): Call new function 'parse_datetime2' without debug.
28008         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28009         pc.parse_datetime_debug variable as needed.
28010         (to_year): Accept new flags parameter, instead of using global variable.
28011         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28012         use struct 'debug' variable instead of global variable.
28013         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28014         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28015         correspnding functions directly instead of using macros.
28016         * modules/parse-datetime: Add gnulib's strftime module.
28018 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28020         c-strcase-tests: port to EBCDIC
28021         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28022         which assume ASCII encoding semantics to run only in ASCII
28023         mode, as they fail in EBCDIC.
28025         sigpipe-tests: fix typo
28026         * tests/test-sigpipe.sh: C, not B.
28028 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28030         canonicalize-lgpl: fix errno after malloca fails
28031         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28032         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28033         * lib/canonicalize-lgpl.c (__realpath):
28034         Don't assume malloca sets errno on failure.
28036 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28038         strtod: port errno handling to z/OS
28039         * lib/strtod.c (strtod): Save and restore errno more reliably.
28041 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28043         strtod: port to z/OS
28044         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28045         implementation.
28047 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28049         strtod: port to z/OS
28050         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28051         implementation.
28053         regex, string: rename to avoid '__string'
28054         * lib/regex.h, lib/string.in.h: Do not use the identifier
28055         '__string', as it is effectively reserved by string.h on z/OS.
28057         c-strcase-tests, wcwidth-tests: depend on c-ctype
28058         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28059         Add c-ctype.
28061 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28063         thread: port to z/OS
28064         * lib/glthread/thread.c, lib/glthread/thread.h:
28065         Rudimentary gl_thread support for z/OS.
28067         maint: port tests to z/OS errno behavior
28068         * tests/test-nonblocking-reader.h:
28069         * tests/test-nonblocking-writer.h:
28070         Accommodate z/OS errno code preferences. (I believe this should
28071         still be within spec; IBM is good at following the letter if not
28072         the spirit of such things.)
28074         maint: preprocessor changes to support z/OS
28075         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28076         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28077         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28078         * tests/test-nonblocking-pipe.h:
28080         fclose, strstr-simple, wchar: port to z/OS
28081         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28082         Changes to the Autoconf M4 code to support z/OS.  Note that
28083         fclose() is broken in a different way on z/OS than it is on other
28084         systems, thus the special-case in fclose.m4.
28086         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28087         * tests/test-iconv-utf.c, tests/test-iconv.c:
28088         Added appropriately conditional #pragmas so that the test strings
28089         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28090         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28091         addressed in a more portable way by simply rewriting all the ASCII
28092         literal characters as octal escapes, but then you would lose the
28093         partial readability that the strings have now. Also, iconv_open()
28094         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28096         c-strcase-tests, wcwidth-tests: port to EBCDIC
28097         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28098         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28099         * tests/test-wcwidth.c: Likewise.
28101 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28103         stdbool: don't require _Bool for C++
28104         Problem reported by David Seifert in:
28105         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28106         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28107         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28108         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28109         stricter about checking that bool and _Bool are compatible in C.
28111 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28113         getdelim: remove dependency on realloc-posix
28114         * lib/canonicalize-lgpl.c (alloc_failed)
28115         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28116         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28117         Use __set_errno where needed, for consistency.
28118         * lib/getdelim.c (alloc_failed): New function.
28119         (getdelim): Use it.
28121 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28123         parse-datetime: add optional debug printing
28124         Print parsing information, warnings, and errors to stderr.
28125         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28126         * lib/parse-datetime.y:
28127         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28128         (PROGRESS*): Same as DEBUG, for progress reporting.
28129         (dbg_printf): Print message to stderr, with 'date' prefix.
28130         (struct parser_control): Add 'debug_*_seen' variables.
28131         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28132         (debug_print_current_time, debug_print_relateive_time): Prints the
28133         current/relative date/time value of parser_control.
28134         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28135         (to_year): Warn about 2-digit year parsing.
28136         (yylex):   Warn about unrecognized words.
28137         (get_effective_timezone): Returns current timezone in minutes.
28138         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28139         clearly and unambigiously as possible.
28140         (debug_mktime_not_ok): Print detailed information about failed
28141         date/time values.
28142         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28143         PROGRESS messages for status messages.
28144         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28146 2016-08-06  Jim Meyering  <meyering@fb.com>
28148         tests/init.sh: exclude dash with bad "local" semantics
28149         * tests/init.sh (gl_shell_test_script_): Add a function to
28150         eliminate a shell like "dash" (unlike bash, zsh) that has
28151         surprising/risky "local var='...'" semantics.  Inspired by
28152         the problem and discussion in https://bugs.gnu.org/24116#11.
28154 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28156         maint.mk: expand the prohibit_doubled_word regex
28157         This check has a static list of words that are checked for
28158         repetitions.  Expand it before running the perl script to
28159         avoid using expensive captures.  This decreases the cost
28160         for libvirt from 1.66s to 0.66s.
28161         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28162         (sc_prohibit_doubled_word): Use it.
28164 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28166         useless-if-before-free: skip non-matching lines early
28167         * build-aux/useless-if-before-free: First match each line with the
28168         simple/quick /\bif\b/ and reject if there is no match. This often
28169         saves the cost of the much more involved regular expression.
28170         For libvirt, this decreases the cost from 1.44s to 1.02s.
28172 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28174         maint.mk: speed up sc_po_check
28175         sc_po_check would skip files based on their names, or on the
28176         existence of files with derived names. Rewrite it to use perl
28177         instead of shell to make the check faster.
28178         * top/maint.mk (perl_translatable_files_list_): Define.
28179         (sc_po_check): Use it.
28181 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28183         maint.mk: speed up require_config_h_first
28184         Instead of spawning three processes per file,
28185         rewrite the check in perl and run it once for all the files.
28186         * top/maint.mk (perl_config_h_first_): Define.
28187         (sc_require_config_h_first): Use it in place of shell code.
28189 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28191         maint.mk: speed up sc_po_check
28192         sc_po_check would skip files based on their names, or on the
28193         existence of files with derived names. Rewrite it to use perl
28194         instead of shell to make the check faster.
28195         * top/maint.mk (perl_translatable_files_list_): Define.
28196         (sc_po_check): Use it.
28198 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28200         obstack: pacify GCC 6 with -Wnull-dereference
28201         Problem reported by Assaf Gordon in:
28202         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28203         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28204         Declare with __attribute_noreturn__.
28205         * lib/obstack.h (__attribute_noreturn__): New macro.
28207 2016-07-13  Eric Blake  <eblake@redhat.com>
28209         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28210         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28211         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28213 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28215         doc: mention glibc SSIZE_MAX buglet
28216         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28218 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28220         printf-posix: Fix mingw build
28221         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28222         expression for detecting C symbol prefixes but forgot to qoute square
28223         brackets in the command line arguments for grep.  That way when
28224         building with mingw the condition was false although it ought to be
28225         true instead.  In particular scenarios this led to the following
28226         compile error:
28228             Cannot export rpl_printf: symbol not found
28229             Cannot export rpl_scanf: symbol not found
28230             collect2: error: ld returned 1 exit status
28232         Fix this by properly quoting square brackets.
28234 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28236         mktime: call tzset as per POSIX
28237         Problem reported by Ludovic Courtès in:
28238         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28239         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28240         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28242 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28244         fts: handle readdir() errors
28245         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28246         but also upon error when it will also set errno.  Therefore
28247         flag the error case from readdir().  We treat the case where
28248         no items are read the same as if the dir can't be accessed,
28249         i.e. by setting fts_errno to FTS_DNR.
28251 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28253         intprops: port better to GCC 7
28254         GCC 7 __builtin_add_overflow supports a new usage form, where the
28255         last argument is a null pointer, and which merely returns 1 if an
28256         overflow would occur.  This is a constant expression if all
28257         arguments are constants, and should generate faster code when code
28258         needs to be generated.
28259         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28260         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28261         Use builtin operations if available.
28262         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28263         operations are available, as it's almost surely faster.
28265 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28267         intprops-test: port to GCC 6
28268         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28269         since the bug is not fixed in GCC 6.1.
28271 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28273         xalloc-oversized: port to GCC 7; fewer warnings
28274         GCC 7 will have a better way to deal with integer overflow.
28275         Plus, fix a warnings problem reported by Tim Ruehsen in:
28276         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28277         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28278         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28279         For GCC 5, use __xalloc_oversized if both args are constants,
28280         or if pedantic.
28282 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28284         regex: port to Sun C
28285         Reported by Daiki Ueno.
28286         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28287         __restrict, in prototype.  This fixes a problem I introduced in
28288         the 2016-02-19 merge from glibc.
28290 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28292         stdbool: Restore __bool_true_false_are_defined check
28293         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28294         __bool_true_false_are_defined is still defined, even with C++11.
28296 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28298         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28299         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28301 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28303         Use GCC_LINT, not lint
28304         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28305         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28306         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28307         Document problem with lint and _Noreturn.
28308         * lib/diffseq.h (IF_LINT, IF_LINT2):
28309         * lib/fts.c (sccsid):
28310         * lib/getndelim2.c (IF_LINT):
28311         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28312         (gl_linked_iterator_from_to):
28313         * lib/gl_anytree_list2.h (gl_tree_iterator)
28314         (gl_tree_iterator_from_to):
28315         * lib/gl_anytree_oset.h (gl_tree_iterator):
28316         * lib/gl_array_list.c (gl_array_iterator)
28317         (gl_array_iterator_from_to):
28318         * lib/gl_array_oset.c (gl_array_iterator):
28319         * lib/gl_carray_list.c (gl_carray_iterator)
28320         (gl_carray_iterator_from_to):
28321         * lib/idcache.c:
28322         * lib/inet_ntop.c (IF_LINT):
28323         * lib/regcomp.c (build_charclass_op, create_tree):
28324         * lib/regex_internal.c (re_acquire_state)
28325         (re_acquire_state_context):
28326         * lib/trigl.c (rcsid):
28327         * lib/trim.c (IF_LINT):
28328         * lib/vasnprintf.c (IF_LINT):
28329         * lib/verify.h (assume):
28330         Treat GCC_LINT like lint.
28332 2016-05-29  Bruno Haible  <bruno@clisp.org>
28334         secure_getenv: Port to many more platforms.
28335         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28336         functions.
28337         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28338         for non-BSD Unix platforms and for native Windows.
28339         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28340         Prompted by a request from Nikos Mavrogiannopoulos.
28342 2016-05-27  Eric Blake  <eblake@redhat.com>
28344         canonicalize: Fix broken probe for realpath.
28345         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28346         in logic introduced in 54615b95.
28348 2016-05-26  Eric Blake  <eblake@redhat.com>
28350         unsetenv: relax to LGPLv2+
28351         * modules/unsetenv (License): Match setenv license.
28353 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28355         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28356         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28357         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28358         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28359         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28360         (generate_html, generate_info, generate_tex, outdir)
28361         (source_extra, split, srcfile, texarg): Move above 'version'.
28362         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28364 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28366         manywarnings: update for GCC 6.1
28367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28368         Add GCC 6.1 options that apply to C.
28369         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28370         do not apply to C, are obsolescent, etc.
28372 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28374         glob: size_t overflow checks
28375         * lib/glob.c (__has_builtin): New macro.
28376         (size_add_wrapv, glob_use_alloca): New static functions.
28377         (glob, glob_in_dir): Check for size_t overflow in several places,
28378         and fix some size_t checks that were not quite right.
28380         glob: don't assume INT_MAX < SIZE_MAX
28381         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28382         latter is not portable to (probably theoretical) hosts where
28383         SIZE_MAX <= INT_MAX.
28385 2016-05-09  Bruno Haible  <bruno@clisp.org>
28387         Fix undefined behaviour in gettext.h.
28388         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28389         pointer's value after the storage it points to has been freed.
28390         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28391         Spotted by Coverity.
28393 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28395         git-version-gen: avoid undefined shift
28396         Problem reported by Mosè Giordano in:
28397         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28398         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28399         with --prefix or --fallback but without a later argument.  While
28400         we're at it, omit unnecessary quotes.
28402 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28404         glob: merge glibc changes into lib/glob.c
28405         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28406         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28407         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28408           struct dirent [BZ #19779]
28409         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28410           callback gl_readdir
28411         2015-10-20 Convert miscellaneous function definitions to prototype style
28412         2015-10-20 Convert 113 more function definitions to prototype style
28413           (files with assertions)
28414         2015-06-12 Fix getlogin_r namespace (bug 18527).
28415         2014-02-10 Use glibc_likely instead __builtin_expect.
28416         2013-10-20 When glob pattern contains a trailing slash match only
28417           directories. Fixes bug 10278.
28418         2013-09-04 glob: silence -Wattribute warnings
28419         2013-06-07 Avoid use of "register" as optimization hint.
28420         2012-09-25 Use size_t instead of int for internal variables in glob
28421           (bug 14621)
28422         2011-07-20 Check for overflows in expressions
28423         2011-05-28 Remove unused variable
28424         2011-05-22 Add a few more alloca size checks
28425         2010-03-27 Whitespace fixes
28426         2010-03-27 Fix one more issue with the glob patch
28427         2010-03-24 Fix glob with empty pattern
28428         2008-05-27 Remove useless more "if" tests before "free"
28429         * modules/glob (Depends-on): Add stdint.
28431 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28433         mktime: port to stricter signed overflow checking
28434         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28435         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28436         instead of merely for INT_MAX * 2.  In practice platforms that
28437         do the latter also do the former.
28438         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28439         (shr): New static function, replacing SHR.  All uses changed.
28440         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28441         and TIME_T_MAX.  All uses changed.
28442         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28443         Use long_int, not time_t.
28444         (long_int_avg): New static function, replacing time_t_avg.
28445         All uses changed.  Round toward positive infinity, as that
28446         generates slightly better code.
28447         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28448         by INT_ADD_WRAPV.
28449         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28450         (convert_time): New static function.
28451         (ranged_convert): Use it
28452         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28453         Use simpler test for loop exit.
28454         (__mktime_internal): Store negative of guessed offset, to simplify
28455         overflow checking.  Remove no-longer-needed test for small time_t
28456         overflows.
28458         mktime: speed up DEBUG_MKTIME benchmarks
28459         Call tzset just once, at the start, rather than for every test
28460         case.  This lets us measure the CPU cost of mktime as opposed to
28461         that of tzset.  This is relevant when TZ is not set and glibc is
28462         being used.  This speeds up tests by a factor of 40 on my Fedora
28463         23 x86-64 platform.
28464         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28465         to call tzset and as a sanity check.  Later on, use localtime_r
28466         instead of localtime.
28468         mktime: resurrect DEBUG_MKTIME testing
28469         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28470         Include <string.h>, for strcmp.
28472         mktime: simplify DEBUG_MKTIME
28473         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28474         Simplify later usage accordingly.
28476         Port mktime_internal offset to unsigned time_t
28477         This avoids some assumptions about wraparound arithmetic on
28478         signed integer overflow.
28479         * lib/mktime-internal.h (mktime_offset_t): New type.
28480         (mktime_internal): Use it in decl.
28481         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28483         * lib/mktime.c (__mktime_internal, localtime_offset):
28484         * lib/timegm.c (timegm): Use it.
28485         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28486         (gl_FUNC_MKTIME): Require it.
28488 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28490         xstrtol: prohibit monstrosities like "1bB"
28491         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28492         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28493         "B" only if the first suffix needs a base.
28494         * tests/test-xstrtol.sh: Test this.
28496 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28498         xstrtod: reinstate setting of *result upon ERANGE
28499         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28500         the returned limits upon ERANGE, so allow and document that.
28502 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28504         xstrtod: modify *result only if no errors
28505         * lib/xstrtod.c (XSTRTOD).
28507 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28509         btowc: document problems in C locale
28510         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28511         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28513 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28515         mktime: improve integer overflow checking
28516         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28517         (WRAPV): Remove; no longer needed.
28518         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28519         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28520         Remove.  Use intprops.h defns instead.
28521         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28522         Use bool for Boolean, for clarity.
28523         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28524         detect integer overflow.
28525         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28527         intprops: check two's complement assumption
28528         Suggested by Eric Blake in:
28529         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28530         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28531         short, int, long, and (if available) long long are two's complement.
28532         * modules/intprops (Depends-on): Add 'verify'.
28534         intprops, mktime, strtol: assume two's complement
28535         These macros were not portable to every conforming C11 ones'
28536         complement platform.  It's not worth the hassle of porting to some
28537         platforms that use ones' complement or signed magnitude, as such
28538         platforms are almost purely theoretical nowadays and porting even
28539         to some of them makes the code harder to review for little
28540         practical benefit.  Problem reported by Florian Weimer in:
28541         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28542         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28543         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28544         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28545         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28546         (TYPE_SIGNED_MAGNITUDE):
28547         Remove.  All uses rewritten to assume two's complement, which is
28548         all we can reasonably test nowadays anyway.
28549         * top/maint.mk (_intprops_names): Remove the removed macros.
28551 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28553         stdint: port to strict C11 left shift
28554         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28555         Pacify clang -Wshift-negative-value, which should be an issue only
28556         on clang setups where stdint.h does not conform to C11 or to C++11.
28557         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28559 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28561         mbrtowc: work around glibc bug#19932
28562         Fix mbrtowc so that it never returns -1 in the C locale,
28563         as this conflicts with a future version of POSIX
28564         http://austingroupbugs.net/view.php?id=663#c2738
28565         and causes problems with GNU grep: http://bugs.gnu.org/23234
28566         See glibc bug 19932:
28567         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28568         * doc/posix-functions/mbrlen.texi (mbrlen):
28569         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28570         Document the glibc bug.
28571         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28572         Include hard-locale.h, locale.h.
28573         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28574         if the bug is possible.
28575         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28576         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28577         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28578         * modules/mbrtowc (Depends-on): Add hard-locale.
28579         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28580         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28581         * tests/test-mbrtowc5.sh: New file.
28583 2016-04-03  Pedro Alves  <palves@redhat.com>
28585         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28586         When gnulib is configured in C++ mode for a system with a working C99
28587         implementation of stdint.h that predates C++11, gnulib ends up
28588         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28589         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28590         MinGW is LLP64.  Instead of trying to detect the right types, detect
28591         good-enough-pre-C++11 stdint.h and in such case define
28592         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28593         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28594         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28595         conforms to C99.  If it does, check whether it hides symbols
28596         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28597         does, define those macros in config.h.
28599 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28601         argp: merge changes from glibc
28602         Among other things, this should fix problems found by a Coverity
28603         scan and reported by Andrei Borzenkov:
28604         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28605         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28606         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28607         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28608         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28609         * lib/argp.h:
28610         Merge changes from glibc.
28611         * tests/test-argp-2.sh: Adjust to match new behavior.
28613 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28615         stddef: support configuring with g++
28616         Problem reported by Ángel González in:
28617         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28618         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28619         Do not define if _GCC_MAX_ALIGN_T is defined.
28621 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28623         test-framework-sh: minor cleanups
28624         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28625         since strictly speaking POSIX requires this.
28626         (setup_): Do not use the variable 'fail', as that makes the
28627         trace output harder to read ('fail' is typically used by
28628         tests to mean the test failed).  Treat // portably.
28629         Check that new directory is not merely a sibling of the tmp dir.
28630         Avoid unnecessary invocation of tr.
28632         test-framework-sh: revert port to NetBSD 7.0
28633         It was a false alarm; I misinterpreted Assaf Gordon's report.
28634         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28635         Restore.
28636         (test_dir_): Adjust to mktempd_ change.
28637         (mktempd_): Restore 2nd arg.  Use -t again.
28638         (base_template_, template_, nx_): Resurrect old code.
28640         Port better to Alpine Linux
28641         Its diff implementation does not support -c, but does support -U3.
28642         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28643         * tests/init.sh (diff_opt_): New var.
28644         (compare_): Prefer diff -U3 to diff -c to plain diff.
28646 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28648         test-framework-sh: port to NetBSD 7.0
28649         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28650         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28651         Remove.  All uses removed.
28652         (test_dir_): Adjust to mktempd_ change.
28653         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28654         (base_template_, template_, nx_): Simplify by hardcoding.
28656 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28658         gitlog-to-changelog: suppress ignored chatter
28659         * build-aux/gitlog-to-changelog: Do not warn about skipping
28660         an SHA if it would have been ignored anyway.
28662 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28664         setlocale: add "sv" to Windows language table
28665         * lib/setlocale.c (language_table) [W32]: Add "sv".
28666         Reported in <https://savannah.gnu.org/bugs/?44588>.
28668 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28670         sys_select: port to new Cygwin
28671         Problem reported by Ken Brown in:
28672         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28673         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28674         diagnostics.
28676 2016-03-17  Jim Meyering  <meyering@fb.com>
28678         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28679         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28680         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28681           test-userspec.c:176:9: error: statement is indented as if it were \
28682             guarded by... [-Werror=misleading-indentation]
28683                    {
28684                    ^
28685           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28686                  if (!diag && !T[i].result)
28687                  ^~
28689 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28691         time_rz: port to clang -Wunused-const-variable
28692         * lib/time_rz.c (TZ): Remove.  All uses removed.
28694         std-gnu11: improve clang support
28695         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28696         2016-03-15 Also try clang
28697         2016-03-15 Port C11 and C++11 testing to clang
28699         select: port more to Intel 2016.1.150 compiler
28700         Problem reported by Balázs Hajgató in:
28701         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28702         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28704 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28706         select: try to port to 2016.1.150 compiler
28707         Problem reported by Balázs Hajgató in:
28708         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28709         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28710         POSIX specifies 'restrict'.
28712 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28714         localename-tests: memory allocation fixes
28715         * tests/test-localename.c (test_locale_name)
28716         (test_locale_name_thread): Don't call freelocale on a locale
28717         that was the base of a successful newlocale, as that
28718         results in a double free.  Problem reported by Assaf Gordon.
28719         (test_locale_name_thread): Free saved names after use, to pacify
28720         gcc -fsanitize=address.
28722 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28724         intprops: make .h file license match module
28725         * lib/intprops.h: Change the license wording to match glibc format.
28726         This is what is in modules/intprops anyway.  See:
28727         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28729 2016-03-08  Eric Blake  <eblake@redhat.com>
28731         acl: fix missing return on Cygwin
28732         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28733         fall off end of function. Fixes http://bugs.gnu.org/22949
28735 2016-03-05  Bruno Haible  <bruno@clisp.org>
28737         extern-inline: port to PGI CC
28738         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28739         keyword 'inline'.
28740         Reported by Adam James Stewart in:
28741         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28743 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28745         signbit: port back to pre-C++11 GCC
28746         * lib/math.in.h (signbit): Do previous change only if
28747         __cplusplus < 201103.  See Jonathan Wakely in:
28748         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28750 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28752         mountlist: recognize autofs-mounted remote file systems, too
28753         Originally reported at: https://bugzilla.redhat.com/1309247
28754         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28755         "-hosts" because it is used by autofs to mount remote file systems.
28757 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28759         signbit: port to C++ with GCC 6
28760         * lib/math.in.h (signbit) [__cplusplus]:
28761         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28762         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28764         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28766         regex: make it closer to libc
28767         Make Idx a signed type, rather than possibly unsigned.
28768         The unsignedness was not really buying us anything, since the code
28769         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28770         it signed allows us to use -1 and -2 with abandon, like libc does,
28771         thus lessening the number of differences between gnulib and libc.
28772         Also, it should help avoid gratuitous warnings like the one
28773         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28774         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28777         regex: merge patches from libc
28779         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28780         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28781         Convert miscellaneous function definitions to prototype style.
28782         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28783         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28784         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28785         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28786         (re_search_internal):
28787         Convert to prototype-style function definition.
28788         Use internal_function for internal functions.
28790 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28792         stdalign: port to older HP and IBM cc
28793         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28794         C compilers, by checking their version numbers.  These version
28795         numbers appear in MariaDB and in Qt code that dates way back and
28796         that conditiionally uses the 'aligned' attribute.
28798 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28800         stdalign: port to clang 3.7.0
28801         Problem reported by Herbert J. Skuhra in:
28802         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28803         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28804         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28805         https://llvm.org/bugs/show_bug.cgi?id=26547
28807 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28809         readdir_r: now obsolescent
28810         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28811         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28813 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28815         misc: port better to gcc -fsanitize=address
28816         Without these patches, ./configure CFLAGS='-fsanitize=address'
28817         would compute incorrect values.  This patch fixes some (but not all)
28818         test failures with recent glibc, with this configuration.
28819         * m4/acl.m4 (gl_ACL_GET_FILE):
28820         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28821         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28822         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28823         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28824         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28825         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28826         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28827         * m4/getline.m4 (gl_FUNC_GETLINE):
28828         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28829         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28830         * m4/regex.m4 (gl_REGEX):
28831         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28832         * tests/test-calloc-gnu.c (main):
28833         * tests/test-duplocale.c (main):
28834         * tests/test-getgroups.c (main):
28835         * tests/test-getline.c (main):
28836         * tests/test-inttostr.c (main):
28837         * tests/test-localename.c (test_locale_name)
28838         (test_locale_name_thread, test_locale_name_environ)
28839         (test_locale_name_default):
28840         * tests/test-regex.c (main):
28841         * tests/test-setlocale1.c (main):
28842         * tests/test-stat.h (test_stat_func):
28843         Free heap-allocated storage before exiting.
28844         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28845         Don't match *_foo symbols inserted by AddressSanitizer.
28846         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28848 2016-02-02  Jim Meyering  <meyering@fb.com>
28850         verify-tests: also remove stray test-verify.Tpo
28851         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28852         to remove the test-verify.Tpo file that is left behind by
28853         the automake-generated rule upon compilation failure.
28854         Otherwise, that .Tpo file would cause a failed "make distcheck"
28855         at least for grep.
28857 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28859         std-gnu11: new module
28860         This makes it easier for applications to prefer C11 and C++11
28861         to older variants, when compiling C and C++ code.
28862         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28863         a nontrivial chunk of GPLed Autoconf source code.
28864         * COPYING: Mention the m4/*.m4 copyright situation.
28865         * MODULES.html.sh (std-gnu11): New module.
28866         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28868 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28870         get-permissions, strftime: fix grammar in comments
28871         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28872         some grammar fixes Alan Mackenzie made to GNU Emacs.
28874 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28876         gettext: mark as obsolete
28877         Suggested by Paul Eggert in:
28878         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28879         * modules/gettext (Status): Mark as obsolete.
28880         (Notice): Suggest to use 'gettext-h' instead.
28881         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28882         the 'gettext' module.
28884 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28886         gnulib-tool: don't give up on ln -s so easily
28887         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28888         because an earlier one failed.  The targets could be on different
28889         file systems.  Problem reported by KO Myung-Hun in:
28890         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28892         closedir: fix OS/2-related typos
28893         Problem reported by KO Myung-Hun in:
28894         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28895         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28896         in the last couple of changes.
28898 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28900         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28901         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28902         copying a directory.
28904 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28906         regex: treat [x] as x if x is a unibyte encoding error
28907         Problem reported by Aharon Robbins in:
28908         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28909         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28910         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28912         closedir, dirfd, opendir: port to OpenSolaris 5.10
28913         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28914         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28915         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28916         Don't use ${word##pat} substitution, as it doesn't work in
28917         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28918         http://bugs.gnu.org/22443#11
28920 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28922         bootstrap: use American spelling
28923         * build-aux/bootstrap: Honor American spelling.
28925 2016-01-22  Karl Berry  <karl@freefriends.org>
28927         * doc/posix-functions/localtime.texi,
28928         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28930 2016-01-21  Bruno Haible  <bruno@clisp.org>
28932         hash-pjw-bare: fix comment
28933         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28935         wcwidth: Replace also on OpenBSD 5.8
28936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28937         * doc/posix-functions/wcwidth.texi: Update.
28939 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28941         gnu-web-doc-update: fix addition of new files
28942         If there were already added (emnpty) dirs,
28943         then cvs aborts the add with the message:
28944           cvs [add aborted]: there is a version in <./dirname> already
28945         * build-aux/gnu-web-doc-update: Add directories separately
28946         to the addition of files, to avoid the above issue
28947         impacting the addition of files.
28949 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28951         utimens-tests: avoid pulling gettext .m4 files
28952         Although this is not the right fix to the original problem:
28953         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28954         it makes it possible again for consumer projects to use arbitrary
28955         version of gettext, through the steps described at:
28956         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28957         See here for details:
28958         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28959         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28960         'gettext'.
28961         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28962         'gettext'.
28964 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28966         regex: pacify static checkers
28967         Problem and draft fix reported by Aharon Robbins in:
28968         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28969         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28970         Clear memory to pacify static checkers.
28972         regex: fix [ diagnostic
28973         Problem and fix reported by Aharon Robbins in:
28974         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28975         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28977         regex: fix memory leaks
28978         Problem and draft fix reported by Aharon Robbins in:
28979         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28980         * lib/regcomp.c (build_range_exp, build_charclass_op)
28981         * lib/regex_internal.c (re_dfa_add_node):
28982         Fix memory leak on failure.
28984 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28986         fts: don't unconditionally use leaf optimization for NFS
28987         NFS st_nlink are not accurate on all implementations,
28988         leading to aborts() if that assumption is made.
28989         See <https://bugzilla.redhat.com/1299169>
28990         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28991         the white list, and document the issue.
28993 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28994             KO Myung-Hun  <komh@chollian.net>
28996         gnulib-tool: don't assume ln -s works
28997         * gnulib-tool (func_ln_s): New function.
28998         (func_ln): Use it.
29000 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29002         utimes: detect utimes() correctly on OS/2 kLIBC
29003         utimes() of OS/2 kLIBC has some limitations.
29004         1. OS/2 itself supports a file date since 1980 year in local time.
29005         2. OS/2 itself supports only even seconds for a file time.
29006         3. utimes() of OS/2 kLIBC does not work on an opened file.
29007         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29008         * doc/posix-functions/utimes.texi: Document the above limitations of
29009         utimes() on OS/2 kLIBC.
29011 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29012             KO Myung-Hun  <komh@chollian.net>
29014         openat_proc_name: port to OS/2 kLIBC
29015         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29016         instead of /proc/self/fd.
29017         * lib/openat-proc.c (openat_proc_name):
29018         Don't assume file name length is less than INT_MAX.
29019         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29021 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29023         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29024         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29025         definitions of intptr_t and uintptr_t (which use int and unsigned)
29026         to avoid clashes with declarations of system functions like sbrk.
29027         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29028         _INTPTR_T_DECLARED before defining them.
29030         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29031         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29032         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29033         Declare on kLIBC.
29034         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29035         fd associated with dirp.
29036         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29037         dirp_fd_list.
29038         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29039         (dirfd): Implemented for kLIBC.
29040         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29041         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29042         succeeds.
29043         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29044         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29045         (REPLACE_DIRFD): Define to 1 if replaced.
29046         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29047         * modules/closedir (Depends-on): Add dirfd.
29048         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29049         condition.
29050         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29051         * modules/opendir (Depends-on): Add dirfd.
29053         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29054         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29055         * lib/dup.c (dup_nothrow): New.
29056         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29057         (klibc_dup2): New.
29058         * lib/fcntl.c (klibc_fcntl): New.
29059         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29060         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29061         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29062         fd.
29064         pipe_filter_ii_execute: port to OS/2 kLIBC
29065         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29066         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29067         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29068         Reuse Win32 code on OS/2 kLIBC.
29069         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29070         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29072         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29073         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29074         static inline function.  The implementation of wcwidth in wcwidth.c
29075         causes a "conflicting types" error.
29076         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29078         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29079         spawn() on OS/2 kLIBC is not silly like one on Windows
29080         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29081         empty string on OS/2 kLIBC.
29083         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29084         On OS/2 kLIBC, select() works only on sockets.
29085         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29087         binary-io: don't put fd in binary mode if it is a console on EMX
29088         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29089         a console on EMX.
29091 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29093         doc: mention unfixed issues with unsupported localtime() values
29094         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29095         returns nonsense for localtime(2^56).
29096         * doc/posix-functions/localtime_r.texi: Likewise.
29098 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29100         doc: mention setlocale() issues on OpenBSD
29101         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29102         never fails, and the need to check categories individually.
29104 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29106         sig2str: list all signals on FreeBSD >= 7
29107         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29108         to the maximal statically defined signal value.
29109         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29110         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29111         where available, even when NSIG is defined.
29113 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29115         acl-permissions: port to USE_ACL==0 platforms
29116         I ran into this problem when building bleeding-edge GNU Emacs
29117         with gcc -fsanitize=address on Fedora 23.  On this platform
29118         the ACL library does not pass the 'configure' test and Emacs
29119         then does not build due in part to what appear to be typos in the
29120         ACL part of Gnulib.
29121         * lib/acl-internal.c (free_permission_context):
29122         * lib/acl-internal.h (struct permission_context):
29123         Test whether USE_ACL is nonzero, not whether it is defined.
29125 2016-01-12  Martin Sebor  <msebor@redhat.com>
29127         mktime: rename macro to avoid glibc clash
29128         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29129         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29131 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29133         Port "$@" to OpenIndiana ksh93
29134         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29135         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29136         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29137         bug long-dead shells, so remove the workaround.
29138         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29139         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29140         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29141         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29142         Use "$@" instead of ${1+"$@"}.
29144         Port Universal Time settings to strict POSIX
29145         * build-aux/announce-gen, build-aux/bootstrap:
29146         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29147         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29148         * build-aux/gnupload, build-aux/mkinstalldirs:
29149         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29150         * build-aux/update-copyright, build-aux/useless-if-before-free:
29151         * build-aux/vc-list-files, tests/test-strftime.c:
29152         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29153         but POSIX says the behavior of TZ="UTC" is undefined.
29155 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29157         msvc-inval: fix problem with unset shell var
29158         Problem reported by Karl Berry in:
29159         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29160         * modules/msvc-inval (Depends-on):
29161         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29162         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29164 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29166         tests: for compare_(), use cmp -s where available
29167         * tests/init.sh (compare_): Only fall back to cmp without
29168         the POSIX defined -s option, where this is not available.
29170 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29172         version-etc: new year
29173         * build-aux/gendocs.sh (version):
29174         * doc/gendocs_template:
29175         * doc/gendocs_template_min:
29176         * doc/gnulib.texi:
29177         * lib/version-etc.c (COPYRIGHT_YEAR):
29178         Update copyright dates by hand in templates and the like.
29179         * all files: Run 'make update-copyright'.
29181 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29183         human: fix output buffer overrun by 1
29184         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29185         calculation that could lead to a one-byte buffer overrun.
29187 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29189         maint: fix operator precedence in mbrtowc test
29190         This is a fix for test breakage introduced by commit 45228d96; the
29191         equality expression must be parenthesized when negated with '!',
29192         otherwise we always get:
29194           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29196         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29197         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29199 2015-12-23  James Youngman  <jay@gnu.org>
29201         regexprops-generic: update from regex.h
29202         * doc/regexprops-generic.texi: update by running the regexprops binary
29203         from findutils (the command line is 'regexprops "Regular Expressions"
29204         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29205         gnulib with GNU grep had made this document out-of-date.
29207 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29209         strftime-tests: avoid false failure on OS X
29210         * tests/test-strftime.c (struct localtime_rz_test): Add an
29211         ahistorical member which is used to warn rather than fail
29212         when tm_isdst isn't set for such entries.  This is the case for
29213         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29215 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29217         fts: ensure leaf optimization is used for NFS
29218         NFS provides usable dirent.d_type but not necessarily for all entries
29219         of large directories.  See <https://bugzilla.redhat.com/1252549>
29220         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29222 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29224         fts: enable leaf optimization for XFS
29225         XFS provides usable dirent.d_type only for DT_DIR,
29226         but the noleaf optimization still applies.
29227         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29229 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29231         intprops: comment fix
29232         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29233         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29235         intprops-test: work around GCC bug 68971
29236         Problem reported by Pádraig Brady in:
29237         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29238         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29239         (main): Add a case that better tests 64-bit long in this area.
29241 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29243         gnulib-tool: allow multiple --local-dir usage
29244         * gnulib-tool: Use --local-dir to construct compound
29245         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29246         PATH_SEPARATOR early.
29247         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29248         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29249         func_determine_path_separator because that needs to be detected
29250         earlier now.
29251         (func_determine_path_separator): New function.
29252         (func_path_foreach, func_path_foreach_inner): New functions.
29253         (func_path_prepend, func_path_append): Likewise.
29254         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29255         (func_lookup_file, func_all_modules): Use new functions to work
29256         with local_gnulib_path.
29257         (func_modules_in_dir, func_exists_module): New callbacks for
29258         func_path_foreach.
29259         (func_exists_module, func_get_tests_module): Likewise.
29260         (func_is_local_file, func_should_symlink): New helper methods.
29261         (func_add_file, func_update_file): Use new func_should_symlink
29262         instead, DRY.
29263         (func_reconstruct_cached_local_gnulib_path): New helper.
29264         (func_reconstruct_cached_dir): New callback.
29265         (func_import): The cached_local_gnulib_dir renamed to
29266         cached_local_gnulib_path similarly to local_gnulib_dir.
29267         Use new func_reconstruct_cached_local_gnulib_path.
29268         (func_count_relative_local_gnulib_path): New sub-method.
29269         (func_create_testdir): Use func_should_symlink, DRY.
29270         (func_create_megatestdir): Use new functions to work with
29271         local_gnulib_path correctly.
29272         (func_append_local_dir): New helper.
29274 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29276         fix freadptr to work with ungetc on all uClibc configs
29277         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29278         where GNU coreutils cut(1) generates invalid output on uClibc
29279         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29280         * lib/freadptr.c (freadptr): Return NULL if there are
29281         ungotten chars.  In this case freadseek() will iterate
29282         again to process the ungotten character.
29284 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29286         xalloc-oversized: improve performance with GCC 5
29287         * lib/xalloc-oversized.h (xalloc_oversized):
29288         Improve performance with GCC 5 by using __builtin_mul_overflow.
29290 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29292         intprops: new public macro EXPR_SIGNED
29293         Emacs can use this macro, so make it public.
29294         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29295         'Integer Type Determination', since some of these macros apply
29296         to non-integer types.  Clarify what kinds of constant expressions
29297         these macros return.  Say when the arguments can be non-integers.
29298         Mention newly published macro EXPR_SIGNED.
29299         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29300         make it public.  All uses changed.
29302         intprops: fix typo in clang port
29303         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29304         '__builtin_add_overflow' that is not caught by compiler.
29306 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29308         test-timespec: fix typo in previous change
29309         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29311         timespec-sub: fix overflow bug; add tests
29312         * lib/timespec-add.c (timespec_add):
29313         * lib/timespec-sub.c (timespec_sub):
29314         Work even if time_t is narrower than int (a theoretical
29315         possibility).  Redo code for a bit more clarity.
29316         * lib/timespec-sub.c (timespec_sub):
29317         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29318         * modules/timespec-tests, tests/test-timespec.c: New files.
29320         intprops-test: suppress -Woverlength-strings
29321         Problem reported by Pádraig Brady in:
29322         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29323         It is not worth the hassle to port this test to compilers that
29324         cannot handle long strings in diagnostics.
29325         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29327 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29329         quotearg: add quotearg_n_style_colon()
29330         This quotes with default options of the specified style,
29331         but with quoting enabled for instances of ':'.
29332         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29333         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29335 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29337         intprops: revise _WRAPV macros, revert _OVERFLOW
29338         The incompatible changes to the _OVERFLOW macros were too much of
29339         a hassle in practice, so revert them.  Instead, change the new
29340         _WRAPV macros to make them closer in behavior to GCC 5's new
29341         builtin_add_overflow etc. functions.  No other software was using
29342         these newly-added macros yet, so this should be OK.
29343         * NEWS: Revert previous change, since the incompatible change
29344         has been reverted, and nobody used the incompatible version.
29345         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29346         Document revised behavior.
29347         (Integer Range Overflow): Adjust example to match above revisions.
29348         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29349         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29350         these can be used in integer constant expressions again.
29351         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29352         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29353         needed.
29354         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29355         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29356         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29357         Remove, as they did not seem that useful.
29358         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29359         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29360         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29361         Support new semantics.
29362         (__has_builtin): New macro, if not alreay defined.
29363         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29364         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29365         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29366         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29367         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29368         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29369         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29370         New macros.
29371         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29373 2015-11-03  Jim Meyering  <meyering@fb.com>
29375         intprops: add parentheses for when OP has precedence lower than "-"
29376         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29377         "a OP b" must be parenthesized for when OP is like "<<", which has
29378         lower precedence than the following "-". Reported by Pádraig Brady.
29380 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29382         quotearg: constify get_quoting_style parameters
29383         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29384         * lib/quotearg.c (get_quoting_style): Likewise.
29386 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29388         quotearg: add support for $'' shell escaping
29389         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29390         items and descriptions.
29391         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29392         above types by quoting like "shell", but using $'...' syntax
29393         for non printable characters, which should provide unambiguous
29394         printable output for any input.
29395         * tests/test-quotearg-simple.c: Update accordingly.
29397 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29399         maint: use a more standard return from mbrtowc test
29400         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29401         from the test program as this is non standard and often
29402         indicates an unhandled case in the test program.
29403         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29405 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29407         intprops: add WRAPV and const flavors for GCC 5
29408         If available, use GCC 5's builtin functions for efficient integer
29409         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29410         and safely compute the low-order bits of the correct answer.
29411         A downside of these efficient functions is that they cannot be
29412         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29413         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29414         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29415         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29416         Document the changes.
29417         (Wraparound Arithmetic): New section.
29418         (Integer Range Overflow):
29419         Put this subsection last, since it's least useful.
29420         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29421         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29422         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29423         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29424         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29425         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29426         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29427         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29428         New macros.
29429         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29430         Generate calls to GCC builtins if available, for speed.
29431         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29432         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29433         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29434         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29435         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29436         (CHECK_QUOTIENT, CHECK_REMAINDER):
29437         Test WRAPV and CONST flavors (when available) too.
29439 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29441         doc: use extended timezone format in iso-8601 example
29442         * doc/parse-datetime.texi: The standard states that extended format
29443         is to be used consistently throughout.
29444         Note that lib/parse-datetime.y can handle either tz format.
29446 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29448         stdalign: port to Sun C 5.9
29449         * doc/posix-headers/stdalign.texi: Document this.
29450         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29451         __attribute__ ((__aligned__ (...))).
29453 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29455         time_rz: fix comment about tzalloc
29456         * lib/time_rz.c (tzalloc): Fix comment.
29458 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29460         stdalign: work around pre-4.9 GCC x86 bug
29461         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29462         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29463         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29465 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29467         maint.mk: sc_tight_scope: remove extraneous expressions
29468         * top/maint.mk (tight_scope): This is not really required since
29469         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29470         that matches all nm entries.  But it does remove extraneous entries
29471         that may be confusing or cause issue in future maintenance.
29473 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29475         time_rz: return NULL if localtime_r fails
29476         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29477         while still attempting to pacify bleeding-edge GCC.
29479         fts: port to C11 alignof
29480         * doc/posix-headers/stdalign.texi (stdalign.h):
29481         Document the C11 restriction.
29482         * lib/fts.c: Include stddef.h, for max_align_t.
29483         (fts_alloc): Align using max_align_t, not FTSENT.
29484         * modules/fts (Depends-on): Add stddef.
29486 2015-10-18  Jim Meyering  <meyering@fb.com>
29488         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29489         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29490         would see this:
29492         lib/time_rz.c: In function 'localtime_rz':
29493         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29494           [-Werror=nonnull]
29495                    if (tm && !save_abbr (tz, tm))
29496                        ^
29498         That was complaining about "tm" because it is a parameter that was
29499         declared with the __nonnull__ attribute.
29500         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29501         result of localtime_r.
29503 2015-10-17  Jim Meyering  <meyering@fb.com>
29505         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29506         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29507         name-extraction regexp mistakenly used \S+, and would mistakenly
29508         extract "*F" from "extern int *F()" rather than the desired "F".
29509         Use \w+ instead.
29511 2015-10-17  Jim Meyering  <meyering@fb.com>
29513         maint.mk: sc_tight_scope: factor and support OS X
29514         * top/maint.mk (_gl_tight_scope): Address three issues:
29515         - factor out four instances of code that wraps a string in "^...$"
29516         - allow nm-reported symbol names to have an optional leading "_"
29517         - add "main" to the list of ignored variable names, because on os x,
29518         "main" has nm-reported type "S" in the variable-checking section.
29520 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29522         safe-alloc-tests: fix typo in license header
29523         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29525 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29527         copy-file: fix mem leak in error case
29528         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29529         upon error opening or performing I/O to the src and dest files.
29531 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29533         localename: control langinfo.h inclusion
29534         This header is only used to work around buggy behavior in old
29535         versions of glibc, so do not include it all the time.  Otherwise
29536         we get build failures on systems that do not provide langinfo.h.
29537         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29538         in the source later on.
29539         The patch was originally submitted to gettext as:
29540         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29542 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29544         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29545         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29546         * lib/u64.c, lib/unistd.c:
29547         Append 'typedef int dummy;', to pacify compilers that are picky
29548         about empty translation units.
29550 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29552         accept4-tests: fix to avoid non portable flags
29553         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29554         as they are the only documented ones, and passing others may trigger
29555         EINVAL (seen on FreeBSD 10.1-RELEASE).
29556         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29557         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29559 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29561         gnulib-tool: fix tests of 'extensions' module
29562         This complements f8fe25fab60e3c687a124 commit.
29563         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29564         emitting of initial gl_EARLY macros.
29565         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29566         replaced with func_emit_pre_early_macros call.
29568 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29570         unicase/locale-language: fix typo in utf-8 cookie
29571         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29572         Problem reported by Zbigniew Jędrzejewski-Szmek.
29574 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29576         xalloc: do not worry about GCC 5 warning on 32 bit
29577         * lib/xalloc.h: Revert previous change.
29578         I found a better way to fix this in coreutils.
29580 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29582         xalloc: avoid GCC 5.1 warning on 32 bit
29583         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29584         xalloc_oversized(), which was seen to give this warning
29585         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29586         when simplifying conditional".
29588 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29590         uniname/uniname-tests: avoid compiler warnings
29591         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29592         unused local variables.
29593         (test_alias_lookup): Fix alias name display in failure cases.
29595 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29597         c-ctype: do not worry about EBCDIC + char signed
29598         Drop support for EBCDIC with char being signed, as this breaks too
29599         many programs.  Problem reported by Ben Pfaff in:
29600         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29601         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29602         char being signed.
29603         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29604         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29605         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29606         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29607         * tests/test-c-ctype.c (test_all):
29608         Simplify by assuming standard char values cannot be negative.
29609         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29611 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29613         c-ctype: port better to z/OS EBCDIC
29614         Problems reported by Daniel Richard G. in:
29615         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29616         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29617         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29618         (_C_CTYPE_OTHER_CNTRL): New macro.
29619         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29620         from SCHAR_MIN, as the functions are defined only from values
29621         promoted from char or from unsigned char, not necessarily from
29622         signed char.
29624 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29626         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29628         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29629         and ARFLAGS variables.  Doing this unconditionally could break
29630         later Automake's AM_PROG_AR invocation (at least it's
29631         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29633         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29634         Amsterdam Compiler Kit, so make the previous code to have effects
29635         only on ACK, and rather automatically call the Automake's
29636         AM_PROG_AR as soon as possible to decide other cases.
29638         References:
29639         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29641         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29642         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29643         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29644         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29645         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29646         'extensions' module is used.
29647         * modules/extensions (configure.ac-early): Remove as this snippet
29648         is added to gnulib-comp.m4 earlier anyway.
29650 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29652         sockets: MS Windows initalization fixes
29653         Problem reported by Test User in:
29654         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29655         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29656         Correct the endianness.
29657         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29658         number mismatch, not just on <.  Cleanup before any such failure.
29660 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29662         gc: fix detection of installed libgcrypt version
29663         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29664         at least as recent as 1.4.4.  The previously used macro is not
29665         available now, since modules were removed in version 1.6.0.
29667 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29669         c-ctype: rewrite to use inline functions
29670         This simplifies maintenance, since it makes for just one
29671         implementation of each function, letting the compiler have the fun
29672         of optimization.  In practice this works well nowadays with GCC.
29673         E.g., c_isascii might need only three instructions even though the
29674         source code lists every ASCII character individually in a large
29675         switch statement.
29676         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29677         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29678         * NEWS: Document the API change.
29679         * lib/c-ctype.c: Drastically simplify, since this now just expands
29680         inline functions.
29681         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29682         (C_CTYPE_INLINE): New macro.
29683         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29684         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29685         Verify that either ASCII or EBCDIC is being used.
29686         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29687         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29688         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29689         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29690         New private macros.
29691         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29692         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29693         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29694         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29695         (c_tolower, c_toupper): When converting, return the unsigned char,
29696         as that is what z/OS does.
29697         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29698         of some c-ctype.h macros.
29699         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29700         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29701         c_tolower promotion to be compatible with z/OS.
29703 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29705         gitlog-to-changelog: trim only trailing whitespaces
29706         This is fix for --format regression introduced by commit
29707         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29708         doubled %n string) had no effect anymore.  This format
29709         specification has been used e.g. by GNU paxuitils (commit
29710         edfd8bcc3).
29712         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29713         newlines in commmit messages.
29715 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29717         Test that c_iscntrl agrees with iscntrl, etc.
29718         Suggested by Daniel Richard G. in:
29719         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29720         * modules/c-ctype-tests (Depends-on): Add ctype.
29721         * tests/test-c-ctype.c: Include <ctype.h>.
29722         (NCHARS): New constant.
29723         (test_agree_with_C_locale): New function.
29724         (main): Use it.
29725         (test_all): Use named constants.
29727         c-ctype: improve c_isascii testing
29728         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29729         Add a test to count the number of ASCII characters.
29731 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29733         savewd: remove SAVEWD_CHDIR_READABLE
29734         It was problematic in the light of file systems that ignore umask.
29735         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29736         * NEWS: Document this.
29737         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29738         successful, -1 (setting errno) on failure, rather than something
29739         more complicated than that.
29740         * lib/mkdir-p.c (make_dir_parents):
29741         Do not use SAVEWD_CHDIR_READABLE.
29742         * lib/savewd.c (savewd_chdir):
29743         Remove support for SAVEWD_CHDIR_READABLE.
29744         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29746         c-ctype: port better to EBCDIC
29747         Problems reported by Daniel Richard G. in
29748         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29749         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29750         Include "verify.h".
29751         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29752         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29753         Define as enum constants with value false, if not defined, so that
29754         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29755         code more portable, as both branches of the 'if' are compiled on
29756         all platforms.
29757         (C_CTYPE_EBCDIC): New constant.
29758         Verify that the character set is either ASCII or EBCDIC.
29759         (to_char): New static function.
29760         (c_isascii, c_iscntrl):
29761         Assume standard control-character assignments for EBCDIC.
29762         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29763         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29764         Rewrite to use 'if' instead of 'ifdef'.
29765         Use to_char if non-ASCII.  Prefer <= to >=.
29766         Prefer true and false to 1 and 0, for booleans.
29767         (c_iscntrl): Use 'if', not 'ifdef'.
29768         * modules/c-ctype (Depends-on): Add verify.
29769         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29770         (to_char): New function.
29771         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29773 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29775         nanosleep: fix return code for interrupted replacement
29776         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29777         that we return -1 in the case the call is interrupted by a signal,
29778         rather than the current value of 1.
29779         Diagnosed and tested by Daniel Richard G.
29781 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29783         Diagnose ERE '()|\1'
29784         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29785         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29786         track of the set of previously-completed subexpressions available
29787         before the first alternative, and restore this set just before
29788         parsing each subsequent alternative.  This lets us diagnose the
29789         invalid back-reference in the ERE '()|\1'.
29791         regex: merge patches from libc
29793         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29794         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29795         * lib/regex_internal.h:
29796         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29798         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29799         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29800         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29801         wcscoll.
29802         * lib/regexec.c (check_node_accept_bytes): Likewise.
29804         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29805         Fix regex wcrtomb namespace (bug 18496).
29806         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29807         instead of wcrtomb.
29809         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29810         Fix regex wctype namespace (bug 18495).
29811         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29812         instead of towlower.
29813         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29814         instead of iswlower.  Call __towupper instead of towupper.
29815         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29816         instead of iswalnum.
29818         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29819         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29820         COLL_SYM in a couple of places to avoid uninitialized variable
29821         wanings on tilegx gcc 4.8.2.
29823         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29824         * lib/regex_internal.h: Remove NOT_IN_libc.
29826         2014-11-17  Andreas Schwab  <schwab@suse.de>
29827         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29829         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29830         Move findidx nested functions to top-level.
29831         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29832         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29833         Pass new arguments to findidx.
29834         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29835         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29836         Don't #include it inside the function.  Pass new arguments to findidx.
29837         * lib/regex_internal.h:
29838         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29839         (re_string_elem_size_at): Don't #include it inside the function.
29840         Pass new arguments to findidx.
29842         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29843         Check if DEBUG is defined in regex_internal.c
29844         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29846 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29848         ceill: detect buggy OpenBSD implementation
29849         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29850         which returns zero for small values.  Discussed here:
29851         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29853 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29855         mountlist: add me_mntroot field on Linux machines
29856         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29857         mount_entry so Linux machines based on /proc/self/mountinfo can
29858         distinguish between bind mounts and original mounts.  In reality bind
29859         mounts aren't treated differently than mountroot=/ mounts by the
29860         kernel, but the user often wants these bind mounts distinguished.
29861         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29862         More details at https://pad.lv/1432871
29864 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29866         doc: Describe to use multiple instances of gnulib
29867         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29868         instances of gnulib with different modules can be used, for example one
29869         for a lib and another one for associated tools.
29871 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29873         base32: mark function as __attribute__ const
29874         * lib/base32.h (isbase32): Mark __attribute__ const as
29875         suggested by GCC, and consistent with the base64 module.
29877 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29879         gnulib-tool: don't transform binary files with sed
29880         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29881         .mo and .class files.
29882         Reported by Denis Denisov.
29884 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29886         gperf: respect silent rules
29887         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29888         V_GPERF_0 for silent rules.
29889         * modules/iconv_open (Makefile.am): Use V_GPERF.
29890         * modules/unicase/locale-language (Makefile.am): Likewise.
29891         * modules/unicase/special-casing (Makefile.am): Likewise.
29892         * modules/unictype/category-byname (Makefile.am): Likewise.
29893         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29894         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29895         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29896         * modules/unictype/property-byname (Makefile.am): Likewise.
29897         * modules/unictype/scripts (Makefile.am): Likewise.
29898         * modules/uninorm/composition (Makefile.am): Likewise.
29900 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29902         Improve port of stdalign to C++11
29903         Problem reported by Sundaram in:
29904         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29905         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29906         (__alignas_is_defined): Define if C++11 or newer.
29908 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29910         pmccabe2html: fix gawk regex escaping
29911         * build-aux/pmccabe2html: Add one more backslash to properly
29912         escape the gsub replacement value.  Fixes this error:
29913         gawk: ./build-aux/pmccabe2html:425: \
29914         warning: escape sequence `\&' treated as plain `&'
29916 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29918         time_rz: port to pedantic memcpy
29919         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29920         that reject memcpy (..., NULL, 0).
29922 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29924         time_rz: port better to MinGW
29925         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29926         Instead, store the tzname copy in the struct tm_zone object.
29927         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29928         * lib/strftime.c [!_LIBC]:
29929         * lib/time_rz.c: Include time-internal.h.
29930         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29931         name from *TZ rather than from TZNAME, doable because *TZ now has
29932         a tzname_copy member.
29933         * lib/time-internal.h: New file, with contents taken from
29934         lib/time_rz.c.  It's separate because strftime.c now accesses
29935         struct tm_zone members.
29936         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29937         New member tzname_copy.
29938         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29939         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29940         Initialize tzname_copy member.
29941         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29942         in tzname_copy member.
29943         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29944         (restore_tzname): Remove; no longer needed.  All calls removed.
29945         * modules/time_rz (Files): Add lib/time-internal.h.
29947         time: port __need_time_t to MinGW
29948         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29949         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29951 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29953         strftime: fix newly-introduced bug on Solaris
29954         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29955         consistently at the start, rather than doing some of the setup at
29956         the start and some in the %Z format spec.  This is cleaner, and
29957         works better with time_rz on platforms like Solaris where struct
29958         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29959         mktime_z and localtime_rz can mess up the tzname cache.
29961         test-strftime: test for Solaris bug
29962         * modules/strftime-tests (Depends-on): Add strerror.
29963         * tests/test-strftime.c: Include <errno.h>.
29964         (posixtm_test): New function, containing the old 'main'.
29965         (struct tzalloc_test, struct localtime_rz_test): New types.
29966         (TZ, LT): New static vars.
29967         (tzalloc_test): New function.
29968         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29970         time_rz: port to Solaris etc.
29971         Works around a tzname problem on platforms like Solaris that have
29972         tzname but not tm_zone, by setting tzname at the appropriate time
29973         and restoring it later.
29974         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29975         New static vars.
29976         (save_abbr) [HAVE_TZNAME]: Set them.
29977         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29978         (restore_tzname): New function.
29979         (localtime_rz, mktime_z): Use it.
29981         time_rz: now LGPL
29982         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29984         time_rz: make a constant 'const'
29985         * lib/time_rz.c (local_tz): Now const.
29987         time_rz: fix off-by-one typo
29988         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29990 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29992         fprintftime, strftime: use timezone_t args
29993         * NEWS: Document the change.
29994         * lib/fprintftime.h (fprintftime):
29995         * lib/strftime.c (extra_args) [my_strftime]:
29996         * lib/strftime.h (nstrftime):
29997         Time zone arg is now of type timezone_t, not int.
29998         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29999         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30000         (my_strftime) [emacs && !my_strftime]:
30001         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30002         Remove; Emacs doesn't need this any more.
30003         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30004         fprintftime and nstrftime to call tzset.
30005         (ut) [!my_strftime]: Remove, replacing with ...
30006         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30007         (strftime_case_): Use localtime_rz and mktime_z instead
30008         of localtime_r and mktime.
30009         * modules/fprintftime (Depends-on): Add time_rz.
30010         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30011         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30013         time_rz: new module
30014         * MODULES.html.sh: Add time_rz.
30015         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30016         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30017         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30019         New var HAVE_TIMEZONE_T (default 0).
30020         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30021         New var GNULIB_TIME_RZ (default 0).
30022         * modules/time (time.h): Substitute the new vars.
30024         flexmember: license is now unlimited
30025         * modules/flexmember (License): Change to unlimited,
30026         since its only source file gives an unlimited license.
30028 2015-07-15  Eric Blake  <eblake@redhat.com>
30030         maint: update copyright paper procedures
30031         * config/srclist.txt: Drop outdated files.
30032         * doc/Copyright/conditions.txt: Update to latest.
30033         * doc/Copyright/assign.changes.manual: Delete.
30034         * doc/Copyright/assign.future.manual: Likewise.
30035         * doc/Copyright/assign.manual: Likewise.
30036         * doc/Copyright/assign.translation.manual: Likewise.
30037         * doc/Copyright/disclaim.changes.manual: Likewise.
30038         * doc/Copyright/disclaim.manual: Likewise.
30039         * doc/Copyright/disclaim.program: Likewise.
30041 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30043         localename: fix link error on Illumos
30044         Illumos defines __sun, but does not have getlocalename_l nor the
30045         equivalent.  This partially reverts commit 387c214.
30046         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30047         available, as well as uselocale.
30048         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30049         use getlocalename_l if it is not available.
30051 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30053         unistr/uN-strtok-tests: avoid a trivial leak
30054         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30055         input and delim after the multibyte delimiter tests.
30057 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30059         file-has-acl, acl-permissions: fix HP-UX typos
30060         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30061         * lib/file-has-acl.c (file_has_acl):
30062         * lib/set-permissions.c (context_acl_from_mode)
30063         (context_aclv_from_mode, set_acls):
30064         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30065         They were introduced by the recent ACL changes.
30067         regex: match current GNU grep behavior
30068         These symbols have not matched GNU grep behavior for quite some time.
30069         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30070         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30071         Change to match current GNU behavior.
30072         Simplify by expressing it as differences from POSIX BREs and EREs.
30073         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30075 2015-07-03  Jim Meyering  <meyering@fb.com>
30077         set-permissions.c: adjust acl_from_mode's cpp guard
30078         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30079         directives identical to those guarding the sole use.
30080         Otherwise, on some systems, we'd get a warning about
30081         the function being defined but not used.
30082         Also, filter through cppi to correct misleading indentation
30083         of cpp directives.
30085 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30087         tests: restrict shells to those that support 'local'
30088         The local keyword is very widely supported and used
30089         in tests in coreutils and grep at least.  Therefore
30090         restrict to testing with shells that support it.
30091         This mainly excludes /bin/sh on Solaris.
30092         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30094 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30095         and Daiki Ueno  <ueno@gnu.org>
30097         unistr/uN-strtok: handle multibyte delimiters
30098         Previously, uN_strtok moved PTR to the next unit to the token end.
30099         When DELIM contained a multibyte character, the new position could
30100         be a middle of a multibyte character.
30101         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30102         after the token.
30103         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30104         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30105         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30106         * modules/unistr/u8-strtok (Depends-on): Depend on
30107         unistr/u8-strmblen.
30108         * modules/unistr/u16-strtok (Depends-on): Depend on
30109         unistr/u16-strmblen.
30110         * modules/unistr/u32-strtok (Depends-on): Depend on
30111         unistr/u32-strmblen.
30112         * tests/unistr/test-u-strtok.h: New file.
30113         * tests/unistr/test-u8-strtok.c: New file.
30114         * tests/unistr/test-u16-strtok.c: New file.
30115         * tests/unistr/test-u32-strtok.c: New file.
30116         * modules/unistr/u8-strtok-tests: New file.
30117         * modules/unistr/u32-strtok-tests: New file.
30118         * modules/unistr/u16-strtok-tests: New file.
30120 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30122         update-copyright: fix test failure with perl >= 5.22 (trivial)
30123         * build-aux/update-copyright: Escape a literal left curly bracket,
30124         required with perl >= 5.22
30126 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30128         u{16,32}-strstr-tests: relax timeout condition
30129         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30130         tests can take longer than 5 seconds to complete.
30131         Reported by Dagobert Michelsen in:
30132         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30133         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30134         seconds to 10 seconds.
30135         * tests/unistr/test-u32-strstr.c (main): Likewise.
30137 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30139         gnulib-common.m4: change the ARFLAGS default to 'cr'
30140         In some GNU/Linux distributions people started to compile 'ar'
30141         binary with --enable-deterministic-archives (binutils project).
30142         That, however, in combination with previous autotools long time
30143         working default AR{_,}FLAGS=cru causes warnings on such
30144         installations:
30145         ar: `u' modifier ignored since `D' is the default (see `U')
30146         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30147         set already.
30149 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30151         selinux-h: avoid double free after *getfilecon()
30152         Originally reported by Ben Shelton on bug-tar:
30153         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30154         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30155         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30156         param should be freed by freecon(3) (regardless the return value).
30158 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30160         fix pty related tests issues on Windows (trivial)
30161         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30162         however it's still present in tests/ subdirectory of the final project.
30163         Therefore avoid it to pass `make check`.
30164         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30165         will just return -ENOSYS, so avoid this non applicable test allowing
30166         the build to proceed.
30168 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30170         acl: fix definition of acl_from_mode on FreeBSD
30171         This was causing basic coreutils copy operations to fail
30172         with ENOTSUP or ENOENT error messages.
30173         * lib/acl-internal.h (acl_from_mode): Only define when
30174         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30175         of acl_from_mode() defined in lib/set-permissions.c to
30176         be used on FreeBSD at least.
30177         * lib/set-permissions.c: Fix up comment spelling,
30178         and a redundant variable assignment; noticed in passing.
30180 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30182         readutmp: port to FreeBSD >= 9
30183         * lib/readutmp.h: Map utmpxname() to setutxdb().
30184         With that coreutils who(1) and pinky(1) tests pass.
30186 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30188         mgetgroups: port to strict OS X
30189         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30190         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30191         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30192         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30194 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30196         mgetgroups: port to strict OS X
30197         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30198         Document the getgrouplist problem.
30199         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30200         New macro.
30201         (mgetgroups): Use it.
30202         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30203         Check for OS X signature for getgrouplist.
30205 2015-06-29  Jim Meyering  <meyering@fb.com>
30207         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30208         It started like this when building coreutils' latest on OS X,
30209         invoking ./configure with a nonempty --cache=.cache:
30211           lib/linkat.c:46:42: error: operator '||' has no right operand
30212           lib/linkat.c: In function 'rpl_linkat':
30213           lib/linkat.c:330:27: error: #if with no expression
30215         Here's linkat.c's line 46:
30217           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30219         Here's some context:
30221           $ grep linkat_nofoll .cache
30222           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30223           $ grep LINKAT_SYM lib/config.h
30224           #define LINKAT_SYMLINK_NOTSUP
30226         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30227         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30228         but that violates a tenet of AC_CACHE_CHECK: it must
30229         have no side effect other than setting its cache variable.
30231         What happens is that when the cache is set, we'd skip the
30232         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30233         defined to whatever value it happened to have in configure's
30234         environment.  In my case, it was not defined, so this later code:
30236           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30237             [Define to 1 if linkat can create hardlinks to symlinks])
30239         would emit code with an empty RHS.
30241         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30242         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30244 2015-06-28  Jim Meyering  <meyering@fb.com>
30246         mountlist: avoid an unused-label warning on OS X
30247         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30248         Building on OS X, I saw a warning about the "free_then_fail" label
30249         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30251         error.c: correct printf-style format: %d -> %u
30252         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30253         rather than %d, to match the type of "line_number", unsigned int.
30255 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30257         fts: avoid reading beyond the heap allocation
30258         GCC 5.1.1 with -O2 and -fsanitize=address reports
30259         a read of size 4 from a heap object of size 3 is indeed invalid,
30260         though this may be due to incorrect padding assumptions by GCC, see:
30261         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30262         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30263         * modules/fts: Depend on stdalign.
30265 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30267         savedir: avoid undefined behavior in qsort call
30268         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30269         "runtime error: null pointer passed as argument 1,
30270          which is declared to never be null"
30271         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30273 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30275         userspec: avoid undefined behavior in gettext call
30276         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30277         "runtime error: null pointer passed as argument 2,
30278          which is declared to never be null"
30279         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30281 2015-06-20  Glenn Morris  <rgm@gnu.org>
30283         gitlog-to-changelog: improve gitmerge.el commits
30284         Let the Emacs ChangeLog generation process exclude "skipped"
30285         messages from merge commits (Bug#20717).
30286         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30288 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30290         wchar: fix MinGW compilation warnings
30291         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30292         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30293         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30295 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30297         uniname/uniname-tests: use pristine data files
30298         For copyright and maintenance reasons, use the data files from UCD
30299         without modification.
30300         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30301         (getfield): Remove.
30302         (aliases_count): New global variable.
30303         (fill_names): Skip comments and empty lines in the input.  Don't
30304         use getfield.
30305         (fill_aliases): Likewise.
30306         (main): Change the expected command line arguments to:
30307         NAMES... ["--" ALIASES...].
30308         * tests/uniname/test-uninames.sh: Adjust to the change in
30309         test-uninames.c.
30310         * tests/uniname/UnicodeDataNames.txt: Remove.
30311         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30312         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30313         file from Unicode 8.0.0.
30315 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30317         linked-list, linkedhash-list: avoid compiler warnings
30318         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30319         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30321 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30323         libunistring: bump minimum version to 0.9.6
30324         * all modules depending on updated Unicode data: Regenerate.
30325         The modules are listed by a script that does:
30326         - for each file listed by: git show --oneline --name-only 705f4efc
30327           - deduce the containing modules, based on "Files:"
30328         - deduce the modules which depend on the containing modules, based
30329           on "Depends-on:"
30331 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30333         uniname/uniname: update to Unicode 8.0.0
30334         * lib/uniname/uninames.h: Regenerate.
30335         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30336         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30338 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30340         libunistring: update to Unicode 8.0.0
30341         * lib/gen-uni-tables.c (SIZEOF): New macro.
30342         (output_numeric): Increase the maximum number of fractions from
30343         128 to 160.  Increase the level3 value width from 7 bits to 8
30344         bits.  Use SIZEOF instead of a hard-coded integer.
30345         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30346         0x28000.
30347         (fill_blocks): Increase the maximum number of blocks from 256 to
30348         384.  Use SIZEOF instead of a hard-coded integer.
30349         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30350         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30351         value width.
30352         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30353         a new case added to LBP22.
30354         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30355         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30356         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30357         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30358         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30359         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30360         lib/uniwidth/width.c.
30361         * all generated files under lib/uni* and tests/uni*: Regenerate.
30363 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30365         gnu-web-doc-update: add --mirror to remove stale files
30366         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30367         out of date files from the CVS server.  Since this is usually
30368         appropriate, a prompt is given when the option is not specified,
30369         along with the `cvs remove` command that would be run.
30371 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30373         acl-permissions: pacify -Wsuggest-attribute=const
30374         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30375         * lib/acl-internal.h (free_permission_context):
30376         Declare with attribute const if ! (defined USE_ACL &&
30377         (HAVE_ACL_GET_FILE || defined GETACL)).
30379         fsync: document AIX misbehavior
30380         * doc/posix-functions/fsync.texi (fsync):
30381         Document failure on AIX with read-only file descriptor.
30383 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30385         stdio: Don't redefine gets when using C++
30386         * lib/stdio.in.h (gets): Disable warning on C++.
30388 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30390         acl-permissions: port to AIX, C89 HP-UX
30391         Problems reported by Michael Felt.
30392         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30393         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30394         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30395         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30396         Add cast for AIX, whose system calls are declared to accept
30397         char * even though the arguments are really char const *.
30398         * lib/get-permissions.c (get_permissions):
30399         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30400         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30401         that broke a build.
30402         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30403         Rework types to pacify xlc.
30405 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30407         vasprintf-posix: avoid compiling vasnprintf where possible
30408         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30409         module where not required.  For example on a GNU/Linux system
30410         when gnulib-tool is run with the --conditional-dependencies option.
30412 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30414         file-has-acl: fix build on Mac OS X 10
30415         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30416         which has an incompatible 6 parameter getxattr() call.
30417         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30418         call on Mac OS X >= 10.4.
30419         * doc/glibc-functions/fgetxattr.texi: Likewise.
30420         * lib/file-has-acl.c: Revert to more complete combined check.
30421         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30422         Reported by Jack Howarth.
30424 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30426         prefix-gnulib-mk: remove no longer needed special case
30427         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30428         continued lib_SOURCES lines are no longer present,
30429         so special case handling of such entries is not required.
30431 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30433         acl: don't depend on the deprecated qacl module
30434         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30436 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30438         gnulib-tool: concatenate lib_SOURCES to a single line
30439         * gnulib-tool: Refactor the line merging sed logic,
30440         and use that to output a single lib_SOURCES line for each module.
30441         gnulib using projects often postprocess this output to prepend
30442         subdir paths to each item, and having a single line simplifies this
30443         processing allowing better decoupling from the gnulib-tool output.
30445 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30447         pthread_sigmask: discount system version if a simple macro (trivial)
30448         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30449         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30450         function to ensure it's available.
30452 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30454         readlinkat: avoid OS X 10.10 trailing slash bug
30455         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30456         has this bug.
30457         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30458         that OS X 10.10 has this function.
30459         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30460         as done for readlink().
30461         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30462         trailing slash bug, and assume readlinkat() has the same issue.
30463         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30464         rather than the correct $gl_cv_decl_readlinkat_works.
30466 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30468         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30469         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30470         module rewrite.
30472         acl-permissions: Fix build on Solaris and Cygwin
30473         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30474         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30475         ace_entries variables have moved into struct permission_context but
30476         they were still accessed as local variables here.
30478 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30480         linkat: avoid OS X 10.10 trailing slash with symlink bug
30481         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30482         causes the symlink to be dereferenced, and if it points
30483         to a non existent file, that file will be created as
30484         a hard link to "path1".
30485         This fixes a test failure in test-linkat.c.
30486         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30487         this case.  The existing workaround in linkat.c for
30488         trailing slash issues, suffices for this case.
30489         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30490         the list of platforms with trailing slash issues.
30492 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30494         unlinkat: handle ignoring of ".." on Darwin 14
30495         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30496         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30497         so handle in the same manner.
30498         * m4/unlinkat.m4: Comment on this Darwin issue.
30499         * doc/posix-functions/unlink.texi: Update the latest version
30500         where the issue was seen.
30501         * doc/posix-functions/unlinkat.texi: Mention this issue.
30502         Fixes a test failure in test-unlinkat.c.
30504 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30506         qacl: split into qcopy-acl and qset-acl
30507         Emacs needs the former, but not the latter.
30508         * modules/acl-permissions: New file, containing most of the old qacl.
30509         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30510         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30511         * modules/qcopy-acl, modules/qset-acl: New files.
30512         * MODULES.html.sh (File system functions):
30513         Mention the new modules, and mention qacl while we're at it.
30515 2015-05-27  Glenn Morris  <rgm@gnu.org>
30517         gitlog-to-changelog: new option --ignore-line
30518         (This patch is imported from the GNU Emacs master.)
30519         This option ignores individual commit lines matching a pattern.
30520         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30522 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30524         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30525         Implement get_permissions and set_permissions primitives for getting all
30526         the permissions of a file, storing them, and later setting them. (In the
30527         minimal case, the permissions consist only of a file mode.) Reimplement
30528         qset_acl and qcopy_acl based on these new primitives: this avoids code
30529         duplication and makes error handling more consistent.
30530         The Solaris and Cygwin code still uses duplicate code paths for setting
30531         a file mode while making sure that no acls exist and setting an explicit
30532         acl; this is no worse than before, but could be cleaned up.  The AIX
30533         code still doesn't read ACLs, it only makes sure that acls don't get in
30534         the way when setting a file mode.
30535         * lib/acl-internal.h (struct permission_context): New data structure.
30536         (get_permissions, set_permissions, free_permission_context): Declare.
30537         * lib/acl-internal.c (free_permission_context): New helper function.
30538         * lib/get-permissions.c (get_permissions): New helper function split off
30539         from qcopy_acl.
30540         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30541         AIX, set a file's permissions based only on a file mode.
30542         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30543         other platforms construct a temporary acl from the file mode and set
30544         that acl in the same way as setting an acl read from the source file.
30545         This should help avoid code duplication and inconsistent / buggy
30546         behavior.
30547         (set_acls): New helper function Split off from qcopy_acl.
30548         (chmod_or_fchmod): Moved here from qset-acl.c.
30549         (set_permissions): New helper function.
30550         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30551         set_permissions.
30552         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30553         * modules/qacl: Add get-permissions.c and set-permissions.c.
30555         file-has-acl: Split feature tests again (Bug#20667)
30556         * lib/file-has-acl.c: Instead of testing for
30557         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30558         define them when needed.
30559         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30560         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30562 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30564         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30565         This avoids a conflict with "FORTIFY_SOURCE" variants
30566         of the string functions when they're replaced on NetBSD-6.0.1
30567         and Darwin-14.3.0 at least.
30568         * lib/string.in.h: Avoid including our "lib/string.h" while
30569         including the system <string.h>.
30571 2015-05-26  Eric Blake  <eblake@redhat.com>
30573         stdio: limit __gnu_printf__ witness to gcc 4.4+
30574         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30575         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30577         error: use correct printf attributes on mingw
30578         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30580         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30581         * modules/inttypes (Depends-on): Require extensions, so that mingw
30582         always uses GNU style inttypes.
30583         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30585         stdio: fix probe on mingw under gcc 5.1
30586         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30587         around new gcc preprocessor rules.
30589 2015-05-07  Glenn Morris  <rgm@gnu.org>
30591         gitlog-to-changelog: parse "Tiny-change"
30592         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30593         "Copyright-paperwork-exempt".  (Bug#20324)
30595 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30597         doc: document glibc posix_fallocate() issues
30598         * doc/posix-functions/posix_fallocate.texi: Mention the
30599         glibc efficiency problems and issues with NFS.
30601 2015-05-05  Karl Berry  <karl@freefriends.org>
30603         * build-aux/gendocs.sh (usage): document new css default
30604         for HTML (--htmlarg).
30606 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30608         extern-inline: no need for workaround in GCC 5.1
30609         * doc/extern-inline.texi (extern inline):
30610         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30611         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30612         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30613         two we can remove these workarounds.
30615 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30617         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30618         Avoid [-Wunknown-attributes] warnings like:
30619         warning: unknown attribute '__alloc_size__' ignored
30620         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30621         with clang, as support has been fully removed as of clang 3.5:
30622         https://github.com/llvm-mirror/clang/commit/c047507a
30623         * lib/eealloc.h: Likewise.
30624         * lib/pagealign_alloc.h: Likewise.
30626 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30628         tests: pacify GCC 5.1's stricter printf checking
30629         * tests/test-dirname.c (main):
30630         * tests/test-getaddrinfo.c (simple):
30631         * tests/test-getlogin.c (main):
30632         * tests/test-getndelim2.c (main):
30633         * tests/test-inttostr.c (CK):
30634         * tests/test-md5.c (main):
30635         * tests/test-read-file.c (main):
30636         * tests/test-sha1.c (main):
30637         Fix mismatches between printf format and value signedness.
30638         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30639         Remove, as CAST_VAL always returned a value of type uintmax_t.
30641         fts: port to GCC 5.1 with --enable-gcc-warnings
30642         Without this fix, GCC 5.1 (correctly) warns about a subscript
30643         error on the fts_name component of FTSENT.  It's actually a
30644         flexible member, so define it that way on C99 or later hosts.
30645         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30646         structure that now has a flexible array member.
30647         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30648         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30649         * modules/fts (Depends-on): Add flexmember.
30651 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30653         file-has-acl: port to CentOS 6
30654         Problem reported by Tom G. Christensen in:
30655         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30656         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30657         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30658         HAVE_GETXATTR.
30659         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30660         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30661         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30662         file-has-acl.c actually needs.
30664 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30666         file-has-acl: always return false when ACLs aren't supported
30667         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30668         change the GNU/Linux getxattr path, to transform "not supported"
30669         errors to a false return rather than an error.  This is handled
30670         within file_has_acl() due to the platform specific tests to
30671         determine if ACLs are not supported.
30673 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30675         gettext: propagate po/Makefile.in.in too
30676         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30677         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30678         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30679         between Makefile.in.in and the gettext-runtime m4 files.
30681 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30683         file-has-acl: new module, split from acl
30684         And add a new module file-has-acl-tests to match.
30685         I ran into a problem with the recent changes to the acl module,
30686         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30687         When using the fixed version with Emacs, I discovered that
30688         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30689         had multiple libraries, but needed only one), so I fixed that too.
30690         * NEWS: Document this incompatible change.
30691         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30692         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30693         Initialize gl_need_lib_has_acl.
30694         (gl_FUNC_ACL): Require it.
30695         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30696         Move the file-has-acl.c-relevant stuff to ...
30697         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30698         use_xattrs = 0' typo, and omit some needless work.  Set
30699         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30700         when gl_FUNC_ACL is called.
30701         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30702         (Link): Remove $(LIB_HAS_ACL).
30703         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30704         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30705         modules/file-has-acl-tests.
30706         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30708         manywarnings: add GCC 5.1 warnings
30709         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30710         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30711         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30712         -Wsuggest-override, -Wuse-without-only.  Change
30713         -Wnormalized=... operands to match 5.1.
30714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30715         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30716         -Wdiscarded-qualifiers, -Wformat-signedness,
30717         -Wincompatible-pointer-types, -Wint-conversion,
30718         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30719         -Wshift-count-negative, -Wshift-count-overflow,
30720         -Wsizeof-array-argument, -Wsuggest-final-methods,
30721         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30722         and add -Warray-bounds=2 as a special case.
30724 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30726         doc: update FDL template to match FDL examples.
30727         * doc/alloca-opt.texi:
30728         * doc/alloca.texi:
30729         * doc/c-ctype.texi:
30730         * doc/c-strcase.texi:
30731         * doc/c-strcaseeq.texi:
30732         * doc/c-strcasestr.texi:
30733         * doc/c-strstr.texi:
30734         * doc/c-strtod.texi:
30735         * doc/c-strtold.texi:
30736         * doc/ctime.texi:
30737         * doc/error.texi:
30738         * doc/gcd.texi:
30739         * doc/gnulib-tool.texi:
30740         * doc/inet_ntoa.texi:
30741         * doc/intprops.texi:
30742         * doc/lib-symbol-visibility.texi:
30743         * doc/maintain.texi:
30744         * doc/parse-datetime.texi:
30745         * doc/quote.texi:
30746         * doc/regexprops-generic.texi:
30747         * doc/standards.texi: Remove spurious 'with' in FDL license
30748         template.
30750 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30752         lstat: fix cross-compilation 'ln -s' problem
30753         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30754         Have the test program call 'symlink' rather than a separate
30755         script run 'ln -s'; this is more likely to work in
30756         cross-compilation environments.  Reported by Pavel Fedin in:
30757         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30759 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30761         gendocs.sh: default to a common CSS style sheet for HTML output
30762         * build-aux/gendocs.sh (htmlarg): Change default value.
30764 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30766         gnulib-tool: output bold attribute more portably
30767         * gnulib-tool (func_show_module_list): Change hexadecimal
30768         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30769         encoded numbers as arguments to `printf' is not portable,
30770         and is not claimed by POSIX.  This is the case with FreeBSD.
30772 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30774         qacl: Simplify HP-UX acl_nontrivial check
30775         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30776         acl_nontrivial. Check if the acl has at most three entries instead (it must
30777         have exactly three entries according to the HP-UX documentation). Ignore
30778         uids and gids as long as an entry is either for a user (i.e., the owner),
30779         a group (i.e., the owning group), or others.
30780         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30781         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30783 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30785         acl: On Linux, check for acls without libacl
30786         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30787         library function to check for the presence of acls, avoiding a library.
30788         * lib/file-has-acl.c: Include xattr headers if we have them.
30789         (file_has_acl): On Linux, use getxattr().
30790         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30791         file_has_acl(). Check for xattr headers and getxattr().
30793 2015-04-14  Ángel González  <keisial@gmail.com>
30795         tempname: avoid unused parameter warnings (trivial)
30796         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30797         (try_nocreate): Likewise.
30799 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30801         fseeko: fix build failure on NetBSD >= 6 (trivial)
30802         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30803         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30805 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30807         gitlog-to-changelog: port to MS-Windows
30808         * build-aux/gitlog-to-changelog (git_dir_option):
30809         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30810         MS-Windows Perl.  Reported by Eli Zaretskii in:
30811         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30813 2015-04-07  Karl Berry  <karl@gnu.org>
30815         gendocs: new option --tex for passing args to texi2dvi.
30816         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30817         (TEXI2DVI): cut to just command name.
30818         (usage): mention new option, and update copyright.
30819         <generate_tex>: use it.
30821 2015-04-07  Karl Berry  <karl@gnu.org>
30823         * config/srclistvars.sh (GETTEXT): new definition.
30824         * config/srclist.txt: use it for gettext .m4 files.
30825         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30826         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30827         and continuing into April.
30829 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30831         uniname/uniname-tests: fix failure due to alias
30832         Reported by Jack Howarth in:
30833         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30834         * tests/uniname/test-uninames.c (name_has_alias): New function.
30835         (test_inverse_lookup): Exclude character name with valid alias,
30836         from randomly generated character names.
30837         (main): Fill unicode_aliases before calling test functions.
30839 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30841         hash: remove deprecated hash_insert0 function
30842         * lib/hash.h (hash_insert0): Remove deprecated function.
30843         * lib/hash.c (hash_insert0): Likewise.
30845 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30847         mountlist: remove dependency on libmount
30848         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30849         directly, rather than depending on libmount, which has many
30850         dependencies due to its dependence on libselinux, as detailed at:
30851         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30852         Note we restrict this to __linux__ as that's probably where this
30853         interface will remain.  If ever porting, it would be best
30854         to first pull the makedev() wrapper from coreutils to a gnulib module.
30855         Note also we don't add a getline dependency to the mountlist module,
30856         as all Linux versions are sufficient.
30858 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30860         stddef: port to pre-C11 GCC on x86
30861         On this platform, max_align_t should have an alignment of 8 even
30862         though the storage alignments of double, long, etc. max out at 4.
30863         Inspired by a comment of Andreas Schwab's here:
30864         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30865         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30866         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30867         * tests/test-stddef.c: Test __alignof__ too, if available.
30869 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30871         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30872         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30874 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30876         yesno: make EOL optional in ENABLE_NLS case also (trival)
30877         * lib/yesno.c (yesno): Check for EOL before replacing.
30878         * tests/test-yesno.sh: Add a test case (test along with gettext).
30880 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30882         fdopendir-tests: test it does not close its arg
30883         * tests/test-fdopendir.c (main): Test that fdopendir does not
30884         close its argument.  From a suggestion by David Grayson in:
30885         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30887 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30889         gitlog-to-changelog: trim trailing white space
30890         * build-aux/gitlog-to-changelog (main):
30891         Trim trailing white space from commit message lines.
30892         This is helpful for processing the GNU Emacs repository,
30893         which dates back to 1985 and contains a lot of such lines.
30895         gitlog-to-changelog: new option --ignore-matching
30896         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30897         Support new option --ignore-matching=PAT, which ignores all
30898         commit messages whose first line matches PAT.
30900 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30902         fdopendir: port better to MinGW
30903         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30904         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30905         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30906         * modules/fdopendir (Depends-on): Add dirfd.
30908 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30910         fdopendir: fix typo in comment
30911         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30913 2015-03-09  Eric Blake  <eblake@redhat.com>
30915         error: document all entry points provided
30916         * doc/glibc-functions/error_print_progname.texi
30917         (error_print_progname): Mention the error module.
30918         * doc/glibc-functions/error_at_line.texi (error_at_line):
30919         Likewise.
30920         * doc/glibc-functions/error_message_count.texi
30921         (error_message_count): Likewise.
30922         * doc/glibc-functions/error_one_per_line.texi
30923         (error_one_per_line): Likewise.
30925 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30927         vasnprintf: pacify clang 3.5.0
30928         Problem reported by Werner Lemberg in:
30929         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30930         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30931         The casts aren't needed, since the characters in question are ASCII.
30933 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30935         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30936         * lib/dirent--.h (GNULIB_defined_opendir):
30937         * lib/dirent.in.h (GNULIB_defined_opendir)
30938         (GNULIB_defined_closedir):
30939         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30940         #undef only if Gnulib defined it.
30942         poll: port to MSVC v18 on MS-Windows 8.1
30943         Problem reported by Gisle Vanem in:
30944         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30945         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30946         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30947         Add sys_socket.
30949 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30951         tests: support stderr verification with returns_()
30952         * tests/init.sh (returns_): Disable tracing for this wrapper
30953         function, so that stderr of the wrapped command is unchanged,
30954         allowing for verification of the contents.
30956 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30958         passfd: avoid valgrind uninitalised data warning
30959         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30960         to include just the fd we've initialized, rather than including
30961         the extra space used for alignment.
30963 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30965         uniwbrk/u32-wordbreaks-tests: fix copyright
30966         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30968         dup2: doc and test for Android bug
30969         Reported by Kevin Cernekee in:
30970         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30971         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30972         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30974 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30976         Replace dup2() on Android
30977         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30978         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30979         fails.  Using rpl_dup2() fixes this because it has an explicit test
30980         for this condition.
30982 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30984         Android doesn't define RLIM_SAVED_*
30985         Portability problem reported by Kevin Cernekee in:
30986         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30987         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30988         Mention the portability problem.
30989         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30990         Define if not defined.
30991         * m4/dup2.m4 (gl_FUNC_DUP2):
30992         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30993         Likewise.
30995 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30997         vasnprintf-posix-tests: use consistent test
30998         * tests/test-vasnprintf-posix.c (test_function):
30999         Use "<" in assert instead of "<=", for consistency with other tests.
31001 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31003         printf, isinf, etc.: noncanonical != NaN
31004         Do not require that isinf, printf, etc. treat noncanonical
31005         values as NaNs.  Instead, require only that they do not crash.
31006         Problem reported by Joseph Myers in:
31007         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31008         * doc/posix-functions/dprintf.texi (dprintf):
31009         * doc/posix-functions/fprintf.texi (fprintf):
31010         * doc/posix-functions/isfinite.texi (isfinite):
31011         * doc/posix-functions/isinf.texi (isinf):
31012         * doc/posix-functions/isnan.texi (isnan):
31013         * doc/posix-functions/printf.texi (printf):
31014         * doc/posix-functions/snprintf.texi (snprintf):
31015         * doc/posix-functions/sprintf.texi (sprintf):
31016         * doc/posix-functions/vdprintf.texi (vdprintf):
31017         * doc/posix-functions/vfprintf.texi (vfprintf):
31018         * doc/posix-functions/vprintf.texi (vprintf):
31019         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31020         * doc/posix-functions/vsprintf.texi (vsprintf):
31021         Document this.
31022         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31023         * m4/isinf.m4 (gl_ISINFL_WORKS):
31024         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31025         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31026         * tests/test-isfinite.c (test_isfinitel):
31027         * tests/test-isinf.c (test_isinfl):
31028         * tests/test-isnan.c (test_long_double):
31029         * tests/test-isnanl.h (main):
31030         * tests/test-snprintf-posix.h (test_function):
31031         * tests/test-sprintf-posix.h (test_function):
31032         * tests/test-vasnprintf-posix.c (test_function):
31033         * tests/test-vasprintf-posix.c (test_function):
31034         Test only that noncanonical values do not cause crashes, not that
31035         they are treated as NaNs.  In some cases this means a larger
31036         output buffer is needed.
31038 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31040         fts: remove redundant close() (trivial)
31041         * lib/fts.c (fts_read): Remove redundant call to close().
31042         Spotted by coverity.
31044 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31046         getdtablesize: port better for Android
31047         Problem reported by Kevin Cernekee in:
31048         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31049         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31050         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31051         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31053         poll: fixes for large fds
31054         * lib/poll.c (poll): Don't check directly for NFD too large.
31055         Don't rely on undefined behavior in FD_SET when an arg exceeds
31056         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31057         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31058         as that makes the test a bit stricter.
31060 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31062         fcntl: Fix cross compiling
31063         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31064         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31066 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31068         dup2, fcntl: cross-compile better for Android
31069         Problem reported by Kevin Cernekee in:
31070         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31071         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31072         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31073         there's little need to cross-compile for older kernels nowadays.
31074         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31075         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31077 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31079         getopt: don't crash on memory exhaustion
31080         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31081         memory exhaustion.  In the _LIBC case we use alloca() as is
31082         already done in glibc, so we don't need to consider the separate
31083         error path in that awkward case.  Also fix a memory leak when
31084         ambiguous options are present.
31085         Reported by Tobias Stoeckmann
31087 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31089         tempname: allow compilation with C++ (trivial)
31090         * lib/tempname.h [C++]: Specify extern "C" linkage.
31091         * lib/tempname.h (try_tempname):
31092         * lib/tempname.c (__try_tempname, __gen_tempname):
31093         Rename 'try' to 'tryfunc'.
31095 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31097         dup2, fcntl: port to AIX
31098         * m4/dup2.m4 (gl_FUNC_DUP2):
31099         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31100         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31101         The former works on AIX 7.1 but the latter does not.
31102         Also, this may work better with Android; see:
31103         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31105 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31107         getdtablesize, dup2, fcntl: port to Android
31108         Problem reported by Kevin Cernekee in:
31109         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31110         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31111         Mention that getdtablesize doesn't work on Android.
31112         * lib/getdtablesize.c: Use getrlimit substitute only if
31113         getdtablesize is declared.  This should suffice for Cygwin
31114         while not breaking Android.
31115         * m4/dup2.m4 (gl_FUNC_DUP2):
31116         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31117         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31118         standardized but the latter is not, and sysconf works on Android.
31119         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31120         Also check that getdtablesize is declared.
31121         This removes the need for a special case for Android.
31123 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31125         localename: Implement gl_locale_name_thread_unsafe for Android
31126         * lib/localename.c: Android API level >= 21 supports two hardcoded
31127         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31128         the internal __locale_t struct.
31130 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31132         fts: avoid crash when a cycle is added while traversing
31133         This could be triggered by auto-mounting a recursive bind mount.
31134         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31135         * lib/fts.c (fts_read): Avoid removing the original hash table item
31136         when leaving a directory that caused a cycle, and preserve the FTS_DC
31137         flag.
31139 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31141         uniname/uniname: support character alias
31142         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31143         Generate one-way mapping from aliases to codepoints in the
31144         generated tables.  Special case variation selectors to reduce
31145         table size.
31146         * lib/uniname/uniname.c (unicode_character_name): Special case
31147         variation selectors.
31148         (unicode_name_character): Special case variation selectors and
31149         their aliases.
31150         * lib/uniname/uninames.h: Regenerate.
31151         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31152         * modules/uniname/uniname-tests (Files): Add
31153         tests/uniname/NameAliases.txt.
31154         * tests/uniname/test-uninames.c: Mark as static.
31155         (ALIASLEN): Define.
31156         (struct unicode_alias): New struct.
31157         (unicode_aliases): New variable.
31158         (fill_aliases): New function.
31159         (test_alias_lookup): New test function.
31160         (main): Run the 'test_alias_lookup' test if the second argument is
31161         given.
31162         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31163         second argument.
31165 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31167         Fix FILE struct compatibility with Android API level >= 21
31168         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31169         __sferror.  Recent versions of Bionic's stdio.h no longer define
31170         __sferror.
31171         * lib/fbufmode.c: Likewise.
31172         * lib/fflush.c: Likewise.
31173         * lib/fpurge.c: Likewise.
31174         * lib/freadable.c: Likewise.
31175         * lib/freadahead.c: Likewise.
31176         * lib/freading.c: Likewise.
31177         * lib/freadptr.c: Likewise.
31178         * lib/freadseek.c: Likewise.
31179         * lib/fseeko.c: Likewise.
31180         * lib/fseterr.c: Likewise.
31181         * lib/fwritable.c: Likewise.
31183         Assume unbroken ungetc() on Android
31184         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31185         test case passed when running on an Android host, and the code
31186         hasn't really changed since 2009.
31188         getdtablesize: Fix Android build
31189         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31190         versions have this symbol in the .so library (at least 32-bit
31191         platforms) but are missing the declaration in the header file,
31192         causing the m4 logic to guess incorrectly.
31194         localename: Fix Android build
31195         * modules/localename (Depends-on): Add langinfo.
31197         getugroups: Fix Android build
31198         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31199         functions.
31201         euidaccess: Fix Android build
31202         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31203         AT_EACCESS gets declared.
31205         linkat_nofollow: Add fallback case for cross compiling
31206         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31208         net_if: Handle content-free <net/if.h> system headers
31209         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31210         struct if_nameindex.  If not, enable the replacement header.
31212         signal_h: Fix Android build
31213         * lib/signal.in.h: Add Android to the list of platforms that declare
31214         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31216         duplocale: Fix Android build of duplocale-tests
31217         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31218         is included by test-duplocale.c (but not by duplocale.c).
31219         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31220         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31221         * doc/posix-headers/monetary.texi: Add Android to the list of
31222         platforms missing monetary.h.
31224 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31226         tests: avoid recent -Werror=unused-variable regression in test-locale
31227         * tests/test-locale.c (main): Reference the variable to avoid the
31228         "unused variable" warning.
31230 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31232         maint: various whitespace cleanups in tempname
31233         * lib/tempname.c: Normalize spacing and line length.
31234         * lib/tempname.h: Likewise.
31235         * modules/tempname: Likewise.
31237 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31239         tests: provide returns_() to simplify exit status checking
31240         * tests/init.sh (returns_): A new function for use in tests,
31241         to allow for easier checking of return values, where you expect
31242         a command to exit with failure status.  By checking for a particular
31243         exit code, you don't hide any crashes for example.
31245 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31247         mountlist: only use libmount when specified
31248         There are currently many shared libs dependencies introduced by
31249         libmount with associated runtime and virt mem overhead.
31250         Therefore don't enable by default.
31251         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31253 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31255         uniname/unimame-tests: don't link with -lunistring
31256         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31257         $(LIBUNISTRING).  Document the rationale why we need to
31258         conditionalize the test.
31260 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31262         fstrcmp: don't assume strlen < INT_MAX
31263         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31264         (uintptr_t): Remove, as we're now assuming stdint.
31265         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31266         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31267         if the input string is long.
31268         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31269         uintptr_t to size_t when the underlying value is a pointer casted
31270         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31271         * modules/fstrcmp (Depends-on): Add stdint.
31273         diffseq: prefer ptrdiff_t to ssize_t
31274         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31275         ptrdiff_t is the natural type for signed indexes.
31276         On a few older platforms, ssize_t is narrower than size_t.
31278         xalloc: fix typo that suppressed warnings
31279         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31280         This typo, introduced a couple of years ago, mistakenly suppressed
31281         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31282         -Wmissing-declarations warnings.
31284         full-read: fix license notice typo
31285         * lib/full-read.h: Remove a stray line in the license notice.
31286         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31288         crypto/gc: fix a -Wswitch warning
31289         Reported by Bruce Korb in:
31290         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31291         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31293 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31295         gnulib-tool: fix handling of patch(1) diagnostics
31296         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31297         as otherwise gnulib-tool will reparse that output and attempt
31298         to lookup modules.
31300 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31302         bootstrap: exit immediately upon gnulib-tool failure
31303         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31304         This was noticed when gnulib-tool exited early due to failure
31305         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31306         but various confusing errors were then given as the build proceeded.
31308 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31310         symlinkat: include all required header files
31311         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31312         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31313         Reported at https://savannah.gnu.org/bugs/index.php?44151
31314         and by Jack Howarth.
31316 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31318         localename: support Solaris 12 and illumos
31319         * lib/localename.c (gl_locale_name_thread_unsafe): call
31320         getlocalename_l() on newer __sun platforms.
31321         Reported by Alexander Pyhalov.
31322         Fix suggested by Rich Burridge.
31324 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31326         locale: fix tests on illumos (trivial)
31327         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31328         so move from global scope to main().
31330 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31332         unictype: avoid undefined left-shift behavior
31333         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31334         gcc's -fsanitize=shift and running its tests triggered:
31335           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31336             places cannot be represented in type 'int'
31337         Cast LHS to 'unsigned int' after integer promotion.
31338         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31339         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31341 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31343         libunistring: bump version of unitypes dependants
31344         Due to the header file search order, all the headers which depend
31345         on unitypes.h need to be generated, when the preinstalled
31346         libunistring is older.
31347         * modules/unicase/base (configure.ac): Bump minimum version to
31348         0.9.4.
31349         * modules/uniconv/base (configure.ac): Likewise.
31350         * modules/unilbrk/base (configure.ac): Likewise.
31351         * modules/uninorm/base (configure.ac): Likewise.
31352         * modules/unistdio/base (configure.ac): Likewise.
31353         * modules/unistr/base (configure.ac): Likewise.
31354         * modules/uniwbrk/base (configure.ac): Likewise.
31355         * modules/uniwidth/base (configure.ac): Likewise.
31357 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31359         unictype/category-none: fix link with libunistring
31360         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31361         prefixed with "libstring_" when compiled as part of libunistring.
31362         To avoid undefined symbol at link time, increase the minimum
31363         version when the dependant modules are updated.
31364         * modules/unictype/category-none (configure.ac): Bump minimum
31365         version to 0.9.5.
31367 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31369         unitypes: fix build with installed libunistring
31370         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31371         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31372         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31374 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31376         time: port to MinGW32 3.21
31377         Problem reported by Eli Zaretskii in:
31378         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31379         * lib/time.in.h:
31380         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31381         * modules/time (Depends-on):
31382         Fall back on unistd.h if the other include files don't define
31383         struct timespec.
31385         update-copyright: apply to self
31386         * build-aux/update-copyright: Fix copyright date.  How ironic!
31388 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31390         libunistring: update to Unicode 7.0.0
31391         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31392         Manichaean names.
31393         * lib/unictype/joininggroup_name.h: Likewise.
31394         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31395         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31396         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31397         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31398         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31399         enum values.
31400         (is_property_alphabetic): Accept newly added characters to
31401         cuneiform numeric signs.
31402         (is_property_default_ignorable_code_point): Reject U+0605.
31403         (FIELDLEN): Increase from 120 to 160.
31404         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31405         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31406         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31407         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31408         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31409         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31410         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31411         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31412         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31413         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31414         U+1E8D0..U+1E8D6.
31415         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31416         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31417         lib/uniwidth/width.c.
31418         * all generated files under lib/uni* and tests/uni*: Regenerate.
31420 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31422         libunistring: update to Unicode 6.3.0
31423         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31424         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31425         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31426         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31427         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31428         Update WB5, WB9, WB10, WB13a, and WB13b.
31429         * tests/uniwbrk/test-uc-wordbreaks.c
31430         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31431         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31432         (UC_BIDI_PDI): New enumeration values.
31433         (bidi_category_byname): Support those enum values.
31434         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31435         dedicated property assigned.
31436         (is_property_case_ignorable): Check 0x0027.
31437         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31438         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31439         (output_wbp): Support those enum values.
31440         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31441         (UC_BIDI_PDI): New enumeration values.
31442         * lib/unictype/bidi_byname.gperf: Add those property names.
31443         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31444         U+180E, U+1A1B, and U+2066..U+2069.
31445         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31446         lib/uniwidth/width.c.
31447         * all generated files under lib/uni* and tests/uni*: Regenerate.
31449 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31451         libunistring: update to Unicode 6.2.0
31452         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31453         (unilbrk_table): Adjust table size.
31454         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31455         for LBP_RI.
31456         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31457         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31458         Normalize table index skipping ignored properties.
31459         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31460         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31461         the table.
31462         * lib/uniwbrk/wbrktable.h: Adjust table size.
31463         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31464         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31465         Support rule GB8a.
31466         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31467         * tests/unigbrk/test-uc-is-grapheme-break.c
31468         (graphemebreakproperty_to_string): Support GBP_RI.
31469         * tests/uniwbrk/test-uc-wordbreaks.c
31470         (wordbreakproperty_to_string): Support WBP_RI.
31471         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31472         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31473         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31474         LBP_AL to LBP_ID.
31475         (output_lbp): Support LBP_RI.
31476         (WBP_RI): New enumeration value.
31477         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31478         (output_wbp): Support WBP_RI.
31479         (GBP_RI): New enumeration value.
31480         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31481         * all generated files under lib/uni* and tests/uni*: Regenerate.
31483 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31485         libunistring: update to Unicode 6.1.0
31486         * lib/gen-uni-tables.c (output_joining_group): Switch to
31487         3-level table to accommodate joining groups defined with higher
31488         codepoint value.  Since there are only 88 groups defined in
31489         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31490         (get_lbp): Update for Unicode 6.1.0.
31491         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31492         3-level table.
31493         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31494         joining group name.
31495         * lib/unictype/joininggroup_name.h: Likewise.
31496         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31497         (unilbrk_table): Adjust table size.
31498         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31499         for LBP_HL.
31500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31501         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31502         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31503         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31504         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31505         U+302E..U+302F.
31506         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31507         lib/uniwidth/width.c.
31508         * all generated files under lib/uni* and tests/uni*: Regenerate.
31509         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31511 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31513         uniwbrk/u32-wordbreaks-tests: add conformance test
31514         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31515         tests/uniwbrk/test-uc-wordbreaks.c,
31516         tests/uniwbrk/test-uc-wordbreaks.sh, and
31517         tests/uniwbrk/WordBreakTest.txt.
31518         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31519         test-uc-wordbreaks to $(check_PROGRAMS), and define
31520         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31521         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31522         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31524 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31526         uniwbrk: ignore Extended/Format characters at BOL not BOS
31527         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31528         characters if the previous character property is one of
31529         WBP_NEWLINE, WBP_CR, and WBP_LF.
31531 2015-01-11  Jim Meyering  <meyering@fb.com>
31533         test-strstr.c: avoid a trivial leak
31534         * tests/test-strstr.c (main): Free haystack.
31536         update-copyright: recognize groff's \(co marker
31537         * build-aux/update-copyright (circle_c_re): Also accept
31538         uses of \(co, as found in gzip.1.
31540 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31542         maint.mk: fix compatibility with OS X nm
31543         * top/maint.mk (_gl_tight_scope): Use the -g option to
31544         show exported items rather than the -e option which is
31545         ignored on all platforms except OS X where it gives an error.
31546         Reported by Assaf Gordon.
31548 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31550         localcharset: improve charset detection on OS/2
31551         Use system codepage when appropriate.  Map OS/2 codepages to
31552         GNU canonical charset names if possible.
31553         * lib/config.charset: Don't output aliases if "$os" is os2*.
31554         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31555         result for OS/2.
31556         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31557         from the locale name which is neither "C" nor "POSIX".
31559 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31561         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31562         This reverts the last patch but one, as it shouldn't be needed now
31563         that the typo is fixed.
31564         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31565         * lib/count-trailing-zeros.h:
31566         * lib/count-one-bits.h:
31567         Go back to using 64-bit intrinsics.
31569         count-leading-zeros: fix pragma typos
31570         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31571         Fix typos in declaration of intrinsics when _MSC_VER.
31573 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31575         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31576         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31577         intrinsics in this case.
31578         * lib/count-trailing-zeros.h: Likewise.
31579         * lib/count-one-bits.h: Likewise.
31581 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31583         uniname/uniname: update to Unicode 7.0.0
31584         To accommodate new characters added since Unicode 5.1.0, this
31585         changes the internal representation of codepoint ranges.
31586         Previously, we grouped codepoint ranges by manually assigned 4-bit
31587         tag, which only allowed 16 groups.  This removes the limitation by
31588         switching to binary search on a table.  For the detail rationale
31589         and the benchmark results, see:
31590         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31591         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31592         to INDEX, as it no longer represents a codepoint.
31593         (range): New struct.
31594         (main): Switch to intervals list from a bit-pattern based
31595         classification.
31596         * lib/uniname/uninames.h: Regenerate.
31597         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31598         * modules/uniname/base (configure.ac): Bump minimum version to
31599         0.9.5.
31600         * modules/uniname/uniname (configure.ac): Bump minimum version to
31601         0.9.5.
31603 2015-01-05  Eric Blake  <eblake@redhat.com>
31605         doc: update INSTALL from autoconf
31606         * doc/install.texi: Resync from autoconf.
31607         * doc/INSTALL: Reflect recent autoconf update.
31608         * doc/INSTALL.ISO: Likewise.
31609         * doc/INSTALL.UTF-8: Likewise.
31611         stdio: fix use of PRIdMAX on modern mingw
31612         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31613         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31614         to work with modern mingw.
31616 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31618         pthread: detect git mingw builds with only partial pollution
31619         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31620         pollution, as seen temporarily in Fedora 21.
31622 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31624         lib-symbol-versions: cache script check
31625         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31626         Cache the check for linker version scripts.
31627         From a suggestion by Christophe Curis in:
31628         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31630 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31632         maint: fix grammar nits in propername (trivial change)
31633         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31634         and use an adequate verb and tense.
31636 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31638         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31639         * module/gendocs: Add 'doc/gendocs_template_min'.
31641         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31642         from to Gnulib's.
31643         (scripturl, templateurl): Adjust accordingly.
31645 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31647         gendocs: copyright date and version fix
31648         Reported by Karl Berry in:
31649         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31650         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31651         Fix copyright date.
31652         * build-aux/gendocs.sh (scriptversion): Update.
31654 2015-01-01  Karl Berry  <karl@gnu.org>
31656         * doc/install.texi,
31657         * build-aux/mdate-sh,
31658         * build-aux/depcomp,
31659         * build-aux/config.guess,
31660         * build-aux/config.sub,
31661         * build-aux/ar-lib,
31662         * build-aux/compile: revert copyright updates (some from last
31663         year) in slaved files.
31665 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31667         version-etc: new year
31668         * doc/gnulib.texi:
31669         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31670         * all files: Run 'make update-copyright'.
31672 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31674         xstrtol: ensure errno is reset
31675         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31676         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31678         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31680 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31682         utimens: fix dependency typo
31683         * modules/utimens (Depends-on): Remove 'assure'.
31684         This bug was introduced in the recent 'assure' patch.
31686 2014-12-22  Eric Blake  <eblake@redhat.com>
31688         docs: mention why libgen.h is bad
31689         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31691 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31693         assure: new module
31694         This works better than 'assert' when compiling with -DNDEBUG,
31695         as it avoids some compiler diagnostics in that case.
31696         Reported by Norihiro Tanaka in:
31697         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31698         * MODULES.html.sh (func_all_modules): Add 'assure'.
31699         * lib/assure.h, modules/assure: New files.
31700         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31701         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31702         Prefer 'assure' to 'assert'.
31703         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31704         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31705         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31706         Depend on 'assure'.
31708 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31710         stdalign: port better to HP compilers
31711         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31712         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31714         stdalign: work around Apple GCC 4.0 bug
31715         Reported by David Fang in:
31716         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31717         * lib/stdalign.in.h (_Alignas):
31718         * m4/stdalign.m4 (gl_STDALIGN_H):
31719         Do not use aligned attribute with GCC 4.0 on Apple.
31721 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31723         getcwd: fix test failure on OS X 10.9
31724         * m4/getcwd-path-max.m4: Avoid the replacement if it
31725         won't be effective due to the PATH_MAX limitation of lstat().
31726         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31727         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31728         for this case for use in tests, and also exclude this
31729         case when setting REPLACE_GETCWD.
31730         * tests/test-getcwd.c (test_long_name): Restrict the
31731         tested path length so that lstat() will not be passed
31732         a path greater than PATH_MAX.
31733         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31734         than AT_FDCWD, since the latter is set unconditionally
31735         since Sep 2009 in commit 52c658e9.
31737 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31739         parse-datetime: avoid a compiler warning with byacc (trivial)
31740         * lib/parse-datetime.y (yylex): Use the same prototype in the
31741         function definition as the declaration, to avoid a -Wstrict-prototypes
31742         warning seen when using byacc.
31744 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31746         unicase/locale-language-tests: fix LOCALE_FR test
31747         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31748         a French locale with traditional encoding.
31749         Reported by umerqayam in:
31750         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31752 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31754         stddef: support C11's max_align_t
31755         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31756         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31757         Do not undef, as that might cause max_align_t to be defined twice.
31758         Instead, change use to check for _GL_STDDEF_WINT_T too.
31759         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31760         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31761         Check for max_align_t.
31762         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31763         * modules/stddef-tests (Depends-on): Add stdalign.
31764         * tests/test-stddef.c: Test max_align_t.
31766 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31768         unistd: fix iOS check conditional
31769         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31770         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31771         yielded true on non-iOS environment.
31772         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31773         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31774         they are defined.
31776 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31778         posixtm: avoid compiler warning in a better way
31779         * lib/posixtm.c (IF_LINT): Remove.
31780         (year, posix_time_parse):
31781         Return true (not 0) if successful.  All callers changed.
31782         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31784 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31786         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31787         started with '/' on EMX.
31789 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31791         freopen: workaround freopen() on OS/2 kLIBC
31792         * lib/freopen.c (rpl_freopen): Workaround.
31793         * m4/freopen.m4: Add os2* case.
31795         get_shared_library_fullname: port to EMX
31796         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31797         on EMX, respectively.
31798         (_DLL_InitTerm): New on EMX.
31799         (get_shared_library_fullname): Implement on EMX.
31801         find_executable: port to EMX
31802         * lib/progreloc.c (find_executable): Implement on EMX.
31804         sched: check struct sched_param in spawn.h as well
31805         * lib/sched.in.h: Include spawn.h on kLIBC.
31806         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31808 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31810         bootstrap: Allow perl modules in $buildreq
31811         * build-aux/bootstrap: Add case for perl modules.
31813 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31815         apply _GL_ATTRIBUTE_PURE to some inline functions
31816         clang 3.4.2 flagged these inline functions as pure
31817         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31818         * lib/sig-handler.h (get_handler): Likewise.
31819         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31820         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31822 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31824         vasnprintf: fix potential use after free
31825         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31826         flagged by clang-analyzer 3.4.2.
31828 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31830         filevercmp, posixtm: avoid compiler warnings with -O3
31831         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31832         * lib/posixtm.c: (IF_LINT): Define.
31833         (posix_time_parse): Use it to void a "may be used uninitialized"
31834         warning, seen only with -O3.
31836 2014-12-05  Bruno Haible  <bruno@clisp.org>
31838         Fix LDBL80_WORDS macro on big endian platforms.
31839         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31840         LDBL80_WORDS macro.
31841         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31842         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31843         * tests/test-isfinite.c (test_isfinitel): Likewise.
31844         * tests/test-isinf.c (test_isinfl): Likewise.
31845         * tests/test-isnan.c (test_long_double): Likewise.
31846         * tests/test-isnanl.h (main): Likewise.
31847         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31848         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31849         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31850         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31851         Reported by Pádraig Brady.
31853 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31855         git-version-gen: do not print new line characters
31856         * build-aux/git-version-gen: Use printf instead of echo and tr.
31858         gnulib-tool: recognize x:* as an absolute path
31859         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31860         (func_relconcat): Likewise.
31862 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31864         argp: avoid extraneous translation and mem leak with empty pre doc
31865         * lib/argp-help.c (argp_doc): Never translate the empty string,
31866         when "\v" is the first or last character of the string, as that
31867         has a reserved meaning to return the header info from a po file.
31868         This also fixes a small memory leak in the !post case.
31869         The issue can be seen with this command for example:
31870         LC_MESSAGES=en_US grub2-mknetdir --help
31872 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31874         uniname/uniname-tests: skip if system's libunistring is used
31875         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31876         uniname/uniname module is not compiled.
31878 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31880         printf: fix configure check on big endian systems
31881         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31883 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31885         pipe-filter-gi, pipe-filter-ii: port to AIX
31886         On AIX 7.1, 'select' is defined as static and cannot be referred
31887         to from inline function.
31888         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31889         the definition...
31890         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31891         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31893 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31895         gitlog-to-changelog: add --until
31896         * build-aux/gitlog-to-changelog: Support new --until option.
31897         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31899 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31901         extern-inline: update commentary about GCC bugs
31902         * m4/extern-inline.m4: Add another GCC bug number to comments.
31904 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31906         gen-uni-tables: untabify
31907         * lib/gen-uni-tables.c: Untabify.
31909 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31911         gen-uni-tables: check out-of-range values added to 3-level tables
31912         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31913         (output_joining_type, output_ident_category): Check out-of-range
31914         values added to 3-level tables.
31916 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31918         gen-uni-tables: utilize 'assert'
31919         * lib/gen-uni-tables.c: Include <assert.h>.
31920         (output_category, output_combclass, output_decimal_digit_test)
31921         (output_decimal_digit, output_digit_test, output_digit)
31922         (output_numeric, get_mirror_value, fill_properties)
31923         (fill_property30, is_property_alphabetic)
31924         (is_property_default_ignorable_code_point)
31925         (is_property_uppercase, is_property_lowercase)
31926         (is_property_cased, is_property_case_ignorable)
31927         (is_property_changes_when_lowercased, is_property_iso_control)
31928         (is_property_math, fill_arabicshaping, output_joining_group)
31929         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31930         (output_wbp, fill_org_gbp, get_decomposition)
31931         (output_decomposition, fill_composition_exclusions)
31932         (debug_output_composition_tables, output_composition_tables)
31933         (redistribute_casefolding_rules, output_casing_rules): Use
31934         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31935         reporting.
31937 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31939         gen-uni-tables: cosmetic improvements
31940         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31941         variables specification.
31942         (is_outdigit): Remove unused function.
31944 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31946         fcntl-h-tests: port to PA-RISC GNU/Linux
31947         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31949 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31951         fts: port to C89
31952         Problem reported for MSVC 16 by Gisle Vanem in:
31953         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31954         * lib/fts.c (fts_build): Avoid declaration before statement.
31956 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31958         unistd: port to iOS
31959         Problem reported by André Klitzing in:
31960         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31961         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31963 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31965         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31966         Problem reported by Alan Modra in:
31967         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31968         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31969         Always cast the function arg, reverting this part of the previous
31970         change.
31972 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31974         obstack: avoid potentially-nonportable function casts
31975         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31976         Remove, replacing with ...
31977         (call_chunkfun, call_freefun): New static functions.
31978         All uses changed.  Avoid potentially-nonportable casts.
31979         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31980         (_obstack_begin_worker): Omit last two args, since they
31981         rely on potentially-nonportable casts.  All callers changed.
31982         * lib/obstack.h (_OBSTACK_CAST): New macro.
31983         Use it everywhere the old API used a potentially-nonportable cast.
31984         The new API doesn't cast.
31985         (struct obstack): Use unions rather than requiring
31986         potentially-nonportable casts.
31987         (obstack_chunkfun, obstack_freefun): Return void.
31989 2014-11-03  Alan Modra  <amodra@gmail.com>
31991         obstack: fix macro return values
31992         * lib/obstack.h (obstack_next_free): Return void *.
31993         (obstack_1grow_fast, obstack_blank_fast): Return void.
31994         For __GNUC__ macros:
31995         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31996         For !__GNUC__ macros:
31997         (obstack_make_room, obstack_grow, obstack_grow0)
31998         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32000 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32002         obstack: do not assume system-supplied obstack is size_t safe
32003         * m4/obstack.m4: New file.
32004         * modules/obstack (Files): Add it.
32006         obstack: port to platforms that #define __alignof__
32007         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32008         not if !_LIBC.  We don't know of any platforms that #define
32009         __alignof__, but it might be useful in tests.  Conversely,
32010         glibc assumes GCC.
32012 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32014         linkat: don't unconditionally replace on GNU/Linux
32015         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32016         was redundant for a few reasons.  It was present to support compiling
32017         on new systems but running on the old narrow window of Linux 2.6.1[67].
32018         It setup and cleaned up test files which weren't actually used.
32019         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32020         implicit in the following check.
32022 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32024         linkat: wrap to handle symlinks on OS X 10.10
32025         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32026         but not usable because it doesn't support creating hardlinks
32027         to symlinks.  Therefore add a generic test for this capability
32028         and fallback to our emulation if linkat() fails with ENOTSUP.
32030 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32032         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32033         * doc/posix-functions/open.texi (open):
32034         * doc/posix-functions/openat.texi (openat):
32035         Document that these functions do not set errno to ELOOP when
32036         a symlink is opened with O_NOFOLLOW.
32038 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32040         obstack: add NEWS entry for recent incompatible changes
32041         * NEWS: Describe recent changes.
32043 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32045         mountlist: don't use libmount to decide on dummy/remote
32046         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32047         routines to determine whether a file system is dummy or remote,
32048         as they're not currently compatible.  For example the remoteness
32049         is determined on file system type (for which the list seems incomplete),
32050         rather than simply checking for a ':' in the device name.
32051         Also libmount currently determines that 'tmpfs' is a dummy file system
32052         even though it has associated storage.
32054 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32056         obstack: prefer __alignof__ to alignof
32057         This is for portability to pre-4.7 GCC when compiling glibc.
32058         See Joseph S. Myers in:
32059         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32060         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32061         New macro, defined by including and using <alignof.h>.
32062         (MAX): New macro.
32063         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32064         Do not use enums as they are not portable to some broken compilers.
32065         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32067         obstack: prefer alignof to calculating alignments by hand
32068         * lib/obstack.c: Include <stdalign.h>.
32069         (struct fooalign): Remove.
32070         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32071         * modules/obstack (Depends-on): Add stdalign.
32073 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32075         obstack: use size_t alignments and check for overflow
32076         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32077         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32078         * lib/obstack.h (struct obstack.alignment_mask):
32079         Use _OBSTACK_SIZE_T, not int, for alignments.
32080         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32081         overflows, e.g., when adding the alignment.
32083 2014-10-29  Alan Modra  <amodra@gmail.com>
32085         obstack: 64-bit obstack support, part 3
32086         This finally enables full 64-bit obstack support.  The glibc
32087         shared library specific code is removed from obstack.c too, and
32088         the error handling code conditionally compiled under control of
32089         another macro, _OBSTACK_NO_ERROR_HANDLER.
32090         * lib/obstack.h: Include string.h earlier.
32091         (_OBSTACK_INTERFACE_VERSION): Define.
32092         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32093         * lib/obstack.c: Don't include shlib-compat.h.
32094         (OBSTACK_INTERFACE_VERSION): Delete.
32095         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32096         glibc code is compatible with version 2.  Don't include stdio.h for
32097         __GNU_LIBRARY.
32098         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32099         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32100         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32101         glibc shared library specific source.
32103         obstack: 64-bit obstack support, part 2
32104         This gets us 4G obstack support, without changing ABI
32105         compatibility, apart from possibly introducing some
32106         signed/unsigned comparison warnings in code that uses obstack.h.
32107         a) Replace "int" size parameters, return values, and macro local vars
32108            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32109         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32110         c) Make all obstack macros checking available room use obstack_room.
32111            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32112            allocated near the top of memory.
32113         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32114         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32115         in place of "int" size parameters, return values and local vars.
32116         (_CHUNK_SIZE_T): Define.
32117         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32118         union use an _OBSTACK_SIZE_T integer type.
32119         For __GNUC__ versions of the following macros...
32120         (obstack_room): Rename local var.
32121         (obstack_make_room): Use obstack_room.
32122         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32123         obstack_int_grow, obstack_blank): Likewise.
32124         (obstack_finish): Use unsigned comparison when comparing aligned
32125         next_free against chunk_limit.
32126         (obstack_free): Cast OBJ to remove possible const qualifier.
32127         For !__GNUC__ versions of the following macros...
32128         (obstack_make_room): Use obstack_room.
32129         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32130         obstack_int_grow, obstack_blank): Likewise.
32131         (obstack_finish): Use unsigned comparision when comparing aligned
32132         next_free against chunk_limit.
32133         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32134         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32135         _OBSTACK_SIZE_T.
32136         (_obstack_begin, _obstack_begin_1): Likewise.
32137         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32138         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32140         obstack: 64-bit obstack support, part 1
32141         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32142            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32143            and "size_t" 64 bits.
32144         b) Consolidate _obstack_begin and _obstack_begin1 code.
32145         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32146         use "size_t" rather than "long".
32147         (_obstack_begin, _obstack_begin1): Likewise.
32148         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32149         obstack_chunkfun): Update alloc function casts.
32150         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32151         (chunkfun_type, freefun_type): New typdefs.
32152         (_obstack_begin_worker): Split out from ..
32153         (_obstack_begin, _obstack_begin_1): ..here.
32155         obstack: tidy part 2
32156         a) Don't be concerned about "not polluting the namespace with stddef.h
32157            symbols" in obstack.h, since gnulib string.h includes stddef.h
32158            anyway, and it seems unlikely that anyone would care.
32159         b) Don't roll our own slow memcpy in _obstack_newchunk.
32160         c) Rename obstack_free to _obstack_free.  This makes the naming
32161            consistent with other obstack functions and obviates the need for
32162            __obstack_free.  Ancient obstack.c defined both obstack_free and
32163            _obstack_free.  We continue to do that for _LIBC via an alias.
32164         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32165            is clever, but nowadays gcc warns on undefined macros.  You'll get
32166            an undefined macro warning if simulating an old gcc with -U__GNUC__
32167            -U__GNUC_MINOR__ -D__GNUC__=1.
32168         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32169         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32170         (__obstack_free): Delete, update refs.
32171         (_obstack_free): Rename from obstack_free.
32172         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32173         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32174         * lib/obstack.c: Don't include stddef.h.
32175         (COPYING_UNIT): Delete.
32176         (_obstack_begin): Formatting fix.
32177         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32178         (_obstack_free): Rename from __obstack_free, update alias.  Move
32179         undef of obstack_free to where it is needed.
32181         obstack: tidy part 1
32182         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32183            to me, and result in overlong lines after later patches.
32184         b) Move error handling code, to avoid a forward declaration and to
32185            simplify later patches in this series.
32186         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32187         and update all uses.
32188         * lib/obstack.c: Include stdlib.h earlier.
32189         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32190         in file.
32191         (print_and_abort): Remove now redundant forward declaration.
32193 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32195         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32196         Without this change, in bleeding-edge fileutils Autoconf complains
32197         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32198         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32199         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32200         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32202 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32204         iconv: avoid false detection of non-working iconv
32205         The INBUF arguments of iconv can be either 'const char **'
32206         or 'char **'.  If CC is g++, the difference causes a compile error
32207         and thus leads to a false detection of non-working iconv.
32208         Reported by Eli Zaretskii and Werner LEMBERG in:
32209         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32210         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32211         iconv.  Bump serial number.
32213 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32215         bootstrap: print more diagnostics for missing programs
32216         * build-aux/bootstrap: only suppress stderr when checking for
32217         alternative program names.  This supports programs issuing non
32218         standard error messages.
32220 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32222         bootstrap: only update the gnulib submodule
32223         * build-aux/bootstrap: Restrict the "submodule update" command
32224         to the gnulib path.
32226 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32228         symlinkat: port to AIX 7.1
32229         * doc/posix-functions/symlinkat.texi (symlinkat):
32230         Mention AIX porting problem.
32231         * lib/symlinkat.c: Always include errno.h.
32232         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32233         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32234         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32236         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32237         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32238         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32240         readlinkat: port to AIX 7.1
32241         * doc/posix-functions/readlink.texi (readlink):
32242         * doc/posix-functions/readlinkat.texi (readlinkat):
32243         Mention AIX porting problem.
32244         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32245         New function.
32246         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32247         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32249         * modules/readlinkat (configure.ac): Also compile replacement
32250         if REPLACE_READLINKAT.
32251         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32253 2014-10-12  Karl Berry  <karl@gnu.org>
32255         * doc/posix-functions/dirname.texi: remove spurious {.
32257 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32259         basename, dirname: Improve documentation.
32260         * doc/posix-functions/basename.texi: Mention dirname module and
32261         base_name() function.
32262         * doc/posix-functions/dirname.texi: Mention dir_name() and
32263         mdir_name() functions.
32264         Suggested by Werner LEMBERG <wl@gnu.org>.
32266 2014-09-24  Jim Meyering  <meyering@fb.com>
32268         exclude: declare exclude_patopts static
32269         * lib/exclude.c (exclude_patopts): Declare static,
32270         to avoid triggering a -Wmissing-prototypes warning.
32271         The alternative (declaring it in the .h file) would
32272         require publicizing the private "struct patopts".
32274 2014-09-21  Werner Lemberg  <wl@gnu.org>
32276         dirname: support compilation with C++
32277         * lib/dirname.h: Add necessary C linkage declarations.
32279 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32281         qsort_r: include <config.h>
32282         Problem reported by Tom G. Christensen in:
32283         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32284         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32286 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32288         avltree-list: avoid compiler warnings (trivial)
32289         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32290         -Werror=suggest-attribute=pure.
32291         * lib/gl_array_list.c: Likewise.
32292         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32293         declaration to avoid -Werror=missing-prototypes.  This is not added
32294         to a header as only exported for tests.  Add (void) to the
32295         check_invariants() call to indicate we're discarding the result
32296         in this context which avoids -Werror=unused-value.  Note we don't
32297         use ignore_value here to avoid a dependency as we know we'll not
32298         be adding __attribute__((warn_unused_result)) to check_invariants().
32299         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32301 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32303         qsort_r: new module, for GNU-style qsort_r
32304         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32306 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32308         strerror_r-posix: support compilation with C++
32309         * lib/strerror_r.c: Add necessary C linkage declarations.
32311 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32313         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32314         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32316 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32318         mountlist: use /proc/self/mountinfo when available
32319         Use libmount to propagate device IDs provided by Linux in
32320         /proc/self/mountinfo.  This will give more accurate output when
32321         using df in chroot'ed environments as the device IDs are not
32322         determined by stat() which may be inaccurate within the chroot.
32323         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32324         from util-linux to parse "/proc/self/mountinfo" or fall back to
32325         standard getmntent() processing.
32326         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32327         getmntent() is used, as is the case on GNU/Linux.
32329 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32331         users.txt: add cmogstored
32332         cmogstored has used gnulib since the beginning in 2012 to support
32333         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32335 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32337         Trivial change.
32338         * gnulib-tool: Use same options as build-aux/bootstrap to download
32339         PO files.
32341 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32343         Trivial change.
32344         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32346 2014-09-04  Eric Blake  <eblake@redhat.com>
32348         maintainer-makefile: add syntax check for useless ';;'
32349         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32351 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32353         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32354         Problem reported by Assaf Gordon in:
32355         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32356         Apparently Ubuntu is doing some fancy link-time optimization
32357         that doesn't work with -lpthread but does work with -pthread.
32358         Work around the bug by preferring -pthread to -lpthread.
32359         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32360         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32362         Treat -pthread like -lpthread.
32364 2014-09-04  Eric Blake  <eblake@redhat.com>
32366         error: drop spurious semicolon
32367         * lib/error.c (__error_at_line): Fix ';;'.
32369 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32371         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32372         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32373         Override AC_C_RESTRICT unconditionally.
32374         Update from autoconf, incorporating:
32375         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32376         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32378 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32380         manywarnings: add GCC 4.9 warnings
32381         Also, make it easier to maintain this in the future.
32382         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32383         -Wconditionally-supported, -Wdelete-incomplete,
32384         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32385         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32386         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32387         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32388         only for older GCC versions that need them.  Handle
32389         -Wnormalized=nfc specially, so that the 'comm' command used
32390         for maintenance doesn't get confused.
32392 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32394         vasnprintf: fix bugs in width computation
32395         * lib/vasnprintf.c (VASNPRINTF):
32396         Rework previous change, which introduced a bug,
32397         to avoid the warning in a different way.
32398         Avoid undefined behavior if the width arg is less than -INT_MAX.
32399         Avoid unnecessary use of HAS_WIDTH local.
32401 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32403         vasnprintf: Avoid signed/unsigned comparison warning.
32404         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32405         compare end addr of generated string w/ maximum end addr.
32407 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32409         parse-datetime: Avoid pointer difference.
32410         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32411         instead of calculating difference of pointers.  This removes an
32412         annoying warning, devoid of any use.
32414 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32416         qsort_r: new module, for GNU-style qsort_r
32417         This works even on FreeBSD, which has an incompatible qsort_r API.
32418         * MODULES.html.sh: Add it.
32419         * doc/glibc-functions/qsort_r.texi: It's now supported.
32420         * lib/qsort.c: New file, taken from glibc with minor changes
32421         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32422         removed.
32423         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32424         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32426         * modules/qsort_r, modules/qsort_r-tests: New files.
32427         * modules/stdlib (Makefile): Set up its defaults.
32428         * tests/test-qsort_r.c: New file.
32430 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32432         vla: new module
32433         GNU RCS can use this, mostly for documentation I expect.  See:
32434         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32435         * MODULES.html.sh: Add vla.
32436         * lib/vla.h, modules/vla: New files.
32438 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32440         localename: make gl_locale_name_thread really thread-safe on Windows
32441         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32442         "glthread/lock.h".
32443         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32444         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32446 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32448         getpass: don't assume struct termios
32449         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32450         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32451         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32453         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32454         Problem reported by Jonas 'Sortie' Termansen in:
32455         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32456         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32457         Implement via sysconf for platforms that lack getdtablesize.
32459         vararrays: modernize AC_C_VARARRAYS for C11
32460         This backports a change I recently made to Autoconf.
32461         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32462         VLAs are not supported, as this is what C11 does.  The old macro
32463         HAVE_C_VARARRAYS is still defined if they are supported, but is
32464         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32466 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32468         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32469         * build-aux/install-reloc (func_create_wrapper): Also wrap
32470         strerror-override, stat, stat.
32472 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32474         sys_select: fix FD_ZERO problem on Solaris 10
32475         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32476         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32477         to expand to an expression that invoked memset without necessarily
32478         including <string.h>.  The problem was that the first include
32479         defined _SYS_TIME_H, causing the second include to short-circuit.
32480         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32481         Also, fix what appears to be a cut-and-paste typo, by replacing
32482         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32483         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32485         accept: document Solaris 10 type glitch
32486         * doc/posix-functions/accept.texi (accept): Mention that
32487         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32489 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32491         extern-inline: port to FreeBSD, DragonFly
32492         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32493         is present if either __DragonFly__ or __FreeBSD__ is defined.
32494         FreeBSD problem reported by Andrey Borzenkov in:
32495         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32496         Also, worry about __APPLE__ only if __MACH__ is also defined,
32497         as this is more consistent with the rest of gnulib.
32498         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32499         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32501 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32503         regex: Make #if/#ifdef usage consistent for DEBUG
32504         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32505         of the inconsistent usage of #if and #ifdef as that works with
32506         both Glibc and Gnulib's style.
32508 2014-07-31  Eric Blake  <eblake@redhat.com>
32510         openat-die: use _Noreturn markup
32511         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32512         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32513         _Noreturn.
32515 2014-07-30  Eric Blake  <eblake@redhat.com>
32517         test-open: port to cygwin, which lacks Fortify
32518         * tests/test-open.h (ALWAYS_INLINE): New macro.
32519         (__always_inline): Don't abuse internal symbol on non-glibc.
32521 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32523         localename: Enforce declarations before statements.
32524         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32525         first statement.
32527 2014-07-18  Jim Meyering  <meyering@fb.com>
32529         test-userspec: don't look up numeric user names
32530         * tests/test-userspec.c: I found a system for which getpwnam("0")
32531         returned a pointer to a non-root user's entry, and that made the
32532         test fail.
32533         (T): Prefix each numeric input with "+", to inhibit lookup.
32535 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32537         localcharset, localename: MS-Windows support for non-default locales
32538         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32539         falling back on the default system codepage, try extracting
32540         the codepage from what 'setlocale' returns.  This allows to
32541         take into account changes of the codeset due to non-default
32542         locale set by a previous call to 'setlocale'.
32543         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32544         Define if not already defined.
32545         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32546         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32547         current locale by calling 'setlocale', then converting the
32548         locale name into LCID by calling 'get_lcid'.  This allows to
32549         take into account changes in the current locale from the
32550         default one, in contrast to GetThreadLocale.
32552 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32554         announce-gen: avoid failure when Digest::SHA is installed
32555         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32556         Digest::SHA1->new in print_checksums fails.
32557         * build-aux/announce-gen (digest_classes): New associative array
32558         for available message digest implementations.
32559         (print_locations): Use it.
32561 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32563         gettext: revert "update macros to version 0.19"
32564         This reverts commit 9b9370ca, as it currently requires that
32565         developers of any project that explicitly uses the gettext module
32566         or implicitly uses it through the utimens-tests or
32567         futimens-tests modules, use gettext >= 0.19.
32568         However there are some stability and availablity issues with
32569         that version at present.  We can reinstate this soon, when stability
32570         is addressed and packages are more readily available.
32572 2014-07-12  Jim Meyering  <meyering@fb.com>
32574         regex: don't deref NULL upon heap allocation failure
32575         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32576         failure in one more place.
32577         To trigger the segfault, configure grep -with-included-regex,
32578         build it, and run these commands:
32579         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32580         I discovered this while replying to a private report from
32581         Jens Schleusener about excessive memory consumption by grep
32582         when using a regular expression like the one above.
32584 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32586         regex: fix memory leak in compiler
32587         Fix by Andreas Schwab in:
32588         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32589         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32590         constructed tree before returning error.
32592 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32594         announce-gen: avoid perl warnings
32595         * build-aux/announce-gen: add two minor checks to avoid
32596         "use of uninitialized value" warnings when command-line parameters are
32597         missing.
32599 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32601         localename: avoid -Wsuggest-attribute={const,pure} warnings
32602         * lib/localename.c (string_has): Tag internal function as pure.
32603         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32604         as const when appropriate.
32606 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32608         nl_langinfo: Fix last change.
32609         * lib/nl_langinfo.c (includes): Drop redundant include.
32611 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32613         error: Fix -Wundef warnings in glibc
32614         * lib/error.c [_LIBC]: Define default macros for
32615         glibc.
32616         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32617         Check _LIBC before STRERROR_R_CHAR_P.
32619         error: Sync from glibc master
32620         * lib/error.c [_LIBC]: Remove INTUSE usage.
32621         (error_tail): Remove unused macro ALLOCA_LIMIT.
32622         Fix potential buffer overflow.  Fix potential NULL dereference
32623         in strcmp.
32625 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32627         nl_langinfo: fix build under mingw
32628         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32630 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32632         mountlist: do not classify a bind-mounted dir entry as "dummy"
32633         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32634         1-argument getmntent() (instead of assuming absence).
32636 2014-07-08  Eric Blake  <eblake@redhat.com>
32638         maint.mk: less syntax-check noise when SIGPIPE is ignored
32639         * top/maint.mk (_sc_header_without_use)
32640         (sc_require_config_h_first): Parse full list.
32642 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32643             Paul Eggert  <eggert@cs.ucla.edu>
32645         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32646         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32647         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32648         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32649         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32650         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32651         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32652         Include <stdio.h> if Microsoft Windows.
32653         Include <time.h> if !REPLACE_NL_LANGINFO.
32654         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32655         and with improvements for Microsoft Windows.
32656         (rpl_nl_langinfo): Use it.
32657         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32658         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32659         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32660         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32661         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32662         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32663         corresponding values returned by 'localeconv'.  Compute the values
32664         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32665         'strftime' with a suitable struct tm value.
32667 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32669         Bruno Haible has stepped down as maintainer.
32670         See Karl Berry in:
32671         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32672         Daiki Ueno has volunteered to maintain libunistring; see:
32673         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32674         * modules/gen-uni-tables, modules/libunistring:
32675         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32676         * modules/unicase/base, modules/unicase/cased:
32677         * modules/unicase/empty-prefix-context:
32678         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32679         * modules/unicase/locale-language, modules/unicase/special-casing:
32680         * modules/unicase/tocasefold, modules/unicase/tolower:
32681         * modules/unicase/totitle, modules/unicase/toupper:
32682         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32683         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32684         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32685         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32686         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32687         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32688         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32689         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32690         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32691         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32692         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32693         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32694         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32695         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32696         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32697         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32698         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32699         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32700         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32701         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32702         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32703         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32704         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32705         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32706         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32707         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32708         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32709         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32710         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32711         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32712         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32713         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32714         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32715         * modules/uniconv/u16-conv-to-enc:
32716         * modules/uniconv/u16-strconv-from-enc:
32717         * modules/uniconv/u16-strconv-from-locale:
32718         * modules/uniconv/u16-strconv-to-enc:
32719         * modules/uniconv/u16-strconv-to-locale:
32720         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32721         * modules/uniconv/u32-strconv-from-enc:
32722         * modules/uniconv/u32-strconv-from-locale:
32723         * modules/uniconv/u32-strconv-to-enc:
32724         * modules/uniconv/u32-strconv-to-locale:
32725         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32726         * modules/uniconv/u8-strconv-from-enc:
32727         * modules/uniconv/u8-strconv-from-locale:
32728         * modules/uniconv/u8-strconv-to-enc:
32729         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32730         * modules/unictype/bidicategory-all:
32731         * modules/unictype/bidicategory-byname:
32732         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32733         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32734         * modules/unictype/bidiclass-byname:
32735         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32736         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32737         * modules/unictype/block-all, modules/unictype/block-list:
32738         * modules/unictype/block-of, modules/unictype/block-test:
32739         * modules/unictype/category-C, modules/unictype/category-Cc:
32740         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32741         * modules/unictype/category-Co, modules/unictype/category-Cs:
32742         * modules/unictype/category-L, modules/unictype/category-LC:
32743         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32744         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32745         * modules/unictype/category-Lu, modules/unictype/category-M:
32746         * modules/unictype/category-Mc, modules/unictype/category-Me:
32747         * modules/unictype/category-Mn, modules/unictype/category-N:
32748         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32749         * modules/unictype/category-No, modules/unictype/category-P:
32750         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32751         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32752         * modules/unictype/category-Pi, modules/unictype/category-Po:
32753         * modules/unictype/category-Ps, modules/unictype/category-S:
32754         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32755         * modules/unictype/category-Sm, modules/unictype/category-So:
32756         * modules/unictype/category-Z, modules/unictype/category-Zl:
32757         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32758         * modules/unictype/category-all, modules/unictype/category-and:
32759         * modules/unictype/category-and-not, modules/unictype/category-byname:
32760         * modules/unictype/category-longname, modules/unictype/category-name:
32761         * modules/unictype/category-none, modules/unictype/category-of:
32762         * modules/unictype/category-or, modules/unictype/category-test:
32763         * modules/unictype/category-test-withtable:
32764         * modules/unictype/combining-class:
32765         * modules/unictype/combining-class-all:
32766         * modules/unictype/combining-class-byname:
32767         * modules/unictype/combining-class-longname:
32768         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32769         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32770         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32771         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32772         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32773         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32774         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32775         * modules/unictype/digit, modules/unictype/joininggroup-all:
32776         * modules/unictype/joininggroup-byname:
32777         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32778         * modules/unictype/joiningtype-all:
32779         * modules/unictype/joiningtype-byname:
32780         * modules/unictype/joiningtype-longname:
32781         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32782         * modules/unictype/mirror, modules/unictype/numeric:
32783         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32784         * modules/unictype/property-ascii-hex-digit:
32785         * modules/unictype/property-bidi-arabic-digit:
32786         * modules/unictype/property-bidi-arabic-right-to-left:
32787         * modules/unictype/property-bidi-block-separator:
32788         * modules/unictype/property-bidi-boundary-neutral:
32789         * modules/unictype/property-bidi-common-separator:
32790         * modules/unictype/property-bidi-control:
32791         * modules/unictype/property-bidi-embedding-or-override:
32792         * modules/unictype/property-bidi-eur-num-separator:
32793         * modules/unictype/property-bidi-eur-num-terminator:
32794         * modules/unictype/property-bidi-european-digit:
32795         * modules/unictype/property-bidi-hebrew-right-to-left:
32796         * modules/unictype/property-bidi-left-to-right:
32797         * modules/unictype/property-bidi-non-spacing-mark:
32798         * modules/unictype/property-bidi-other-neutral:
32799         * modules/unictype/property-bidi-pdf:
32800         * modules/unictype/property-bidi-segment-separator:
32801         * modules/unictype/property-bidi-whitespace:
32802         * modules/unictype/property-byname:
32803         * modules/unictype/property-case-ignorable:
32804         * modules/unictype/property-cased:
32805         * modules/unictype/property-changes-when-casefolded:
32806         * modules/unictype/property-changes-when-casemapped:
32807         * modules/unictype/property-changes-when-lowercased:
32808         * modules/unictype/property-changes-when-titlecased:
32809         * modules/unictype/property-changes-when-uppercased:
32810         * modules/unictype/property-combining:
32811         * modules/unictype/property-composite:
32812         * modules/unictype/property-currency-symbol:
32813         * modules/unictype/property-dash:
32814         * modules/unictype/property-decimal-digit:
32815         * modules/unictype/property-default-ignorable-code-point:
32816         * modules/unictype/property-deprecated:
32817         * modules/unictype/property-diacritic:
32818         * modules/unictype/property-extender:
32819         * modules/unictype/property-format-control:
32820         * modules/unictype/property-grapheme-base:
32821         * modules/unictype/property-grapheme-extend:
32822         * modules/unictype/property-grapheme-link:
32823         * modules/unictype/property-hex-digit:
32824         * modules/unictype/property-hyphen:
32825         * modules/unictype/property-id-continue:
32826         * modules/unictype/property-id-start:
32827         * modules/unictype/property-ideographic:
32828         * modules/unictype/property-ids-binary-operator:
32829         * modules/unictype/property-ids-trinary-operator:
32830         * modules/unictype/property-ignorable-control:
32831         * modules/unictype/property-iso-control:
32832         * modules/unictype/property-join-control:
32833         * modules/unictype/property-left-of-pair:
32834         * modules/unictype/property-line-separator:
32835         * modules/unictype/property-logical-order-exception:
32836         * modules/unictype/property-lowercase, modules/unictype/property-math:
32837         * modules/unictype/property-non-break:
32838         * modules/unictype/property-not-a-character:
32839         * modules/unictype/property-numeric:
32840         * modules/unictype/property-other-alphabetic:
32841         * modules/unictype/property-other-default-ignorable-code-point:
32842         * modules/unictype/property-other-grapheme-extend:
32843         * modules/unictype/property-other-id-continue:
32844         * modules/unictype/property-other-id-start:
32845         * modules/unictype/property-other-lowercase:
32846         * modules/unictype/property-other-math:
32847         * modules/unictype/property-other-uppercase:
32848         * modules/unictype/property-paired-punctuation:
32849         * modules/unictype/property-paragraph-separator:
32850         * modules/unictype/property-pattern-syntax:
32851         * modules/unictype/property-pattern-white-space:
32852         * modules/unictype/property-private-use:
32853         * modules/unictype/property-punctuation:
32854         * modules/unictype/property-quotation-mark:
32855         * modules/unictype/property-radical:
32856         * modules/unictype/property-sentence-terminal:
32857         * modules/unictype/property-soft-dotted:
32858         * modules/unictype/property-space:
32859         * modules/unictype/property-terminal-punctuation:
32860         * modules/unictype/property-test, modules/unictype/property-titlecase:
32861         * modules/unictype/property-unassigned-code-value:
32862         * modules/unictype/property-unified-ideograph:
32863         * modules/unictype/property-uppercase:
32864         * modules/unictype/property-variation-selector:
32865         * modules/unictype/property-white-space:
32866         * modules/unictype/property-xid-continue:
32867         * modules/unictype/property-xid-start:
32868         * modules/unictype/property-zero-width, modules/unictype/scripts:
32869         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32870         * modules/unictype/syntax-c-whitespace:
32871         * modules/unictype/syntax-java-ident:
32872         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32873         * modules/unigbrk/u16-grapheme-breaks:
32874         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32875         * modules/unigbrk/u32-grapheme-breaks:
32876         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32877         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32878         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32879         * modules/unigbrk/uc-is-grapheme-break:
32880         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32881         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32882         * modules/unilbrk/u16-width-linebreaks:
32883         * modules/unilbrk/u32-possible-linebreaks:
32884         * modules/unilbrk/u32-width-linebreaks:
32885         * modules/unilbrk/u8-possible-linebreaks:
32886         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32887         * modules/unilbrk/ulc-possible-linebreaks:
32888         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32889         * modules/uniname/uniname, modules/uninorm/base:
32890         * modules/uninorm/canonical-decomposition:
32891         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32892         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32893         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32894         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32895         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32896         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32897         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32898         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32899         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32900         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32901         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32902         * modules/unistdio/base, modules/unistdio/u-printf-args:
32903         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32904         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32905         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32906         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32907         * modules/unistdio/u16-u16-sprintf:
32908         * modules/unistdio/u16-u16-vasnprintf:
32909         * modules/unistdio/u16-u16-vasprintf:
32910         * modules/unistdio/u16-u16-vsnprintf:
32911         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32912         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32913         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32914         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32915         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32916         * modules/unistdio/u32-u32-asnprintf:
32917         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32918         * modules/unistdio/u32-u32-sprintf:
32919         * modules/unistdio/u32-u32-vasnprintf:
32920         * modules/unistdio/u32-u32-vasprintf:
32921         * modules/unistdio/u32-u32-vsnprintf:
32922         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32923         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32924         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32925         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32926         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32927         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32928         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32929         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32930         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32931         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32932         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32933         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32934         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32935         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32936         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32937         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32938         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32939         * modules/unistr/u16-check, modules/unistr/u16-chr:
32940         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32941         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32942         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32943         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32944         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32945         * modules/unistr/u16-move, modules/unistr/u16-next:
32946         * modules/unistr/u16-prev, modules/unistr/u16-set:
32947         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32948         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32949         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32950         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32951         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32952         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32953         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32954         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32955         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32956         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32957         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32958         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32959         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32960         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32961         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32962         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32963         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32964         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32965         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32966         * modules/unistr/u32-next, modules/unistr/u32-prev:
32967         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32968         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32969         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32970         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32971         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32972         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32973         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32974         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32975         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32976         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32977         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32978         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32979         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32980         * modules/unistr/u8-check, modules/unistr/u8-chr:
32981         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32982         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32983         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32984         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32985         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32986         * modules/unistr/u8-next, modules/unistr/u8-prev:
32987         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32988         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32989         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32990         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32991         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32992         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32993         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32994         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32995         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32996         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32997         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32998         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32999         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33000         * modules/uniwbrk/base, modules/uniwbrk/table:
33001         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33002         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33003         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33004         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33005         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33006         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33007         * modules/uniwidth/width, modules/utf16-ucs4:
33008         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33009         * modules/utf8-ucs4-unsafe:
33010         Change maintainer from Bruno Haible to Daiki Ueno.
33011         This is my guess at the libunistring modules; please feel free
33012         to fix if I guessed incorrectly.
33013         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33014         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33015         * modules/areadlink, modules/array-list, modules/array-mergesort:
33016         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33017         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33018         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33019         * modules/binary-io, modules/bison-i18n, modules/btowc:
33020         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33021         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33022         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33023         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33024         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33025         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33026         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33027         * modules/closedir, modules/concat-filename, modules/copy-file:
33028         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33029         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33030         * modules/csharpcomp-script, modules/csharpexec:
33031         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33032         * modules/dprintf, modules/dprintf-posix, modules/dup:
33033         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33034         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33035         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33036         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33037         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33038         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33039         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33040         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33041         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33042         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33043         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33044         * modules/findprog, modules/findprog-lgpl, modules/floor:
33045         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33046         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33047         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33048         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33049         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33050         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33051         * modules/freadable, modules/freadahead, modules/freadptr:
33052         * modules/freadseek, modules/freopen, modules/frexp:
33053         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33054         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33055         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33056         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33057         * modules/ftello, modules/full-read, modules/full-write:
33058         * modules/fwritable, modules/fwriteerror, modules/gcd:
33059         * modules/get-rusage-as, modules/get-rusage-data:
33060         * modules/getdtablesize, modules/getrusage, modules/gettext:
33061         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33062         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33063         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33064         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33065         * modules/iconv, modules/iconv-h, modules/iconv_open:
33066         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33067         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33068         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33069         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33070         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33071         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33072         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33073         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33074         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33075         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33076         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33077         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33078         * modules/lib-symbol-visibility, modules/libsigsegv:
33079         * modules/linked-list, modules/linkedhash-list, modules/list:
33080         * modules/localcharset, modules/locale, modules/localeconv:
33081         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33082         * modules/log10, modules/log10-ieee, modules/log10f:
33083         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33084         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33085         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33086         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33087         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33088         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33089         * modules/logf, modules/logf-ieee, modules/login_tty:
33090         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33091         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33092         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33093         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33094         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33095         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33096         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33097         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33098         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33099         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33100         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33101         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33102         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33103         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33104         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33105         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33106         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33107         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33108         * modules/posix_spawn, modules/posix_spawn-internal:
33109         * modules/posix_spawn_file_actions_addclose:
33110         * modules/posix_spawn_file_actions_adddup2:
33111         * modules/posix_spawn_file_actions_addopen:
33112         * modules/posix_spawn_file_actions_destroy:
33113         * modules/posix_spawn_file_actions_init:
33114         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33115         * modules/posix_spawnattr_getpgroup:
33116         * modules/posix_spawnattr_getschedparam:
33117         * modules/posix_spawnattr_getschedpolicy:
33118         * modules/posix_spawnattr_getsigdefault:
33119         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33120         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33121         * modules/posix_spawnattr_setschedparam:
33122         * modules/posix_spawnattr_setschedpolicy:
33123         * modules/posix_spawnattr_setsigdefault:
33124         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33125         * modules/pow, modules/powf, modules/printf-frexp:
33126         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33127         * modules/progname, modules/propername, modules/pselect:
33128         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33129         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33130         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33131         * modules/read, modules/readdir, modules/readlink:
33132         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33133         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33134         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33135         * modules/relocatable-script, modules/remainder:
33136         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33137         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33138         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33139         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33140         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33141         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33142         * modules/setlocale, modules/sh-quote, modules/shutdown:
33143         * modules/signal, modules/signbit, modules/sigpipe:
33144         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33145         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33146         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33147         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33148         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33149         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33150         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33151         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33152         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33153         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33154         * modules/streq, modules/strerror_r-posix, modules/striconv:
33155         * modules/striconveh, modules/striconveha, modules/strncat:
33156         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33157         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33158         * modules/sys_wait, modules/system-posix, modules/system-quote:
33159         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33160         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33161         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33162         * modules/truncf, modules/truncf-ieee, modules/truncl:
33163         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33164         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33165         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33166         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33167         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33168         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33169         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33170         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33171         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33172         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33173         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33174         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33175         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33176         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33177         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33178         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33179         * modules/write, modules/xconcat-filename, modules/xlist:
33180         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33181         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33182         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33183         * modules/y0, modules/y1, modules/yn:
33184         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33185         change the maintainer to 'all'.  Let's hope someone volunteers.
33187 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33189         mktime: merge #if/#ifdef usage from glibc
33190         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33191         as that works with both Glibc's and Gnulib's style.
33192         See thread starting at Siddhesh Poyarekar's bug report at:
33193         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33195 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33197         git-version-gen: improve option descriptions
33198         * build-aux/git-version-gen: Mention that --prefix and --fallback
33199         have a mandatory argument.
33201 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33203         regex: fix memory leak in compiler
33204         Fix by Andreas Schwab in:
33205         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33206         * lib/regcomp.c (parse_expression): Deallocate partially
33207         constructed tree before returning error.
33209         regex: merge patch from libc
33210         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33211         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33212         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33214 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33216         acl: port to gcc -Wredundant-decls
33217         From a request by Dmitry Antipov in:
33218         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33219         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33220         "#ifndef _GL_ACL_H".
33222 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33223         Jim Meyering  <meyering@fb.com>
33225         parse-duration: eliminate 68-year duration limit
33226         * lib/parse-duration.c: Include "intprops.h".
33227         (TIME_MAX): Rename to MAX_DURATION and define to
33228         TYPE_MAXIMUM(time_t).
33229         * modules/parse-duration (Depends-on): Add intprops.
33230         Reported by Jonas 'Sortie' Termansen.
33232 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33234         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33235         * modules/pthread (Depends-on): Add 'extensions', as it defines
33236         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33237         (configure.ac-early): New section.
33238         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33239         it is no longer needed.
33241 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33243         pthread: define thread-safe macros on some platforms
33244         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33245         for thread-safe operation on some platforms.
33247 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33249         regex: don't be multithreaded if USE_UNLOCKED_IO.
33250         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33251         * lib/regex_internal.h: Do not use multithreaded version if
33252         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33253         around a porting bug with coreutils 8.22 on AIX 7.1.
33255 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33257         gettext: update macros to version 0.19
33258         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33259         depend on gl_EXTERN_INLINE and drop support for older Bison
33260         versions.
33262 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33264         select,poll: fix console handle check on windows 8
33265         lib/poll.c (IsConsoleHandle): Change from testing the lower
33266         2 bits of the handle to the more expensive but accurate syscall.
33267         lib/select.c: Likewise.
33269 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33271         select: fix waiting on anonymous pipes on MS-Windows
33272         * lib/select.c (rpl_select): Fall back to polling when select()
33273         indicates there is nothing to check, while due to the timeout not
33274         expiring, activity is indicated on one of the handles.
33275         Also clear the TIMEOUT argument if the timer does expire.
33277 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33279         times: fix to return non constant value on MS-Windows
33280         * lib/times.c (times): Don't use the process creation time,
33281         rather clock() which on windows returns the number of
33282         clock ticks since the process started.
33284 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33286         isatty: fix to work on windows 8
33287         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33288         2 bits of the handle to the more expensive but accurate syscall.
33290 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33292         maint: fix typo in fdl.texi
33293         * doc/fdl.texi: Fix typo (missing '@').
33294         Somehow this was in fdl.texi but not fdl-1.3.texi.
33296 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33298         mountlist: avoid hasmntopt const type warning on solaris
33299         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33300         with char * instead of const char *.  Passing the constant string
33301         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33302         to avoid the warning.
33304 2014-06-04  Eric Blake  <eblake@redhat.com>
33306         maintainer-makefile: delete obsolete code
33307         * top/maint.mk (build_aux): Drop old code, as threatened.
33309         maintainer-makefile: avoid spurious error messages
33310         * top/maint.mk (syntax-check): Guard definition and use of
33311         $(shell) by whether Makefile is present.
33313 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33315         rename: avoid unused-but-set-variable compiler warning
33316         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33317         it is possible that dst_exists may be set but not used.  Mark it with
33318         the unused attribute to avoid compiler warnings.
33320 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33322         rename: mark a label as potentially unused
33323         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33324         by marking the out label as potentially unused.
33325         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33327 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33329         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33330         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33332 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33334         acl: apply pure attribute to two functions
33335         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33336         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33338 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33340         gnulib-common.m4: add _GL_UNUSED_LABEL
33341         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33342         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33344 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33346         dup2, fcntl, fcntl-h: port to AIX 7.1
33347         This fixes some porting problems discovered when testing the latest
33348         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33349         in grep but it could be important for other applications.
33350         * doc/posix-functions/dup2.texi:
33351         * doc/posix-functions/fcntl.texi:
33352         * doc/posix-headers/fcntl.texi:
33353         Document AIX bugs.
33354         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33355         Define to 0 if outside 'int' range.
33356         * m4/dup2.m4 (gl_FUNC_DUP2):
33357         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33358         Check for getdtablesize.  If it's available, test a value just
33359         outside its range instead of testing 1000000.  When cross-compiling,
33360         guess that AIX will fail this improved test.
33362 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33364         printf, config.rpath: Port to FreeBSD 10.
33365         Problem reported by Tijl Coosemans in:
33366         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33367         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33368         (hardcode_direct): Simplify FreeBSD configuration.
33369         (library_names_spec): Don't mishandle FreeBSD 10+.
33370         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33371         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33372         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33373         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33374         Don't mishandle FreeBSD 10+ when cross-compiling.
33376         ftoastr: work around compiler bug in IBM xlc 12.1
33377         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33378         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33379         around a compiler bug in IBM xlc 12.1.0.0: it complains
33380         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33381         _GL_FLT_PREC_BOUND.'
33383 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33385         valgrind-tests: fixed misleading help message
33386         * m4/valgrind-tests.m4: The help message generated by configure
33387         implied that valgrind was disabled by default, which it wasn't.
33388         Adjusted the help message using s/enable/disable/ to clarify.
33390 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33392         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33393         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33394         first double of a PowerPC "double double" pair.
33395         * tests/test-isinf.c (test_isinfl): Likewise.
33396         * tests/test-isnan.c (test_long_double): Likewise.
33397         * tests/test-isnanl.h (main): Likewise.
33398         * tests/test-signbit.c (test_signbitl): Likewise.
33400 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33402         exclude-tests: port to AIX 7.1
33403         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33404         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33405         the regex code uses locks.
33407 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33409         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33410         Without this fix, Emacs would sometimes call sigprocmask instead
33411         of pthread_sigmask, which is a no-no in multithreaded applications.
33412         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33413         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33414         Suppress check for pthread_sigmask working without -lpthread if
33415         the application always links with -lpthread.  Do not link with
33416         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33417         * m4/timer_time.m4 (gl_TIMER_TIME):
33418         Require gl_THREADLIB only if it is defined.  Do not append
33419         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33421 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33423         gnulib-tool: wget translations using --no-verbose rather than --quiet
33424         This allows the user to see error messages if any (--quiet hides them)
33425         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33427 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33429         gnulib-tool: adjust translation wget to avoid a https redirection
33430         Context: http://translationproject.org/latest/gnulib redirects to
33431            https://translationproject.org/latest/gnulib/
33432         Rationale: if the user falls back to wget, she doesn't have rsync and
33433         is probably in a minimal build environment, where packages such as
33434         'ca-certificates' are missing as well, resulting in a failed (and
33435         difficult to detect since ignored) translation initial fetch.
33436         Consequently let's avoid https if possible, and add the missing
33437         trailing slash.  This also avoids an unnecessary 302 redirection.
33438         * gnulib-tool: Add trailing slash to gnulib URL.
33440 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33442         getlogin_r-tests: check return value rather than errno
33443         * tests/test-getlogin_r.c (main): As per POSIX we should be
33444         verifying the return value from getlogin_r() rather than errno.
33446 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33448         getlogin_r-tests: fix various issues in recent change
33449         * tests/test-getlogin_r.c: Include required headers that were
33450         missed in recent commit eec20b4e.
33451         Also consistently check the errno rather than the return value from
33452         getlogin_r as POSIX only specifies that non zero is returned on error.
33453         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33455 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33457         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33458         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33459         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33460         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33461         * lib/spawn-pipe.c:
33462         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33463         and then 'int open64(const char *, int, ...);', which means the
33464         declaration for 'open' gets lost if we later '#undef open'.
33465         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33466         where the compilation reported the non-fatal error "In function
33467         'openat_proc_name' ... warning: implicit declaration of function
33468         'open'".  In this case the error is relatively harmless, but in
33469         other cases it might not be so minor.
33471 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33473         xalloc: don't potentially generate invalid code for xmemdup calls
33474         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33475         this function can initialize the newly-allocated storage with new
33476         pointers, which means this function is not malloc-like.  See:
33477         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33479 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33481         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33482         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33483         changes from commit 97249cf29 to not depend on environment variables.
33485 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33487         getlogin-tests: avoid false failure under cron
33488         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33489         since that's not what's under test.  Centos 6 was seen to return
33490         EINVAL for ttyname() when run from cron.
33492 2014-05-16  Jim Meyering  <meyering@fb.com>
33494         mbrtowc.m4: fix a comment typo
33495         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33496         emitted documentation string.
33498 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33500         mbrlen, mbrtowc: fix bug with empty input
33501         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33502         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33503         so this is mainly for documentation.
33504         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33505         (gl_FUNC_MBRTOWC): Use it.
33506         * tests/test-mbrtowc.c (main): Test for the bug.
33508 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33510         doc: document mbrtowc and mbrlen problem with empty input
33511         * doc/posix-functions/mbrlen.texi (mbrlen):
33512         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33513         Document portability problem when the input string is empty.  See:
33514         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33516         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33517         Problem reported by Eli Zaretskii in:
33518         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33519         * doc/posix-functions/execl.texi (execl):
33520         * doc/posix-functions/execle.texi (execle):
33521         * doc/posix-functions/execlp.texi (execlp):
33522         * doc/posix-functions/execv.texi (execv):
33523         * doc/posix-functions/execve.texi (execve):
33524         * doc/posix-functions/execvp.texi (execvp):
33525         Mention spawn+exit problem on non-Cygwin Windows platforms.
33527 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33529         getlogin-tests: avoid false failure under sudo/ssh etc.
33530         * modules/getlogin-tests (configure.ac): Check for ttyname().
33531         * tests/test-getlogin.c (main): Don't depend on environment variables
33532         to correlate with getlogin(), since sudo and ssh etc. can tamper
33533         with the LOGNAME and USER env vars.  Instead lookup the name from
33534         the uid associated with the stdin tty.
33536 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33538         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33539         These were found when building the latest grep snapshot on IRIX 6.5.
33540         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33541         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33542         never used later.
33543         * lib/quotearg.c (quoting_options_from_style):
33544         * lib/xstrtol.c (__xstrtol):
33545         Use enum instead of 0, to pacify IRIX 6.5 cc.
33547 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33549         gitlog-to-changelog: revert inclusion of git-log-fix file
33550         * build-aux/git-log-fix: Delete dummy file.
33551         * modules/gitlog-to-changelog: Don't reference (overwrite)
33552         the project specific git-log-fix file.
33554 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33556         maint.mk: Relax the copyright check to cater for non FSF projects
33557         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33558         to not require the "Free" suffix after the copyright years.
33560 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33562         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33563         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33564         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33565         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33566         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33568 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33570         exclude: port to strict C99
33571         Strict C does not allow converting a function pointer to void *
33572         and vice versa.  Pass a pointer to a function pointer instead.
33573         * lib/exclude.c (add_exclude_file):
33574         Pass the address of the function pointer.
33575         (call_addfn): And deference the address here, to match.
33577 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33579         regex: do not depend on malloc-gnu
33580         * modules/regex (Depends-on): Remove malloc-gnu.
33581         It's no longer needed, because of the 2012-12-29 patch
33582         "regex: port to hosts where malloc (0) == NULL".
33583         Reported by Nathan Kennedy in:
33584         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33586 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33588         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33589         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33590         * doc/posix-functions/expl.texi: Mention the workaround.
33592 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33594         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33595         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33596         size to be zero even when the pointer is nonnull.  This
33597         accommodates the use case where P is malloc (0) and *PN is 0 on a
33598         host where malloc (0) yields nonnull.
33600 2014-04-09  Eric Blake  <eblake@redhat.com>
33602         fts: avoid unnecessary strlen calls
33603         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33605 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33607         fts: avoid unnecessary strlen calls
33608         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33609         when that can be faster than strlen.
33611 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33613         fts: avoid unnecessary strlen calls
33614         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33615         (fts_build): Store the length of the dp->d_name entry in a local variable
33616         instead of calling strlen() several times via the above, removed macro.
33617         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33618         run by ~4%, yet this reduces the execution time by about a third if run
33619         via "ltrace -c rm -rf some-dir".
33621 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33623         obstack: Remove ancient NeXTSTEP gcc support conditional
33624         This change will ease merging with glibc.  The "#if ... __NEXT__"
33625         causes a warning with -Wundef which glibc now enables by default.
33626         Problem reported by Will Newton in
33627         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33628         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33629         so go with that.
33630         * lib/obstack.h (__extension__):
33632 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33634         obstack: merge with glibc changes
33635         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33636         This is mostly indenting and commentary changes.
33637         Instances of 'register' have been removed.
33639 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33641         strftime: wrap macros in "do {...} while(0)"
33642         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33643         this macro in "do {...} while(0)" to prevent false use as a
33644         single statement, e.g., in an un-braced "{}" else-block.
33645         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33646         (strftime_case_): Remove 'else' after 'goto' - which was the
33647         only non-fatal, un-braced use of one of the above macros.
33648         Spotted by coverity (NESTING_INDENT_MISMATCH).
33650 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33652         modechange: avoid memory leaks for invalid octal modes
33653         * lib/modechange.c (mode_compile): During the parsing of
33654         notations like +40, free the 'mc' buffer for invalid mode
33655         strings like +17777 (greater than the maximum octal mode),
33656         =18 (bad octal mode characters) or u=1 ('affected' with
33657         octal modes).
33658         Reproducer, e.g.:
33659             $ valgrind --leak-check=full chmod +17777 file
33660         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33661         add notations +40, 00440, etc.".
33662         Spotted by coverity (RESOURCE_LEAK).
33664 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33666         gitlog-to-changelog: include a dummy git-log-fix file
33667         Problem reported by Nathan Stratton Treadway in:
33668         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33669         * build-aux/git-log-fix: New file.
33671 2014-03-13  Jim Meyering  <meyering@fb.com>
33673         gitlog-to-changelog: also include the file, git-log-fix
33674         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33675         Reported by Assaf Gordon.
33677 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33679         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33680         This fixes a bug when ignoring case and when comparing the
33681         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33682         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33683         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33684         titlecase letter is neither lowercase nor uppercase, but
33685         uppercasing the titlecase letter (via towupper) yields the
33686         uppercase letter, so the two letters should match when ignoring case.
33687         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33688         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33689         Don't test whether a character is lowercase before uppercasing it.
33691 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33693         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33694         This is basically one of the options Bruno Haible proposed in:
33695         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33696         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33697         * lib/stdint.in.h: Use it.
33698         * modules/stdint (Depends-on): Add sys_types.
33700 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33702         parse-datetime: fix crash or infloop in TZ="" parsing
33703         * lib/parse-datetime.y (parse_datetime): Break out of the
33704         TZ="" parsing loop once the second significant " is found.
33705         Also skip over any subsequent whitespace to be consistent
33706         with the non TZ= case.
33707         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33709 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33711         savedir: new symbol for fast-read version
33712         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33713         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33714         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33715         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33717 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33719         unistd: port readlink to Mac OS X 10.3.9
33720         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33721         around self-include problem in Mac OS X 10.3.9 when combined with
33722         readlink module.  Problem reported by Klaus Zietler in
33723         <http://bugs.gnu.org/16825>.
33725 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33727         diffseq: remove TOO_EXPENSIVE heuristic
33728         Problem with diffutils reported by Vincent Lefevre in
33729         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33730         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33731         Although appropriate for circa-1993 hardware, these days the heuristic
33732         seems to be more trouble than it's worth.
33733         * lib/diffseq.h: Modernize citations.
33734         (struct context): Remove member too_expensive.
33735         All uses changed.
33736         (struct partition): Remove members lo_minimal, hi_minimal.
33737         All uses changed.
33738         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33739         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33740         1993 to make 'diff' run faster (but not as well) on large inputs.
33741         These days, computers are fast enough that it's typically better
33742         to run slower but more accurately.
33743         * lib/fstrcmp.c: Remove duplicate comment.
33744         * lib/fstrcmp.c (strcmp_bounded):
33745         * lib/git-merge-changelog.c (compute_differences):
33746         Adjust to diffseq.h changes.
33747         * NEWS: Document the change.
33749         savedir: simplify by using stpcpy
33750         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33751         (streamsavedir): Use stpcpy instead.
33752         * modules/savedir (Depends-on): Add stpcpy.
33754 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33756         spawn: fix link error on uclibc
33757         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33758         to incorporate -lrt if needed (on uclibc for example).
33759         * modules/posix_spawn: Reference the substituted LIB.
33761 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33762         timer: fix uClibc detection of threading
33763         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33764         enabled in uClibc.
33766 2014-02-21  Eric Blake  <eblake@redhat.com>
33768         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33769         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33771 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33773         exclude: add support for posix regexps
33775         This commit adds support for POSIX extended regular expressions
33776         and fixes a long-standing memory leak (pattern buffer was never
33777         freed).  It also implements a new interface function to read
33778         exclude patterns from a FILE, which passes an additional parameter
33779         to its callback function, thereby allowing to preserve its state
33780         between invocations.
33782         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33783         (pattern_buffer): New struct.
33784         (exclude): New member patbuf.
33785         (exclude_add_pattern_buffer): New function.
33786         (free_exclude_segment): Free regexps.
33787         (free_exclude): Free allocated pattern buffers.
33788         (exclude_patopts): New function.
33789         (file_pattern_matches): Use exclude_patopts.
33790         (add_exclude): support regexps.
33791         (add_exclude_fp): New function.
33792         (add_exclude_file): Rewrite using add_exclude_fp.
33793         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33794         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33795         (add_exclude_fp)
33796         (add_exclude_file): Rewrite using add_exclude_fp.
33797         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33798         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33799         (add_exclude_fp)
33800         (exclude_add_pattern_buffer): New prototypes.
33801         * modules/exclude: Depends on regex and filename.
33803 2014-02-20  Eric Blake  <eblake@redhat.com>
33805         maintainer-makefiles: use $(SED) for syntax check
33806         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33807         * top/maint.mk: Change sed to $(SED).
33809 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33810             Paul Eggert  <eggert@cs.ucla.edu>
33812         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33813         Patch based on an idea by Dick Streefland in
33814         <https://savannah.gnu.org/patch/?7892>.
33815         * NEWS: Document this.
33816         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33817         (direntry_t, comparison_function): New types.
33818         (direntry_cmp_name): New function.
33819         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33820         (streamsavedir, savedir): New arg OPTION.
33821         (streamsavedir): Simplify memory allocation.
33822         (fdsavedir): Remove.
33823         * lib/savedir.h (enum savedir_option): New type.
33824         (streamsavedir, savedir): New arg OPTION.
33825         (fdsavedir): Remove.
33827 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33829         file-type: add support for doors and other less-common file types
33830         Problem with S_ISDOOR reported by Rich Burridge.
33831         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33832         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33833         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33835 2014-01-23  Eric Blake  <eblake@redhat.com>
33837         pthread: work around winpthread header pollution on mingw
33838         * lib/time.in.h: Move pthread workarounds...
33839         * lib/pthread.in.h: ...here.
33840         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33841         detect macro pollution on mingw.
33842         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33844 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33846         qacl: check for fchmod
33847         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33848         and qset-acl.c both use HAVE_FCHMOD.
33850 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33852         fdopen-tests: port to Tru64
33853         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33854         descriptor that is not open, as POSIX doesn't specify the
33855         resulting behavior and the test does not work on Tru64.
33856         Problem reported by Steven M. Schweda in:
33857         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33859         stdalign: port to HP-UX compilers
33860         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33861         if __HP_cc or __HP_aCC are nonzero.
33863 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33865         strtoimax: port to platforms lacking 'long long'
33866         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33867         check whether strtoll is declared, which causes the C file to
33868         wrongly report an error.  Problem reported by Steven M. Schweda in:
33869         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33870         * lib/strtoimax.c (strtoull):
33871         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33872         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33874 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33876         relocatable-perl: fix texi syntax
33877         * doc/relocatable-maint.texi: Escape braces.
33879 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33881         relocatable-perl: like relocatable-script, but for Perl scripts
33882         * build-aux/relocatable.pl.in: Add.
33883         * doc/relocatable-maint.texi: Add documentation.
33884         * modules/relocatable-perl: Add.
33886 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33888         tests: fix export bug in previous patch
33889         Problem reported by Jim Meyering.
33890         * tests/init.sh (re_shell): New var, which is exported instead of
33891         re_shell_.
33893         tests: simplify porting to Solaris 10 /bin/sh
33894         Some test cases in 'grep' need a shell that groks '$(';
33895         export re_shell_ for their benefit.  Problem reported for 'grep'
33896         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33897         * tests/init.sh (re_shell_): Export if it's used.
33899 2014-01-06  Eric Blake  <eblake@redhat.com>
33901         md5, sha1, sha256, sha512: support older autoconf
33902         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33903         for autoconf < 2.63b.
33905         include_next: port to autoconf 2.63
33906         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33908 2014-01-04  Jim Meyering  <meyering@fb.com>
33910         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33911         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33912         so that "make sc_maint" will ding anyone who puts non-ascii
33913         in any of gnulib's .texi files.
33915 2014-01-03  Jim Meyering  <meyering@fb.com>
33917         freadable, fwritable, fwriting: declare with the "pure" attribute
33918         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33919         * lib/fwritable.h (fwritable): Likewise.
33920         * lib/fwriting.h (fwriting): Likewise.
33921         Suggested by Bruno Haible.
33923         maint.mk: adapt openat.h-include-without-use test
33924         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33925         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33926         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33927         With this change, running "make sc_maint" in gnulib's top-level
33928         directory now passes for me.
33930 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33932         doc: use ASCII in .texi files where UTF-8 isn't needed
33933         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33934         * doc/posix-functions/setkey.texi, doc/regex.texi:
33935         Use ASCII input, not UTF-8.
33937 2014-01-02  Jim Meyering  <meyering@fb.com>
33939         freading: declare with the "pure" attribute
33940         * lib/freading.h (freading): Declare with the "pure" attribute.
33942         manywarnings: remove -Wmudflap
33943         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33944         it is no longer supported in gcc-4.9-to-be.
33946 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33948         relocatable-script: remove unused code
33949         Problem reported by Reuben Thomas in:
33950         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33951         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33953 2014-01-01  Jim Meyering  <meyering@fb.com>
33955         maint: fix public-submodule-commit to work with newer git
33956         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33957         We were over-quoting the test arguments, and somewhere prior to
33958         version 1.8.5.2.229, git stopped removing those excess quotes,
33959         which made the test fail, since the unexpanded strings would
33960         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33961         command wasn't even being run.
33963 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33965         doc: update main copyright year
33966         * doc/gnulib.texi: Update copyright date.
33968 2014-01-01  Eric Blake  <eblake@redhat.com>
33970         version-etc: new year
33971         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33972         * all files: run 'make update-copyright'
33974 2013-12-24  Eric Blake  <eblake@redhat.com>
33976         passfd: give nicer error for recvfd at eof
33977         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33978         * tests/test-passfd.c (main): Enhance test to cover this.
33980 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33982         gettimeofday: port recent C++ fix to Emacs
33983         Without this further patch, Emacs won't build due to
33984         the portcheck failing.  Also, this simplifies the patch a bit.
33985         * lib/time.in.h (localtime, gmtime): Don't replace unless
33986         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33987         * lib/time.in.h (localtime, gmtime):
33988         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33989         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33990         * modules/time (time.h):
33991         Don't worry about the possibility of localtime and gmtime
33992         being absent; they're present in all C libraries we know about.
33993         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33994         Don't assume sys_time is present and has been initialized.
33995         Instead, use a hack that should work even if it hasn't been.
33996         Don't use a portcheck for gmtime or localtime; this supports
33997         the hack.
33998         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34000 2013-12-17  John W. Eaton  <jwe@gnu.org>
34002         gettimeofday: fix C++ crosscompilation
34004         Never replace gmtime and localtime by macros when compiling with
34005         C++, this prevents <ctime> from being included.
34007         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34008         define gmtime and localtime as preprocessor macros.  Instead
34009         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34010         REPLACE_LOCALTIME substitutions.
34011         * lib/time.in.h: Declare gmtime and localtime when needed.
34012         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34013         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34014         * modules/time: Depend on gettimeofday, and substitute the above
34015         variables in time.h.
34017 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34019         qacl: port to Windows better
34020         See Eli Zaretskii in
34021         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34022         * lib/file-has-acl.c (acl_access_nontrivial):
34023         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34024         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34026 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34028         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34029         * lib/gl_openssl.h: Cast void pointers to a specific type.
34031 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34033         open-tests: fix build failure with -Werror=old-style-declaration
34034         * tests/test-open.h: Reorder the inline to avoid the issue.
34036 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34038         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34039         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34040         init time, so that if early checks find crypto routines,
34041         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34042         avoiding link failures.
34044 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34046         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34047         This provides a new way to specify the default for
34048         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34049         Emacs uses this, as well as the old way.
34050         This attempts to implement a suggestion by Pádraig Brady in
34051         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34052         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34053         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34055         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34056         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34057         Add support for a new option, --with-openssl=auto, which causes
34058         the library to be used if available and silently ignored if not.
34059         Add support to allow configure.ac to specify its own
34060         default, by setting with_openssl_default before invoking gl_INIT.
34062 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34064         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34065         Problem reported by Daiki Ueno in:
34066         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34067         * tests/test-open.h (__always_inline):
34068         New macro, if not already defined.
34069         (test_open): Use it.
34071 2013-12-04  Eric Blake  <eblake@redhat.com>
34073         include_next: minimize code duplication
34074         * modules/include_next (Depends-on): Add absolute-header.
34075         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34076         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34078 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34080         getcwd: fix compile error in configure check
34081         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34083 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34085         regex: suppress core dumps from detection code
34086         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34087         to suppress core dumps that may well occur on glibc systems.
34088         These core dumps might not be cleaned up automatically, or could
34089         trigger some system core dump handling logic.
34091 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34093         md5, sha1, sha256, sha512: support mandating use of openssl
34094         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34095         description, to list the now 3 separate options.  also don't
34096         mention the default=no, since this is implicit given the option
34097         is described as --with-openssl rather than --without-openssl.
34098         If projects change the default they're free to document that.
34099         with --with-openssl[=yes] we now error out when the specified
34100         hash algorithm is not available in libcrypto.
34102 2013-12-03  Ivailo  <xakepa10@gmail.com>
34104         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34105         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34106         -Wformat-nonliteral checks, as these edge cases are part of the test.
34108 2013-12-03  Eric Blake  <eblake@redhat.com>
34110         regex: avoid glibc deadlock during configure
34111         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34112         glibc bug 15078 in turn triggers bug 16159.
34113         Reported by Michal Privoznik.
34115 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34117         md5, sha1, sha256, sha512: use openssl routines if available.
34118         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34119         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34120         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34121         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34122         in the standard system location.
34123         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34124         * m4/sha256.m4: Likewise with SHA256.
34125         * m4/sha512.m4: Likewise with SHA512.
34126         * m4/md5.m4: Likewise with MD5.
34127         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34128         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34129         * lib/sha256.h: Likewise with SHA256.
34130         * lib/sha512.h: Likewise with SHA512.
34131         * lib/md5.h: Likewise with MD5.
34132         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34133         * lib/sha256.c: Likewise with SHA256.
34134         * lib/sha512.c: Likewise with SHA512.
34135         * lib/md5.c: Likewise with MD5.
34136         * modules/crypto/sha1 (Link:): Add the new optional lib.
34137         (Depends-on:): Add dependency on extern-inline.
34138         * modules/crypto/sha256: Likewise.
34139         * modules/crypto/sha512: Likewise.
34140         * modules/crypto/md5: Likewise.
34141         * modules/crypto/sha1-tests: Reference the lib here too.
34142         * modules/crypto/md5-tests: Likewise.
34143         * modules/crypto/gc-des-tests: Likewise.
34144         * modules/crypto/gc-hmac-md5-tests: Likewise.
34145         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34146         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34147         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34148         * modules/crypto/gc-md5-tests: Likewise.
34149         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34150         * modules/crypto/gc-sha1-tests: Likewise.
34151         * modules/crypto/gc-tests: Likewise.
34152         * modules/crypto/hmac-md5-tests: Likewise.
34153         * modules/crypto/hmac-sha1-tests: Likewise.
34154         * modules/crypto/hmac-sha256-tests: Likewise.
34155         * modules/crypto/hmac-sha512-tests: Likewise.
34157 2013-11-29  RV1971  <rv1971@web.de>
34159         base64: (trivial) fix compilation regression on some compilers
34160         * lib/base64.c: Don't return the void function,
34161         instead split to a separate return statement.
34163 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34165         ignore-value: revert previous code change
34166         * lib/ignore-value.h (ignore_value): Use __extension__ and
34167         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34168         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34169         Change the comment to try to explain this better.
34171 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34173         selinux-h: improve stub types and add more stub functions
34175         * lib/se-selinux.in.h: Change security_context_t to a typedef
34176         rather than a define, as it's a pointer type and so is better
34177         as a typedef to avoid issues declaring multiple variables
34178         with the comma operator.  Also add stub for string_to_security_class().
34179         * lib/se-context.in.h: Add stub functions for
34180         context_{type,range,role,user}_get().
34182 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34184         ignore-value: prefer GCC version back through 2.0
34185         The code didn't match the comments, so I did a bit of software
34186         archaeology.  GCC 2.0 seems to support __extension__ and
34187         __typeof__, so fix both code and comments to use 2.0.
34188         * lib/ignore-value.h (ignore_value): Use __extension__ and
34189         __typeof__ for GCC 2.0 through 3.3, too.
34191 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34193         pty: Activate the signature wrapper of forkpty.
34194         The intended preprocessor macro HAVE_FORKPTY is
34195         never defined, yet `lib/forkpty.c' depends on it.
34197         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34198         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34199         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34201 2013-11-18  Jim Meyering  <meyering@fb.com>
34202         and Paul Eggert  <eggert@cs.ucla.edu>
34204         quotearg: don't attempt to store 1 << 31 into an "int"
34205         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34206         gcc's new -fsanitize=undefined and running its tests triggered some
34207         new test failures due to undefined behavior, all with this diagnostic:
34208           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34209             cannot be represented in type int
34210         Rather than shifting "1" left to form a mask, shift the bits right and
34211         simply use "1" as the mask.
34213 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34215         error: depend on stdio
34216         Problem reported by Nikos Mavrogiannopoulos in
34217         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34218         * modules/error (Depends-on): Add stdio.
34220 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34222         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34223         wording.
34224         Reported by Reuben Thomas <rrt@sc3d.org>.
34226 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34228         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34229         New function and macro, to work around _DARWIN_C_SOURCE problem.
34230         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34232 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34234         base64: provide a fast path for encoding well sized buffers
34235         Avoid conditionals in the base64 encoding loop,
34236         which was seen to give 60% better throughput.
34237         * lib/base64.c (base64_encode_fast): A new function to be called
34238         when we don't want to NUL terminate, and we have enough space
34239         in the output to encode the given input.
34240         (base64_encode): Call the _fast() version when appropriate.
34241         Also remove a redundant mask with 0x3F on the first encoded byte.
34243 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34245         extern-inline: port better to OS X 10.9
34246         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34247         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34248         OS X 10.9, except for g++ where the bug is still present.
34249         See <http://trac.macports.org/ticket/41033>.
34251 2013-11-08  Eric Blake  <eblake@redhat.com>
34253         fpending: fix regression on DragonFly BSD
34254         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34255         * lib/fpending.h (__fpending): Don't declare twice.
34256         Reported by GW in
34257         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34259 2013-11-05  Jim Meyering  <meyering@fb.com>
34261         hash: relax license to LGPLv2+, for libguestfs
34262         * modules/hash (License): Change from GPL to LGPLv2+.
34264 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34266         intprops: port to Oracle Studio c99
34267         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34268         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34270 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34272         obstack: pacify HP C
34273         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34274         warning "conversion from pointer to smaller integer" from HP
34275         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34276         C89 or later nowadays, so cast to void instead of int.  Privately
34277         reported by H.Merijn Brand.  Also, change header to match glibc's,
34278         to make checking against glibc easier.
34280 2013-10-29  Jim Meyering  <meyering@fb.com>
34282         maint.mk: prefer gpgv2 over gpgv
34283         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34284         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34285         Reported by Gary Vaughan.
34287 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34289         isnan: port to VAX
34290         Reported by John Klos for NetBSD-5/VAX in
34291         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34292         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34293         (FUNC): Use it.
34295 2013-10-28  Jim Meyering  <meyering@fb.com>
34297         gnulib-tool: protect against CDPATH
34298         * gnulib-tool: Many "cd" built-in functions print a directory name
34299         to stdout when CDPATH is set, e.g.,
34300           $ bash -c 'CDPATH=/; cd tmp'
34301           /tmp
34302         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34304         maint.mk: restore functionality removed by recent change...
34305         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34306         the context of a shallow-cloned gnulib repository: "git describe"
34307         would fail in such a directory.  However, that change made it so
34308         the reported gnulib revision no longer includes the version number
34309         or a commit count, even when run from a full clone.
34310         * top/maint.mk (gnulib-version): Use the full "git describe"
34311         output when possible, e.g., the form above, rather than the
34312         abbreviated, no-tag, no-commit-count string, and fall back to
34313         using a 10-byte hash, rather than the default minimal-length
34314         hash prefix, since while the minimal-length one may be fine today,
34315         it is likely not to be unique for very long.
34317 2013-10-26  Jim Meyering  <meyering@fb.com>
34319         maint.mk: fix "release" target to build _version
34320         This fixes a bug in README-release whereby following the outlined
34321         steps, one would publish a tarball whose programs would report
34322         --version output not consistent with the package version number.
34323         This bug caused grep-2.15 to produce a grep program whose
34324         --version option made it print 2.14.56-1e3d rather than 2.15.
34325         * top/maint.mk (release): Making this target build "_version"
34326         ensures that the new version number is reflected in configure.
34328 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34330         install-reloc: Support multi-binary installation.
34331         * build-aux/install-reloc: Support installing multiple programs in
34332         one invocation, as done by Automake starting with commit
34333         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34334         Haible <bruno@clisp.org>, archived at
34335         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34336         Reported by Sylvain <beuc@gnu.org>.
34338 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34340         selinux-h: Really build without selinux when library is missing.
34341         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34342         continue without selinux, as already told in the warning message.
34344 2013-10-21  Jim Meyering  <meyering@fb.com>
34346         regex: also remove dependency on HAVE_WCSCOLL
34347         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34349 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34351         xfreopen: Fix typo. s/frepoen/freopen/
34352         * lib/xfreopen.c: Fix description.
34353         * modules/xfreopen: Likewise.
34355 2013-10-21  Jim Meyering  <meyering@fb.com>
34357         regex: don't depend on wcscoll
34358         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34359         It is no longer used.
34361 2013-10-20  Jim Meyering  <meyering@fb.com>
34363         error: add the printf attribute to a static function
34364         * lib/error.c (error_tail): Add the printf attribute, to placate
34365         gcc's -Werror=suggest-attribute=format option.
34367 2013-09-30  Jim Meyering  <meyering@fb.com>
34369         fpending, obstack, strerror-override: use pure+const function attrs
34370         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34371         * lib/obstack.c (_obstack_allocated_p): Likewise.
34372         * lib/obstack.h (_obstack_memory_used): Likewise.
34373         (_obstack_memory_used): Likewise.
34374         * lib/strerror-override.h (strerror_override): Declare with
34375         the "const" attribute.
34377 2013-10-18  Eric Blake  <eblake@redhat.com>
34379         extern-inline: make safe for -Wundef usage
34380         Reported by Vladimir 'phcoder' Serbinenko in
34381         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34382         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34384 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34386         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34387         Problem reported by Daniel Richard G. in
34388         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34389         * doc/posix-functions/mkfifo.texi (mkfifo):
34390         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34391         * doc/posix-functions/mknod.texi (mknod):
34392         * doc/posix-functions/mknodat.texi (mknodat):
34393         Document the HP-UX 11.11 bug.
34394         * tests/test-mkfifo.h (test_mkfifo):
34395         Allow the HP-UX 11.11 bug.
34397 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34399         acl: allow cross-compilation to Gentoo
34400         Problem reported by Gabriel Marcano in
34401         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34402         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34403         test only whether it links.
34405 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34407         mgetgroups: remove dependency on realloc-gnu
34408         The dependency violates the comment in realloc-gnu, which
34409         says that tests can't depend on realloc-gnu; some tests depend
34410         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34411         Problem reported by Daniel Richard G. in
34412         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34413         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34414         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34415         not realloc-gnu.
34417 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34419         regex-tests: port to HP-UX 11.11
34420         Problem reported by Daniel Richard G. in
34421         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34422         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34424 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34426         verify: document some 'assume' pitfalls
34427         * doc/verify.texi (Compile-time Assertions):
34428         Mention that 'assume (E)' can sometimes slow things down.
34429         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34431 2013-10-10  Eric Blake  <eblake@redhat.com>
34433         strtoumax: fix typo in previous commit.
34434         * modules/strtoumax (Depends-on): Fix typo.
34435         * modules/strtoimax (Depends-on): Likewise.
34437 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34439         strtoumax: port to Solaris 8
34440         This problem was introduced in the recent HP-UX patch.
34441         Reported by Tom G. Christensen in
34442         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34443         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34444         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34446 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34448         strtoimax, strtoumax: port to HP-UX 11.11
34449         Problem reported by Daniel Richard G. in
34450         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34451         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34452         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34453         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34454         REPLACE_STRTOUMAX.
34455         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34456         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34457         Replace the function if defined as a macro but not as a function.
34458         * modules/inttypes-incomplete (inttypes.h): Substitute
34459         REPLACE_STRTOUMAX.
34460         * modules/strtoumax (configure.ac): Replace strtoumax if
34461         REPLACE_STRTOUMAX.
34463 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34465         strtoimax: port to HP-UX 11.11
34466         Problem reported by Daniel Richard G.
34467         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34468         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34469         they might clash with inttypes.h.
34471 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34473         New module 'count-trailing-zeros'.
34474         * MODULES.html.sh: Mention it.
34475         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34476         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34477         * modules/count-trailing-zeros-tests:
34478         * tests/test-count-trailing-zeros.c:
34479         New files.
34481         count-leading-zeros: port to MSC; support types wider than 64 bits
34482         The ideas behind the MSC port are stolen from Emacs.
34483         * lib/count-leading-zeros.h:
34484         Don't include verify.h: it's no longer needed, as types wider than
34485         64 bits are now supported.
34486         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34487         performance with MSC.  All uses changed.  Do not assume that TYPE
34488         has at most 64 bits.
34489         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34490         All uses changed.  Fold the subtraction from 31 into the table.
34492         count-one-bits: port to MSC; support types wider than 64 bits
34493         The ideas behind the MSC port are stolen from Emacs.
34494         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34495         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34496         Don't include verify.h: it's no longer needed, as types wider than
34497         64 bits are now supported.
34498         (COUNT_ONE_BITS_GENERIC): New macro.
34499         (popcount_supported) [_MSC_VER]: New inline function.
34500         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34501         performance with MSC.  All uses changed.  Do not assume that TYPE
34502         has at most 64 bits.
34503         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34505 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34507         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34508         * lib/mountlist.c (read_file_system_list): fix leak of directory
34509         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34511 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34513         tests: improve diagnostic when an assertion fails
34514         * tests/macros.h (ASSERT): Report the assertion that failed.
34516 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34518         verify: new macro 'assume'
34519         This is taken from Emacs, and should be generally useful.
34520         * doc/verify.texi (assume): Document it.
34521         * lib/verify.h (assume): New macro.
34522         (__has_builtin): Expand to 0 if not defined.
34524 2013-09-26  Eric Blake  <eblake@redhat.com>
34526         dup2, dup3: work around another cygwin crasher
34527         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34528         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34529         * tests/test-dup2.c (main): Likewise.
34530         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34531         * lib/dup3.c (dup3): Likewise.
34532         * doc/posix-functions/dup2.texi (dup2): Document it.
34533         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34535         getdtablesize: work around cygwin issue
34536         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34537         * modules/getdtablesize (configure.ac): Build replacement.
34538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34539         * modules/unistd (Makefile.am): Expose the witness.
34540         * lib/unistd.in.h (getdtablesize): Declare replacement.
34541         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34542         * tests/test-getdtablesize.c (main): Test it.
34543         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34545 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34547         pmccabe2html: escaping of special characters
34548         Escape all '<', '>', and '&' in HTML output.
34549         * build-aux/pmccabe2html (html_fnc): Call gsub()
34550         instead of sub() to capture all '<', '>', and '&'.
34551         Neither of '<' and '>' is special in a regexp,
34552         so first arguments to gsub() are corrected. Also,
34553         in replacement strings, ampersand must be escaped.
34554         Finally, '&' must be handled first, then '<' and '>'.
34556 2013-09-24  Eric Blake  <eblake@redhat.com>
34558         manywarnings: enable nicer gcc warning messages
34559         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34560         some -f options for optimal warnings.
34562 2013-09-21  Jim Meyering  <meyering@fb.com>
34564         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34565         * lib/timespec-add.c (timespec_add): Also replace 999999999
34566         with TIMESPEC_RESOLUTION - 1.
34567         * lib/timespec-sub.c (timespec_sub): Likewise.
34569 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34571         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34572         Problem reported by Dagobert Michelsen via Eric Blake in
34573         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34574         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34575         not AC_COMPILE_IFELSE.
34577 2013-09-23  Eric Blake  <eblake@redhat.com>
34579         configmake: support new --runstatedir option
34580         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34581         even if autoconf was too old to provide the command line option.
34582         * modules/configmake (Makefile.am): Propagate it to .h file.
34584 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34586         ctype, string: depend on extern-inline
34587         This is needed to complete the recent OS X fixes.
34588         Also, fix related documentation as suggested by Eric Blake.
34589         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34590         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34591         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34592         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34593         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34594         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34595         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34596         * doc/posix-functions/toupper.texi:
34597         List the 'ctype' gnulib module.
34598         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34599         * doc/posix-functions/strncpy.texi:
34600         List the 'string' gnulib module.
34601         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34602         Add string.
34603         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34605 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34607         userspec: support optional parameters to parse_user_spec()
34608         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34609         then avoid group processing and treat the full spec as a user.
34610         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34611         be optional params (NULL), in which case they're ignored.
34613 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34615         timespec: new function make_timespec, and new constants
34616         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34617         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34618         (make_timespec): New function.
34619         * lib/dtotimespec.c (dtotimespec):
34620         * lib/timespec-add.c (timespec_add):
34621         * lib/timespec-sub.c (timespec_sub):
34622         * lib/utimens.c (validate_timespec):
34623         * lib/utimensat.c (rpl_utimensat):
34624         Use these new constants and functions.
34626         stdio: OS X port of putc_unlocked + extern inline
34627         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34628         * doc/posix-functions/putc_unlocked.texi:
34629         * doc/posix-functions/putchar_unlocked.texi:
34630         Document this portability problem.
34632         signal: OS X port of sigaddset etc. + extern inline
34633         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34634         (sigismember): #undef on problematic Apple platforms.
34635         * doc/posix-functions/sigaddset.texi:
34636         * doc/posix-functions/sigdelset.texi:
34637         * doc/posix-functions/sigemptyset.texi:
34638         * doc/posix-functions/sigfillset.texi:
34639         * doc/posix-functions/sigismember.texi:
34640         Document this portability problem.
34642         extern-inline: do not always suppress extern inline on OS X
34643         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34644         extern inline on Apple only if the particular compile-time
34645         configuration is known to have the problem.
34646         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34647         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34648         other Gnulib modules.
34650         extern-inline: document fixes for ctype and wctype macros
34651         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34652         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34653         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34654         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34655         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34656         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34657         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34658         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34659         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34660         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34661         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34662         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34663         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34664         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34665         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34666         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34667         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34668         * doc/posix-functions/strncpy.texi:
34669         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34670         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34671         Document that Gnulib fixes portability problems with these
34672         functions on OS X 10.8 and earlier when called from plain inline
34673         or extern inline functions.
34675 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34677         fflush, freadahead, fseeko: Fix for Android
34678         Suggested by Bruno Haible in:
34679         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34680         * lib/stdio-impl.h: Use local __sfileext definition.
34682 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34684         pmccabe2html: Portability to other awk versions.
34685         The functions systime() and strftime() are available
34686         in Gawk only.  Properly close two HTML-tags 'style'
34687         and 'span'.
34688         * build-aux/pmccabe2html (BEGIN): Store timing
34689         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34690         systime() in HTML_COMMENT.
34691         (html_header): Correctly close tag 'style'.
34692         (END): Replace strftime() by CHRONOS_TIME.  Close
34693         tag 'span' correctly, not as 'div'.
34695 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34697         getgroups: statement without effect
34698         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34699         Change equality conditional to expected assignment.
34701 2013-09-09  Eric Blake  <eblake@redhat.com>
34703         glob: fix compilation
34704         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34706 2013-09-07  Eric Blake  <eblake@redhat.com>
34708         glob: fix build for platforms without __THROW
34709         * lib/glob.in.h (__THROW): Add definition again.
34711 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34713         regex-quote: fix buffer access out of bounds
34714         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34715         * lib/regex-quote.c (regex_quote_spec_pcre):
34716         Fix typo that resulted in an out-of-bounds read.
34718 2013-09-04  Eric Blake  <eblake@redhat.com>
34720         glob: avoid -Wattribute warnings on glibc
34721         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34722         __THROWNL, not __THROW, on static functions.
34723         * lib/glob.in.h (__THROW): Adjust...
34724         (__THROWNL): ...accordingly.
34726 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34728         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34729         Suggested by Bruce Korb in:
34730         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34731         * doc/extern-inline.texi (extern inline):
34732         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34733         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34734         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34735         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34736         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34737         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34738         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34739         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34740         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34741         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34742         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34743         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34744         * lib/xtime.h:
34745         Check that _GL_INLINE_HEADER_BEGIN is defined.
34747 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34749         bootstrap: remove the --version requirement from ancillary tools
34750         * build-aux/bootstrap (check_exists): A new refactored function to
34751         determine if a command exists.
34752         (find_tool): Use the new function which does not require the
34753         --version option to be supported.
34754         (check_versions): Use the new function.
34756 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34758         gc: support HMAC-SHA256 and HMAC-SHA512.
34759         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34760         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34761         functions.
34762         (gc_hmac_md5): Use symbolic constant.
34763         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34764         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34765         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34766         * m4/sha256.m4: Protect against empty expansion.
34767         * m4/sha512.m4: Likewise.
34768         * lib/hmac-sha256.c: New file.
34769         * lib/hmac-sha512.c: Likewise.
34770         * m4/gc-hmac-sha256.m4: Likewise.
34771         * m4/gc-hmac-sha512.m4: Likewise.
34772         * m4/gc-sha256.m4: Likewise.
34773         * m4/gc-sha512.m4: Likewise.
34774         * modules/crypto/gc-hmac-sha256: Likewise.
34775         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34776         * modules/crypto/gc-hmac-sha512: Likewise.
34777         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34778         * modules/crypto/hmac-sha256: Likewise.
34779         * modules/crypto/hmac-sha256-tests: Likewise.
34780         * modules/crypto/hmac-sha512: Likewise.
34781         * modules/crypto/hmac-sha512-tests: Likewise.
34782         * tests/test-gc-hmac-sha256.c: Likewise.
34783         * tests/test-gc-hmac-sha512.c: Likewise
34784         * tests/test-hmac-sha256.c: Likewise.
34785         * tests/test-hmac-sha512.c: Likewise
34787 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34789         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34790         of AC_CHECK_DECLS.
34792 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34794         selinux-at: omit unnecessary include
34795         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34796         this source file doesn't use its macros, and subsidiary files that
34797         use the macros already include it.
34799 2013-08-21  Eric Blake  <eblake@redhat.com>
34801         d-ino: avoid false negative on symlink
34802         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34803         Reported by Stephane Chazelas.
34805 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34807         bootstrap: port to OpenBSD sed
34808         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34809         does not interpret `-' as a file argument to mean stdin.
34811 2013-08-15  Eric Blake  <eblake@redhat.com>
34813         warnings: minor optimization
34814         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34816         warnings: check -Wfoo rather than -Wno-foo
34817         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34818         -Wno-, test if the compiler recognizes the positive form instead.
34820 2013-08-15  Karl Berry  <karl@gnu.org>
34822         * config/srclist-update: add option "doclicense" to placate
34823         pulling *.texi files from Emacs.  Write terse usage
34824         documentation at the top.
34826 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34828         xvasprintf-tests: port to GCC with hardening flags
34829         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34830         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34831         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34833 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34835         fpending: port to recent Cygwin change to stdio_ext.h
34836         Reported by LRN in
34837         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34838         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34839         just declare __fpending unless it's a macro.
34840         A duplicate decl shouldn't hurt.
34841         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34842         call compiles and links, instead of separately checking for
34843         decl and lib function.
34844         * modules/fpending (configure-ac):
34845         Adjust to fpending.m4's renaming of shell variable.
34847 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34849         sys_time: port to OpenBSD
34850         * lib/sys_time.in.h: Simply delegate to the system's header
34851         in the BSDish cases as well.  Problem reported by Mike Miller in
34852         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34853         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34854         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34855         wider than time_t.
34857 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34859         bootstrap: support checksum utils having -c but not --status
34860         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34861         Add sha1 to the list of supported checksum utils since it's now
34862         supported through adjustments below.
34863         (update_po_files): Remove the use of --status
34864         in a way that will suppress all error messages, but since this is
34865         only used to minimize updates, it shouldn't cause an issue.
34866         Exit early if there is a problem updating the po file checksums.
34867         (find_tool): Remove the check for --version support as this
34868         is optional as per commit 86186b17.  Don't even check for the
34869         presence of the command as if that is needed, it's supported
34870         through configuring prerequisites in bootstrap.conf.
34871         Prompt that when a tool isn't found, one can define an environment
34872         variable to add to the hardcoded search list.
34874 2013-08-05  Jim Meyering  <meyering@fb.com>
34876         regex: port to non-glibc/lock-using systems
34877         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34878         system with GNULIB_LOCK would fail due to absence of the
34879         included "glthread/lock.h".  This would affect any package
34880         for which the "lock" module is used only by the regex module,
34881         and not explicitly used.
34882         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34883         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34884         Add a dependency on the "lock" module.
34886 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34888         localecharset: make locale_charset thread-safe on Mac OS X
34889         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34890         instead of MB_CUR_MAX.
34892 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34894         gettext: update to version 0.18.3
34895         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34896         require AC_PROG_SED to allow user to specify custom sed command when
34897         generating en@quot PO file.
34899 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34901         bootstrap: use correct source when copying build-aux files
34902         * build-aux/bootstrap (gnulib_extra_files): This variable is
34903         relative to upstream gnulib layout, not downstream.
34905 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34907         tmpdir: fix bug in VMS port
34908         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34909         See Steven M. Schweda in
34910         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34912 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34914         tmpdir: port to VMS, to // != /, and to long dirs
34915         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34916         __secure_getenv, so that we're more like the glibc version.
34917         All uses changed.
34918         (path_search): Don't put slash after directory if __VMS.
34919         Problem reported by Steven M. Schweda in
34920         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34921         Simplify code to add slash; no need for a loop.
34922         Do not remove trailing slash from "//".
34923         Do not assume dlen <= INT_MAX.
34925 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34927         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34928         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34929         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34930         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34932         accept4, dup3, pipe2: port to Cygwin
34933         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34934         * lib/accept4.c (accept4) [O_BINARY]:
34935         * lib/dup3.c (dup3) [O_BINARY]:
34936         * lib/pipe2.c (pipe2) [O_BINARY]:
34937         Use set_binary_mode, not setmode.
34938         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34939         * modules/binary-io (Depends-on): Remove module indicator.
34940         These last two bits undo the previous change to pipe2 and binary-io.
34942 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34944         mountlist: add support for deallocating returned list entries
34945         * lib/mountlist.c (free_mount_entry): A new exported function
34946         to deallocate a mount list entry.
34947         (read_file_system_list): Refactor to use the new deallocation function.
34948         Suggested by Anton Ovchinnikov.
34950 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34952         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34953         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34954         * lib/stdalign.in.h (_Alignas, _Alignof):
34955         Port to FreeBSD 9.1, and to C11 and C++11.
34956         (_Alignas): Also support ICC.
34957         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34958         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34960 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34962         fnmatch: don't goto over declaration
34963         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34964         undefined behavior for goto over a declaration.
34965         Problem reported by Charlie Brown in
34966         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34968         pipe2: decouple from binary-io a bit
34969         This is for Emacs, which needs pipe2 but not binary-io.
34970         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34971         * modules/binary-io (Depends-on): Add module indicator.
34973 2013-07-03  Eric Blake  <eblake@redhat.com>
34975         mgetgroups: relax license to LGPLv2+
34976         * modules/getugroups (License): Change from GPLv3+.
34977         * modules/mgetgroups (License): Likewise.
34978         * modules/getgroups (License): Change from LGPLv3+.
34980         xalloc-oversized: relax license to LGPLv2+
34981         * modules/xalloc-oversized (License): Change from GPLv3+.
34983         nproc: relax license to LGPLv2+
34984         * modules/nproc (License): Change from LGPLv3+.
34986         bootstrap: honor --no-git
34987         * build-aux/bootstrap: Don't even try to use git when user is
34988         pointing to a static checkout.
34990 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34992         ignore-value: port to gcc -pedantic
34993         * lib/ignore-value.h (ignore_value):
34994         Port to gcc -pedantic, by using __extension__.
34995         Reindent as per usual gnulib style nowadays.
34996         Simplify GCC version check.
34998 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35000         extern-inline: port to gcc -std=c89
35001         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35002         Do not use __gnu_inline__ if pedantic and pre-C99.
35004 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35006         doc: document extern-inline
35007         * doc/extern-inline.texi: New file.
35008         * doc/gnulib.texi (alloca-opt): Include it.
35009         * m4/extern-inline.m4: Move some comments to documentation,
35010         and others closer to what they describe.
35012         doc: chatter less
35013         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35014         (updated-stamp): Use it.  This causes 'make' to output just
35015         one file name rather than zillions.
35017         fflush, fseeko: port to musl cross-compiles
35018         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35019         on some implementation that (1) is not known to be buggy,
35020         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35021         cross-compiled to so we can't easily check for lack of
35022         conformance.  This is for cross-compiling to musl.
35023         Reported by Rich Felker in
35024         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35025         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35026         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35027         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35028         Adjust to above change.
35029         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35030         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35031         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35032         known not to work, or unknown.
35034 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35036         msvc-inval: port to mingw-w64
35037         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35038         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35039         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35041 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35043         getcwd-lgpl: port to Tru64
35044         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35045         Problem reported by Steven M. Schweda in
35046         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35048         tests: port large-fd POSIX spawn tests to OS X
35049         Problem reported by Daiki Ueno in
35050         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35051         * tests/test-posix_spawn_file_actions_addclose.c:
35052         * tests/test-posix_spawn_file_actions_adddup2.c:
35053         * tests/test-posix_spawn_file_actions_addopen.c:
35054         Include <limits.h>, for OPEN_MAX, if available.
35055         (big_fd): New static function.
35056         (main): Use it.
35058 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35060         tests/nap.h: use an adaptive delay to avoid ctime update issues
35061         The recent change in nap.h (5191133e) decreased the probability of lost
35062         races to about a third, however such problems could still be observed
35063         in virtual machines and openSUSE's OBS.
35064         Before, nap() detected the needed time once empirically and then used
35065         that delay (together with a small correction multiplier) in further
35066         calls.  This problem has been reported and discussed several times,
35067         including guesses about possible kernel issues:
35068         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35069         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35070         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35071         http://bugs.gnu.org/12820
35072         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35073         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35074         Now, nap() avoids the race alltogether by verifying on a reference
35075         file whether a timestamp difference has happened.
35076         * tests/nap.h (nap_fd): Define file descriptor variable for the
35077         witness file.
35078         (nap_works): Change return value to bool.  Change passing
35079         the old file's status by value instead of by reference as this function
35080         does no longer update that timestamp; rename the function argument from
35081         st to old_st.  Remove the local variables cdiff and mdiff because that
35082         function now returns true/false instead of the precise delay.
35083         (guess_delay): Remove function.
35084         (clear_tmp_file): Add new function to close and unlink the witness file.
35085         (nap): Instead of re-using the delay which has been calculated during
35086         the first call, avoid the race by actually verifying that a timestamp
35087         difference can be observed on the current file system.  Use an adaptive
35088         approach for the delay to minimize execution time.  Assert that the
35089         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35090         = 2^31 - 1 = 2.1s.
35091         Use atexit to call clear_tmp_file when the process terminates.
35093 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35095         sig2str: port to C++
35096         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35097         Reported by Daniel J Sebald in
35098         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35100 2013-05-30  Eric Blake  <eblake@redhat.com>
35102         docs: mention cygwin shortcoming in <sys/un.h>
35103         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35105         vasnprintf: silence mingw compiler warning
35106         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35108 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35110         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35111         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35112         This fixes a porting bug I recently reintroduced in regex, and
35113         some other instances that I discovered while testing the fix.
35114         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35115         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35116         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35117         with an empty argument if this is a pedantic pre-C99 GCC.
35118         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35119         pre-C11 GCC.
35121         regex: adapt to locking regime instead of depending on pthread
35122         Instead of depending on pthread, adapt to whatever thread
35123         modules are in use.  Problem reported by Ludovic Courtès in
35124         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35125         and by Mats Erik Andersson in
35126         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35127         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35128         Support either the 'lock' module, or the 'pthread' module, or
35129         no module.
35130         (lock_lock, lock_unlock): New macros.
35131         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35132         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35133         * modules/regex (Depends-on): Remove pthread.
35135 2013-05-22  Eric Blake  <eblake@redhat.com>
35137         getgroups: document portability issues
35138         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35139         multithread safety.
35140         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35141         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35142         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35143         getugroups.
35144         * doc/posix-functions/getgroups.texi (getgroups): Mention
35145         multithread safety and mgetgroups.
35147 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35149         test-lchown, test-chown: also skip test if chown fails with EPERM
35150         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35151         skip this test, to handle FAT file systems.
35152         * tests/test-chown.h (test_chown): Likewise.
35154 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35156         regex: fix dfa race in multithreaded uses
35157         Problem reported by Ludovic Courtès in
35158         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35159         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35160         New macros.  All uses of __libc_lock_define, __libc_lock_init
35161         changed to use the first two of these.
35162         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35163         non-glibc platforms.
35164         (struct re_dfa_t): Define the lock unconditionally.
35165         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35166         '#ifdef _LIBC"s.
35167         * modules/regex (Depends-on): Add pthread, if we use the
35168         included regex.
35170         * lib/regcomp.c: Do actions that are not needed for glibc,
35171         but may be needed elsewhere.
35172         (regfree, re_compile_internal): Destroy the lock.
35173         (re_compile_internal): Check for lock-initialization failure.
35175         malloca: port to compilers that reject size-zero arrays
35176         This fixes a bug introduced in my previous patch.
35177         * lib/malloca.c (struct preliminary_header): Use an int
35178         rather than a character array of size int; that's simpler.
35179         (struct header): Remove, replacing with ...
35180         (union header): New type.  This avoids the need for declaring a
35181         character array of size zero, which is not allowed on some platforms.
35182         All uses changed.
35184 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35186         parse-datetime, tests: don't use "string" + int
35187         Recent versions of 'clang' complain about C source code that
35188         uses expressions of the form '"string literal" + integer',
35189         I guess on the theory that it's confusing for readers who are
35190         used to C++.  On those grounds I suppose it's OK to make this
35191         minor style change.
35192         * lib/parse-datetime.y (parse_datetime):
35193         * tests/test-fchdir.c (main):
35194         * tests/test-snprintf-posix.h (test_function):
35195         * tests/test-snprintf.c (main):
35196         * tests/test-vasnprintf-posix.c (test_function):
35197         * tests/test-vasnprintf.c (test_function):
35198         * tests/test-vsnprintf.c (main):
35199         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35200         Rewrite '"str" + E' to '&"str"[E]'.
35202 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35204         argmatch: port to C++
35205         * lib/argmatch.h [__cplusplus]: Add extern "C".
35207         argp: typo fix
35208         * lib/argp-help.c: Typo in comment.
35210 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35212         manywarnings: update for GCC 4.8.0
35213         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35214         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35215         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35216         -Wmissing-noreturn, as they are duplicates of other warnings.
35217         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35218         was documented to be flaky in earlier versions of GCC.
35220         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35221         * tests/test-spawn.c (main):
35222         * tests/test-sys_socket.c (main):
35223         * tests/test-sys_wait.c (main):
35224         Don't have a switch value that isn't covered by a case.
35226         getaddrinfo-tests: port --enable-gcc-warnings to clang
35227         * tests/test-getaddrinfo.c (simple):
35228         Avoid casts from looser to stricter-aligned pointers.
35230         thread: port --enable-gcc-warnings to clang
35231         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35232         Include <signal.h>, to pacify a warning about pthread_sigmask.
35234         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35235         * lib/stdio.in.h (fwrite):
35236         When working around bug 11959, use __REDIRECT rather than '#define
35237         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35238         fix the -Wunused-value issue with clang, and it works with GCC too.
35239         Problem with targeting reported by Eric Blake in
35240         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35241         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35242         debugging the fwrite issue.
35244         stdio: port --enable-gcc-warnings to clang
35245         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35246         since the GCC workaround for fwrite does not pacify clang.
35248         sig2str: port --enable-gcc-warnings to clang
35249         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35251         obstack: port --enable-gcc-warnings to clang
35252         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35253         Avoid casts from looser to stricter-aligned pointers.
35255         memchr2: port --enable-gcc-warnings to clang
35256         * lib/memchr2.c (memchr2):
35257         Avoid casts from looser to stricter-aligned pointers.
35259         mbsstr: port --enable-gcc-warnings to clang
35260         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35261         Avoid casts from looser to stricter-aligned pointers.
35263         malloca: port --enable-gcc-warnings to clang
35264         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35265         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35267         inttostr: port --enable-gcc-warnings to clang
35268         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35270         warnings: port to clang
35271         Problem reported by Daniel P. Berrange via Eric Blake in
35272         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35273         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35274         (gl_WARN_ADD): Use it.
35276 2013-05-11  Jim Meyering  <meyering@fb.com>
35278         quotearg: do not read beyond end of buffer
35279         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35280         end of an ARG for which no length was specified.  With an N-byte
35281         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35282         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35283         via coreutils' misc/sort-debug-keys.sh test and detected by running
35284         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35285         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35286         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35287         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35288         characters correctly."
35290 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35292         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35293         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35294         compilation target is Mac OS X 10.6.
35295         Problem reported by parafin and Andoni Morales in
35296         <http://savannah.gnu.org/bugs/?37844> and
35297         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35299 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35301         mkdir-p: remove assumptions about umask and mode
35302         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35303         umask is 0, or that MODE is a subset of MODE_BITS.
35305 2013-05-10  Eric Blake  <eblake@redhat.com>
35307         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35308         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35310 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35312         deps: require Automake >= 1.9.6 in generated Makefile fragments
35314         That is the same minimal version required in the DEPENDENCIES file.
35315         Moreover, the old code generated a requirement of Automake >= 1.5,
35316         and that is an insanely outdated version.
35318         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35319         * tests/havelib/rpathlx/Makefile.am: Likewise.
35320         * tests/havelib/rpathly/Makefile.am: Likewise.
35321         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35322         * tests/havelib/rpathlz/Makefile.am: Likewise.
35323         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35324         * tests/havelib/rpathx/Makefile.am: Likewise.
35325         * tests/havelib/rpathy/Makefile.am: Likewise.
35326         * tests/havelib/rpathz/Makefile.am: Likewise.
35328 2013-05-08  Eric Blake  <eblake@redhat.com>
35330         bootstrap: AC_INIT may have more than four parameters
35331         * build-aux/bootstrap (extract_package_name): Correctly extract
35332         non-empty tarname field.  Avoid range in regex.
35333         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35335 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35337         qacl: port to MS-Windows port of GNU Emacs
35338         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35339         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35340         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35341         <http://bugs.gnu.org/14295#14>.
35343 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35345         acl: include quote.h
35346         * lib/copy-acl.c: Include quote.h.
35347         * lib/set-acl.c: Likewise.
35349 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35351         fchownat, renameat, unlinkat: update statat dependencies
35352         These modules use statat and lstatat, not fstatat; so depend on
35353         the statat module, which was split out recently from fstatat.
35354         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35355         * modules/renameat: Likewise.  Also delete fstat.
35356         URL: http://bugs.gentoo.org/468790
35358 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35360         Assume gnulib is checked out from Git, not CVS
35362         In fact, access to the gnulib repository through CVS has been
35363         disabled, or more precisely, got broken and was never restored; see:
35364         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35366         Note that support for CVS is not removed completely and unthinkingly
35367         by this change: only support for CVS checkouts of gnulib itself is
35368         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35369         files and CVS directories, for the benefit of those poor gnulib clients
35370         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35372         * gnulib-tool: Simplify accordingly.
35373         * posix-modules: Likewise.
35374         * MODULES.html.sh: Likewise.
35375         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35376         repository.
35377         * doc/gnulib-intro.texi: Likewise.
35378         * doc/gnulib-readme.texi: Likewise.
35379         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35380         sample '.gitignore' file rather than a sample '.cvsignore'.
35381         * NEWS: Update.
35382         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35383         to "CVS Autoconf" rather than "git Autoconf".
35385 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35387         utimensat-tests, etc.: try to fix some races
35388         Problem reported by Bernhard Voelker in
35389         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35390         I don't know whether this patch fixes that race condition, but it
35391         fixes *some* race conditions, so it should be a win.
35392         * modules/chown-tests (Depends-on):
35393         * modules/fchownat-tests (Depends-on):
35394         * modules/fdutimensat-tests (Depends-on):
35395         * modules/futimens-tests (Depends-on):
35396         * modules/lchown-tests (Depends-on):
35397         * modules/stat-time-tests (Depends-on):
35398         * modules/utimens-tests (Depends-on):
35399         * modules/utimensat-tests (Depends-on):
35400         Depend on nanosleep, not usleep.
35401         * modules/chown-tests (test_chown_LDADD):
35402         * modules/lchown-tests (test_lchown_LDADD):
35403         * modules/stat-time-tests (test_stat_time_LDADD):
35404         New macro.
35405         * modules/fchownat-tests (test_fchownat_LDADD):
35406         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35407         * modules/futimens-tests (test_futimens_LDADD):
35408         * modules/utimens-tests (test_utimens_LDADD):
35409         * modules/utimensat-tests (test_utimensat_LDADD):
35410         Add $(LIB_NANOSLEEP).
35411         * modules/stat-time-tests (Files): Add tests/nap.h.
35412         * tests/nap.h: Include <limits.h>, for INT_MAX.
35413         (lt_mtime): Remove.
35414         (diff_timespec): New function.
35415         (get_stat): Rename from get_mtime.  All callers changed.
35416         (nap_works): Determine the needed delay by inspecting the
35417         file system's timestamp jumps; this should be more reliable.
35418         Look at both mtime and ctime, and take the maximum of the two jumps.
35419         (nap_works, guess_delay):
35420         Return a nanosecond count, not a microsecond count.
35421         All callers changed.
35422         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35423         failure.
35424         (nap): Multiply the guess by 1.125, to accommodate the case where
35425         the file system's clock is a bit slower than nanosleep's clock.
35426         * tests/test-stat-time.c (BASE): New macro.
35427         Include nap.h.
35428         (nap): Remove; nap.h now defines this.  This removes a duplicate
35429         implementation of 'nap'.
35431         utimens, utimensat: work around Solaris UTIME_OMIT bug
35432         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35433         Linux kernel 2.6.32 does.  Work around it in the same way.
35434         * doc/posix-functions/futimens.texi (futimens):
35435         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35436         * lib/utimens.c (fdutimens, lutimens):
35437         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35439         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35440         Formerly, it was your responsibility to do this for all Makefile.ams
35441         other than Gnulib's.  Now it's your responsibility to do it for
35442         Gnulib's Makefile.am, too.
35443         * NEWS: Document this.
35444         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35446         acl: include errno.h to get errno
35447         Reported by Daiki Ueno in
35448         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35449         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35451 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35453         tests: don't assume getdtablesize () <= 10000000
35454         * modules/cloexec-tests:
35455         * modules/dup2-tests:
35456         * modules/dup3-tests:
35457         * modules/nonblocking-tests:
35458         * modules/posix_spawn_file_actions_addclose-tests:
35459         * modules/posix_spawn_file_actions_adddup2-tests:
35460         * modules/posix_spawn_file_actions_addopen-tests:
35461         * modules/unistd-safer-tests:
35462         Depend on the getdtablesize module.
35463         * tests/test-cloexec.c:
35464         * tests/test-dup-safer.c:
35465         * tests/test-dup2.c:
35466         * tests/test-dup3.c:
35467         * tests/test-fcntl.c:
35468         * tests/test-nonblocking.c:
35469         * tests/test-posix_spawn_file_actions_addclose.c:
35470         * tests/test-posix_spawn_file_actions_adddup2.c:
35471         * tests/test-posix_spawn_file_actions_addopen.c:
35472         Don't assume getdtablesize () <= 10000000.
35474 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35476         extern-inline: work around bug in Sun c99
35477         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35478         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35480 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35482         qacl: new module, broken out from the acl module
35483         This is for GNU Emacs, which wants the acl functions but does
35484         not want 'error' invoked when they fail.
35485         * lib/acl-internal.h: Do not include error.h, quote.h.
35486         (ENOSYS, ENOTSUP): Remove; no longer needed.
35487         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35488         * lib/acl.h: Include <stdbool.h>.
35489         (acl_errno_valid): New function.
35490         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35491         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35492         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35493         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35494         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35495         * lib/file-has-acl.c (file_has_acl):
35496         * lib/qcopy-acl.c (qcopy_acl):
35497         * lib/qset-acl.c (qset_acl):
35498         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35499         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35500         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35501         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35502         Add lib/set-acl.c.
35503         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35504         Add qacl.
35505         (configure.ac): Move gl_FUNC_ACL to qacl module.
35506         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35507         Rename set-mode-acl.c to set-acl.c.
35508         * lib/acl-errno-valid.c: New file.
35509         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35510         copy_acl function remains in copy-acl.c.
35511         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35512         (_): Remove; not needed.
35513         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35514         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35515         * modules/qacl: New file, moved from the old modules/acl.
35516         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35517         Remove set-mode-acl.c, copy-acl.c.
35518         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35520         alignof, intprops, malloca: port better to IBM's C compiler
35521         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35522         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35523         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35525 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35527         wctype-h: fix gettext link error on mingw
35528         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35529         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35530         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35531         rpl_towupper and rpl_towupper.
35533 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35535         regex-tests, regex: allow glibc re_search behavior
35536         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35537         re_search input data to make the multi-character collating element
35538         in it clearly visible, and treat re_search return code 0 as valid.
35539         * m4/regex.m4 (gl_REGEX): Likewise.
35541 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35543         stdalign: doc fix
35544         * doc/posix-headers/stdalign.texi (stdalign.h):
35545         Gnulib doesn't support '_Alignof expr'.
35547 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35549         stdalign: port to stricter ISO C11
35550         ISO C11 says that _Alignof's operand must be a parenthesized type.
35551         Problem reported by Eli Zaretskii in
35552         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35553         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35554         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35556 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35558         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35559         Problem reported by Marco Atzeri in
35560         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35561         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35562         Simply delegate to the system <sys/select.h> in this case too.
35563         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35564         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35565         be needed on Solaris either.
35566         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35567         Simply delegate to the system <sys/time.h> in this case.
35569 2013-03-19  Karl Berry  <karl@gnu.org>
35571         * build-aux/gnupload: check for erroneous (with gnupload) use of
35572         ftp-upload.gnu.org, tweak help.
35574 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35576         copy-file, rpmatch: fix problems found by cppcheck
35577         Reported by Arno Onken in
35578         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35579         * lib/rpmatch.c (try): Fix memory leak.
35580         * lib/copy-file.c: Include "ignore-value.h".
35581         (qcopy_file_preserving): Ignore chown value.
35582         * modules/copy-file (Depends-on): Add ignore-value.
35584 2013-01-27  Jim Meyering  <jim@meyering.net>
35586         prefix-gnulib-mk: give better diagnostics
35587         * build-aux/prefix-gnulib-mk: Don't just "die".
35588         Give better diagnostics upon failure.
35590 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35592         putenv: port to Solaris 10
35593         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35594         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35595         is not what is wanted here.
35596         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35597         declaration, not for its existence.
35599 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35601         mktime: fix configure typo
35602         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35604 2013-03-12  Eric Blake  <eblake@redhat.com>
35606         regex-tests: skip UTF-8 test on mingw
35607         * modules/regex-tests (Depends-on): Add localcharset.
35608         * tests/test-regex.c (main): Use it to skip test on mingw.
35610 2013-03-11  Eric Blake  <eblake@redhat.com>
35612         tests: make it easier to bypass alarm time in debugger
35613         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35614         * tests/test-memmem.c (main): Likewise.
35615         * tests/test-passfd.c (main): Likewise.
35616         * tests/test-ptsname.c (main): Likewise.
35617         * tests/test-ptsname_r.c (main): Likewise.
35618         * tests/test-strcasestr.c (main): Likewise.
35619         * tests/test-strstr.c (main): Likewise.
35621         regex: port to mingw's recent addition of undeclared alarm
35622         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35623         exists but still doesn't work in newer mingw.
35624         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35625         not existence.  Ensure SIGALRM is not trapped.
35626         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35627         * m4/regex.m4 (gl_REGEX): Likewise.
35628         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35629         * tests/test-regex.c (main): Use correct probe for alarm.
35631         putenv: avoid compilation warning on mingw
35632         * lib/putenv.c (_unsetenv): Protect variable declaration.
35633         (putenv): Fix indentation.
35635 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35637         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35638         * lib/unistd.in.h: be careful not to include un-needed system
35639         stdlib.h from here, because that prevents gnulib stdlib.h from
35640         defining rpl_strtod correctly.
35642 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35644         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35645         changesets, but for the 'precision 0' test.
35646         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35647         round-to-even, since POSIX says rounding is implementation-defined
35648         and OS X 10.8.2 rounds 1.51 to 1 here.
35650         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35651         changeset.
35652         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35653         round-to-even, since POSIX says rounding is implementation-defined
35654         and OS X 10.8.2 rounds 1.5 to 1 here.
35656 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35658         vasnprintf-posix-tests: allow rounding 1.5 to 1
35659         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35660         round-to-even, since POSIX says rounding is implementation-defined
35661         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35662         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35664         bootstrap: port to FreeBSD
35665         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35666         that treat '--' differently.  Reported by Mats Erik Andersson in
35667         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35669 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35671         regex: rename remaining __attribute calls to __attribute__.
35672         2012-02-25 changed definition of __attribute, but left some uses
35673         unchanged, preventing compilation of regex module on most non-gcc
35674         environments.
35675         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35676         (lookup_collation_sequence_value, build_range_exp)
35677         (build_collating_symbol): Set attributes with newly renamed
35678         __attribute__ decorator.
35679         * lib/regex_internal.c (re_string_peek_byte_case)
35680         (re_node_set_compare, re_node_set_contains): Likewise.
35681         * lib/regexec.c (acquire_init_state_context): Likewise.
35683 2013-03-06  Bruno Haible  <bruno@clisp.org>
35685         execute: Revert last change, but use a different condition.
35686         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35687         on Windows.
35689 2013-03-05  Eric Blake  <eblake@redhat.com>
35691         execute: drop dead code
35692         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35694 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35696         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35697         * m4/non-recursive-gnulib-prefix-hack.m4
35698         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35699         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35700         <http://bugs.gnu.org/10305#237>.
35702 2013-03-04  Eric Blake  <eblake@redhat.com>
35704         test-getsockopt: avoid compiler warning
35705         * tests/test-getsockopt.c (includes): Ensure close is declared.
35707 2013-03-02  Bruno Haible  <bruno@clisp.org>
35709         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35710         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35712 2013-03-02  Bruno Haible  <bruno@clisp.org>
35714         gettext: Update to version 0.18.2.
35715         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35716         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35717                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35719 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35721         regex: merge patches from libc
35723         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35724         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35725         All uses changed.
35726         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35727         (re_string_wchar_at, re_string_elem_size_at):
35728         Mark function as possibly unused.
35730         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35731         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35732         elements compare against the byte sequence of it, not its name.
35734 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35736         putenv: port better to native Windows
35737         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35738         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35739         (_unsetenv): Use _putenv if available.
35740         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35741         a bit less likely to cause damage.
35742         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35743         Fix the wrong value with SetEnvironmentVariable.
35744         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35745         code better.
35747 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35749         regex: ignore old-style-definition warnings
35750         * lib/regex.c: Add pragma to ignore these warnings.
35751         Problem reported for GNU tar by Pavel Raiskup.
35753 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35755         getcwd: support coreutils better
35756         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35757         but this might not be correct in coreutils, which disables
35758         the raw decl checks.  Problem reported by Nagendra in
35759         <http://bugs.gnu.org/10305#192>.
35760         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35761         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35762         Test the getcwd function, not any macro, since getcwd.c wants the
35763         function.
35764         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35765         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35766         compile, as might happen if there's a macro but no function.
35768         strtod: support coreutils better
35769         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35770         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35771         disables the raw decl checks.  This assumes there is an underlying
35772         strtod, but that's a safe assumption these days.
35773         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35775         mountlist: port to HP NonStop
35776         Reported by Joachim Schmitz in
35777         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35778         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35779         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35781 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35783         extern-inline: avoid compilation error with HP-UX cc
35784         Reported by Richard Lloyd in
35785         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35786         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35787         Suppress extern inline with HP-UX cc.  This should be safe,
35788         though it may hurt performance.  Perhaps someone with some HP-UX
35789         experience can come up with a higher-performance fix.
35791 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35793         putenv: fix heap corruption with mixed putenv/_putenv
35794         Problem reported by Michael Goffioul in
35795         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35796         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35797         Rely on _putenv to allocate the new environment.
35798         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35799         * modules/putenv (configure.ac): Use it.
35801 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35803         unsetenv etc.: port to Solaris 11 + GNU Emacs
35804         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35805         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35806         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35807         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35808         idea but is too painful to fix right now), and without this gnulib
35809         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35810         compiling unsetenv.c on Solaris 11.  Fix the problem for
35811         unsetenv.c, and fix other similar occurrences.
35813 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35815         secure_getenv: fix C++ declaration typo
35816         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35817         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35818         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35820 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35822         careadlinkat: stop exporting careadlinkatcwd
35823         Only Emacs used it directly, and Emacs no longer needs it.
35824         * NEWS: Document this simplification.
35825         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35826         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35827         for readlink.
35828         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35829         Don't include stdlib.h; no longer needed.
35830         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35831         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35832         * modules/areadlink (Depends-on): Add readlink.
35833         (Maintainer): Add self.
35834         * modules/careadlinkat (Depends-on): Remove readlink.
35836         extensions: port better to HP-UX
35837         This is merged from git Autoconf.
35838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35839         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35840         so that it's compatible with the value used when compiling.
35842         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35843         Problem reported by Mats Erik Andersson in
35844         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35845         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35846         openpty function exists, not merely when we intend to replace it.
35847         This corrects the 2013-01-31 patch, which mistakenly defined
35848         HAVE_OPENPTY even on hosts that lacked it.
35850 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35852         secure_getenv: fix include typo
35853         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35855         secure_getenv: port better to FreeBSD and Solaris
35856         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35857         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35858         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35859         This works better on BSDish platforms.
35860         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35861         Test for issetugid if __secure_getenv is missing.
35863 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35865         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35866         Some of these changes are merged in from git Autoconf.
35867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35868         When deciding whether to define _XOPEN_SOURCE, inspect the
35869         preprocessor macro __hpux instead of the more-heavyweight
35870         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35871         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35872         as the key for __EXTENSIONS__.
35874         unistd: avoid namespace pollution on non-glibc systems
35875         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35876         This avoids namespace pollution on non-glibc systems, by causing
35877         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35878         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35879         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35881 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35883         tmpdir: use secure_getenv
35884         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35885         Define to secure_getenv, not getenv.
35886         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35887         as that's now secure_getenv's job.
35888         * modules/tmpdir (Depends-on): Add secure_getenv.
35890         tempname: use secure_getenv
35891         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35892         Define to secure_getenv, not getenv.
35893         * modules/tempname (Depends-on):
35894         Add secure_getenv.
35896         secure_getenv: new module
35897         * MODULES.html.sh (Extra functions based on ANSI C 89):
35898         Add secure_getenv.
35899         * doc/glibc-functions/secure_getenv.texi: New file.
35900         * doc/gnulib.texi: Include it.
35901         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35902         New files.
35903         * lib/stdlib.in.h (secure_getenv): New decl.
35904         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35905         * modules/stdlib (stdlib.h):
35906         Add secure_getenv checks.
35908 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35910         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35911         Reported for OS X 10.8.2 by Assaf Gordon in
35912         <http://bugs.gnu.org/13516>.
35913         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35914         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35915         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35916         so that they can be kept in sync more easily.  Avoid PATH_MAX
35917         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35918         mkdir or chdir failure.
35919         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35920         lib/getcwd.c.
35921         (test_abort_bug): Do not test for the deep directory bug unless we
35922         have openat support.  Avoid PATH_MAX test on the Hurd.
35924         regex-tests, regex: fix bug: memset undeclared
35925         * tests/test-regex.c: Don't include regex.h twice.  Include
35926         string.h, to declare memset.  Christensen's report also mentioned
35927         this issue.
35928         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35929         test-regex.c, to avoid future problems like this.  Remove
35930         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35931         twice.
35933         regex-tests: fix link errors on older Solaris
35934         These need to link with @LIBINTL@ to get libintl_gettext.
35935         Problem reported by Tom G. Christensen in
35936         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35937         * modules/regex-tests (test_regex_LDADD): New macro.
35939 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35941         regex-tests: new module
35942         * modules/regex-tests, tests/test-regex.c: New files.
35944         regex: fix off-by-one error in configure test
35945         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35947 2013-01-31  Eric Blake  <eblake@redhat.com>
35949         regex: avoid infinite configure test
35950         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35952 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35954         openpty: fix bug where HAVE_OPENPTY wasn't defined
35955         See the thread starting at:
35956         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35957         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35958         openpty function exists, not merely when we intend to replace it.
35960 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35962         sys_time: port to Solaris 2.6
35963         There is a circularity problem on Solaris 2.6, where <time.h> includes
35964         <sys/time.h> for struct timespec.  The include nesting is gnulib
35965         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35966         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35967         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35968         <sys/siginfo.h>; the last, innermost file needs struct
35969         timestruc_t, which is defined in <sys/time.h>, which has not been
35970         fully parsed.  Problem reported by Tom G. Christensen in
35971         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35972         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35973         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35974         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35975         uses split double-inclusion guards.
35977 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35979         regex: test for buffer overrun
35980         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35981         for the just-fixed regex bug.
35983 2013-01-29  Andreas Schwab  <schwab@suse.de>
35985         regex: fix buffer overrun in regexp matcher [BZ #15078]
35986         * lib/regexec.c (extend_buffers): Add parameter min_len.
35987         (check_matching): Pass minimum needed length.
35988         (clean_state_log_if_needed): Likewise.
35989         (get_subexp): Likewise.
35991 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35993         mountlist: don't consider "devtmpfs" as dummy
35994         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35995         as there is storage associcated with it.
35997 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35999         futimens-tests, utimens-tests: Depend on gettext.
36000         This works around a problem introduced in my 2013-01-12 patch,
36001         which added @LIBINTL@ to these modules.
36002         * modules/futimens-tests (Depends-on):
36003         * modules/utimens-tests (Depends-on): Add gettext.
36005 2013-01-26  Eric Blake  <eblake@redhat.com>
36007         test-getpeername: fix typo
36008         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36010 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36012         bootstrap: remove the need for a sorted .gitignore file
36013         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36014         rename to insert_if_absent(), so that we don't need or generate
36015         a sorted .gitignore file.  We do require a .gitignore with no
36016         existing duplicate entries and enforce that.
36017         (sort_patterns): Remove this function as we now use the simpler
36018         technigue of inserting blacklist entries at the top of the file,
36019         assuming gnulib won't be inserting !whitelist entries.
36021 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36023         readlinkat: don't depend on gl_FUNC_OPENAT
36024         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36025         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36026         renameat.m4, symlinkat.m4; but one thing at a time.
36028         statat: new module, split out from fstatat
36029         GNU Emacs needs the POSIX-specified fstatat, but not the
36030         gnulib-specified statat and lstat.  Split the latter two into a
36031         new module 'statat'.
36032         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36033         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36034         Rename from FSTATAT_INLINE. All uses changed.
36035         * modules/fstatat (Files): Remove lib/statat.c.
36036         (gl_MODULE_INDICATOR([fstatat])): Remove.
36037         (lib_SOURCES): Remove.
36038         (Maintainer): Add self.
36039         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36040         * tests/test-fstatat.c (BASE): Don't define if already defined.
36041         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36043 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36045         tests: don't assume fd 99 is closed
36046         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36047         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36048         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36049         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36050         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36051         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36052         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36053         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36054         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36055         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36056         * tests/test-fwrite.c, tests/test-getpeername.c:
36057         * tests/test-getsockname.c, tests/test-getsockopt.c:
36058         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36059         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36060         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36061         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36062         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36063         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36064         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36065         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36066         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36067         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36068         Close file descriptor 99, instead of assuming it's already closed.
36070 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36072         stpncpy: port to OS X 10.8
36073         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36074         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36076 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36078         unistd: port to recent mingw
36079         * lib/unistd.in.h: Remove special invocation convention for mingw,
36080         which breaks for the latest mingw version.  See John W. Eaton in
36081         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36083         largefile: port better to Mac OS X 10.5
36084         This patch is backported from Autoconf git.
36085         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36086         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36087         with ino_t size being different for configuration time versus
36088         build/run time.  Problem reported by PHO in
36089         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36091 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36093         doc: clarify -Werror
36094         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36095         clarify that it's intended for developers, not for ordinary builds,
36096         and mention --enable-gcc-warnings as one possible use.
36098 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36100         stdint: fix build with Android's Bionic fox x86
36101         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36102         was already included as _SSIZE_T_DEFINED_ might also be defined
36103         in include/machine/_types.h, which is included by stdio.h
36105 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36107         net_if-tests: port to Solaris 7 + GCC 3.4.6
36108         Problem reported by Tom G. Christensen in
36109         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36110         * tests/test-net_if.c (ni): Move to next the code that uses it,
36111         so that it's declared only if needed.
36113 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36115         net_if-tests: port to older Solaris
36116         Problem reported by Tom G. Christensen in
36117         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36118         * modules/net_if-tests (NET_IF_LIB): New substitution.
36119         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36120         (HAVE_IF_NAMEINDEX): New C macro.
36121         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36123         system-quote-tests: port to older Solaris
36124         Problem reported by Tom G. Christensen in
36125         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36126         * tests/test-system-quote-child.c (fopen, fread): Undef.
36128         c-xvasprintf etc.: fix link errors on older Solaris
36129         These need to link with @LIBINTL@ to get libintl_gettext.
36130         Problem reported by Tom G. Christensen in
36131         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36132         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36133         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36134         * modules/futimens-tests (test_futimens_LDADD):
36135         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36137 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36139         locale: port to Solaris 2.6 and 7 + GNU gettext
36140         * lib/locale.in.h: Just include_next <locale.h> when
36141         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36142         when combining the localename module with GNU gettext 0.18.2.
36143         Problem reported by Tom G. Christensen in
36144         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36146 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36148         stdlib: port to Solaris 2.6
36149         Also, the code worked on Solaris 7 through 9 only by accident.
36150         Problem reported by Tom G. Christensen in
36151         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36152         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36153         simply include the system stdlib.h.
36154         * lib/getopt.in.h (__need_system_stdlib_h):
36155         * lib/pthread.in.h (__need_system_stdlib_h):
36156         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36157         Define when including <stdlib.h>, to avoid problems at least for
36158         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36159         with the system stdlib.h.
36161 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36163         doc: update main copyright year
36164         * doc/gnulib.texi: Update copyright date.
36166         doc: improve ISO 8601 discussion
36167         * doc/parse-datetime.texi (Combined date and time of day items):
36168         Specify more carefully what formats are supported and what is
36169         done with excess precision.
36171 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36173         doc: avoid small caps
36174         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36175         they're more trouble than they're worth.  Suggested by Karl Berry
36176         in <http://bugs.gnu.org/13360>.
36178         regex: conform to strict C
36179         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36180         From Aharon Robbins.
36182         gnulib-tool: fix incompatibility with autopoint 0.18.2
36183         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36184         Problem reported by Tom G. Christensen in
36185         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36187 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36189         fprintftime: bring back and reword fwrite comment
36190         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36192         stdio: remove now-unnecessary stdio.c
36193         Since stdio.in.h no longer uses inline functions, we no longer
36194         need to compile the extern versions.
36195         * lib/stdio.c: Remove.
36196         * modules/stdio (Files): Remove lib/stdio.c.
36197         (lib_SOURCES): Remove.
36199         unicodeio: depend on stdio, not ignore-value
36200         * lib/unicodeio.c: Do not include ignore-value.h.
36201         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36202         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36204         fprintftime: depend on stdio, not ignore-value
36205         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36206         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36207         since the stdio module arranges to silence that warning now.
36208         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36210 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36212         stdint-tests: Fix expanded-before-required-warning.
36213         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36215 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36217         fwrite: silence __wur only for older glibc versions
36218         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36219         This will help us remove this workaround some time in the far future.
36221 2013-01-03  Eric Blake  <eblake@redhat.com>
36223         fwrite: silence __wur without using inline
36224         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36225         just gcc, and in a way that avoids inline issues.
36226         * modules/stdio (Depends-on): Drop extern-inline.
36228 2013-01-03  Jim Meyering  <jim@meyering.net>
36230         update-copyright: avoid copyright notice date corruption
36231         Given a sequence of copyright year numbers in which the final
36232         one was a two-digit number that happened to be a substring of
36233         a preceding four-digit year number, we would mistakenly update
36234         the substring (from two- to four-digit) rather than the two-digit
36235         number at the end, which, combined with the addition of the current
36236         4-digit year number would yield two 5-digit year numbers, e.g.,
36237         here, it would convert the first "99" to "1999, 2013" rather than
36238         the final one:
36239           1991, 99
36240           11999, 20131, 1999
36241         * build-aux/update-copyright: Tighten a regexp.
36242         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36243         Reported by Joseph Myers in
36244         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36246 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36248         regex: omit needless signed-pointer casts
36249         * lib/regcomp.c (build_charclass, build_charclass_op):
36250         Use char *, not unsigned char *, for class name and extra.
36251         The char values are always nonnegative so there's no need to
36252         insist on unsigned char * here, and using char * removes the need
36253         for casts.  Reported by Aharon Robbins in
36254         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36256         regex: support Gawk, which never uses alloca
36257         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36258         Do not include in this case.  Gawk doesn't supply a substitute
36259         alloca.h and doesn't need one.
36261         regex: port __libc_lock_define usage to C89
36262         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36263         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36264         does not conform to C89, as it has an empty macro argument.
36265         Reported by Aharon Robbins in
36266         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36268 2013-01-01  Eric Blake  <eblake@redhat.com>
36270         maint: update all copyright year number ranges
36271         Run "make update-copyright".
36273         version-etc: bump copyright year reported in --version
36274         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36276 2012-12-31  Eric Blake  <eblake@redhat.com>
36278         sigprocmask-tests: skip test if pid is unexpectedly large
36279         * tests/test-sigprocmask.c (main): Add range check.
36281         git-version-gen: avoid test -z portability glitch
36282         * build-aux/git-version-gen: Prefer portable test spelling, since
36283         git-version-gen is run on more than just developer machines.
36285 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36287         git-version-gen: add --fallback option to use if git is not present
36288         * build-aux/git-version-gen: Add support for the new option --fallback,
36289         which comes into play when there is no $tarball_version_file and
36290         git is not working.
36291         (scriptversion): Update.
36293         maint.mk: handle missing git with more grace
36294         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36295         Quietly proceed if git is not present.
36297 2012-12-31  Eric Blake  <eblake@redhat.com>
36299         dup2: work around cygwin bug
36300         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36301         * lib/dup2.c (rpl_dup2): Work around it.
36302         * doc/posix-functions/dup2.texi (dup2): Document it.
36304 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36306         regex: remove unnecessary dependency on localcharset.h
36307         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36308         hasn't been needed for years.
36309         * modules/regex (Depends-on): Remove localcharset.
36311         regex: revert single-byte change
36312         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36313         to this function.  This was alredy fixed in a different way, at
36314         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36315         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36316         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36318         regex: simplify based on Gawk version
36319         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36320         Reported by Aharon Robbins in
36321         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36323 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36325         regex: check that pattern char is single-byte
36326         Reported by Aharon Robbins in
36327         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36328         * lib/regexec.c (check_node_accept_bytes):
36329         Return 0 if the pattern string has a multibyte character here.
36331         regex: implement rational ranges
36332         Reported by Aharon Robbins in
36333         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36334         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36335         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36336         Implement rational ranges.
36338         regex: avoid redefining __wctype
36339         Reported by Aharon Robbins in
36340         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36341         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36342         #undef before defining.
36344         regex: port to hosts where malloc (0) == NULL
36345         Reported by Aharon Robbins in
36346         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36347         * lib/regex_internal.c (re_node_set_alloc):
36348         Don't assume that malloc (0) yields nonnull.
36349         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36350         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36351         * modules/regex (Files): Add m4/eealloc.m4.
36353         regex: port to C89
36354         Reported by Aharon Robbins in
36355         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36356         * lib/regcomp.c (init_word_char): Declaration before statement.
36358         regex: merge glibc changes
36359         Also, copy the license wording from glibc.  This simplifies
36360         merging changes.  gnulib-tool will change the wording to GPL as
36361         appropriate, when importing it to other packages.  The only
36362         glibc change made since the last merge, which needs merging, is:
36363         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36364         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36366         * users.txt: Add Emacs.
36368         doc: omit mention of version when not needed
36369         * doc/gnulib-intro.texi (Portability and Application Code):
36370         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36371         Don't mention particular dates or versions when not necessary, so
36372         that the documentation won't go out of date so quickly.
36374         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36376 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36378         bootstrap: pass --force to autoreconf.
36379         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36380         Add "--force" so that Automake's ylwrap and other such tools
36381         be updated at each bootstrap invocation.
36382         Use it.
36384 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36386         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36387         The earlier patch forgot to update one of the #if conditions, causing
36388         a problem on Debian testing i386 reported by Mats Erik Andersson
36389         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36390         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36391         (__argp_fmtstream_puts, argp_fmtstream_puts)
36392         (__argp_fmtstream_write, argp_fmtstream_write)
36393         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36395         * doc/gnulib-readme.texi: Minor fixups.
36396         (Portability guidelines): Modernize URLs.  Remove some repetition.
36397         (Indent with spaces not TABs): Reword to avoid too-long lines.
36398         Remove some '@ifset standalone' stuff that isn't used.
36400         * doc/gnulib-readme.texi (Portability guidelines):
36401         ctype.h, not ctime.h.
36403         Correct name of POSIX.1-2001.
36404         * doc/posix-functions/fgetc.texi (fgetc):
36405         * doc/posix-functions/fgets.texi (fgets):
36406         * doc/posix-functions/fread.texi (fread):
36407         * doc/posix-functions/fscanf.texi (fscanf):
36408         * doc/posix-functions/getc.texi (getc):
36409         * doc/posix-functions/getchar.texi (getchar):
36410         * doc/posix-functions/scanf.texi (scanf):
36411         POSIX.1-2001, not POSIX-2001.
36413         doc: move README into manual
36414         * README: Move contents to new file doc/gnulib-readme.texi.
36415         Replace with a one-line summary.
36416         * doc/gnulib.texi (Brief Overview): New section,
36417         with old intro preface.  Include gnulib-readme.texi for contents.
36418         (Philosophy): Rename from "Introduction", since this
36419         section no longer introduces the rest.  Write a new preface.
36420         * doc/gnulib-readme.texi: New file, with the old contents of
36421         README texinfo-ized.  This way, the README info appears
36422         in the online and printed manual.
36424 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36426         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36427         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36428         c_vasprintf() prototype.
36430 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36432         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36433         * lib/c-vasprintf.h: Remove stray semicolon.
36435 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36437         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36438         It is obsolete and is planned to be removed from Automake 1.14; see
36439         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36440         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36441         (installdirs-data, installdirs-data-yes):
36442         Use $(MKDIR_P), not $(mkdir_p).
36443         * m4/intl.m4 (AM_INTL_SUBDIR):
36444         * m4/po.m4 (AM_PO_SUBDIRS):
36445         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36447 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36449         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36450         On this platform, we are not optimizing but we are using
36451         the substitute for extern inlines, so compile as if
36452         C99-style extern inline, or a substitute, is available.
36453         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36454         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36455         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36456         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36457         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36458         Declare as ARGP_FS_EI, not as extern.
36459         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36460         (__option_is_short, _option_is_end, __option_is_end)
36461         [!_LIBC && __USE_EXTERN_INLINES]:
36462         Declare as ARGP_EI, not as extern.
36464 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36466         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36467         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36468         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36469         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36470         ...), as the latter is fatal with older Autoconfs.
36471         Problem reported and fix suggested by Eric Blake in thread starting at
36472         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36474 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36476         AC_PROG_MKDIR_P: don't workaround if not buggy
36477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36478         Define only for Autoconf versions before 2.62.
36479         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36480         undocumented m4_PACKAGE_VERSION, for consistency with the
36481         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36482         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36483         was introduced in 2.62.
36485 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36487         New 'c-*printf' modules for formatted output in C locale.
36489         New module 'c-vasnprintf'.
36490         * modules/c-vasnprintf: New file.
36491         * lib/c-vasnprintf.c: New file.
36492         * lib/c-vasnprintf.h: New file.
36494         New module 'c-snprintf'.
36495         * modules/c-snprintf: New file.
36496         * modules/c-snprintf-tests: New file.
36497         * lib/c-snprintf.c: New file.
36498         * lib/c-snprintf.h: New file.
36499         * tests/test-c-snprintf.c: New file.
36500         * tests/test-c-snprintf.sh: New file.
36502         New module 'c-vsnprintf'.
36503         * modules/c-vsnprintf: New file.
36504         * modules/c-vsnprintf-tests: New file.
36505         * lib/c-vsnprintf.c: New file.
36506         * lib/c-vsnprintf.h: New file.
36507         * tests/test-c-vsnprintf.c: New file.
36508         * tests/test-c-vsnprintf.sh: New file.
36510         New module 'c-vasprintf'.
36511         * modules/c-vasprintf: New file.
36512         * modules/c-vasprintf-tests: New file.
36513         * lib/c-asprintf.c: New file.
36514         * lib/c-vasprintf.c: New file.
36515         * lib/c-vasprintf.h: New file.
36516         * tests/test-c-vasprintf.c  +: New file.
36517         * tests/test-c-vasprintf.sh: New file.
36519         New module 'c-xvasprintf'.
36520         * modules/c-xvasprintf: New file.
36521         * modules/c-xvasprintf-tests: New file.
36522         * lib/c-xasprintf.c: New file.
36523         * lib/c-xvasprintf.c: New file.
36524         * lib/c-xvasprintf.h: New file.
36525         * tests/test-c-xvasprintf.c: New file.
36526         * tests/test-c-xvasprintf.sh: New file.
36528 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36530         argp: better 'inline'
36531         Use extern-inline module to declare extern inline functions.
36532         This avoids some bogus warning diagnostics.  Problem discovered
36533         when modifying GNU tar to use the manywarnings module.
36534         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36535         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36536         Define based on extern-inline.
36537         * modules/argp (Depends-on): Add extern-inline.
36539 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36541         filemode, sys_stat: Handle MPX files a la AIX.
36542         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36543         * lib/sys_stat.in.h (S_ISMPX): New macro.
36544         * tests/test-sys_stat.c: Add tests for MPX files.
36546 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36548         x-to-1: honor $PERL
36549         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36550         a chance to use his preferred version of Perl.  This is typically
36551         required by Darwin users whose default /usr/bin/perl does not have all
36552         the libraries required by help2man, and who need to use their MacPorts
36553         installation of Perl instead.
36555 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36557         gnu-web-doc-update: add all the new files, even in new directories
36558         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36559         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36560         Use it.
36561         (main): Don't use cvsutils to get the list of unknown files,
36562         just add all the existing files and directories.
36564 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36566         gnu-web-doc-update: improve --help
36567         * build-aux/gnu-web-doc-update: Move comments into --help.
36569 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36571         mountlist: recognize more "dummy" file systems
36572         * lib/mountlist.c (ME_DUMMY_0):
36573         Add these dummy FS names to the list:
36574         - "debugfs" virtual filesystem for kernel debugging
36575         - "devpts" PTY slave filesystem
36576         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36577         - "fusectl" control filesystem for FUSE
36578         - "mqueue" enumerates POSIX message queues
36579         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36580         - "sysfs" is for exporting kernel objects
36581         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36583 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36585         extern-inline: avoid incompatibility with Darwin Libc
36586         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36587         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36588         Problem reported by Akim Demaille in
36589         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36591 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36593         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36594         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36595         let it handle password prompting.
36597 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36599         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36600         * lib/canonicalize.c (canonicalize_filename_mode):
36601         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36602         fetching the current directory.  Don't overrun the beginning of
36603         rpath if there's no slashes after the MS-Windows drive letter.
36605 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36607         maint.mk: avoid extra forks
36608         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36609         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36610         So use that instead of "$(shell test -f FILE && echo FILE)".
36612 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36614         vasnprintf: fix ASCII_ONLY typo
36615         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36616         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36617         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36618         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36619         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36621 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36623         list, oset, xlist, xoset: fix extern inline issue with C99
36624         This was introduced by my recent changes for 'inline'.
36625         Problem reported for gettext by Daiki Ueno in
36626         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36627         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36628         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36629         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36630         (gl_list_previous_node, gl_list_get_at)
36631         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36632         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36633         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36634         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36635         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36636         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36637         (gl_list_iterator_free, gl_sortedlist_search)
36638         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36639         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36640         (gl_sortedlist_remove):
36641         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36642         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36643         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36644         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36645         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36646         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36647         (gl_list_add_at, gl_sortedlist_add):
36648         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36649         Wrap these extern decls inside "#if 0", because they are implemented
36650         as inline functions, and extern inline is not what's wanted here.
36651         It would simplify these .h files to remove the extern decls entirely,
36652         although a downside would be less-clear separation between
36653         specification and implementation.
36655 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36657         sys_stat: no 'static inline'
36658         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36661         extern-inline: no 'static inline'
36662         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36663         Do not require AC_C_INLINE.
36664         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36665         'static inline', for older compilers.
36667         snippet/warn-on-use: no 'static inline'
36668         * build-aux/snippet/warn-on-use.h:
36669         Remove unnecessary 'inline' in comment.
36671         rbtree-list, rbtreehash-list: no 'static inline'
36672         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36673         * lib/gl_anytree_list2.h (node_at):
36674         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36675         (gl_oset_first, add_nodes_to_buckets):
36676         Now static, not static inline.
36678         regex: no 'static inline'
36679         * lib/regex_internal.c (calc_state_hash):
36680         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36681         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36682         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36683         Now static, not static inline.
36684         (inline) [__GNUC__ < 3 && _LIBC]:
36685         Remove macro; no longer needed.
36687         xvasprintf: no 'static inline'
36688         * lib/xvasprintf.c (xstrcat):
36689         Now static, not static inline.
36690         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36691         Do not require AC_C_INLINE.
36693         parse-datetime, parse-duration: no 'static inline'
36694         * lib/parse-datetime.y (to_uchar):
36695         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36696         (scale_n_add):
36697         Now static, not static inline.
36698         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36699         * modules/parse-duration (configure.ac):
36700         Do not require AC_C_INLINE.
36702         getaddrinfo: no 'static inline'
36703         * lib/getaddrinfo.c (validate_family):
36704         Now static, not static inline.
36705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36706         Do not require AC_C_INLINE.
36708         ftruncate, fts, lstat, openat, raise: no 'static inline'
36709         * lib/ftruncate.c (chsize_nothrow):
36710         * lib/fts.c (opendirat, diropen):
36711         * lib/lstat.c (orig_lstat):
36712         * lib/openat.c (orig_openat):
36713         * lib/raise.c (raise_nothrow):
36714         Now static, not static inline.
36715         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36716         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36717         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36718         * m4/openat.m4 (gl_PREREQ_OPENAT):
36719         * m4/raise.m4 (gl_PREREQ_RAISE):
36720         Do not require AC_C_INLINE.
36722         fflush, stat: no 'static inline'
36723         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36724         (clear_ungetc_buffer, disable_seek_optimization)
36725         (restore_seek_optimization, update_fpos_cache):
36726         * lib/stat.c (orig_stat):
36727         Now static, not static inline.
36728         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36729         (update_fpos_cache):
36730         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36731         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36732         * m4/stat.m4 (gl_PREREQ_STAT):
36733         Do not require AC_C_INLINE.
36735         error, filevercmp: no 'static inline'
36736         * lib/error.c (is_open, flush_stdout):
36737         * lib/filevercmp.c (order):
36738         Now static, not static inline.
36739         * m4/error.m4 (gl_PREREQ_ERROR):
36740         * modules/filevercmp (configure.ac):
36741         Do not require AC_C_INLINE.
36743         dup, execute, fatal-signal, etc.: no 'static inline'
36744         * lib/dup.c (dup_nothrow):
36745         * lib/execute.c (nonintr_close, nonintr_open):
36746         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36747         * lib/fopen.c (orig_fopen):
36748         * lib/freadseek.c (freadptrinc):
36749         * lib/freopen.c (orig_freopen):
36750         * lib/fstat.c (orig_fstat, fstat_nothrow):
36751         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36752         (get_rusage_as_via_iterator):
36753         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36754         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36755         * lib/isatty.c (_isatty_nothrow):
36756         * lib/open.c (orig_open):
36757         * lib/read.c (read_nothrow):
36758         * lib/sigprocmask.c (signal_nothrow):
36759         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36760         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36761         * lib/wait-process.c (unregister_slave_subprocess):
36762         * lib/write.c (write_nothrow):
36763         Now static, not static inline.
36764         * lib/spawn-pipe.c (nonintr_open): Define only if
36765         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36766         * m4/dup.m4 (gl_PREREQ_DUP):
36767         * m4/execute.m4 (gl_EXECUTE):
36768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36769         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36770         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36771         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36772         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36773         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36774         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36775         * m4/open.m4 (gl_PREREQ_OPEN):
36776         * m4/read.m4 (gl_PREREQ_READ):
36777         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36778         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36780         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36781         * m4/write.m4 (gl_PREREQ_WRITE):
36782         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36783         Do not require AC_C_INLINE.
36785         c-strtod, memcoll, readutmp: no 'static inline'
36786         * lib/c-strtod.c (c_locale):
36787         * lib/memcoll.c (strcoll_loop):
36788         * lib/readutmp.c (desirable_utmp_entry):
36789         Now static, not static inline.
36790         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36791         * m4/memcoll.m4 (gl_MEMCOLL):
36792         * m4/readutmp.m4 (gl_READUTMP):
36793         Do not require AC_C_INLINE.
36795         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36796         * lib/arctwo.c (to_uchar):
36797         * lib/md4.c (set_uint32):
36798         * lib/md5.c (set_uint32):
36799         * lib/sha1.c (set_uint32):
36800         * lib/sha256.c (set_uint32):
36801         * lib/sha512.c (set_uint64):
36802         Now static, not static inline.  This is a bit simpler, and doesn't
36803         affect performance with GCC and default optimization.
36804         * m4/arctwo.m4 (gl_ARCTWO):
36805         * m4/md4.m4 (gl_MD4):
36806         * m4/md5.m4 (gl_MD5):
36807         * m4/sha1.m4 (gl_SHA1):
36808         * m4/sha256.m4 (gl_SHA256):
36809         * m4/sha512.m4 (gl_SHA512):
36810         Do not require AC_C_INLINE.
36812         cond, lock, thread: better 'inline'
36813         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36814         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36815         New macros.  Use them instead of static inline, for header functions.
36816         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36817         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36818         * lib/glthread/lock.c (gl_waitqueue_init)
36819         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36820         * lib/glthread/thread.c (get_current_thread_handle):
36821         Change 'static inline' to 'inline'.
36822         * lib/glthread/cond.h, lib/glthread/thread.h:
36823         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36824         * m4/cond.m4 (gl_COND):
36825         * m4/lock.m4 (gl_PREREQ_LOCK):
36826         * m4/thread.m4 (gl_THREAD):
36827         Do not require AC_C_INLINE.
36828         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36830         chdir-long, cycle-check, savewd: better 'inline'
36831         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36832         (find_non_slash):
36833         * lib/cycle-check.c (is_zero_or_power_of_two):
36834         * lib/savewd.c (savewd_delegating):
36835         Change 'static inline' to 'inline'.
36836         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36837         Replace all remaining uses of 'static inline' with it.
36838         * lib/savewd.h:
36839         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36840         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36841         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36842         * m4/savewd.m4 (gl_SAVEWD):
36843         Do not require AC_C_INLINE.
36844         * modules/savewd (Depends-on): Add extern-inline.
36846         base32, base64: no need for 'inline'
36847         * lib/base32.c (to_uchar, get_8, decode_8):
36848         * lib/base64.c (to_uchar, get_4, decode_4):
36849         Change 'static inline' to 'inline'.
36850         * m4/base32.m4 (gl_PREREQ_BASE32):
36851         * m4/base64.m4 (gl_PREREQ_BASE64):
36852         Do not require AC_C_INLINE.
36854         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36855         * lib/gl_array_oset.c (gl_array_nx_add_at):
36856         (gl_array_remove_at):
36857         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36858         (add_to_bucket, remove_from_bucket):
36859         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36860         Change 'static inline' to 'static', as it's simpler to omit
36861         'inline' unless there's a significant performance advantage.
36863         list, oset, xlist, xoset, xsublist: simplify via extern inline
36864         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36865         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36866         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36867         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36868         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36869         New macro.  Replace all uses of 'static inline' with it.
36870         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36871         instead of as macros FOO that are defined to static inline
36872         functions FOO_inline.
36873         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36874         * lib/gl_xsublist.c:
36875         Reimplement from scratch, by defining the corresponding *_INLINE
36876         macro and including the corresponding .h file.  This is simpler.
36877         * modules/list, modules/oset, modules/xlist, modules/xoset:
36878         (Files): Remove m4/gl_list.m4.
36879         (configure.ac): Remove gl_LIST.
36880         * m4/gl_list.m4: Remove.
36881         * modules/list, modules/oset, modules/xlist, modules/xoset:
36882         * modules/xsublist:
36883         (Depends-on): Depend on extern-inline, not inline.
36885         xalloc: better 'inline'
36886         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36887         New macro.  Replace all uses of 'static inline' with it.
36888         (static_inline): Remove.
36889         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36890         Let 'extern inline' do the work automatically, instead of doing
36891         it by hand.
36892         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36893         Remove.  All uses removed.
36894         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36896         gethrxtime: better 'inline'
36897         * lib/xtime.c: New file.
36898         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36899         * lib/xtime.h (XTIME_INCLUDE):
36900         New macros.  Replace all uses of 'static inline' with them.
36901         * lib/gethrxtime.c (gethrxtime): Define only if
36902         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36903         this source file is now always compiled, because of the extern inline.
36904         * lib/gethrxtime.h, lib/xtime.h:
36905         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36906         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36907         if gethrtime works, as they're not needed in that case.
36908         (gl_XTIME): Do not require AC_C_INLINE.
36909         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36910         compiled now.  Move the check into gl_GETHRXTIME.
36911         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36912         (Depends-on): Add extern-inline.
36913         (configure.ac): gethrxtime is always compiled now.
36914         (lib_SOURCES): Add gethrxtime.c.
36916         wctype-h: better 'inline'
36917         * lib/wctype-h.c: New file.
36918         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36919         New macro.  Replace all uses of 'static inline' with it.
36920         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36921         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36922         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36923         (Depends-on): Add extern-inline.
36925         unistd: better 'inline'
36926         * lib/unistd.c: New file.
36927         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36928         New macro.  Replace all uses of 'static inline' with it.
36929         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36930         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36931         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36932         (Depends-on): Add extern-inline.
36934         sys_socket: better 'inline'
36935         * lib/sys_socket.c: New file.
36936         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36937         New macro.  Replace all uses of 'static inline' with it.
36938         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36940         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36941         (Depends-on): Add extern-inline.
36943         stdio: better 'inline'
36944         * lib/stdio.c: New file.
36945         * lib/stdio.in.h (_GL_STDIO_INLINE):
36946         New macro.  Replace all uses of 'static inline' with it.
36947         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36948         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36949         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36950         (Depends-on): Add extern-inline.
36952         sigaction: better 'inline'
36953         * lib/sig-handler.c: New file.
36954         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36955         New macro.  Replace all uses of 'static inline' with it.
36956         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36957         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36958         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36959         (Depends-on): Add extern-inline.
36961         selinux-h: better 'inline'
36962         * lib/se-context.c, lib/se-selinux.c: New files.
36963         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36964         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36965         New macro.  Replace all uses of 'static inline' with it.
36966         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36967         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36968         New macro.  Replace all uses of 'static inline' with it.
36969         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36970         * modules/selinux-h (Files, lib_SOURCES):
36971         Add lib/se-context.c, lib/se-selinux.c.
36972         (Depends-on): Add extern-inline.
36973         (configure.ac): Do not require AC_C_INLINE.
36975         pthread: better 'inline'
36976         * lib/pthread.c: New file.
36977         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36978         New macro.  Replace all uses of 'static inline' with it.
36979         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36980         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36981         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36982         * modules/pthread (Files): Add lib/pthread.c.
36983         (Depends-on): Add extern-inline.
36985         math: better 'inline'
36986         * lib/math.c: New file.
36987         * lib/math.in.h (_GL_MATH_INLINE):
36988         New macro.  Replace all uses of 'static inline' with it.
36989         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36990         * m4/math_h.m4 (gl_MATH_H):
36991         Do not require AC_C_INLINE.
36992         * modules/math (Files, lib_SOURCES):
36993         Add lib/math.c.
36994         (Depends-on): Add extern-inline.
36996         count-one-bits: better 'inline'
36997         * lib/count-one-bits.c: New file.
36998         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36999         New macro.  Replace all uses of 'static inline' with it.
37000         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37001         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37002         Do not require AC_C_INLINE.
37003         * modules/count-one-bits (Files, lib_SOURCES):
37004         Add lib/count-one-bits.c.
37005         (Depends-on): Add extern-inline.
37007         count-leading-zeros: better 'inline'
37008         * lib/count-leading-zeros.c: New file.
37009         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37010         New macro.  Replace all uses of 'static inline' with it.
37011         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37012         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37013         Do not require AC_C_INLINE.
37014         * modules/count-leading-zeros (Files, lib_SOURCES):
37015         Add lib/count-leading-zeros.c.
37016         (Depends-on): Add extern-inline.
37018         bitrotate: better 'inline'
37019         * lib/bitrotate.c: New file.
37020         * lib/bitrotate.h (BITROTATE_INLINE):
37021         New macros.
37022         Replace all uses of 'static inline' with them.
37023         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37024         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37025         (Depends-on): Add extern-inline.
37026         (configure.ac): Do not require AC_C_INLINE.
37028 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37030         maint.mk: avoid gratuitous failure
37031         Reported by Stefano Lattarini in
37032         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37033         * top/maint.mk (public-submodule-commit): Quote more safely.
37035 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37037         canonicalize, canonicalize-lgpl: support MS-Windows file names
37038         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37039         for test cases, which it'd be nice to add at some point.
37040         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37041         * lib/canonicalize.c (canonicalize_filename_mode):
37042         * lib/canonicalize-lgpl.c (__realpath):
37043         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37044         slash is at the beginning of the file name.  Use ISSLASH, instead
37045         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37046         the first character with '/'.  Test for
37047         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37048         with a drive letter.
37049         * lib/canonicalize.c (SLASHES): New macro.
37050         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37052 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37054         fts: introduce FTS_VERBATIM
37055         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37056         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37057         * lib/fts.c (fts_open): Honor it.
37059 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37061         getlogin-tests: allow errno == ENXIO
37062         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37063         with errno == ENXIO (No controlling tty).
37064         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37065         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37066         with errno == ENOENT.  This was reported to happen in various
37067         situations on GNU/Linux.
37069 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37071         getlogin-tests: allow errno == ENOENT
37072         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37073         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37074         when running a test in an Emacs shell buffer.
37076 2012-11-08  Jim Meyering  <jim@meyering.net>
37078         tests/nap.h: avoid warning about unused variable
37079         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37081         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37082         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37083         white space before each of the special-cased file names, to avoid
37084         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37085         in http://bugs.gnu.org/12830.
37087 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37089         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37090         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37091         fails with errno == EBADF when fd is opened with O_PATH.
37092         Reported by Jim Meyering in
37093         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37094         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37095         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37097 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37099         test-utimens: speed up by taking shorter naps
37100         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37101         New functions.
37102         (nap): Use them, to do a better job of guessing the delay.
37103         On Fedora 17 with ext4 atop md atop hard disks, this made
37104         test-utimens run 10x faster, because the test napped for
37105         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37106         <http://bugs.gnu.org/12820#11>.
37108 2012-11-07  Jim Meyering  <jim@meyering.net>
37110         mountlist.c: fix a compilation failure
37111         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37112         I introduced while transforming commit v0.0-7683-g613bcb6
37114 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37116         errno: port to LynxOS 178 2.2.2
37117         Problem reported by Joel Brobecker in
37118         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37119         * doc/posix-headers/errno.texi (errno.h): Document this.
37120         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37121         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37122         Supply a string for EILSEQ.
37123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37125 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37127         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37128         Linux kernel 2.6.39 introduced O_PATH (see
37129         <http://lwn.net/Articles/433854/>) and this is a better fallback
37130         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37131         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37132         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37133         * lib/fcntl.in.h (O_ACCMODE):
37134         * tests/test-fcntl-h.c (main):
37135         Do not reject O_ACCMODE merely because it has more than the
37136         minimal number of bits, as POSIX allows extensions here.
37138 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37140         mountlist: do not classify a bind-mounted dir entry as "dummy"
37141         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37142         the "none"-testing clause.
37143         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37144         exception for bind-mounted directories.
37146 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37148         quote: provide a means to escape strings with nul characters
37149         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37150         (quote, quote_n): Rename formal arguments for consistency with
37151         quotearg.
37153 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37155         test-raise: don't assume 199 is an invalid signal
37156         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37158         sh-quote-tests: port to Solaris 9
37159         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37160         Problem reported by Dagobert Michelsen in
37161         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37163 2012-10-28  Jim Meyering  <jim@meyering.net>
37165         maint.mk: rename a new configurable variable
37166         * top/maint.mk (_gl_translatable_string_re): Rename from
37167         translation-markers: _gl_ prefix to insulate from user Makefile code,
37168         and the _re suffix to inform that it's a regular expression.
37170 2012-10-26  Eric Blake  <eblake@redhat.com>
37172         maint.mk: let packages tweak sc_po_check pattern
37173         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37174         finding files with other translation markers.
37176 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37178         euidaccess: speed up 'configure' on GNU hosts
37179         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37180         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37181         it's needed only in this case.  Use AC_CHECK_DECLS, not
37182         AC_CHECK_DECLS_ONCE.
37183         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37184         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37186         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37188 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37190         fchmodat, fchownat, fstatat: port to non-inlining compilers
37191         Problem reported for FreeBSD 9 by Jim Meyering in
37192         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37193         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37194         New files, which define FCHMODAT_INLINE etc.
37195         * lib/fchmodat.c (FCHMODAT_INLINE):
37196         * lib/fchownat.c (FCHOWNAT_INLINE):
37197         * lib/fstatat.c (FSTATAT_INLINE):
37198         Remove, as chmodat.c etc. now do this.
37199         * modules/fchmodat (Files): Add lib/chmodat.c.
37200         * modules/fchownat (Files): Add lib/chownat.c.
37201         * modules/fstatat (Files): Add lib/statat.c.
37203 2012-10-15  Jim Meyering  <jim@meyering.net>
37205         fchmodat.c, fchownat.c: compile-impeding typos
37206         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37207         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37208         Introduced in commit v0.0-7636-gd202279.
37210 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37212         fcntl-h: support GNU flags like O_IGNORE_CTTY
37213         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37214         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37215         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37216         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37217         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37218         Define to 0 if not already defined.
37219         * tests/test-fcntl-h.c: Test these new flags.
37221 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37223         faccessat, etc.: support AT_FDCWD-only use
37224         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37225         this function only if its first argument is AT_FDCWD.
37226         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37227         values other than AT_FDCWD, so it doesn't want all the openat
37228         machinery with fchdir etc.
37229         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37230         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37231         * modules/unlinkat (Files):
37232         Remove lib/openat-priv.h, as at-internal supplies this file.
37233         Removing this file here allows us to support programs like Emacs
37234         that avoid at-internal.
37236         faccessat: speed up 'configure' on mainstream hosts
37237         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37238         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37239         since it's only on unusual platforms that we need to check for
37240         'access', and it's better not to slow 'configure' down on all
37241         platforms.
37243         faccessat: port to Solaris 10
37244         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37245         Needed on Solaris 10, which doesn't have AT_EACCESS,
37246         so we need the Gnulib fcntl.h, which defines it.
37248 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37249         canonicalize: fix C89 compilation
37250         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37251         declarations so C89 is supported.  Also remove the comment
37252         referencing memorty allocation as the suggested feature could
37253         not be implemented as suggested.
37254         Reported by Michael Goffioul.
37256 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37258         group-member: omit unnecessary dependencies
37259         This is for Emacs, which has its own allocator and where we
37260         don't want to use xalloc.
37261         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37262         since we no longer use xmalloc.  Do not include stdbool.h, since
37263         the changes below happen to remove the only use of bool.
37264         (GROUPBUF_SIZE): New constant.
37265         (struct group_info): Remove n_groups member.  Add groupbuf member.
37266         This lets us get the groups without using malloc, usually.
37267         (free_group_info, get_group_info): Adjust to this.
37268         (get_group_info): Return the number of groups found, or -1 on error.
37269         Use plain malloc not xmalloc, and treat its failure as if there
37270         are no groups, as the user already loses in case of error.
37271         (group_member): Simplify, based on changes to get_group_info.
37272         * modules/group-member (Depends-on): Remove dependencies on
37273         xalloc and stdbool.  Add dependency on xalloc-oversized.
37275 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37277         gethrxtime: port to C++
37278         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37280 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37282         ptsname: fix macro-name typo
37283         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37285 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37287         inttostr: Relax license.
37288         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37290 2012-10-03  Eric Blake  <eblake@redhat.com>
37292         ptsname_r: support ptys returned by FreeBSD posix_openpt
37293         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37294         lives in /dev/pts/.
37296 2012-10-02  Eric Blake  <eblake@redhat.com>
37298         pselect: reject invalid file descriptors
37299         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37300         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37301         * modules/pselect (Depends-on): Add dup2.
37302         * doc/posix-functions/pselect.texi (pselect): Document this.
37304         select: reject invalid file descriptors
37305         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37306         * lib/select.c (rpl_select) [!win32]: Work around it.
37307         * modules/select (Depends-on): Add dup2.
37308         * doc/posix-functions/select.texi (select): Document this.
37310         select: enhance test
37311         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37312         New functions.
37313         (test_function): Enhance test.
37314         (do_select_bad_fd): Avoid any stale errno values.
37316         ptsname: reject invalid file descriptors
37317         http://www.austingroupbugs.net/view.php?id=503
37318         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37320         * modules/stdlib (Makefile.am): Replace witness.
37321         * lib/stdlib.in.h (ptsname): Allow for replacement.
37322         * modules/ptsname (configure.ac): Trigger replacement.
37323         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37325 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37327         hash-pjw-bare: new module
37328         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37329         * lib/hash-pjw-bare.h: Likewise.
37330         * modules/hash-pjw-bare: New file.
37331         * MODULES.html.sh (Misc): Add it.
37333 2012-10-02  Eric Blake  <eblake@redhat.com>
37335         manywarnings: cater to more gcc infelicities
37336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37337         -Wuninitialized without -O.
37339 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37341         select, poll tests: Make setsockopt invocation effective.
37342         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37343         the bind() call.
37344         * tests/test-select.h (open_server_socket): Likewise.
37346 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37348         sockets, sys_stat: restore AC_C_INLINE
37349         This undoes the 2012-09-22 patch.
37350         * m4/sockets.m4 (gl_SOCKETS):
37351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37352         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37353         and does not support plain 'inline'.  Reported by Bruno Haible in
37354         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37356 2012-09-30  Bruno Haible  <bruno@clisp.org>
37358         localeconv tests: Avoid test failure on OpenIndiana.
37359         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37360         skip the 'grouping' and 'mon_grouping' tests.
37361         Reported by Jim Meyering.
37363 2012-09-30  Bruno Haible  <bruno@clisp.org>
37365         havelib: Follow libtool developments.
37366         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37367         Suggested by Simon Josefsson.
37369 2012-09-29  Jim Meyering  <meyering@redhat.com>
37371         fstatat.c: fix a compile-impeding typo
37372         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37373         Introduced in commit v0.0-7636-gd202279.
37374         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37376 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37378         extern-inline: provide a -Wundef safe config.h
37379         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37380         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37381         to produce a -Wundef warning free config.h.
37383 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37385         hash-pjw: relax license to LGPLv2+
37386         * modules/hash-pjw (License): Relax, with consent of author.
37388 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37390         maint.mk: fix strict vs. lazy variable issues with RELEASE
37391         * top/maint.mk (_equal): New function.
37392         (member_check): Strip the result to avoid spurious spaces.
37393         (url_dir_list): Do not use ifeq, which is strict, as it will
37394         require RELEASE_TYPE to be defined.
37395         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37396         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37397         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37398         (announcement_Cc_beta,announcement_mail_headers_beta)
37399         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37400         (release): Do not depend on $(release-type), as it forces its
37401         evaluation.  Bounce to it.
37403 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37405         maint.mk: formatting changes
37406         * top/maint.mk: Indent bodies of if's.
37408 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37410         maint.mk: factor the validation of RELEASE_TYPE
37411         With help from Jim Meyering.
37412         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37413         * top/maint.mk (_empty, _sp): Move their definition earlier.
37414         (member-check, release-type): New.
37415         Use the latter instead of $(RELEASE_TYPE).
37416         Remove now useless local checks.
37418 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37420         maint.mk: provide "make upload" to ease uploading
37421         See
37422         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37423         Do not depend simply on the current $(VERSION), as there may have been
37424         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37425         as "make release-commit" already does.
37427         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37428         "make TYPE".
37430         * top/maint.mk (upload_command, upload, release): New.
37431         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37432         (VERSION): first word of $(RELEASE) is always right.
37433         (emit_upload_commands): Adjust.
37434         * top/README-release: Update.
37436 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37438         maint.mk: silent rules
37439         With help from Stefano Lattarini.
37440         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37441         (announcement): Use $(AM_V_at).
37443 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37445         localename: port gl_locale_name_thread_unsafe to FreeBSD
37446         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37447         and use the simpler FreeBSD implementation on Mac OS X as well.
37448         Original idea suggested by Ed Maste in
37449         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37451 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37453         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37454         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37455         * lib/mbuiter.c, lib/xsize.c: New files.
37456         * lib/binary-io.h (BINARY_IO_INLINE):
37457         * lib/eealloc.h (EEALLOC_INLINE):
37458         * lib/mbfile.h (MBFILE_INLINE):
37459         * lib/mbiter.h (MBITER_INLINE):
37460         * lib/mbuiter.h (MBUITER_INLINE):
37461         * lib/xsize.h (XSIZE_INLINE):
37462         New macros.
37463         Replace all uses of 'static inline' with them.
37464         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37465         * m4/eealloc.m4 (gl_EEALLOC):
37466         * m4/mbfile.m4 (gl_MBFILE):
37467         * m4/mbiter.m4 (gl_MBITER):
37468         * m4/xsize.m4 (gl_XSIZE):
37469         Do not require AC_C_INLINE.
37470         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37471         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37472         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37473         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37474         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37475         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37476         * modules/binary-io, modules/eealloc, modules/mbfile:
37477         * modules/mbiter, modules/mbuiter:
37478         (Depends-on): Add extern-inline.
37480         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37481         * lib/pipe-filter-aux.c: New file.
37482         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37483         Replace all uses of 'static inline' with it.
37484         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37485         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37486         (filter_retcode): No real need for inline here.
37487         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37488         (Files): Add lib/pipe-filter-aux.c.
37489         (Depends-on): Add extern-inline.
37490         (configure.ac): Do not require AC_C_INLINE.
37491         (lib_SOURCES): Add pipe-filter-aux.c.
37493         fdutimensat: omit unnecessary AC_C_INLINE
37494         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37496         fchmodat, fchownat, fstatat: use extern-inline
37497         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37498         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37499         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37500         New macros.
37501         * lib/openat.h:
37502         Replace all uses of 'static inline' with them.
37503         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37504         * modules/fchmodat, modules/fchownat, modules/fstatat:
37505         * modules/openat-h:
37506         (Depends-on):
37507         Add extern-inline.
37508         (configure.ac): Remove AC_C_INLINE.
37510         acl, mbchar, priv-set: use extern-inline
37511         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37512         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37513         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37514         New macros.
37515         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37516         Replace all uses of 'static inline' with it.
37517         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37518         * m4/acl.m4 (gl_FUNC_ACL):
37519         * m4/mbchar.m4 (gl_MBCHAR):
37520         * m4/priv-set.m4 (gl_PRIV_SET):
37521         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37522         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37523         Add extern-inline.
37525         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37526         * m4/sockets.m4 (gl_SOCKETS):
37527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37528         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37529         environments where it's already guaranteed to work, so we needn't
37530         check for it at 'configure'-time.
37532         tls-tests: omit unnecessary 'inline'
37533         * tests/test-tls.c (perhaps_yield): No longer inline.
37534         Simplicity and portability trump efficiency in test cases.
37536         utimens-tests: avoid unnecessary 'inline'
37537         * modules/fdutimensat-tests (configure.ac):
37538         * modules/futimens-tests (configure.ac):
37539         * modules/utimens-tests (configure.ac):
37540         * modules/utimensat-tests (configure.ac):
37541         Remove AC_C_INLINE.
37542         * tests/test-utimens-common.h (ctime_compare):
37543         No longer inline.  Simplicity and portability trump efficiency here.
37545         misc: don't limit commentary to inline functions
37546         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37547         * lib/xalloc-oversized.h, lib/xsize.h:
37548         Contrast macros to functions in general, not just to inline functions,
37549         when the commentary does not apply only to inline functions.
37551 2012-09-20  Jim Meyering  <meyering@redhat.com>
37553         non-recursive-gnulib-prefix-hack: new module
37554         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37555         the file that originated in Bison.
37556         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37557         largely copied from a snippet that resided in bison's configure.ac.
37558         * modules/non-recursive-gnulib-prefix-hack: New file.
37559         * MODULES.html.sh (Support for maintaining and releasing projects):
37560         Add it.
37562 2012-09-18  Jim Meyering  <meyering@redhat.com>
37564         maint.mk: generalize _gl_tight_scope for non-recursive make
37565         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37566         that *.h would describe additional .h files in the directory
37567         specified by $(_gl_TS_dir).  I.e., add this...
37568         (_gl_TS_other_headers): New variable.
37570         maint.mk: exempt trailing blanks found in "binary" files
37571         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37572         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37573         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37575 2012-09-17  Jim Meyering  <meyering@redhat.com>
37577         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37578         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37579         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37580         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37582 2012-09-17  Jim Meyering  <meyering@redhat.com>
37584         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37585         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37586         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37587         It is not in the same category as "exit (0)" or "exit (1)", and
37588         besides, I know of no symbolic name for that 77.  Reported by
37589         Richard W.M. Jones in
37590         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37592 2012-09-17  Jim Meyering  <meyering@redhat.com>
37594         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37595         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37596         all uses of #define, not just those that start in column 1.
37597         Richard W.M. Jones reported a false positive in
37598         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37600 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37602         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37603         * lib/localcharset.c (locale_charset) [DARWIN7]:
37604         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37605         as these two values are incompatible.  Problem reported by Max Horn.
37606         For more discussion, please see
37607         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37609         doc: document sticky-EOF issue
37610         * doc/posix-functions/fgetc.texi (fgetc):
37611         * doc/posix-functions/fgets.texi (fgets):
37612         * doc/posix-functions/fread.texi (fread):
37613         * doc/posix-functions/fscanf.texi (fscanf):
37614         * doc/posix-functions/getc.texi (getc):
37615         * doc/posix-functions/getchar.texi (getchar):
37616         * doc/posix-functions/scanf.texi (scanf):
37617         Mention that glibc and default Solaris do not conform to
37618         C99 and POSIX-2001 or later, with respect to how getchar
37619         etc. behave when feof reports nonzero.
37621 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37623         poll: fix poll(0, NULL, msec)
37624         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37625         but nfd is 0.  In that case poll should behave like select.
37627 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37628             Paolo Bonzini  <bonzini@gnu.org>
37630         poll: fix for systems that can't recv() on a non-socket
37631         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37632         is readable.  In this case POLLHUP will not be supported.
37633         * doc/posix-functions/poll.texi: Document this.
37635 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37637         poll/select: document portability problems not fixed by Gnulib.
37638         * doc/posix-functions/poll.texi: poll does not work well on
37639         pipes under Windows.  It has the same limitations as select on
37640         BeOS.
37641         * doc/posix-functions/select.texi: select does not work well
37642         on pipes under Windows.
37644 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37646         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37647         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37648         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37649         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37651 2012-09-06  Eric Blake  <eblake@redhat.com>
37653         net_if: give more details about the bug being fixed
37654         * doc/posix-headers/net_if.texi: Add clarification.
37656 2012-09-05  Eric Blake  <eblake@redhat.com>
37658         net_if: new module
37659         * modules/net_if: New module, borrowing ideas from netinet_in.
37660         * m4/net_if_h.m4: New file.
37661         * lib/net_if.in.h: Likewise.
37662         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37663         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37664         * tests/test-net_if.c: Make function checks conditional.
37665         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37667 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37669         readutmp: fix non-portable UT_PID use
37670         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37671         Use `UT_PID (u) > 0' as absolute condition.
37673 2012-09-04  Jim Meyering  <meyering@redhat.com>
37675         fts: reduce two or more trailing spaces to just one, usually
37676         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37677         or more slashes, trim all but the final one.  But if a name consists
37678         solely of two slashes, don't modify it.  If it consists solely of
37679         three or more slashes, strip all but one.
37681         This is part of the solution to a minor problem with rm:
37682         it would print a bogus ELOOP diagnostic when failing to remove
37683         the slash-decorated name of a symlink-to-directory:
37685             $ mkdir d && ln -s d s && env rm -r s/
37686             rm: cannot remove 's': Too many levels of symbolic links
37688         With the change below and a trivial don't-trim-trailing-slashes
37689         adjustment to remove.c, it does this:
37691             $ env rm -r s/
37692             rm: cannot remove 's/': Not a directory
37694         Improved by: Eric Blake
37696         fts: when there is no risk of overlap, use memcpy, not memmove
37697         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37699 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37701         stdbool: be more compatible with mixed C/C++ compiles
37702         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37703         Define to bool, true, false, respectively, as GCC's builtin
37704         stdbool.h does.  Problem reported by Michael Goffioul in
37705         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37707 2012-08-28  Jim Meyering  <meyering@redhat.com>
37709         revert last change: it was not needed
37710         * tests/test-vc-list-files-git.sh: There's already a test for
37711         a working git, just below.
37713 2012-08-28  Jim Meyering  <meyering@redhat.com>
37715         tests: test-vc-list-files-git.sh: skip if git is not available
37716         * tests/test-vc-list-files-git.sh: Skip this test when git is
37717         not available.
37719 2012-08-26  Bruno Haible  <bruno@clisp.org>
37721         gnulib-tool: Remove no-op option --no-changelog.
37722         * gnulib-tool (func_usage): Don't mention --no-changelog.
37723         (do_changelog): Remove variable.
37724         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37726 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37728         doc: remove fdl-1.2.texi
37729         It is no longer used or maintained, and its use of @acronym
37730         is problematic.  See the thread containing
37731         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37732         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37733         * doc/old-licenses/fdl-1.2.texi: Remove.
37735         execinfo: port to FreeBSD
37736         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37737         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37738         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37739         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37741 2012-08-23  Jim Meyering  <meyering@redhat.com>
37743         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37744         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37745         to placate gcc's -Wold-style-declaration.
37747 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37749         doc: do not use @acronym
37750         * doc/inet_ntoa.texi (inet_ntoa):
37751         * doc/parse-datetime.texi (Seconds since the Epoch)
37752         (Specifying time zone rules):
37753         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37754         Don't use @acronym.  Problem reported by John Darlington in
37755         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37757 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37759         stdnoreturn: port to newer GCCs
37760         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37761         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37762         Problem reported by Jim Meyering in
37763         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37764         Also, rename the 'test' function to a void a clash with the
37765         already-supplied 'main' function; this fixes a bug that incorrectly
37766         rejected GCC 4.7.1's <stdnoreturn.h>.
37767         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37768         Document GCC problem.
37770 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37772         pipe-filter: fix comment typo
37773         * lib/pipe-filter.h: Mention correct function.
37775 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37777         execinfo: new module
37778         This is for Emacs.  Currently, it provides a no-effect stub
37779         on all platforms where it does not already work.
37780         It already works on glibc-based systems, and on Solaris 11.
37781         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37782         New files.
37783         * doc/glibc-headers/execinfo.texi (execinfo.h):
37784         * MODULES.html.sh (Misc): Document it.
37786 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37788         extern-inline: support old GCC 'inline'
37789         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37790         if available.  This applies to GCC versions 2.7 through 4.2, or
37791         when newer GCC is using -fgnu89-inline.  The goal is to address
37792         some of the performance issues mentioned by Bruno Haible in
37793         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37795 2012-08-20  Eric Blake  <eblake@redhat.com>
37797         maint.mk: avoid redundant file name in message
37798         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37799         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37800         (sc_makefile_path_separator_check): Remove bogus $(ME).
37802 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37804         timer-time: fix link order when static linking on glibc
37805         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37806         _after_ -lrt so that it's significant.
37808 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37810         timespec: omit unnecessary AC_C_INLINE
37811         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37813         stat-time: omit unnecessary AC_C_INLINE
37814         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37815         Do not require AC_C_INLINE.
37817         ignore-value: omit unnecessary AC_C_INLINE
37818         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37820         sys_select: avoid 'static inline'
37821         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37823         mktime: avoid 'static inline'
37824         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37825         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37827 2012-08-19  Bruno Haible  <bruno@clisp.org>
37829         gnulib-tool: Improve coding style.
37830         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37831         func_emit_lib_Makefile_am.
37832         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37834 2012-08-19  Bruno Haible  <bruno@clisp.org>
37836         gnulib-tool: Fix indentation.
37837         * gnulib-tool (func_import): Fix indentation.
37839 2012-08-19  Bruno Haible  <bruno@clisp.org>
37841         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37842         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37843         on the list of removed files.
37845 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37847         test-parse-datetime: avoid glibc leap-second glitch
37848         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37849         with the 2012 rules.  Problem reported by Bruce Dubbs in
37850         <http://bugs.gnu.org/12206>.
37852 2012-08-14  Bruno Haible  <bruno@clisp.org>
37854         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37855         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37856         from argument.
37857         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37859 2012-08-14  Eric Blake  <eblake@redhat.com>
37861         ldexp: relax license
37862         * modules/ldexp (License): Trivial relax, since the module only
37863         provides a permissively licensed m4 file.
37865 2012-08-13  Bruno Haible  <bruno@clisp.org>
37867         gnulib-tool: Fix persistence of --witness-c-macro option.
37868         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37869         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37871 2012-08-11  Eric Blake  <eblake@redhat.com>
37873         count-leading-zeros: use a lookup table on non-gcc compilers
37874         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37875         alternate implementation, suggested by Jim Meyering.
37877 2012-08-10  Eric Blake  <eblake@redhat.com>
37879         count-leading-zeros: new module
37880         * modules/count-leading-zeros: New module.
37881         * m4/count-leading-zeros.m4: New file.
37882         * lib/count-leading-zeros.h: Likewise.
37883         * modules/count-leading-zeros-tests: New test.
37884         * tests/test-count-leading-zeros.c: New file.
37885         * MODULES.html.sh (Integer arithmetic functions): Document it.
37887 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37888             Jim Meyering  <meyering@redhat.com>
37890         maintainer-makefile: Fix syntax error with dash.
37891         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37892         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37894 2012-08-05  Jim Meyering  <meyering@redhat.com>
37896         extern-inline: also ignore -Wmissing-declarations
37897         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37898         required with gcc-4.8.0-to-be.
37900         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37901         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37902         for /error ?([^,]*)/.  This avoids false-positives for strings like
37903         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37905 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37907         gnumakefile: better interaction with Automake-NG
37908         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37909         Automake-NG always contain a definition of VPATH, even in non-VPATH
37910         builds (its value being simply '.' in that case).  So, in the
37911         'clean-GNUmakefile' rule, to determine whether running under a
37912         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37913         '$(VPATH)' expands to the empty string.
37915 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37917         base64: Use extern C scope in header file, for C++.
37918         * lib/base64.h: Add C++ namespace protection.
37920 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37922         stat-time, timespec, u64: support naive out-of-dir builds
37923         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37924         Use '#include "foo.h"', not '#include <foo.h>', when including
37925         one's own interface.  This works better when configuring with
37926         out-of-directory builds, since packages need not add an
37927         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37929 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37931         utimens: use extern-inline
37932         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37933         * lib/utimens.h: Add copyright notice, since this is now large enough
37934         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37935         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37936         * modules/utimens (Depends-on): Add extern-inline.
37938         u64: use extern-inline
37939         * lib/u64.c: New file.
37940         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37941         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37942         * modules/u64 (Files): Add lib/u64.c.
37943         (Depends-on): Add extern-inline.
37944         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37945         does that now.
37946         (lib_SOURCES): Add u64.c.
37948         timespec: use extern-inline
37949         * lib/timespec.c: New file.
37950         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37951         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37952         * modules/timespec (Files): Add lib/timespec.c.
37953         (Depends-on): Add extern-inline.
37954         (lib_SOURCES): Add timespec.c.
37956         stat-time: use extern-inline
37957         * lib/stat-time.c: New file.
37958         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37959         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37960         * modules/stat-time (Files): Add lib/stat-time.c.
37961         (Depends-on): Add extern-inline.
37962         (lib_SOURCES): Add stat-time.c.
37964         extern-inline: new module
37965         * modules/extern-inline, m4/extern-inline.m4: New files.
37966         This is for better support of 'extern inline' a la ISO C99,
37967         with a portable alternative on compilers that do not support
37968         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37969         of the Emacs executable, when compiled with debugging disabled,
37970         which is a typical way that Emacs is built while developing.
37972 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37974         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37975         * build-aux/do-release-commit-and-tag: Move variable definitions
37976         together.
37977         ($branch): Instead of defaulting to "master", default to the current
37978         branch (as gnu-web-doc-update does).
37979         (help): Display the current values of the option arguments.
37980         * top/maint.mk (release-commit): New.
37981         * top/README-release: Simplify the corresponding step.
37983 2012-07-30  Eric Blake  <eblake@redhat.com>
37985         passfd: fix comment on recvfd
37986         * lib/passfd.c (recvfd): Fix comment.
37987         Reported by Jann Horn <jannhorn@googlemail.com>.
37989 2012-07-30  Jim Meyering  <meyering@redhat.com>
37991         maint.mk: avoid a sub-shell
37992         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37994 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37996         maint.mk: use silent-rules support from Automake
37997         * top/maint.mk (news-check, vc-diff-check, announcement)
37998         (no-submodule-changes, alpha beta stable, release-prep)
37999         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38001 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38003         maint.mk: provide a web-manual-update target
38004         * top/maint.mk: here.
38005         * top/README-release: Use it to simplify the web manual update step.
38007 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38009         README-release: shorten the circuit to post a news
38010         * top/README-release: Point directly to the news submission form.
38012 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38014         gnu-web-doc-update: fix --help
38015         * build-aux/gnu-web-doc-update: The information "top level" was written
38016         twice.
38018 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38020         maint.mk: absolute VPATH issue
38021         * top/maint.mk (release-prep): Help Git find .git/.
38022         From Jim Meyering.
38024 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38026         gitlog-to-changelog: fix previous change
38027         * build-aux/gitlog-to-changelog: Fix condition.
38028         Add missing ";".
38030 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38032         gitlog-to-changelog: don't expect .git to be in $srcdir
38033         Reported by Bruno Haible.
38034         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38035         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38036         Use it.
38038 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38040         maint.mk: absolute VPATH build fix
38041         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38042         $(srcdir) is not a parent of $(builddir).
38044 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38046         clean-temp: Fix memory leak.
38047         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38048         'files' members of tmpdir.
38050 2012-07-27  Jim Meyering  <meyering@redhat.com>
38052         maint.mk: new rule: refresh-gnulib-patches
38053         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38054         Use this rule to refresh them.
38055         * top/maint.mk (refresh-gnulib-patches): New rule.
38057 2012-07-24  Bruno Haible  <bruno@clisp.org>
38059         gnulib-tool: Fix handling of inctests variable.
38060         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38061         Reported by Nick Bowler <nbowler@elliptictech.com>.
38063 2012-07-22  Bruno Haible  <bruno@clisp.org>
38065         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38066         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38067         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38068         Remove exemption for getpass.h.
38069         Suggested by Eric Blake.
38071 2012-07-20  Eric Blake  <eblake@redhat.com>
38073         verify: document conflict with -Wnested-externs
38074         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38076         maint.mk: forbid exit(-1)
38077         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38079 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38081         fsusage: port back to Solaris
38082         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38083         error (fsd not declared) on Solaris 10.  Reported privately by
38084         Andrew Borodin.
38086 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38088         gnu-web-doc-update: fix error messages
38089         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38091         gnu-web-doc-update: check the requirements.
38092         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38093         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38094         * build-aux/bootstrap (find_tool): Comment change.
38096 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38098         maint.mk: minor simplication.
38099         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38100         for default values.
38102 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38104         gitlog-to-changelog: VPATH build issues
38105         If builddir is not a subdirectory of srcdir, running git from it will
38106         fail.
38107         * build-aux/gitlog-to-changelog (--srcdir): New option.
38109 2012-07-15  Bruno Haible  <bruno@clisp.org>
38111         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38112         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38113         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38114         Remove exemption for fpending.h.
38115         Suggested by Eric Blake.
38117 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38119         pthread_sigmask: fix bug on FreeBSD 9
38120         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38121         Include string.h.
38122         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38123         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38124         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38125         but pthread_sigmask (1729, NULL, NULL) returns zero.
38126         See <http://bugs.gnu.org/11884>.
38127         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38128         by inspecting whether the main call changed the old mask.
38130 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38132         README-release: make it more legible
38133         * top/README-release: Improve typography slightly.
38135 2012-07-15  Jim Meyering  <meyering@redhat.com>
38137         maint: require that each sc_... command start with "@"
38138         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38139         "make sc_maint" helps us avoid this nit.
38141 2012-07-15  Jim Meyering  <meyering@redhat.com>
38143         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38144         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38146 2012-07-13  Eric Blake  <eblake@redhat.com>
38148         maint.mk: new syntax check for HAVE_DECL checks
38149         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38150         * cfg.mk
38151         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38152         Exempt some false positives.
38153         Based on a report by Karel Zak.
38155         argp: make HAVE_DECL usage consistent
38156         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38157         macros, not whether they are defined.
38158         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38159         convention with other declaration checks.
38160         Reported by Karel Zak, with suggestions from Paul Eggert.
38162         stat-time: relax license to LGPLv2+
38163         * modules/stat-time (License): Relax, with consent of all authors.
38165         strndup: fix m4 usage error
38166         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38167         defined, to either 0 or 1.
38168         Reported by Karel Zak.
38170 2012-07-11  Jim Meyering  <meyering@redhat.com>
38172         maint: enable the sc_avoid_if_before_free syntax-check rule
38173         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38174         (if_before_free_offenders_): Define.
38175         (if_before_free_basename_re_): Define.
38176         Exempt current files with useless if-before-free.
38178 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38180         gettext: do not assume '#define ... defined ...' behavior
38181         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38182         Do not use '#define FOO ... defined BAR ...', as the C standard says
38183         it's not portable to expect that this works after macro expansion.
38184         Problem reported for gzip by Steven M. Schweda in
38185         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38187 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38189         getloadavg: clean out old Emacs and Autoconf cruft
38190         See Glenn Morris in <http://bugs.gnu.org/11905>.
38191         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38192         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38193         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38194         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38196 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38198         bootstrap: let warn be like tests/init.sh's warn_
38199         Reported by Jim Meyering.
38200         * build-aux/bootstrap (warn): Remove, replaced by...
38201         (warnf_, warn_): these.
38202         Adjust callers.
38203         Shorten messages that no longer fit in 80 columns.
38205 2012-07-09  Bruno Haible  <bruno@clisp.org>
38207         getopt: Simplify after Emacs changed.
38208         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38209         (gl_GETOPT_IFELSE): Remove macro.
38211 2012-07-09  Jim Meyering  <meyering@redhat.com>
38213         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38214         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38216         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38217         Bugs in both of those conspired to make the
38218         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38219         _sc_search_regexp's handling of non-empty $in_files would filter
38220         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38221         choice of in_files value meant there would be no match in most
38222         projects, due to the presence of two or more Makefile.in files.
38223         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38224         Fix a bug in how a non-empty $$in_files was processed:
38225         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38226         in spite of the name, it's a regexp, not a list of file names.
38228 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38230         getloadavg, getopt: fix commentary re configure.in
38231         Autoconf is deprecating the name 'configure.in', so change it to
38232         to the new name 'configure.ac' in a couple of places.
38233         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38234         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38235         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38236         Emacs has renamed it to configure.ac, and it no longer refers
38237         to these macros anyway.
38239         timespec: mark functions with const attributes
38240         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38241         Mark with _GL_ATTRIBUTE_CONST.
38243 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38245         canonicalize[-lgpl]: handle "guessing" values when cross-building
38246         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38247         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38248         matches "*yes" instead of just "yes".  Regression introduced in commit
38249         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38251 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38252             Bruno Haible  <bruno@clisp.org>
38254         canonicalize: make the right guess when cross-compiling to GNU
38255         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38256         determine whether cross-compiling to glibc systems, so as to
38257         include GNU/Hurd.
38259 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38261         timespec-sub: avoid duplicate include
38262         * lib/timespec-sub.c: Do not include <config.h> twice.
38263         Reported by Juanma Barranquero.
38265 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38267         bootstrap: use a more consistent error reporting scheme
38268         * build-aux/bootstrap (warn, die): New.
38269         Use them.
38271 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38273         sys_time: allow too-wide tv_sec
38274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38275         timeval even if tv_sec is wider than time_t.  This allows
38276         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38277         as without this patch gnulib replaces struct timeval
38278         and OpenBSD futimes therefore has a type mismatch.
38279         * doc/posix-headers/sys_time.texi: Mention this.
38281         pthread: check for both pthread_create and pthread_join
38282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38283         alter the check so that it tests for both pthread_create and
38284         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38285         Suggested by Bruno Haible and Richard Yao in
38286         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38288         parse-datetime: doc tuneup
38289         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38290         spacing issues.
38292 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38294         do-release-commit-and-tag: fix the previous commit
38295         * build-aux/do-release-commit-and-tag: Actually the test was right,
38296         but the comment and the error message were misleading.
38297         Fix comment, and improve error message.
38298         Perform check first, so that NEWS is not modified uselessly.
38300         do-release-commit-and-tag: fix typo
38301         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38302         _not_ start with a stub.
38304 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38306         pthread: check for pthread_create, not pthread_join
38307         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38308         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38309         pthread_join in libc.  I hope this removes the need for all the
38310         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38311         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38313 2012-07-04  Jim Meyering  <meyering@redhat.com>
38315         parse-datetime: fix failure to diagnose invalid input
38316         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38317         rather than diagnosing the invalid input.  Now it reports this:
38318         date: invalid date '\260'
38319         * lib/parse-datetime.y (to_uchar): Define.
38320         (yylex): Don't sign-extend "other" bytes.
38321         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38322         Thanks to Bruno Haible for the patch to this file.
38323         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38324         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38326 2012-07-03  Jim Meyering  <meyering@redhat.com>
38328         bootstrap: do not require now-removed build-aux/missing
38329         Now that build-aux/missing is, er, missing, bootstrap would
38330         silently fail.
38331         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38332         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38333         no longer part of gnulib.
38334         Diagnose the failure.
38336 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38338         alloca: add support for HP NonStop TNS/E native
38339         * lib/alloca.in.h (alloca): Support the new host.
38340         From a suggestion by Joachim Schmitz in
38341         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38343 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38345         fsusage: remove code not needed on non GNU/Linux systems.
38347         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38348         Don't include headers no longer needed in this case.
38349         * lib/fsusage.c [STAT_STATVFS &&
38350         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38351         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38353 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38355         fsusage: include files needed for glibc 2.6 fallback
38356         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38357         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38358         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38359         Problem reported by Ludovic Courtès in
38360         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38362         fsusage: avoid needless check on GNU/Linux
38363         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38364         on GNU/Linux systems, since it can't possibly work.
38366 2012-07-01  Bruno Haible  <bruno@clisp.org>
38368         log: Fix an autoconf >= 2.64 warning.
38369         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38370         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38372 2012-06-28  Bruno Haible  <bruno@clisp.org>
38374         log10f: Fix possible configuration problem.
38375         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38376         $LOGF_LIBM.
38377         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38379 2012-06-28  Bruno Haible  <bruno@clisp.org>
38381         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38382         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38383         not gl_cv_func_unlink_works.
38384         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38386 2012-06-27  Eric Blake  <eblake@redhat.com>
38388         config: drop scripts that automake says are not independent
38389         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38390         * build-aux/elisp-comp: Delete.
38391         * build-aux/missing: Likewise.
38392         * build-aux/ylwrap: Likewise.
38393         * modules/elisp-comp: Likewise.
38394         * MODULES.html.sh: Drop mention of elisp-comp.
38395         * NEWS: Mention this.
38397 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38399         root-uid: new module
38400         This is for portability to Tandem's NonStop Kernel.
38401         * lib/root-uid.h, modules/root-uid: New files.
38402         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38403         * lib/write-any-file.c, tests/test-sethostname2.c:
38404         Include "root-uid.h".
38405         * lib/euidaccess.c (euidaccess):
38406         * lib/pt_chown.c (main):
38407         * lib/unlinkdir.c (cannot_unlink_dir):
38408         * lib/write-any-file.c (can_write_any_file):
38409         * m4/mknod.m4 (gl_FUNC_MKNOD):
38410         * tests/test-sethostname2.c (geteuid, main):
38411         Don't assume ROOT_UID == 0.
38412         * modules/euidaccess (Depends-on):
38413         * modules/pt_chown (Depends-on):
38414         * modules/sethostname-tests (Depends-on):
38415         * modules/unlinkdir (Depends-on):
38416         * modules/write-any-file (Depends-on):
38417         Add root-uid.
38419         regex: use locale-independent comparison for codeset name
38420         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38421         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38422         for codeset name.
38423         * lib/regex_internal.h: Do not include <strings.h>, since we
38424         no longer use strcasecmp.
38425         * modules/regex (Depends-on): Remove strcase.
38427 2012-06-23  Bruno Haible  <bruno@clisp.org>
38429         getopt-posix: No longer guarantee that option processing is resettable.
38430         * doc/posix-functions/getopt.texi: Drop description of problem with
38431         internal state. Fix info about mingw and msvc9.
38432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38433         option processing by getopt(). Run three test programs instead of one.
38434         Simplify cross-compilation guess.
38435         * NEWS: Mention the change.
38436         Reported by Rich Felker <dalias@aerifal.cx>.
38438 2012-06-26  Bruno Haible  <bruno@clisp.org>
38440         argp, regex: Ensure strcasecmp gets declared.
38441         * lib/argp-help.c: Include <strings.h>.
38442         * lib/regex_internal.h: Likewise.
38443         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38445 2012-06-24  Bruno Haible  <bruno@clisp.org>
38447         ptsname_r: Make it consistent with ptsname on AIX.
38448         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38449         implementation as for OSF/1.
38450         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38451         a pty master.
38453         ptsname_r: Make it consistent with ptsname on OSF/1.
38454         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38455         OSF/1.
38457 2012-06-24  Bruno Haible  <bruno@clisp.org>
38459         ttyname_r: Fix result on OSF/1, Solaris.
38460         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38462 2012-06-24  Bruno Haible  <bruno@clisp.org>
38464         ptsname_r: Add support for Solaris.
38465         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38466         Solaris.
38468         ptsname_r: Fix test failure on native Windows.
38469         * modules/ptsname_r (Depends-on): Add isatty.
38471         ptsname_r: Fix test failures on IRIX, Solaris.
38472         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38473         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38474         accordingly.
38475         * lib/ptsname_r.c: Include <fcntl.h>.
38476         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38477         set errno if fd is invalid.
38478         * tests/test-isatty.c (main): Update comments.
38480 2012-06-24  Bruno Haible  <bruno@clisp.org>
38482         ptsname test: Extend test.
38483         * tests/test-ptsname.c: Include <errno.h>.
38484         (main): Test behaviour with invalid file descriptor.
38486 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38488         time: fix obsolete comment
38489         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38490         reference to HAVE_STRUCT_TIMESPEC in comment.
38492 2012-06-23  Bruno Haible  <bruno@clisp.org>
38494         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38496         does not handle abbreviated long options with equivalent
38497         disambiguations, set gl_replace_getopt to yes.
38498         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38500 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38502         time_r: fix typo that always overrode localtime_r decl
38503         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38504         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38505         not in a standard include.
38507 2012-06-22  Bruno Haible  <bruno@clisp.org>
38509         Write "Mac OS X" instead of "MacOS X".
38510         * README: Write "Mac OS X" instead of "MacOS X".
38511         * build-aux/bootstrap: Likewise.
38512         * build-aux/install-reloc: Likewise.
38513         * lib/acl-internal.h: Likewise.
38514         * lib/acl_entries.c: Likewise.
38515         * lib/argp-ba.c: Likewise.
38516         * lib/argp-pv.c: Likewise.
38517         * lib/config.charset: Likewise.
38518         * lib/copy-acl.c: Likewise.
38519         * lib/csharpexec.c: Likewise.
38520         * lib/euidaccess.c: Likewise.
38521         * lib/fbufmode.c: Likewise.
38522         * lib/fflush.c: Likewise.
38523         * lib/file-has-acl.c: Likewise.
38524         * lib/filemode.h: Likewise.
38525         * lib/fpurge.c: Likewise.
38526         * lib/freadable.c: Likewise.
38527         * lib/freadahead.c: Likewise.
38528         * lib/freading.c: Likewise.
38529         * lib/freadptr.c: Likewise.
38530         * lib/freadseek.c: Likewise.
38531         * lib/fseeko.c: Likewise.
38532         * lib/fseterr.c: Likewise.
38533         * lib/fsusage.c: Likewise.
38534         * lib/fwritable.c: Likewise.
38535         * lib/fwriting.c: Likewise.
38536         * lib/get-rusage-as.c: Likewise.
38537         * lib/get-rusage-data.c: Likewise.
38538         * lib/getdomainname.c: Likewise.
38539         * lib/idpriv-drop.c: Likewise.
38540         * lib/idpriv-droptemp.c: Likewise.
38541         * lib/localcharset.c: Likewise.
38542         * lib/locale.in.h: Likewise.
38543         * lib/localename.c: Likewise.
38544         * lib/mbsrtowcs-state.c: Likewise.
38545         * lib/nproc.c: Likewise.
38546         * lib/passfd.c: Likewise.
38547         * lib/posix_openpt.c: Likewise.
38548         * lib/printf-parse.c: Likewise.
38549         * lib/progreloc.c: Likewise.
38550         * lib/safe-read.h: Likewise.
38551         * lib/safe-write.h: Likewise.
38552         * lib/sched.in.h: Likewise.
38553         * lib/set-mode-acl.c: Likewise.
38554         * lib/signal.in.h: Likewise.
38555         * lib/stdint.in.h: Likewise.
38556         * lib/stdio-impl.h: Likewise.
38557         * lib/stdlib.in.h: Likewise.
38558         * lib/strtod.c: Likewise.
38559         * lib/sys_select.in.h: Likewise.
38560         * lib/tcgetsid.c: Likewise.
38561         * lib/unistd.in.h: Likewise.
38562         * lib/unlockpt.c: Likewise.
38563         * lib/vasnprintf.c: Likewise.
38564         * lib/vma-iter.c: Likewise.
38565         * lib/wcsrtombs-state.c: Likewise.
38566         * m4/acl.m4: Likewise.
38567         * m4/acosl.m4: Likewise.
38568         * m4/asinl.m4: Likewise.
38569         * m4/atanl.m4: Likewise.
38570         * m4/c-stack.m4: Likewise.
38571         * m4/cosl.m4: Likewise.
38572         * m4/expl.m4: Likewise.
38573         * m4/extensions.m4: Likewise.
38574         * m4/fdatasync.m4: Likewise.
38575         * m4/fmal.m4: Likewise.
38576         * m4/frexp.m4: Likewise.
38577         * m4/frexpf.m4: Likewise.
38578         * m4/frexpl.m4: Likewise.
38579         * m4/fsusage.m4: Likewise.
38580         * m4/getdomainname.m4: Likewise.
38581         * m4/getloadavg.m4: Likewise.
38582         * m4/getopt.m4: Likewise.
38583         * m4/gettext.m4: Likewise.
38584         * m4/gnulib-common.m4: Likewise.
38585         * m4/intdiv0.m4: Likewise.
38586         * m4/intlmacosx.m4: Likewise.
38587         * m4/largefile.m4: Likewise.
38588         * m4/ldexpl.m4: Likewise.
38589         * m4/link-follow.m4: Likewise.
38590         * m4/locale-ar.m4: Likewise.
38591         * m4/locale-fr.m4: Likewise.
38592         * m4/locale-ja.m4: Likewise.
38593         * m4/locale-tr.m4: Likewise.
38594         * m4/locale-zh.m4: Likewise.
38595         * m4/locale_h.m4: Likewise.
38596         * m4/lock.m4: Likewise.
38597         * m4/logl.m4: Likewise.
38598         * m4/mathfunc.m4: Likewise.
38599         * m4/minus-zero.m4: Likewise.
38600         * m4/mktime.m4: Likewise.
38601         * m4/mmap-anon.m4: Likewise.
38602         * m4/multiarch.m4: Likewise.
38603         * m4/nanosleep.m4: Likewise.
38604         * m4/nocrash.m4: Likewise.
38605         * m4/poll.m4: Likewise.
38606         * m4/printf-frexpl.m4: Likewise.
38607         * m4/printf.m4: Likewise.
38608         * m4/signbit.m4: Likewise.
38609         * m4/sinl.m4: Likewise.
38610         * m4/sqrtl.m4: Likewise.
38611         * m4/strerror_r.m4: Likewise.
38612         * m4/tanl.m4: Likewise.
38613         * m4/threadlib.m4: Likewise.
38614         * m4/ttyname_r.m4: Likewise.
38615         * m4/unlink.m4: Likewise.
38616         * m4/visibility.m4: Likewise.
38617         * m4/wcwidth.m4: Likewise.
38618         * tests/minus-zero.h: Likewise.
38619         * tests/test-alloca-opt.c: Likewise.
38620         * tests/test-copy-acl.sh: Likewise.
38621         * tests/test-copy-file.sh: Likewise.
38622         * tests/test-fdatasync.c: Likewise.
38623         * tests/test-file-has-acl.sh: Likewise.
38624         * tests/test-flock.c: Likewise.
38625         * tests/test-fsync.c: Likewise.
38626         * tests/test-localename.c: Likewise.
38627         * tests/test-malloca.c: Likewise.
38628         * tests/test-nonblocking-pipe.h: Likewise.
38629         * tests/test-nonblocking-socket.h: Likewise.
38630         * tests/test-openpty.c: Likewise.
38631         * tests/test-posix_openpt.c: Likewise.
38632         * tests/test-ptsname.c: Likewise.
38633         * tests/test-ptsname_r.c: Likewise.
38634         * tests/test-sameacls.c: Likewise.
38635         * tests/test-select.h: Likewise.
38636         * tests/test-set-mode-acl.sh: Likewise.
38637         * tests/test-snprintf-posix.h: Likewise.
38638         * tests/test-sprintf-posix.h: Likewise.
38639         * tests/test-strtod.c: Likewise.
38640         * tests/test-time.c: Likewise.
38641         * tests/test-vasnprintf-posix.c: Likewise.
38642         * tests/test-vasprintf-posix.c: Likewise.
38643         * doc/acl-resources.txt: Likewise.
38644         * doc/**/*.texi: Likewise.
38645         Reported by Max Horn <max@quendi.de>.
38647 2012-06-22  Bruno Haible  <bruno@clisp.org>
38649         grantpt: Relax requirement regarding invalid file descriptors.
38650         * lib/grantpt.c: Don't include <fcntl.h>.
38651         (grantpt): Don't verify the validity of the file descriptor.
38652         * modules/grantpt (Depends-on): Remove fcntl-h.
38653         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38654         file descriptors.
38655         * doc/posix-functions/grantpt.texi: Document more platforms on which
38656         grantpt succeeds for invalid file descriptors.
38657         Reported by Rich Felker <dalias@aerifal.cx>.
38659 2012-06-22  Bruno Haible  <bruno@clisp.org>
38661         fbufmode test: Don't test unportable behaviour.
38662         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38663         (main): Invoke it three times.
38664         Reported by Szabolcs Nagy <nsz@port70.net>
38665         and Rich Felker <dalias@aerifal.cx>.
38667 2012-06-21  Bruno Haible  <bruno@clisp.org>
38669         gnulib-tool: Refactor inctests variable.
38670         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38671         (func_modules_transitive_closure,
38672         func_modules_transitive_closure_separately,
38673         func_import, func_create_testdir): Update.
38675         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38676         * gnulib-tool: Accept option --without-tests.
38677         (func_usage): Document --without-tests option. Rearrange.
38678         (inctests): Normalize according to the mode.
38679         * NEWS: Mention the change.
38680         Suggested by Simon Josefsson.
38682 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38684         parse-duration test: Avoid spurious output.
38685         * tests/test-parse-duration.sh: Reindent with leading tabs.
38687 2012-06-21  Jim Meyering  <meyering@redhat.com>
38689         maint: disable the strncpy prohibition
38690         * cfg.mk: Do not prohibit strncpy here.
38692 2012-06-21  Bruno Haible  <bruno@clisp.org>
38694         nonblocking: Avoid compilation error on mingw64.
38695         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38696         fscanf.
38697         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38698         * modules/vfscanf (configure.ac): Likewise.
38699         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38700         definition only if stdio.h has prepared it.
38701         Reported by Daniel P. Berrange <berrange@redhat.com>.
38703 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38705         gnulib-tool: Use readlink if it is available.
38706         * gnulib-tool (func_readlink): Choose function more appropriately.
38708 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38710         posixtm-tests: port to buggy compiler
38711         Problem reported by Simon Josefsson in
38712         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38713         * modules/posixtm-tests (Depends-on): Add stdint.
38714         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38715         Now of type int_least64_t, not int64_t, both because that's
38716         what INT64_C returns and because int_least64_t works even
38717         on 72-bit hosts.
38718         (T): Use INT64_C on constants outside the traditional int range,
38719         to work around compiler bug noted by Simon.
38721         mktime: fix integer overflow in 'configure'-time test
38722         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38723         after integer overflow.  Problem reported by Rich Felker in
38724         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38725         Also, don't look for further instances of a bug if we've already
38726         found one instance; this helps 'configure' run faster.
38728 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38730         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38731         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38732         GetVersionEx correctly.
38733         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38735 2012-06-20  Bruno Haible  <bruno@clisp.org>
38737         fdopen: Allow implementations that don't reject invalid fd arguments.
38738         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38739         succeeds.
38740         Reported by Rich Felker <dalias@aerifal.cx>.
38742 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38744         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38745         bring in LIBINTL.
38747 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38749         init.sh: do not rely on autoupated PWD
38750         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38751         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38752         Although Nelson's bug was not necessarily fixed by this patch,
38753         it seems wise to make the change for safety.
38754         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38755         automagically after 'cd'; this is not reliable on older shells.
38756         (setup_): Fail if we cannot cd to temporary directory.
38758 2012-06-19  Bruno Haible  <bruno@clisp.org>
38760         stat, fstat: Avoid warnings on mingw64.
38761         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38762         redefining.
38763         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38764         Reported by Daniel P. Berrange <berrange@redhat.com>.
38766 2012-06-19  Bruno Haible  <bruno@clisp.org>
38768         stdioext: Add support for musl libc.
38770         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38771         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38773         * m4/fseterr.m4: New file.
38774         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38775         function exists.
38776         * modules/fseterr (Files): Add m4/fseterr.m4.
38777         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38778         __fseterr does not exist.
38779         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38781         * lib/freadable.h: Update comment.
38783         * lib/fwritable.h: Update comment.
38785         * lib/freading.h: Update comment.
38787         * lib/fwriting.h: Update comment.
38789         * m4/freadahead.m4: New file.
38790         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38791         that function exists.
38792         * modules/freadahead (Files): Add m4/freadahead.m4.
38793         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38794         __freadahead does not exist.
38795         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38797         * m4/freadptr.m4: New file.
38798         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38799         function exists.
38800         * modules/freadptr (Files): Add m4/freadptr.m4.
38801         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38802         __freadptr does not exist.
38803         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38805         * m4/freadseek.m4: New file.
38806         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38807         exists.
38808         * modules/freadseek (Files): Add m4/freadseek.m4.
38809         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38811         * lib/fpurge.c (fpurge): Update comment.
38813         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38815 2012-06-19  Bruno Haible  <bruno@clisp.org>
38817         *printf-posix: Put more info into config.log.
38818         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38819         exit code into config.log.
38821 2012-06-19  Bruno Haible  <bruno@clisp.org>
38823         getopt-gnu: Fix exit code overflow in autoconf test.
38824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38825         to keep them below < 128.
38827 2012-06-17  Jim Meyering  <meyering@redhat.com>
38829         maint.mk: fix typo in code to derive GPG key at release time
38830         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38832 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38834         regex: avoid warning when pointers are not long
38835         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38836         and uintptr_t, not long, for portability to hosts where pointers and
38837         long have different sizes.  Issue noted by Daniel P. Berrange in
38838         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38839         and fix suggested by Bruno Haible in
38840         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38842 2012-06-17  Bruno Haible  <bruno@clisp.org>
38844         dummy: Relicense into the public domain.
38845         * modules/dummy (License): Set to "public domain".
38846         Suggested by Reuben Thomas.
38848 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38850         announce-gen: VPATH issues
38851         * build-aux/announce-gen (--srcdir): New option, used to trim the
38852         $srcdir part of the path from $builddir to NEWS.
38853         * top/maint.mk (announcement): Adjust.
38855 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38857         gnu-web-doc-update: VPATH builds
38858         * build-aux/gnu-web-doc-update (--builddir): New option.
38859         Revamp the handling of options.
38860         Prefer $(...) to `...`.
38861         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38862         the template, and it is GNU mktemp specific.
38863         Prefer set -e to long series of &&.
38864         Restore the initial git branch, not "master".
38865         Properly initialize submodules (don't rely only on bootstrap).
38866         Do not reconfigure blindly, use config.status.
38867         * top/README-release: Update instructions for gnu-web-doc-update.
38869 2012-06-11  Jim Meyering  <meyering@redhat.com>
38871         maint.mk: revert most of the previous change re "all these"
38872         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38873         For rationale, see the discussion at
38874         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38876 2012-06-10  Karl Berry  <karl@gnu.org>
38878         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38880         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38882 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38884         parse-duration: Relicense under LGPLv2+.
38885         * modules/parse-duration (License): Change to LGPLv2+.
38887 2012-06-10  Jim Meyering  <meyering@redhat.com>
38889         maint.mk: prohibit common grammar error: "all these"
38890         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38891         the list of prohibited word sequences.  It should be "all of these".
38892         * lib/tempname.c (__gen_tempname): Fix one of them.
38894 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38896         do-release-commit-and-tag: support VPATH builds
38897         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38898         (noteworthy): Defined earlier to factor its value.
38899         (noteworthy_stub): New.
38900         Use it to factor.
38901         (help_version): Split into...
38902         (help, version): these.
38903         Adjust the option processing part.
38904         Support "--option=value" in addition to "--option value".
38905         (builddir): New.
38906         (--builddir): New option.
38907         * top/README-release: Document this.
38908         Reword slightly so that the reader cannot understand that he
38909         has to do these steps before calling do-release-commit-and-tag.
38911 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38913         readme-release: also require announce-gen and maintainer-makefile
38914         * modules/readme-release (Depends-on): here.
38915         * modules/announce-gen, modules/do-release-commit-and-tag,
38916         modules/gnu-web-doc-update, modules/maintainer-makefile
38917         (Description): Point to readme-release.
38919 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38921         maint.mk: fix VPATH issues.
38922         * top/maint.mk (news-check): GNU Make understand $< very well.
38923         (release-prep): NEWS is in $(srcdir).
38925 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38927         readme-release: require the promoted modules.
38928         * modules/readme-release (Depends-on): Add
38929         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38930         in this text.
38932 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38933             Bruno Haible  <bruno@clisp.org>
38935         error, strerror-override: Support mingw64 from Fedora 17.
38936         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38937         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38938         EINPROGRESS.
38939         * lib/strerror-override.h (strerror_override): Test it.
38940         * lib/strerror-override.c (strerror_override): Likewise.
38941         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38943 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38944             Bruno Haible  <bruno@clisp.org>
38946         error, strerror-override: Support mingw64 from Fedora 17.
38947         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38948         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38949         * lib/strerror-override.h (strerror_override): Test it.
38950         * lib/strerror-override.c (strerror_override): Likewise.
38952 2012-06-03  Bruno Haible  <bruno@clisp.org>
38954         error, strerror-override: Support new errno values from POSIX:2008.
38955         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38956         ENOTRECOVERABLE.
38957         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38958         platforms.
38959         * lib/strerror-override.c (strerror_override): Conditionalize the
38960         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38961         * lib/strerror-override.h (strerror_override): Declare also if
38962         GNULIB_defined_EOWNERDEAD is defined.
38963         * tests/test-errno.c (e130, e131): New variables.
38964         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38965         ENOTRECOVERABLE.
38966         Reported by Paolo Bonzini.
38968 2012-05-31  Jim Meyering  <meyering@redhat.com>
38970         savewd: add missing dependency on sys_wait module
38971         * modules/savewd (Depends-on): Add sys_wait, needed at least
38972         for MSVC.  Report and suggested change by Michael Goffioul.
38974 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38976         system-quote-tests: port to CentOS 5
38977         Problem reported by Tom G. Christensen in
38978         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38979         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38981 2012-05-29  Jim Meyering  <meyering@redhat.com>
38983         maint: fix typos in comments and ChangeLog
38984         Culprits identified and fixed mostly automatically using these commands:
38985         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38986         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38987         using http://github.com/lyda/misspell-check
38988         * ChangeLog: Fix typos.
38989         * doc/solaris-versions: Likewise.
38990         * lib/regexec.c (re_search_stub): Likewise.
38991         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38993 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38995         manywarnings: remove duplicate -Wmultichar entry
38996         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38997         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38998         so keep the entry marked as documented.
39000 2012-05-27  Karl Berry  <karl@gnu.org>
39002         * config/srclist.txt (mktime.c): remove last libc sync,
39003         perhaps just temporarily.
39005 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39007         regex: don't assume uint64_t or uint32_t
39008         * lib/regcomp.c (init_word_char): Don't assume that the types
39009         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39010         them, and on some 32-bit compilers there is no uint64_t.
39011         Problem reported by Gianluigi Tiesi in
39012         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39014 2012-05-25  Jim Meyering  <meyering@redhat.com>
39016         maint.mk: add strncpy-prohibiting syntax-check rule
39017         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39019 2012-05-24  Jim Meyering  <meyering@redhat.com>
39021         maint.mk: compute $(gpg_key_ID) more portably
39022         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39023         That use of sed is not portable to some fringe systems.
39024         Reported by Paul Eggert in
39025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39027 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39029         mktime: sync from glibc
39030         * config/srclist.txt: Uncomment mktime.c.
39031         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39032         First, indent with tabs, since glibc uses tabs and doesn't want to
39033         change and we'd rather be identical to glibc.  Also, two small
39034         coding changes:
39035         (isdst_differ): Use &&, not &, as && is the usual style.
39036         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39037         for clarity.
39039 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39041         announce-gen: du -h is more portable than du --human
39042         * build-aux/announce-gen (sizes): Invoke du with -h instead
39043         of --human.  Accept leading white space in its output.
39045 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39047         announce-gen: Improve diagnostics.
39048         * build-aux/announce-gen: When parsing command line options,
39049         prefer "announce-gen: option --release-type requires an argument"
39050         to "Option release-type requires an argument".
39052 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39054         maint.mk: gpg_key_ID: use sed more portably
39055         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39056         the closing brace.
39057         (refresh-po): Fuse two sed invocations into one.
39059 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39061         gitlog-to-changelog: support the log message format used in Bison.
39062         * build-aux/gitlog-to-changelog: Support --strip-tab and
39063         --strip-cherry-picked.
39065 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39067         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39068         the rest of the current time slice to another thread in the current
39069         process. So if the thread that feeds the file decscriptor we're
39070         polling is not in the current process, we get busy-waiting.
39071         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39072         Patch from Theodore Leblond.
39073         * lib/select.c: Split polling out of the loop that sets the output
39074         fd_sets.  Check for zero result and loop if the wait timeout is
39075         infinite.
39077 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39079         select: Fix build error on IRIX 6.5.
39080         * lib/select.c: Include stddef.h for NULL.
39082 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39084         gc: fix libgcrypt detection on older machines.
39085         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39086         copyright years because the file has been distributed every year
39087         since it was created.
39089 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39091         crypto: fix bug in large buffer handling
39092         Problem reported by Serge Belyshev for glibc in
39093         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39094         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39095         * lib/md4.c (md4_process_block):
39096         * lib/md5.c (md5_process_block):
39097         * lib/sha1.c (sha1_process_block):
39098         * lib/sha256.c (sha256_process_block):
39099         Don't assume the buffer length is less than 2**32.
39100         * lib/sha512.c (sha512_process_block): Likewise.
39101         Here, the bug is present only in the rare case where the host does
39102         not support uint64_t or where size_t is wider than 64 bits.
39103         Use u64size to work around the problems.
39104         * lib/u64.h (u64size): New macro.
39106 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39108         fsusage: fix block size returned on older Linux 2.6
39110         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39111         which is available since Linux 2.6.
39112         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39113         when the member is available so it can be used as a fallback.
39114         * doc/posix-functions/statvfs.texi: Mention the hang issue
39115         on Linux < 2.6.36.
39117 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39119         bootstrap: suppress stderr chatter
39120         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39121         Omit unnecessary chatter to stderr.  The main program chatter
39122         was there only inadvertantly.
39124         bootstrap: .gitignore files created by autopoint, libtool
39125         I ran into this problem when bootstrapping the latest diffutils.
39126         After './bootstrap', 'git status' reported lots of untracked files
39127         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39128         autopoint and do not need to be version-controlled.
39129         * build-aux/bootstrap: Put into .gitignore the files that
39130         autopoint and libtool create, by keeping track of files that exist
39131         after but not before these programs are run.
39132         (version_controlled_file): Move up.  2nd arg is now full file
39133         name, not base name; this is more convenient.  Put CVS at the end,
39134         as it's now somewhat deprecated.
39136 2012-05-14  Jim Meyering  <meyering@redhat.com>
39138         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39139         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39140         definition.  Reported by Bruno Haible.
39142 2012-05-13  Bruno Haible  <bruno@clisp.org>
39143             Paul Eggert  <eggert@cs.ucla.edu>
39145         binary-io: Define set_binary_mode function.
39146         * lib/binary-io.h (set_binary_mode): New function.
39147         (SET_BINARY): Define in terms of set_binary_mode.
39148         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39149         * tests/test-binary-io.c (main): Accept an argument, and test either
39150         set_binary_mode or SET_BINARY depending on the argument.
39151         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39152         argument. Clean up also t-bin-out0.tmp.
39154 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39156         bootstrap: take advantage of POSIX shell features
39158         The 'bootstrap' script offered by Gnulib script already uses POSIX
39159         shell features (like $((...)) arithmetic expansions) that are not
39160         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39161         means that bootstrap must already be run using a proper POSIX shell,
39162         which will thus provide more features, like ${var#pattern} parameter
39163         expansion or inversion of a command exit status with '!'.  We can
39164         thus use these features to improve the clarity and the performances
39165         of the bootstrap script.
39167         Suggested by Eric Blake.
39169         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39170         of sed/expr plus command substitutions, to save some forks.  While
39171         we are at it, prefer the POSIX $(...) form of command substitution,
39172         rather than the legacy form `...` (since the former is visually
39173         clearer and interacts better with quoting), and prefer the idiom:
39174           "if ! CMD; then ACTION ..."
39175         over the idiom:
39176           "if CMD; then :; else ACTION ..."
39177         which was required by legacy Bourne shells not supporting '!'.
39179 2012-05-12  Bruno Haible  <bruno@clisp.org>
39181         system-quote: Add more comments.
39182         * lib/system-quote.h: Add more comments about wilcards and limitations.
39183         Suggested by Eli Zaretskii <eliz@gnu.org>.
39185         sh-quote, system-quote: Add comments about wildcards.
39186         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39187         * lib/system-quote.h: Likewise.
39188         Reported by Eli Zaretskii <eliz@gnu.org>.
39190 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39192         fsusage: check for GNU/Linux statvfs problem dynamically
39193         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39194         Define STAT_STATFS2_BSIZE too, since in this case the code now
39195         checks dynamically whether statvfs is reliable, falling back on
39196         Linux-style statfs otherwise.
39197         (statvfs_works): New function, for dynamically testing statvfs.
39198         (get_fs_usage) [STAT_STATVFS]: Use it.
39199         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39200         statvfs on GNU/Linux hosts, since it's now done dynamically.
39202 2012-05-10  Bruno Haible  <bruno@clisp.org>
39204         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39205         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39206         '?' character.
39207         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39208         * tests/test-system-quote-main.c (check_all): Check also strings like
39209         "??????????".
39210         Reported by Eli Zaretskii <eliz@gnu.org>.
39212 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39214         _Noreturn: port config.h to gcc -Wundef
39215         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39216         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39217         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39219 2012-05-10  Bruno Haible  <bruno@clisp.org>
39221         system-quote: Refactor.
39222         * lib/system-quote.h (system_quote_copy): Fix comment.
39223         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39224         New functions, extracted from system_quote_copy.
39225         (system_quote_length, system_quote_copy): Use these functions.
39226         Reported by Paul Eggert.
39228 2012-05-08  Bruno Haible  <bruno@clisp.org>
39230         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39231         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39233 2012-05-08  Bruno Haible  <bruno@clisp.org>
39235         Tests for module 'system-quote'.
39236         * modules/system-quote-tests: New file.
39237         * tests/test-system-quote.sh: New file.
39238         * tests/test-system-quote-main.c: New file.
39239         * tests/test-system-quote-child.c: New file.
39241         New module 'system-quote'.
39242         * lib/system-quote.h: New file.
39243         * lib/system-quote.c: New file.
39244         * modules/system-quote: New file.
39246 2012-05-08  Bruno Haible  <bruno@clisp.org>
39248         sh-quote: Make C++ safe and allow multiple inclusion.
39249         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39250         declarations in extern "C".
39252 2012-05-08  Bruno Haible  <bruno@clisp.org>
39254         sh-quote tests: Make tests stricter.
39255         * tests/test-sh-quote.c (check_one): Check the return value of
39256         shell_quote_copy.
39257         (main): Check a string with a CR character. Check a string that
39258         contains UCHAR_MAX.
39260 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39262         warnings.m4: provide a means to specify the program to compile.
39263         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39264         (gl_WARN_ADD): here.
39265         Use gl_AS_VAR_APPEND.
39266         Support an argument to specify the program to compile.
39267         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39268         AC_SUBST the WARN_CFLAGS when they are used.
39269         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39270         leave this to gl_WARN_ADD.
39272 2012-05-08  Eric Blake  <eblake@redhat.com>
39274         doc: recommendations on gettext version
39275         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39276         choice between versions.
39277         * DEPENDENCIES (gettext): Cover both approaches.
39279 2012-05-08  Jim Meyering  <meyering@redhat.com>
39281         init.sh: explain why EXEEXT support uses aliases rather than functions
39282         * tests/init.sh: Add a comment.
39284         init.sh: don't let bash aliases interfere with tests
39285         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39286         is bash.  This avoids problems for those who alias standard commands to
39287         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39288         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39290 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39292         stdint: be more consistent with glibc, SunOS libc
39293         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39294         (gl_int_fast16_t, gl_uint_fast16_t)
39295         (gl_int_fast32_t, gl_uint_fast32_t)
39296         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39297         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39298         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39299         Be consistent with glibc by default, and with SunOS 5.10 and later
39300         if __sun is defined.  This lessens the likelihood of clashes if
39301         code compiled for older hosts is combined with code compiled for
39302         newer ones.  Problem reported by Niels Möller in
39303         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39305 2012-05-07  Eric Blake  <eblake@redhat.com>
39307         isatty: relax license to LGPLv2+
39308         * modules/isatty (License): Relax license.
39310 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39312         stat-size: comment fix
39313         * lib/stat-size.h: Remove obsolete comment about indenting.
39315 2012-05-06  Bruno Haible  <bruno@clisp.org>
39317         Tests for module 'sh-quote'.
39318         * modules/sh-quote-tests: New file.
39319         * tests/test-sh-quote.c: New file.
39321 2012-05-06  Bruno Haible  <bruno@clisp.org>
39323         sh-quote: Improve shell_quote_argv's signature.
39324         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39325         * lib/sh-quote.c (shell_quote_argv): Likewise.
39327 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39329         stdint: document issues with int_fast8_t etc.
39330         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39331         stdint.h substitutes may define these types differently.  See
39332         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39334 2012-05-05  Bruno Haible  <bruno@clisp.org>
39336         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39338         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39339         or 'guessing no (mishandles large arguments)'.
39341 2012-05-05  Bruno Haible  <bruno@clisp.org>
39343         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39344         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39345         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39346         set gl_cv_func_link_follows_symlink to "guessing no".
39348 2012-05-05  Bruno Haible  <bruno@clisp.org>
39350         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39351         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39352         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39353         "guessing no".
39354         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39356 2012-05-05  Bruno Haible  <bruno@clisp.org>
39358         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39359         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39360         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39361         set gl_cv_struct_dirent_d_ino to "guessing yes".
39363 2012-05-05  Bruno Haible  <bruno@clisp.org>
39365         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39366         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39367         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39368         "guessing yes".
39370 2012-05-05  Bruno Haible  <bruno@clisp.org>
39372         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39373         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39374         compiling to a glibc system, set gl_cv_func_signbit and
39375         gl_cv_func_signbit_gcc to "guessing yes".
39377 2012-05-05  Bruno Haible  <bruno@clisp.org>
39379         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39380         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39381         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39382         to "guessing yes".
39383         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39384         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39386 2012-05-05  Bruno Haible  <bruno@clisp.org>
39388         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39389         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39390         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39391         gl_cv_func_realpath_works to "guessing yes".
39393 2012-05-05  Bruno Haible  <bruno@clisp.org>
39395         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39397         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39399 2012-05-04  Bruno Haible  <bruno@clisp.org>
39401         Tweak last commit.
39402         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39403         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39405 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39407         unistd_h: make it easier to avoid sys_types_h
39408         This is useful for Emacs, which has its own method of porting to
39409         Windows, and which therefore does not need the sys_types_h module.
39410         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39411         code moved here from gl_SYS_TYPES_H.
39412         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39413         using the code directly.
39414         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39415         gl_SYS_TYPES_H.
39416         * modules/sys_types (Files):
39417         * modules/unistd (Files): Add m4/off_t.m4.
39419 2012-05-03  Bruno Haible  <bruno@clisp.org>
39421         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39422         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39423         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39424         "guessing yes" or "guessing no".
39425         (gl_FUNC_LSTAT): Update.
39426         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39427         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39428         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39430 2012-05-03  Bruno Haible  <bruno@clisp.org>
39432         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39433         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39434         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39435         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39436         cross-compiling, choose the first alternative on glibc systems.
39437         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39439 2012-05-03  Bruno Haible  <bruno@clisp.org>
39441         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39442         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39443         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39445 2012-05-03  Bruno Haible  <bruno@clisp.org>
39447         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39448         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39450 2012-05-03  Bruno Haible  <bruno@clisp.org>
39452         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39453         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39454         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39455         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39456         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39457         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39458         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39459         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39460         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39461         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39462         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39463         gl_cv_func_chown_ctime_works to "guessing yes".
39464         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39465         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39466         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39467         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39468         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39470         compiling to glibc systems, set gl_cv_func_open_directory_works to
39471         "guessing yes".
39472         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39473         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39474         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39475         "guessing yes".
39476         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39477         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39478         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39479         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39480         "guessing yes".
39481         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39482         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39483         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39484         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39485         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39486         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39487         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39488         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39489         "guessing yes".
39490         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39491         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39492         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39493         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39494         "guessing yes".
39495         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39496         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39497         "guessing yes".
39498         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39499         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39500         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39501         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39502         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39503         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39504         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39505         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39506         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39507         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39508         "guessing yes".
39509         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39510         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39511         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39512         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39513         "guessing yes".
39514         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39515         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39516         "guessing yes".
39517         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39518         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39519         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39520         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39521         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39522         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39523         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39524         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39525         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39526         "guessing yes".
39527         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39528         compiling to glibc systems, set gl_cv_func_mknod_works to
39529         "guessing yes".
39530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39531         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39532         "guessing yes".
39533         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39534         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39535         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39536         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39537         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39538         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39539         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39540         compiling to glibc systems, set gl_cv_func_svid_putenv to
39541         "guessing yes".
39542         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39543         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39544         "guessing yes".
39545         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39546         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39547         "guessing yes".
39548         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39549         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39550         to "guessing yes".
39551         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39552         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39553         to "guessing yes".
39554         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39555         compiling to glibc systems, set gl_cv_func_rmdir_works to
39556         "guessing yes".
39557         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39558         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39559         gl_cv_func_unlink_parent_fails to "guessing yes".
39560         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39561         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39562         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39563         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39564         gl_cv_func_rename_dest_works to "guessing yes".
39565         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39566         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39568         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39569         "guessing yes".
39570         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39571         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39572         "guessing yes".
39573         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39574         compiling to glibc systems, set gl_cv_func_setenv_works to
39575         "guessing yes".
39576         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39577         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39578         "guessing yes".
39579         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39580         compiling to glibc systems, set gl_cv_func_sleep_works to
39581         "guessing yes".
39582         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39583         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39584         "guessing yes".
39585         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39586         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39587         "guessing yes".
39588         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39589         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39590         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39591         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39592         "guessing yes".
39593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39594         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39595         "guessing yes".
39596         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39597         compiling to glibc systems, set gl_cv_func_usleep_works to
39598         "guessing yes".
39599         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39600         compiling to glibc systems, set gl_cv_func_futimesat_works to
39601         "guessing yes".
39603 2012-05-03  Bruno Haible  <bruno@clisp.org>
39605         Say "guessing yes" or "guessing no" when cross-compiling.
39606         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39607         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39608         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39609         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39610         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39611         am_cv_func_working_getline to "guessing yes" or "guessing no".
39612         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39613         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39614         (gl_FUNC_MEMMEM): When cross-compiling, set
39615         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39617         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39619         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39620         "guessing no".
39621         (gl_FUNC_STRCASESTR): When cross-compiling, set
39622         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39623         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39624         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39625         (gl_FUNC_STRSTR): When cross-compiling, set
39626         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39627         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39628         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39629         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39630         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39632 2012-05-01  Bruno Haible  <bruno@clisp.org>
39634         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39635         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39636         * build-aux/reloc-ldflags: Likewise.
39637         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39639 2012-05-01  Bruno Haible  <bruno@clisp.org>
39641         gnulib-tool: Remove transitional code.
39642         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39643         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39645 2012-05-01  Bruno Haible  <bruno@clisp.org>
39647         getcwd: Fix misindentation.
39648         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39650 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39652         exclude: process exclude and include directives in order
39653         This restores the pre-2009 behavior, and is part of a fix of a
39654         grep bug reported by Quentin Arce in
39655         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39656         * lib/exclude.c (struct exclude): Remove 'tail' member.
39657         (new_exclude_segment): Prepend the new segment instead of appending.
39658         Return void, since that's now more convenient.
39659         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39660         (file_name_matches): Renamed from excluded_file_name_p.
39661         (file_pattern_matches, file_name_matches):
39662         Return true if the pattern matches, not if it excludes.
39663         All callers changed.
39664         (excluded_file_name): Process the list in reverse order;
39665         since the list is now reversed this restores the pre-2009 behavior.
39666         (add_exclude): Adjust to new reversed-order list.  Use local var
39667         rather than macro, for clarity.
39668         * tests/test-exclude7.sh: Adjust to corrected behavior.
39670         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39671         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39672         it's not possible here.  Handle the case of \ at end of pattern
39673         without dumping core.
39674         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39676         _Noreturn: future-proof non-GNU and non-MSVC compilers
39677         * build-aux/snippet/_Noreturn.h (_Noreturn):
39678         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39679         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39680         C11 or later.  This is more likely to work with random future C
39681         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39682         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39684         exclude: handle wildcards with FNM_EXTMATCH
39685         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39686         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39687         comment that "has wildcards" really means "has or may have
39688         wildcards".  Simplify by avoiding the need to call strcspn.
39690 2012-04-29  Bruno Haible  <bruno@clisp.org>
39692         gnulib-tool: Fix list of authors.
39693         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39695 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39697         bootstrap: support Automake-NG in $buildreq
39698         * bootstrap (check_versions): Handle automake and aclocal from
39699         Automake-NG specially.  They can be specified as respectively
39700         the "automake-ng" and "aclocal-ng" requirements.
39702 2012-04-25  Eric Blake  <eblake@redhat.com>
39704         bootstrap: only force latest Makefile.in.in for gettext module
39705         * build-aux/bootstrap (with_gettext): Only install latest
39706         Makefile.in.in for projects requesting bleeding edge gettext.
39708 2012-04-22  Bruno Haible  <bruno@clisp.org>
39710         doc: Mention reason for replacement on glibc/Linux systems.
39711         * doc/posix-functions/dprintf.texi: Mention the problem with special
39712         'long double' values.
39713         * doc/posix-functions/fprintf.texi: Likewise.
39714         * doc/posix-functions/printf.texi: Likewise.
39715         * doc/posix-functions/snprintf.texi: Likewise.
39716         * doc/posix-functions/sprintf.texi: Likewise.
39717         * doc/posix-functions/vdprintf.texi: Likewise.
39718         * doc/posix-functions/vfprintf.texi: Likewise.
39719         * doc/posix-functions/vprintf.texi: Likewise.
39720         * doc/posix-functions/vsnprintf.texi: Likewise.
39721         * doc/posix-functions/vsprintf.texi: Likewise.
39722         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39723         platforms with F_DUPFD_CLOEXEC problems.
39724         * doc/posix-functions/glob.texi: Mention which platforms are affected
39725         by the problem with symbolic links.
39726         * doc/posix-functions/linkat.texi: Mention the problem with
39727         AT_SYMLINK_FOLLOW on Linux.
39729 2012-04-22  Bruno Haible  <bruno@clisp.org>
39731         pwrite: Don't replace on all platforms.
39732         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39734 2012-04-22  Bruno Haible  <bruno@clisp.org>
39736         rint* tests: Avoid gcc warnings.
39737         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39738         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39739         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39741 2012-04-21  Bruno Haible  <bruno@clisp.org>
39743         users.txt: Update.
39744         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39745         switched from CVS to git, bzr, or svn.
39747 2012-04-21  Bruno Haible  <bruno@clisp.org>
39749         Large File Support for native Windows platforms.
39751         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39752         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39754         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39755         type.
39756         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39757         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39758         * doc/posix-headers/sys_types.texi: Mention the effect of the
39759         'largefile' module.
39761         * lib/fcntl.in.h: Add comments about off_t.
39762         * modules/fcntl-h (Depends-on): Add sys_types.
39764         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39765         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39766         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39767         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39768         * modules/unistd (Depends-on): Add sys_types.
39769         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39771         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39772         instead of lseek.
39773         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39774         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39775         * modules/lseek (Depends-on): Add sys_types.
39777         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39778         msvc-nothrow.h.
39779         (SetFileSize): New function.
39780         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39781         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39782         if Large File Support is requested.
39783         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39784         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39786         * lib/stdio.in.h: Add comments about off_t.
39787         * modules/stdio (Depends-on): Add sys_types.
39789         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39790         instead of ftello.
39791         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39792         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39793         (gl_PREREQ_FTELLO): New macro.
39794         * modules/ftello (Depends-on): Add sys_types.
39795         (configure.ac): Incoke gl_PREREQ_FTELLO.
39797         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39798         instead of fseeko.
39799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39800         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39801         (gl_PREREQ_FSEEKO): New macro.
39802         * modules/fseeko (Depends-on): Add sys_types.
39803         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39805         * lib/sys_stat.in.h: Add comments about off_t.
39806         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39807         64-bit integer for st_size in 'struct stat'.
39808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39809         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39810         * modules/sys_stat (Depends-on): Add sys_types.
39811         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39813         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39814         instead of stat or _stat.
39816         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39817         'struct _stati64' instead of fstat and 'struct stat'.
39818         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39819         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39821         Reported by Ray Satiro <raysatiro@yahoo.com>.
39823 2012-04-19  Eric Blake  <eblake@redhat.com>
39825         bootstrap: accommodate older libtool
39826         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39827         Reported by Daniel P. Berrange.
39829 2012-04-19  Jim Meyering  <meyering@redhat.com>
39831         announce-gen: avoid failure due to lack of Digest::SHA1
39832         Even with the preferred Digest::SHA available, this script
39833         would fail when the backup module, Digest::SHA1, was not installed.
39834         * build-aux/announce-gen: Quote the conditional use of "use".
39835         Reported by Reuben Thomas in:
39836         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39838         bootstrap: don't let a user's CDPATH setting affect this script
39839         When CDPATH is set, cd will sometimes generate output.
39840         When "cd" is run in a subshell whose output matters, that
39841         surprising-to-some output can cause malfunction.
39842         Unsetting CDPATH turns off this shell "feature."
39843         * build-aux/bootstrap (CDPATH): Unset.
39844         Reported by Reuben Thomas in:
39845         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39846         and inspired by his patch here:
39847         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39849 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39850         and Jim Meyering  <meyering@redhat.com>
39852         maint.mk: catch "see @xref{}" and similar
39853         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39854         prohibit "See also @xref{", "Also see @pxref{", and similar.
39856 2012-04-16  Jim Meyering  <meyering@redhat.com>
39858         bootstrap: really use gnulib's po/Makefile.in.in
39859         * build-aux/bootstrap: Correct the source file name in previous change.
39860         Reported by Akim Demaille.
39862         configmake: correct minor inconsistency in Makefile rule
39863         * modules/configmake (Makefile.am): All other rules like this one
39864         run the final "mv -f ..." in the same backslash-continued command
39865         as the one that does everything else.  This one put the mv -f ...
39866         command on a separate, non-backslash-continued line.
39867         Make it like the others.
39869         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39870         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39871         the one from gettext.  Reported by Akim Demaille.
39873 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39875         Fix recursion of install-* into po directories.
39876         Bison's install-pdf bug reported by Hans Aberg at
39877         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39878         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39879         (install-info, install-pdf, install-ps): New targets.
39881 2012-04-16  Jim Meyering  <meyering@redhat.com>
39883         maint: avoid spurious "make sc_maint" failure
39884         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39885         exempt all *.class file names, for lib/javaversion.class.
39887 2012-04-15  Bruno Haible  <bruno@clisp.org>
39889         lseek: Make configure test independent of environment.
39890         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39891         Windows, we know that lseek() on pipes is broken; skip the runtime
39892         test.
39894 2012-04-14  Bruno Haible  <bruno@clisp.org>
39896         stat: Bypass buggy override in mingw64.
39897         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39898         * lib/stat.c (stat) [mingw64]: Define to _stat.
39899         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39901 2012-04-14  Bruno Haible  <bruno@clisp.org>
39903         pathmax: Fix compilation error on MSVC 9.
39904         * modules/pathmax (Depends-on): Add unistd.
39906 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39908         README: document pointer comparison assumption
39909         * README (Portability guidelines): Document assumption about
39910         pointer comparisons, in response to a recent bug-gnulib comment by
39911         Jeffrey Kegler.
39913 2012-04-12  Bruno Haible  <bruno@clisp.org>
39915         Tests for module 'getrusage'.
39916         * modules/getrusage-tests: New file.
39917         * tests/test-getrusage.c: New file.
39919         New module 'getrusage'.
39920         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39921         warn-on-use.h.
39922         (getrusage): New declaration.
39923         * lib/getrusage.c: New file.
39924         * m4/getrusage.m4: New file.
39925         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39926         is declared.
39927         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39928         HAVE_GETRUSAGE.
39929         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39930         snippet/c++defs, snippet/warn-on-use.
39931         (Makefile.am): Update generation of sys/resource.h. Substitute
39932         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39933         * modules/getrusage: New file.
39934         * doc/posix-functions/getrusage.texi: Mention the new module.
39936 2012-04-12  Bruno Haible  <bruno@clisp.org>
39938         Tests for module 'sys_resource'.
39939         * modules/sys_resource-tests: New file.
39940         * tests/test-sys_resource.c: New file.
39942         New module 'sys_resource'.
39943         * lib/sys_resource.in.h: New file.
39944         * m4/sys_resource_h.m4: New file.
39945         * modules/sys_resource: New file.
39946         * doc/posix-headers/sys_resource.texi: Mention the new module.
39948 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39950         ioctl: Fix compilation error on mingw.
39951         * lib/ioctl.c: Include <windows.h>.
39952         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39954 2012-04-04  Jim Meyering  <meyering@redhat.com>
39956         regex: correct #pragma guard expression
39957         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39958         not 4.3.  Correct its cpp guard expression.
39960 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39962         regex: remove unnecessary type punning
39963         Problem reported by Vladimir Serbinenko in
39964         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39965         * lib/regex.h (struct re_pattern_buffer): Change the type of
39966         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39967         Fix comment to match code.
39968         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39969         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39970         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39971         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39972         (set_regs):
39973         Omit no-longer-necessary casts.
39975 2012-04-03  Bruno Haible  <bruno@clisp.org>
39977         Tests for module 'ilogbl'.
39978         * modules/ilogbl-tests: New file.
39979         * tests/test-ilogbl.c: New file.
39981         New module 'ilogbl'.
39982         * lib/math.in.h (ilogbl): New declaration.
39983         * lib/ilogbl.c: New file.
39984         * m4/ilogbl.m4: New file.
39985         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39987         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39988         Split sed invocation, to avoid the limit of 100 substitutions of
39989         HP-UX 'sed'.
39990         * modules/ilogbl: New file.
39991         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39992         * doc/posix-functions/ilogbl.texi: Mention the new module.
39994 2012-04-03  Bruno Haible  <bruno@clisp.org>
39996         Tests for module 'ilogbf'.
39997         * modules/ilogbf-tests: New file.
39998         * tests/test-ilogbf.c: New file.
40000         New module 'ilogbf'.
40001         * lib/math.in.h (ilogbf): New declaration.
40002         * lib/ilogbf.c: New file.
40003         * m4/ilogbf.m4: New file.
40004         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40006         REPLACE_ILOGBF.
40007         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40008         REPLACE_ILOGBF.
40009         * modules/ilogbf: New file.
40010         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40011         * doc/posix-functions/ilogbf.texi: Mention the new module.
40013 2012-04-03  Bruno Haible  <bruno@clisp.org>
40015         Tests for module 'ilogb'.
40016         * modules/ilogb-tests: New file.
40017         * tests/test-ilogb.c: New file.
40018         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40019         tests/test-logb-ieee.h.
40021         New module 'ilogb'.
40022         * lib/math.in.h (ilogb): New declaration.
40023         * lib/ilogb.c: New file.
40024         * m4/ilogb.m4: New file.
40025         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40027         REPLACE_ILOGB.
40028         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40029         REPLACE_ILOGB.
40030         * modules/ilogb: New file.
40031         * tests/test-math-c++.cc: Check the declaration of ilogb.
40032         * doc/posix-functions/ilogb.texi: Mention the new module.
40034 2012-04-03  Bruno Haible  <bruno@clisp.org>
40036         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40037         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40038         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40039         (main): Check their values.
40040         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40041         problem.
40043 2012-04-03  Bruno Haible  <bruno@clisp.org>
40045         Tests for module 'logbl-ieee'.
40046         * modules/logbl-ieee-tests: New file.
40047         * tests/test-logbl-ieee.c: New file.
40049         New module 'logbl-ieee'.
40050         * modules/logbl-ieee: New file.
40052         Tests for module 'logb-ieee'.
40053         * modules/logb-ieee-tests: New file.
40054         * tests/test-logb-ieee.c: New file.
40056         New module 'logb-ieee'.
40057         * modules/logb-ieee: New file.
40059         Tests for module 'logbf-ieee'.
40060         * modules/logbf-ieee-tests: New file.
40061         * tests/test-logbf-ieee.c: New file.
40062         * tests/test-logb-ieee.h: New file.
40064         New module 'logbf-ieee'.
40065         * modules/logbf-ieee: New file.
40067 2012-04-03  Bruno Haible  <bruno@clisp.org>
40069         Tests for module 'logbl'.
40070         * modules/logbl-tests: New file.
40071         * tests/test-logbl.c: New file.
40073         New module 'logbl'.
40074         * lib/math.in.h (logbl): New declaration.
40075         * lib/logbl.c: New file.
40076         * m4/logbl.m4: New file.
40077         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40079         REPLACE_LOGBL.
40080         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40081         REPLACE_LOGBL.
40082         * modules/logbl: New file.
40083         * tests/test-math-c++.cc: Check the declaration of logbl.
40084         * doc/posix-functions/logbl.texi: Mention the new module.
40086 2012-04-02  Bruno Haible  <bruno@clisp.org>
40088         Tests for module 'logbf'.
40089         * modules/logbf-tests: New file.
40090         * tests/test-logbf.c: New file.
40092         New module 'logbf'.
40093         * lib/math.in.h (logbf): New declaration.
40094         * lib/logbf.c: New file.
40095         * m4/logbf.m4: New file.
40096         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40098         REPLACE_LOGBF.
40099         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40100         REPLACE_LOGBF.
40101         * modules/logbf: New file.
40102         * tests/test-math-c++.cc: Check the declaration of logbf.
40103         * doc/posix-functions/logbf.texi: Mention the new module.
40105 2012-04-02  Bruno Haible  <bruno@clisp.org>
40107         logb tests: More tests.
40108         * tests/test-logb.h: New file, based on tests/test-logb.c and
40109         tests/test-frexp.h.
40110         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40111         (main): Just invoke test_function.
40112         * modules/logb-tests (Files): Add tests/test-logb.h,
40113         tests/minus-zero.h, tests/randomd.c.
40114         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40116         logb: Provide replacement and workarounds.
40117         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40118         is 1.
40119         * lib/logb.c: New file.
40120         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40121         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40123         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40124         * modules/logb (Files): Add lib/logb.c.
40125         (Depends-on): Add isfinite, frexp, isnand.
40126         (configure.ac): Compile the replacement code logb.c if needed.
40127         * tests/test-math-c++.cc: Check the declaration of logb.
40128         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40129         with subnormal numbers.
40131 2012-04-02  Bruno Haible  <bruno@clisp.org>
40133         log10* tests: Speed up.
40134         * tests/test-log10.h (test_function): Reduce amount of random numbers
40135         to test.
40137 2012-04-01  Bruno Haible  <bruno@clisp.org>
40139         logf-ieee: Fix test whether logf works.
40140         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40142 2012-04-01  Bruno Haible  <bruno@clisp.org>
40144         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40145         * lib/log10l.c: Include <float.h>
40146         (log10l): On IRIX, normalize the +Infinity value.
40147         * modules/log10l (Depends-on): Add 'float'.
40148         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40149         +Infinity.
40151         log10f-ieee: Work around test failure on NetBSD 5.1.
40152         * m4/log10f-ieee.m4: New file.
40153         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40154         test whether log10f works with a negative argument. Replace it if not.
40155         * lib/log10f.c (log10f): For negative arguments, return NaN.
40156         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40157         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40158         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40160         log10f-ieee: Work around test failure on Solaris 9.
40161         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40162         (configure.ac): Require gl_FUNC_LOG10F.
40164         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40165         * m4/log10-ieee.m4: New file.
40166         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40167         whether log10 works with a negative argument. Replace it if not.
40168         * lib/log10.c (log10): For negative arguments, return NaN.
40169         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40170         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40171         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40173         Tests for module 'log10l-ieee'.
40174         * modules/log10l-ieee-tests: New file.
40175         * tests/test-log10l-ieee.c: New file.
40177         New module 'log10l-ieee'.
40178         * modules/log10l-ieee: New file.
40180         Tests for module 'log10-ieee'.
40181         * modules/log10-ieee-tests: New file.
40182         * tests/test-log10-ieee.c: New file.
40184         New module 'log10-ieee'.
40185         * modules/log10-ieee: New file.
40187         Tests for module 'log10f-ieee'.
40188         * modules/log10f-ieee-tests: New file.
40189         * tests/test-log10f-ieee.c: New file.
40190         * tests/test-log10-ieee.h: New file.
40192         New module 'log10f-ieee'.
40193         * modules/log10f-ieee: New file.
40195 2012-04-01  Bruno Haible  <bruno@clisp.org>
40197         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40198         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40199         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40200         workaround.
40201         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40202         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40204         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40205         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40206         (Depends-on): Update conditions.
40207         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40208         IRIX 6.5, OSF/1 5.1 problems.
40210 2012-04-01  Bruno Haible  <bruno@clisp.org>
40212         log10f: Work around OSF/1 5.1 bug.
40213         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40214         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40215         workaround.
40216         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40217         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40219         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40220         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40221         (Depends-on): Update conditions.
40222         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40224 2012-04-01  Bruno Haible  <bruno@clisp.org>
40226         log10: Work around OSF/1 5.1 bug.
40227         * lib/math.in.h (log10): New declaration.
40228         * lib/log10.c: New file.
40229         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40230         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40231         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40233         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40234         * modules/log10 (Files): Add lib/log10.c.
40235         (Depends-on): Add math.
40236         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40237         * tests/test-math-c++.cc: Check the declaration of log10.
40238         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40240 2012-03-31  Bruno Haible  <bruno@clisp.org>
40242         log10l tests: More tests.
40243         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40244         tests/minus-zero.h, tests/randoml.c.
40245         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40246         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40247         (main): Invoke test_function.
40249         log10f tests: More tests.
40250         * modules/log10f-tests (Files): Add tests/test-log10.h,
40251         tests/minus-zero.h, tests/randomf.c.
40252         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40253         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40254         (main): Invoke test_function.
40256         log10 tests: More tests.
40257         * tests/test-log10.h: New file.
40258         * modules/log10-tests (Files): Add tests/test-log10.h,
40259         tests/minus-zero.h, tests/randomd.c.
40260         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40261         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40262         (main): Invoke test_function.
40264 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40266         fflush: Fix syntax error.
40267         * lib/fflush.c: Include unused-parameter.h, needed for
40268         _GL_UNUSED_PARAMETER.
40269         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40271 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40273         regex: pacify GCC when compiling GRUB
40274         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40275         a diagnostic.  Reported by Vladimir Serbinenko in
40276         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40278 2012-03-29  Eric Blake  <eblake@redhat.com>
40280         stdio: don't assume gets any more
40281         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40282         support.
40283         * modules/stdio (Makefile.am): Likewise.
40284         * lib/stdio-read.c (gets): Likewise.
40285         * tests/test-stdio-c++.cc: Likewise.
40286         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40287         * lib/stdio.in.h (gets): Make warning occur in more places.
40288         * doc/posix-functions/gets.texi (gets): Update documentation.
40289         Reported by Christer Solskogen.
40291         maint.mk: fix syntax checks without exclusions
40292         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40293         Reported by Daniel P. Berrange.
40295         strerror_r: avoid compiler warning
40296         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40297         level.
40299         fflush: avoid compiler warning
40300         * lib/fflush.c (update_fpos_cache): Mark variables that are
40301         potentially unused.
40303 2012-03-25  Bruno Haible  <bruno@clisp.org>
40305         Tests for module 'localeconv'.
40306         * modules/localeconv-tests: New file.
40307         * tests/test-localeconv.c: New file.
40309         New module 'localeconv'.
40310         * lib/locale.in.h (localeconv): New declaration.
40311         * lib/localeconv.c: New file.
40312         * m4/localeconv.m4: New file.
40313         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40314         REPLACE_LOCALECONV.
40315         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40316         REPLACE_LOCALECONV.
40317         * modules/localeconv: New file.
40318         * modules/nl_langinfo (Depends-on): Add localeconv.
40319         * modules/human (Depends-on): Likewise.
40320         * doc/posix-functions/localeconv.texi: Mention the new module.
40322 2012-03-25  Bruno Haible  <bruno@clisp.org>
40324         locale: Provide a complete 'struct lconv'.
40325         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40326         'struct lconv' does not contain int_p_cs_precedes.
40327         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40328         * doc/posix-headers/locale.texi: Update.
40330         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40331         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40332         * doc/posix-headers/locale.texi: Update.
40334         locale: Provide a working 'struct lconv'.
40335         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40336         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40337         'struct lconv' does not even contain decimal_point.
40338         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40339         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40340         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40341         * doc/posix-headers/locale.texi: Mention the problems with
40342         'struct lconv'.
40343         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40345 2012-03-24  Bruno Haible  <bruno@clisp.org>
40347         Enable common subexpression optimization in GCC.
40348         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40349         macros.
40350         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40351         GCC attribute 'const'.
40352         (uc_locale_language): Declare with GCC attribute 'pure'.
40353         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40354         with GCC attribute 'const'.
40355         * lib/unictype.in.h (uc_is_general_category_withtable,
40356         uc_combining_class, uc_combining_class_name,
40357         uc_combining_class_long_name, uc_bidi_class_name,
40358         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40359         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40360         uc_decimal_value, uc_digit_value, uc_numeric_value,
40361         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40362         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40363         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40364         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40365         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40366         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40367         Declare with GCC attribute 'const'.
40368         (uc_general_category_name, uc_general_category_long_name,
40369         uc_general_category_byname, uc_general_category,
40370         uc_is_general_category, uc_combining_class_byname,
40371         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40372         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40373         Declare with GCC attribute 'pure'.
40374         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40375         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40376         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40377         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40378         with GCC attribute 'pure'.
40379         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40380         'const'.
40381         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40382         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40383         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40384         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40385         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40386         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40387         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40388         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40389         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40390         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40391         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40392         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40393         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40394         GCC attribute 'pure'.
40395         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40396         'const'.
40397         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40398         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40399         u32_strwidth): Declare with GCC attribute 'pure'.
40401         Enable common subexpression optimization in GCC.
40402         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40403         (alphasort): Declare with GCC attribute 'pure'.
40404         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40405         (atoll): Declare with GCC attribute 'pure'.
40406         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40407         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40408         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40409         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40410         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40411         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40412         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40414 2012-03-24  Bruno Haible  <bruno@clisp.org>
40416         gnulib-tool: Avoid unintended error output from 'cmp'.
40417         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40418         "cmp -s", not "cmp > /dev/null".
40420 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40422         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40424         It's not just Automake versions < 1.9b that creates an empty
40425         pkgdatadir at installation time if pkgdata_DATA is specified
40426         to empty; modern automake versions do this as well, at least
40427         until automake 1.11.4 (not yet released at the moment of writing,
40428         but soon to appear).  That behaviour was generally considered a
40429         feature rather than a bug, at least until this discussion:
40430         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40432         See also automake bugs #10997 and #11030.
40434         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40435         reference to relevant automake bug numbers.
40436         (func_emit_tests_Makefile_am): Likewise.
40438 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40440         announce-gen: use Digest::SHA when possible
40441         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40442         back to Digest::SHA1 if necessary.
40444 2012-03-20  Jim Meyering  <meyering@redhat.com>
40446         tests: avoid gcc warnings about argv vs. const initializers
40447         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40448         warnings about discarding 'const' qualifier from pointer target type.
40449         * tests/test-posix_spawn2.c (main): Likewise.
40451 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40453         README-release: simplify slightly
40454         * top/README-release: Run "git checkout master" only once.
40456 2012-03-15  Mark Wielaard  <mark@klomp.org>
40458         git-merge-changelog: add specific example on how to use with hg.
40459         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40461 2012-03-18  Mark Wielaard  <mark@klomp.org>
40463         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40465 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40467         git-version-gen: don't let "prefix" envvar cause trouble
40468         * build-aux/git-version-gen (prefix): Initialize properly,
40469         so as not to use a value specified via the environment.
40470         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40472 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40474         regex: diagnose too-large repeat counts in EREs
40475         Previously, the code did not diagnose the too-large repeat count
40476         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40477         as if it were 'b\{1000000000}', which is unexpected.
40478         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40479         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40480         is a reasonable one for this problem.  Another option would be to
40481         create a new REG_OVERFLOW error for repeat counts that are too large.
40482         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40483         count is too large, so that the caller can distinguish the two cases.
40484         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40485         "Too large" return code, and that repeat counts are one example of this.
40487 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40489         doc: some glibc x32 integer width issues
40490         * doc/posix-headers/sys_types.texi (sys/types.h):
40491         * doc/posix-headers/time.texi (time.h):
40492         Mention that glibc x32 does not conform to POSIX in a couple of
40493         areas related to integer widths.
40495 2012-03-15  Bruno Haible  <bruno@clisp.org>
40497         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40498         * lib/fma.c (VOLATILE): New macro.
40499         (FUNC): Use it to work around a GCC compiler bug.
40501 2012-03-13  Bruno Haible  <bruno@clisp.org>
40503         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40504         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40505         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40506         REPLACE_HYPOTL to 1.
40507         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40509 2012-03-13  Bruno Haible  <bruno@clisp.org>
40511         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40512         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40513         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40514         REPLACE_REMAINDERL to 1.
40515         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40516         bug.
40518 2012-03-13  Bruno Haible  <bruno@clisp.org>
40520         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40521         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40522         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40523         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40524         too big rounding errors.
40525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40526         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40527         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40528         (Depends-on): Update conditions.
40529         * tests/test-sqrtl.c (my_ldexpl): New function.
40530         (main): Add test of a particular value.
40531         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40533 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40535         doc: Update timer_* platform portability notes.
40536         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40537         that always return ENOSYS.
40538         * doc/posix-functions/timer_delete.texi: Likewise.
40539         * doc/posix-functions/timer_gettime.texi: Likewise.
40540         * doc/posix-functions/timer_settime.texi: Likewise.
40542 2012-03-13  Bruno Haible  <bruno@clisp.org>
40544         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40545         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40546         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40547         REPLACE_CBRTL to 1.
40548         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40550 2012-03-13  Bruno Haible  <bruno@clisp.org>
40552         remainderl: Avoid compilation error on AIX >= 5.2.
40553         * lib/math.in.h (remainderl): Undefine macro from the system header.
40555 2012-03-13  Bruno Haible  <bruno@clisp.org>
40557         Avoid compilation errors with MSVC option -fp:strict.
40558         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40559         * lib/cbrtf.c: Likewise.
40560         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40562 2012-03-12  Bruno Haible  <bruno@clisp.org>
40564         uninorm: Don't crash in out-of-memory conditions.
40565         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40566         gracefully.
40567         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40568         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40570 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40572         quote: fix syntax-check
40573         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40574         also exports quote_quoting_options.
40576 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40578         Collapse list of copyright years to ranges.  See
40579         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40580         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40581         build-aux/csharpexec.sh.in, build-aux/gnupload,
40582         build-aux/install-reloc, build-aux/javacomp.sh.in,
40583         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40584         build-aux/move-if-change, build-aux/reloc-ldflags,
40585         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40587 2012-03-11  Bruno Haible  <bruno@clisp.org>
40589         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40590         * m4/log2f-ieee.m4: New file.
40591         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40592         whether log2f works with a minus zero argument. Replace it if not.
40593         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40594         (Depends-on): Add log2-ieee.
40595         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40596         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40598         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40599         * m4/log2-ieee.m4: New file.
40600         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40601         whether log2 works with a minus zero argument. Replace it if not.
40602         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40603         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40604         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40606         Tests for module 'log2l-ieee'.
40607         * modules/log2l-ieee-tests: New file.
40608         * tests/test-log2l-ieee.c: New file.
40610         New module 'log2l-ieee'.
40611         * modules/log2l-ieee: New file.
40613         Tests for module 'log2-ieee'.
40614         * modules/log2-ieee-tests: New file.
40615         * tests/test-log2-ieee.c: New file.
40617         New module 'log2-ieee'.
40618         * modules/log2-ieee: New file.
40620         Tests for module 'log2f-ieee'.
40621         * modules/log2f-ieee-tests: New file.
40622         * tests/test-log2f-ieee.c: New file.
40623         * tests/test-log2-ieee.h: New file.
40625         New module 'log2f-ieee'.
40626         * modules/log2f-ieee: New file.
40628 2012-03-11  Bruno Haible  <bruno@clisp.org>
40630         Tests for module 'log2l'.
40631         * modules/log2l-tests: New file.
40632         * tests/test-log2l.c: New file.
40634         New module 'log2l'.
40635         * lib/math.in.h (log2l): New declaration.
40636         * lib/log2l.c: New file.
40637         * m4/log2l.m4: New file.
40638         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40640         REPLACE_LOG2L.
40641         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40642         REPLACE_LOG2L.
40643         * modules/log2l: New file.
40644         * tests/test-math-c++.cc: Check the declaration of log2l.
40645         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40646         and OSF/1 problems.
40648 2012-03-11  Bruno Haible  <bruno@clisp.org>
40650         Tests for module 'log2f'.
40651         * modules/log2f-tests: New file.
40652         * tests/test-log2f.c: New file.
40654         New module 'log2f'.
40655         * lib/math.in.h (log2f): New declaration.
40656         * lib/log2f.c: New file.
40657         * m4/log2f.m4: New file.
40658         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40660         REPLACE_LOG2F.
40661         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40662         REPLACE_LOG2F.
40663         * modules/log2f: New file.
40664         * tests/test-math-c++.cc: Check the declaration of log2f.
40665         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40666         and OSF/1 and Cygwin problems.
40668 2012-03-11  Bruno Haible  <bruno@clisp.org>
40670         Tests for module 'log2'.
40671         * modules/log2-tests: New file.
40672         * tests/test-log2.c: New file.
40673         * tests/test-log2.h: New file.
40675         New module 'log2'.
40676         * lib/math.in.h (log2): New declaration.
40677         * lib/log2.c: New file.
40678         * m4/log2.m4: New file.
40679         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40681         REPLACE_LOG2.
40682         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40683         REPLACE_LOG2.
40684         * modules/log2: New file.
40685         * tests/test-math-c++.cc: Check the declaration of log2.
40686         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40687         and OSF/1 and Cygwin problems.
40689 2012-03-11  Bruno Haible  <bruno@clisp.org>
40691         exp2* tests: More tests.
40692         * tests/test-exp2.h (test_function): Test all integral arguments that
40693         don't need to overflow or denormalized numbers.
40694         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40695         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40696         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40698 2012-03-10  Bruno Haible  <bruno@clisp.org>
40700         log1pl-ieee: Work around test failure on AIX 7.1.
40701         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40703         log1pl-ieee: Work around test failure on IRIX 6.5.
40704         * m4/log1pl-ieee.m4: New file.
40705         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40706         test whether log1pl works with a minus zero argument. Replace it if
40707         not.
40708         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40710         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40711         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40712         (Depends-on): Update conditions.
40713         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40714         m4/signbit.m4.
40715         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40716         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40718         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40719         * m4/log1pf-ieee.m4: New file.
40720         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40721         test whether log1pf works with a minus zero argument. Replace it if
40722         not.
40723         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40724         m4/signbit.m4.
40725         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40726         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40728         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40729         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40730         (configure.ac): Require gl_FUNC_LOG1PF.
40732         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40733         * m4/log1p-ieee.m4: New file.
40734         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40735         whether log1p works with a minus zero argument. Replace it if not.
40736         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40738         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40739         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40740         (Depends-on): Update conditions.
40741         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40742         m4/signbit.m4.
40743         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40744         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40746         Tests for module 'log1pl-ieee'.
40747         * modules/log1pl-ieee-tests: New file.
40748         * tests/test-log1pl-ieee.c: New file.
40750         New module 'log1pl-ieee'.
40751         * modules/log1pl-ieee: New file.
40753         Tests for module 'log1p-ieee'.
40754         * modules/log1p-ieee-tests: New file.
40755         * tests/test-log1p-ieee.c: New file.
40757         New module 'log1p-ieee'.
40758         * modules/log1p-ieee: New file.
40760         Tests for module 'log1pf-ieee'.
40761         * modules/log1pf-ieee-tests: New file.
40762         * tests/test-log1pf-ieee.c: New file.
40763         * tests/test-log1p-ieee.h: New file.
40765         New module 'log1pf-ieee'.
40766         * modules/log1pf-ieee: New file.
40768 2012-03-10  Bruno Haible  <bruno@clisp.org>
40770         Tests for module 'log1pl'.
40771         * modules/log1pl-tests: New file.
40772         * tests/test-log1pl.c: New file.
40774         New module 'log1pl'.
40775         * lib/math.in.h (log1pl): New declaration.
40776         * lib/log1pl.c: New file.
40777         * m4/log1pl.m4: New file.
40778         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40780         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40781         * modules/log1pl: New file.
40782         * tests/test-math-c++.cc: Check the declaration of log1pl.
40783         * doc/posix-functions/log1pl.texi: Mention the new module.
40785 2012-03-10  Bruno Haible  <bruno@clisp.org>
40787         Tests for module 'log1pf'.
40788         * modules/log1pf-tests: New file.
40789         * tests/test-log1pf.c: New file.
40791         New module 'log1pf'.
40792         * lib/math.in.h (log1pf): New declaration.
40793         * lib/log1pf.c: New file.
40794         * m4/log1pf.m4: New file.
40795         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40797         REPLACE_LOG1PF.
40798         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40799         REPLACE_LOG1PF.
40800         * modules/log1pf: New file.
40801         * tests/test-math-c++.cc: Check the declaration of log1pf.
40802         * doc/posix-functions/log1pf.texi: Mention the new module.
40804 2012-03-10  Bruno Haible  <bruno@clisp.org>
40806         log1p tests: More tests.
40807         * tests/test-log1p.h: New file.
40808         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40809         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40810         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40811         (main): Invoke test_function.
40813         log1p: Provide replacement for Minix and MSVC.
40814         * lib/math.in.h (log1p): New declaration.
40815         * lib/log1p.c: New file.
40816         * m4/log1p.m4: New file.
40817         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40819         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40820         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40821         (Depends-on): Add math, isnand, log, round.
40822         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40823         HAVE_LOG1P is 0.
40824         * tests/test-math-c++.cc: Check the declaration of log1p.
40825         * doc/posix-functions/log1p.texi: Mention the replacement.
40827 2012-03-10  Bruno Haible  <bruno@clisp.org>
40829         math tests: Small simplification.
40830         * tests/test-exp.h (test_function): Use the same err_bound for
40831         'double' on platforms with sizeof (long double) == sizeof (double)
40832         than on platforms with sizeof (long double) > sizeof (double).
40833         * tests/test-exp2.h (test_function): Likewise.
40834         * tests/test-expm1.h (test_function): Likewise.
40835         * tests/test-log.h (test_function): Likewise.
40837 2012-03-10  Bruno Haible  <bruno@clisp.org>
40839         Fix some comments.
40840         * lib/expl.c: Fix an ambiguous comment.
40841         * lib/expm1.c: Likewise.
40842         * lib/expm1l.c: Likewise.
40843         * lib/exp2.c: Likewise.
40844         * lib/exp2l.c: Likewise.
40846 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40848         regex: allow inclusion of <regex.h> before <limits.h>
40849         Without this patch, portable programs had to include <limits.h> before
40850         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40851         I ran into this problem with a test version of GNU grep on Solaris 8.
40852         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40853         This is done conditionally so that this change can be merged
40854         back to glibc.
40855         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40856         using the included regex.
40858         fts: depend on fdopendir
40859         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40860         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40861         problem was introduced when fdopendir was split out.
40863 2012-03-10  Bruno Haible  <bruno@clisp.org>
40865         Remove unused variables.
40866         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40867         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40869 2012-03-10  Bruno Haible  <bruno@clisp.org>
40871         isnanf-nolibm: Fix last commit.
40872         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40874         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40875         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40877 2012-03-10  Bruno Haible  <bruno@clisp.org>
40879         logf-ieee: Work around test failure on NetBSD 5.1.
40880         * m4/logf-ieee.m4: New file.
40881         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40882         whether logf works with a negative argument. Replace it if not.
40883         * lib/logf.c (logf): For negative arguments, return NaN.
40884         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40885         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40886         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40888         logf-ieee: Work around test failure on Solaris 9.
40889         * modules/logf-ieee (Depends-on): Add log-ieee.
40890         (configure.ac): Require gl_FUNC_LOGF.
40892         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40893         * m4/log-ieee.m4: New file.
40894         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40895         log works with a negative argument. Replace it if not.
40896         * lib/log.c (log): For negative arguments, return NaN.
40897         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40898         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40899         * doc/posix-functions/log.texi: Mention the log-ieee module.
40901         Tests for module 'logl-ieee'.
40902         * modules/logl-ieee-tests: New file.
40903         * tests/test-logl-ieee.c: New file.
40905         New module 'logl-ieee'.
40906         * modules/logl-ieee: New file.
40908         Tests for module 'log-ieee'.
40909         * modules/log-ieee-tests: New file.
40910         * tests/test-log-ieee.c: New file.
40912         New module 'log-ieee'.
40913         * modules/log-ieee: New file.
40915         Tests for module 'logf-ieee'.
40916         * modules/logf-ieee-tests: New file.
40917         * tests/test-logf-ieee.c: New file.
40918         * tests/test-log-ieee.h: New file.
40920         New module 'logf-ieee'.
40921         * modules/logf-ieee: New file.
40923 2012-03-10  Bruno Haible  <bruno@clisp.org>
40925         log: Fix bug introduced on 2012-03-09.
40926         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40928 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40930         timer-time: link explicitly with pthreads on glibc
40931         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40932         to support static linking, when newer glibc is
40933         detected, as that contains pthread emulation of
40934         POSIX timer functions where required.
40935         * modules/timer-time: Depend on threadlib to
40936         pull in the appropriate library to link.
40938 2012-03-10  Bruno Haible  <bruno@clisp.org>
40940         log* tests: More tests.
40941         * tests/test-log.h: New file.
40942         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40943         (main): Invoke test_function.
40944         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40945         (main): Invoke test_function.
40946         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40947         (main): Invoke test_function.
40948         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40949         tests/randomd.c.
40950         (Makefile.am): Add randomd.c to test_log_SOURCES.
40951         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40952         tests/randomf.c.
40953         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40954         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40955         tests/randoml.c.
40956         (Depends-on): Add 'float'.
40957         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40959 2012-03-09  Bruno Haible  <bruno@clisp.org>
40961         logl: Work around OSF/1 5.1 bug.
40962         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40963         * lib/logl.c (logl): If logl exists, use it and provide just the
40964         workaround.
40965         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40966         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40968         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40969         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40970         (Depends-on): Update conditions.
40971         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40973 2012-03-09  Bruno Haible  <bruno@clisp.org>
40975         logf: Work around OSF/1 5.1 bug.
40976         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40977         * lib/logf.c (logf): If logf exists, use it and provide just the
40978         workaround.
40979         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40980         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40982         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40983         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40984         (Depends-on): Update conditions.
40985         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40987 2012-03-09  Bruno Haible  <bruno@clisp.org>
40989         log: Work around OSF/1 5.1 bug.
40990         * lib/math.in.h (log): New declaration.
40991         * lib/log.c: New file.
40992         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40993         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40994         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40996         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40997         * modules/log (Files): Add lib/log.c.
40998         (Depends-on): Add math.
40999         (configure.ac): If REPLACE_LOG is 1, compile an override.
41000         * tests/test-math-c++.cc: Check the declaration of log.
41001         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41003 2012-03-09  Jim Meyering  <meyering@redhat.com>
41005         readtokens.c: adjust wording in a comment
41006         * lib/readtokens.c: Insert omitted "that" in a comment.
41008 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41010         modechange: add notations +40, 00440, etc.
41011         * lib/modechange.c (mode_compile): Support new notations
41012         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41014 2012-03-08  Bruno Haible  <bruno@clisp.org>
41016         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41017         * m4/exp2l-ieee.m4: New file.
41018         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41019         test whether exp2l works with a NaN argument and with a negative
41020         infinity argument. Replace it if not.
41021         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41023         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41024         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41025         (Depends-on): Update conditions.
41026         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41027         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41028         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41030         Tests for module 'exp2l-ieee'.
41031         * modules/exp2l-ieee-tests: New file.
41032         * tests/test-exp2l-ieee.c: New file.
41034         New module 'exp2l-ieee'.
41035         * modules/exp2l-ieee: New file.
41037         Tests for module 'exp2-ieee'.
41038         * modules/exp2-ieee-tests: New file.
41039         * tests/test-exp2-ieee.c: New file.
41041         New module 'exp2-ieee'.
41042         * modules/exp2-ieee: New file.
41044         Tests for module 'exp2f-ieee'.
41045         * modules/exp2f-ieee-tests: New file.
41046         * tests/test-exp2f-ieee.c: New file.
41047         * tests/test-exp2-ieee.h: New file.
41049         New module 'exp2f-ieee'.
41050         * modules/exp2f-ieee: New file.
41052 2012-03-08  Bruno Haible  <bruno@clisp.org>
41054         Tests for module 'exp2l'.
41055         * modules/exp2l-tests: New file.
41056         * tests/test-exp2l.c: New file.
41058         New module 'exp2l'.
41059         * lib/math.in.h (exp2l): New declaration.
41060         * lib/exp2l.c: New file.
41061         * lib/expl-table.c: New file, extracted from lib/expl.c.
41062         * lib/expl.c (gl_expl_table): New declaration.
41063         (expl): Remove expl_table. Update reference.
41064         * m4/exp2l.m4: New file.
41065         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41067         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41068         * modules/exp2l: New file.
41069         * modules/expl (Files): Add lib/expl-table.c.
41070         (configure.ac): Compile also expl-table.c.
41071         * tests/test-math-c++.cc: Check the declaration of exp2l.
41072         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41073         problem.
41075 2012-03-08  Bruno Haible  <bruno@clisp.org>
41077         Tests for module 'exp2f'.
41078         * modules/exp2f-tests: New file.
41079         * tests/test-exp2f.c: New file.
41081         New module 'exp2f'.
41082         * lib/math.in.h (exp2f): New declaration.
41083         * lib/exp2f.c: New file.
41084         * m4/exp2f.m4: New file.
41085         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41087         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41088         * modules/exp2f: New file.
41089         * tests/test-math-c++.cc: Check the declaration of exp2f.
41090         * doc/posix-functions/exp2f.texi: Mention the new module and the
41091         IRIX problem.
41093 2012-03-08  Bruno Haible  <bruno@clisp.org>
41095         Tests for module 'exp2'.
41096         * modules/exp2-tests: New file.
41097         * tests/test-exp2.c: New file.
41098         * tests/test-exp2.h: New file.
41100         New module 'exp2'.
41101         * lib/math.in.h (exp2): New declaration.
41102         * lib/exp2.c: New file.
41103         * m4/exp2.m4: New file.
41104         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41106         REPLACE_EXP2.
41107         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41108         REPLACE_EXP2.
41109         * modules/exp2: New file.
41110         * tests/test-math-c++.cc: Check the declaration of exp2.
41111         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41112         and OpenBSD problems.
41114 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41116         savedir: fix comment typo
41117         * lib/savedir.c (savedirstream): Fix typo in comment.
41119 2012-03-08  Bruno Haible  <bruno@clisp.org>
41121         test-readtokens.c: use const; remove unwarranted cast
41122         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41124 2012-03-08  Bruno Haible  <bruno@clisp.org>
41126         fmal: Avoid compilation error on AIX.
41127         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41128         AIX 5.2..7.1.
41130 2012-03-08  Bruno Haible  <bruno@clisp.org>
41132         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41133         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41134         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41135         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41136         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41137         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41138         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41140 2012-03-08  Bruno Haible  <bruno@clisp.org>
41142         remainderf: Override buggy system function on IRIX 6.5.
41143         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41144         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41145         when it exists.
41146         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41148 2012-03-08  Jim Meyering  <meyering@redhat.com>
41150         test-readtokens.c: avoid const-related compilation warnings
41151         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41153 2012-03-07  Jim Meyering  <meyering@redhat.com>
41154             Bruno Haible  <bruno@clisp.org>
41156         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41157         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41158         tests/randomd.c.
41159         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41160         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41161         tests/randoml.c.
41162         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41164 2012-03-07  Bruno Haible  <bruno@clisp.org>
41166         expm1l: Avoid compilation error on AIX.
41167         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41168         AIX 5.2..7.1.
41170 2012-03-07  Bruno Haible  <bruno@clisp.org>
41172         expm1l: Don't override undeclared system function on IRIX 6.5.
41173         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41174         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41175         it exists. Set HAVE_DECL_EXPM1L.
41176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41177         HAVE_EXPM1L.
41178         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41179         HAVE_EXPM1L.
41180         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41182 2012-03-07  Bruno Haible  <bruno@clisp.org>
41184         remainderl: Don't override undeclared system function on IRIX 6.5.
41185         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41186         HAVE_REMAINDERL.
41187         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41188         declared when it exists. Set HAVE_DECL_REMAINDERL.
41189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41190         not HAVE_REMAINDERL.
41191         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41192         HAVE_REMAINDERL.
41193         * doc/posix-functions/remainderl.texi: Mention missing declaration
41194         problem.
41196 2012-03-07  Bruno Haible  <bruno@clisp.org>
41198         rintf: Don't override undeclared system function on IRIX 6.5.
41199         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41200         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41201         exists. Set HAVE_DECL_RINTF.
41202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41203         HAVE_RINTF.
41204         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41205         HAVE_RINTF.
41206         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41208 2012-03-07  Bruno Haible  <bruno@clisp.org>
41210         roundl: Avoid compilation error on AIX.
41211         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41212         AIX 5.2..7.1.
41214 2012-03-07  Bruno Haible  <bruno@clisp.org>
41216         roundl: Don't override undeclared system function on IRIX 6.5.
41217         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41218         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41219         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41220         * modules/roundl (configure.ac): For replacement code, test
41221         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41222         (Depends-on): Update conditions.
41223         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41225 2012-03-07  Bruno Haible  <bruno@clisp.org>
41227         roundf: Don't override undeclared system function on IRIX 6.5.
41228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41229         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41230         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41231         * modules/roundf (configure.ac): For replacement code, test
41232         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41233         (Depends-on): Update conditions.
41234         * modules/roundf-ieee (Depends-on): Update conditions.
41235         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41237 2012-03-07  Bruno Haible  <bruno@clisp.org>
41239         round: Don't override undeclared system function on IRIX 6.5.
41240         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41241         argument.
41242         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41243         also when it is not declared. Set HAVE_ROUND. For replacement code,
41244         test HAVE_ROUND, not HAVE_DECL_ROUND.
41245         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41246         not HAVE_DECL_ROUND.
41247         (Depends-on): Update conditions.
41248         * modules/round-ieee (Depends-on): Update conditions.
41249         * doc/posix-functions/round.texi: Mention the IRIX problem.
41251 2012-03-07  Bruno Haible  <bruno@clisp.org>
41253         copysignf: Don't override undeclared system function on IRIX 6.5.
41254         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41255         HAVE_COPYSIGNF.
41256         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41257         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41259         not HAVE_COPYSIGNF.
41260         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41261         HAVE_COPYSIGNF.
41262         * doc/posix-functions/copysignf.texi: Mention missing declaration
41263         problem.
41265 2012-03-07  Jim Meyering  <meyering@redhat.com>
41267         readtokens: add tests
41268         * modules/readtokens-tests: New file.
41269         * tests/test-readtokens.c: New file.
41271 2012-03-07  Jim Meyering  <meyering@redhat.com>
41273         quotearg: the module must now include quote.h
41274         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41275         So must the module.
41276         * modules/quotearg (Files): Add quote.h.
41278 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41280         readtokens: avoid core dumps with unusual calling patterns
41281         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41282         * lib/readtokens.c: Include limits.h.
41283         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41284         (readtoken): Don't cache the delimiters; the cache code was buggy
41285         if !delim && saved_delim, or if the new n_delim differs from the old.
41286         Also, it wasn't thread-safe.
41288 2012-03-07  Bruno Haible  <bruno@clisp.org>
41290         quote: Adhere to common module description layout.
41291         * modules/quote (Makefile.am): Add back empty section.
41293 2012-03-06  Akim Demaille  <demaille@gostai.com>
41295         quote: fuse into quotearg
41296         This patch is made for the benefit of Bison.
41297         quote does not leave the choice of the quoting style to the user.
41298         quoting_style provides poor customizability, yet quoting_options,
41299         which is very rich, is hidden inside quotearg.c.  So in order to
41300         allow quote customization, move its implementation to quotearg.c.
41301         * lib/quote.c: Remove.
41302         * modules/quote: Adjust.
41303         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41304         warning: provide all the members of literal structs.
41305         (quote_quoting_options): New.
41306         (quote, quote_n): Import implementation from quote.c.
41307         * lib/quote.h: Import the comments from quote.c.
41308         (quote_quoting_options): New.
41310 2012-03-06  Bruno Haible  <bruno@clisp.org>
41312         Tests for module 'expm1l-ieee'.
41313         * modules/expm1l-ieee-tests: New file.
41314         * tests/test-expm1l-ieee.c: New file.
41316         New module 'expm1l-ieee'.
41317         * modules/expm1l-ieee: New file.
41319         Tests for module 'expm1f-ieee'.
41320         * modules/expm1f-ieee-tests: New file.
41321         * tests/test-expm1f-ieee.c: New file.
41323         New module 'expm1f-ieee'.
41324         * modules/expm1f-ieee: New file.
41326         Tests for module 'expm1-ieee'.
41327         * modules/expm1-ieee-tests: New file.
41328         * tests/test-expm1-ieee.c: New file.
41329         * tests/test-expm1-ieee.h: New file.
41331         New module 'expm1-ieee'.
41332         * modules/expm1-ieee: New file.
41333         * m4/expm1-ieee.m4: New file.
41334         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41335         whether expm1 works with a minus zero argument. Replace it if not.
41336         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41338         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41339         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41340         (Depends-on): Update conditions.
41341         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41342         AIX problem.
41344 2012-03-06  Bruno Haible  <bruno@clisp.org>
41346         Work around expm1f bug on IRIX 6.5.
41347         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41348         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41349         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41350         not work.
41351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41352         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41353         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41354         (Depends-on): Update conditions.
41355         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41357 2012-03-06  Bruno Haible  <bruno@clisp.org>
41359         Tests for module 'expm1l'.
41360         * modules/expm1l-tests: New file.
41361         * tests/test-expm1l.c: New file.
41363         New module 'expm1l'.
41364         * lib/math.in.h (expm1l): New declaration.
41365         * lib/expm1l.c: New file.
41366         * m4/expm1l.m4: New file.
41367         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41369         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41370         * modules/expm1l: New file.
41371         * tests/test-math-c++.cc: Check the declaration of expm1l.
41372         * doc/posix-functions/expm1l.texi: Mention the new module.
41374 2012-03-06  Bruno Haible  <bruno@clisp.org>
41376         Tests for module 'expm1f'.
41377         * modules/expm1f-tests: New file.
41378         * tests/test-expm1f.c: New file.
41380         New module 'expm1f'.
41381         * lib/math.in.h (expm1f): New declaration.
41382         * lib/expm1f.c: New file.
41383         * m4/expm1f.m4: New file.
41384         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41386         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41387         * modules/expm1f: New file.
41388         * tests/test-math-c++.cc: Check the declaration of expm1f.
41389         * doc/posix-functions/expm1f.texi: Mention the new module.
41391 2012-03-06  Bruno Haible  <bruno@clisp.org>
41393         Tests for module 'expm1'.
41394         * modules/expm1-tests: New file.
41395         * tests/test-expm1.c: New file.
41396         * tests/test-expm1.h: New file.
41398         New module 'expm1'.
41399         * lib/math.in.h (expm1): New declaration.
41400         * lib/expm1.c: New file.
41401         * m4/expm1.m4: New file.
41402         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41404         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41405         * modules/expm1: New file.
41406         * tests/test-math-c++.cc: Check the declaration of expm1.
41407         * doc/posix-functions/expm1.texi: Mention the new module.
41409 2012-03-06  Bruno Haible  <bruno@clisp.org>
41411         math: Ensure declarations of math functions.
41412         * modules/acosf (Depends-on): Add 'extensions'.
41413         * modules/asinf (Depends-on): Likewise.
41414         * modules/atan2f (Depends-on): Likewise.
41415         * modules/atanf (Depends-on): Likewise.
41416         * modules/cbrt (Depends-on): Likewise.
41417         * modules/cbrtf (Depends-on): Likewise.
41418         * modules/cbrtl (Depends-on): Likewise.
41419         * modules/copysignf (Depends-on): Likewise.
41420         * modules/copysignl (Depends-on): Likewise.
41421         * modules/cosf (Depends-on): Likewise.
41422         * modules/coshf (Depends-on): Likewise.
41423         * modules/expf (Depends-on): Likewise.
41424         * modules/fabsf (Depends-on): Likewise.
41425         * modules/fabsl (Depends-on): Likewise.
41426         * modules/fmaf (Depends-on): Likewise.
41427         * modules/fmal (Depends-on): Likewise.
41428         * modules/fmodf (Depends-on): Likewise.
41429         * modules/fmodl (Depends-on): Likewise.
41430         * modules/frexpf (Depends-on): Likewise.
41431         * modules/frexpl (Depends-on): Likewise.
41432         * modules/hypot (Depends-on): Likewise.
41433         * modules/hypotf (Depends-on): Likewise.
41434         * modules/hypotl (Depends-on): Likewise.
41435         * modules/ldexpf (Depends-on): Likewise.
41436         * modules/ldexpl (Depends-on): Likewise.
41437         * modules/log10f (Depends-on): Likewise.
41438         * modules/log10l (Depends-on): Likewise.
41439         * modules/log1p (Depends-on): Likewise.
41440         * modules/logb (Depends-on): Likewise.
41441         * modules/logf (Depends-on): Likewise.
41442         * modules/modff (Depends-on): Likewise.
41443         * modules/modfl (Depends-on): Likewise.
41444         * modules/powf (Depends-on): Likewise.
41445         * modules/remainderf (Depends-on): Likewise.
41446         * modules/remainderl (Depends-on): Likewise.
41447         * modules/rintf (Depends-on): Likewise.
41448         * modules/rintl (Depends-on): Likewise.
41449         * modules/sinf (Depends-on): Likewise.
41450         * modules/sinhf (Depends-on): Likewise.
41451         * modules/sqrtf (Depends-on): Likewise.
41452         * modules/tanf (Depends-on): Likewise.
41453         * modules/tanhf (Depends-on): Likewise.
41454         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41455         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41456         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41457         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41458         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41459         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41460         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41461         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41462         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41463         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41464         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41465         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41466         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41467         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41468         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41469         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41470         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41471         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41472         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41473         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41474         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41475         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41476         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41477         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41479         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41480         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41481         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41482         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41483         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41484         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41485         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41486         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41487         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41488         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41489         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41490         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41491         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41492         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41493         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41494         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41496 2012-03-06  Bruno Haible  <bruno@clisp.org>
41498         math: Update module names in warnings.
41499         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41500         tanl): Use specific module name in warn-on-use warning.
41502 2012-03-06  Bruno Haible  <bruno@clisp.org>
41504         expl: Simplify computation.
41505         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41507 2012-03-05  Bruno Haible  <bruno@clisp.org>
41509         exp* tests: More tests.
41510         * tests/test-exp.h: New file.
41511         * tests/test-exp.c: Include <float.h> and test-exp.h.
41512         (main): Invoke test_function.
41513         * tests/test-expf.c: Include <float.h> and test-exp.h.
41514         (main): Invoke test_function.
41515         * tests/test-expl.c: Include <float.h> and test-exp.h.
41516         (main): Invoke test_function.
41517         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41518         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41519         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41520         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41521         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41522         (Depends-on): Add 'float'.
41523         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41525         expl: Fix precision of computed result.
41526         * lib/expl.c: Completely rewritten.
41527         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41528         (Maintainer): Add me.
41529         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41531 2012-03-05  Bruno Haible  <bruno@clisp.org>
41533         cbrt* tests: More tests.
41534         * tests/test-cbrt.h: New file.
41535         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41536         (main): Invoke test_function.
41537         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41538         (main): Invoke test_function.
41539         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41540         (main): Invoke test_function.
41541         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41542         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41543         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41544         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41545         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41546         (Depends-on): Add 'float'.
41547         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41549 2012-03-05  Bruno Haible  <bruno@clisp.org>
41551         hypot* tests: More tests.
41552         * tests/test-hypot.h: New file, partially extracted from
41553         tests/test-hypotl.c.
41554         * tests/test-hypot.c: Include test-hypot.h.
41555         (main): Invoke test_function.
41556         * tests/test-hypotf.c: Include test-hypot.h.
41557         (main): Invoke test_function.
41558         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41559         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41560         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41561         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41562         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41563         tests/randomf.c.
41564         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41565         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41566         tests/randoml.c.
41567         (Depends-on): Add 'fpucw', 'float'.
41568         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41570 2012-03-05  Bruno Haible  <bruno@clisp.org>
41572         fpucw: Doc about FreeBSD.
41573         * lib/fpucw.h: Mention FreeBSD in comments.
41575 2012-03-04  Bruno Haible  <bruno@clisp.org>
41577         sqrt* tests: More tests.
41578         * tests/test-sqrt.h: New file.
41579         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41580         (main): Invoke test_function.
41581         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41582         (main): Invoke test_function.
41583         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41584         (main): Invoke test_function.
41585         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41586         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41587         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41588         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41589         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41590         (Depends-on): Add 'float'.
41591         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41593 2012-03-04  Bruno Haible  <bruno@clisp.org>
41595         remainder* tests: More tests.
41596         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41597         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41598         (main): Invoke test_function.
41599         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41600         (main): Invoke test_function.
41601         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41602         (main): Invoke test_function.
41603         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41604         tests/randomd.c.
41605         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41606         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41607         tests/randomf.c.
41608         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41609         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41610         tests/randoml.c.
41611         (Depends-on): Add 'float'.
41612         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41614 2012-03-04  Bruno Haible  <bruno@clisp.org>
41616         remainder, remainderf, remainderl: Fix computation for large quotients.
41617         * lib/remainder.c: Completely rewritten.
41618         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41619         USE_FLOAT.
41620         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41621         USE_LONG_DOUBLE.
41622         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41623         isnand, isinf. Remove round, fma.
41624         * modules/remainderf (Files): Add lib/remainder.c.
41625         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41626         Remove roundf, fmaf.
41627         * modules/remainderl (Files): Add lib/remainder.c.
41628         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41629         isinf. Remove roundl, fmal.
41630         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41631         REMAINDER_LIBM.
41632         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41633         REMAINDERF_LIBM.
41634         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41635         REMAINDERL_LIBM.
41637 2012-03-04  Bruno Haible  <bruno@clisp.org>
41639         fmod* tests: More tests.
41640         * tests/test-fmod.h (my_ldexp): New function.
41641         (test_function): Reduce amount of random numbers to test. Add tests
41642         of very large quotients x / y.
41643         * tests/test-fmod.c (MAX_EXP): New macro.
41644         * tests/test-fmodf.c (MAX_EXP): Likewise.
41645         * tests/test-fmodl.c (MAX_EXP): Likewise.
41647 2012-03-04  Bruno Haible  <bruno@clisp.org>
41649         fmod, fmodl: Fix computation for large quotients x / y.
41650         * lib/fmod.c: Completely rewritten.
41651         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41652         USE_LONG_DOUBLE.
41653         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41654         isnand. Remove fma.
41655         * modules/fmodl (Files): Add lib/fmod.c.
41656         (Depends-on): Add float, isfinite, signbit, fabsl,
41657         frexpl, ldexpl, isnanl. Remove fma.
41658         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41659         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41661 2012-03-03  Bruno Haible  <bruno@clisp.org>
41663         fmod* tests: More tests.
41664         * tests/test-fmod.h: New file.
41665         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41666         (main): Invoke test_function.
41667         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41668         (main): Invoke test_function.
41669         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41670         (main): Invoke test_function.
41671         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41672         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41673         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41674         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41675         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41676         (Depends-on): Add 'float'.
41677         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41679 2012-03-03  Bruno Haible  <bruno@clisp.org>
41681         rint* tests: More tests.
41682         * tests/test-rint.h: New file, partially extracted from
41683         tests/test-rintl.c.
41684         * tests/test-rint.c: Include test-rint.h.
41685         (main): Invoke test_function.
41686         * tests/test-rintf.c: Include test-rint.h.
41687         (main): Invoke test_function.
41688         * tests/test-rintl.c: Include test-rint.h.
41689         (main): Invoke test_function.
41690         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41691         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41692         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41693         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41694         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41695         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41697 2012-03-03  Bruno Haible  <bruno@clisp.org>
41699         modf* tests: More tests.
41700         * tests/test-modf.h: New file.
41701         * tests/test-modf.c: Include <float.h> and test-modf.h.
41702         (main): Invoke test_function.
41703         * tests/test-modff.c: Include <float.h> and test-modf.h.
41704         (main): Invoke test_function.
41705         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41706         (main): Invoke test_function.
41707         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41708         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41709         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41710         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41711         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41712         (Depends-on): Add 'float'.
41713         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41715 2012-03-03  Bruno Haible  <bruno@clisp.org>
41717         fabs* tests: More tests.
41718         * tests/test-fabs.h: New file, partially extracted from
41719         tests/test-fabsl.c.
41720         * tests/test-fabs.c (RANDOM): New macro.
41721         * tests/test-fabsf.c (RANDOM): New macro.
41722         * tests/test-fabsl.c (RANDOM): New macro.
41723         * modules/fabs-tests (Files): Add tests/randomd.c.
41724         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41725         * modules/fabsf-tests (Files): Add tests/randomf.c.
41726         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41727         * modules/fabsl-tests (Files): Add tests/randoml.c.
41728         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41730 2012-03-03  Bruno Haible  <bruno@clisp.org>
41732         ldexp* tests: More tests.
41733         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41734         * tests/test-ldexp.c (RANDOM): New macro.
41735         * tests/test-ldexpf.c (RANDOM): New macro.
41736         * tests/test-ldexpl.c (RANDOM): New macro.
41737         * modules/ldexp-tests (Files): Add tests/randomd.c.
41738         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41739         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41740         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41741         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41742         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41744 2012-03-03  Bruno Haible  <bruno@clisp.org>
41746         frexp* tests: More tests.
41747         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41748         * tests/test-frexp.c (RANDOM): New macro.
41749         * tests/test-frexpf.c (RANDOM): New macro.
41750         * tests/test-frexpl.c (RANDOM): New macro.
41751         * modules/frexp-tests (Files): Add tests/randomd.c.
41752         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41753         * modules/frexpf-tests (Files): Add tests/randomf.c.
41754         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41755         * modules/frexpl-tests (Files): Add tests/randoml.c.
41756         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41758 2012-03-03  Bruno Haible  <bruno@clisp.org>
41760         Support for pseudo-random numbers in tests.
41761         * tests/randomf.c: New file.
41762         * tests/randomd.c: New file.
41763         * tests/randoml.c: New file.
41764         * tests/macros.h (randomf, randomd, randoml): New declarations.
41766 2012-03-03  Bruno Haible  <bruno@clisp.org>
41768         frexp* tests: Refactor.
41769         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41770         * tests/test-frexp.c: Include and use it.
41771         * tests/test-frexpf.c: Likewise.
41772         * tests/test-frexpl.c: Likewise.
41773         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41774         * modules/frexpf-tests (Files): Likewise.
41775         * modules/frexpl-tests (Files): Likewise.
41777 2012-03-02  Jim Meyering  <meyering@redhat.com>
41779         maint: don't specify XZ_OPT=-9ev in dist-related rule
41780         Using xz's -9 option is warranted only if you have a very large
41781         tarball (see xz's documentation for the sizes vs. presets), and
41782         requires 64MiB of memory at decompression time.
41783         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41784         Automake's default of just "-e" is fine.  Override on a
41785         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41787 2012-03-01  Eric Blake  <eblake@redhat.com>
41789         maint.mk: allow announcement for non-gnulib project
41790         * maint.mk (announcement): Skip gnulib version if not used.
41792 2012-03-01  Jim Meyering  <meyering@redhat.com>
41794         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41795         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41796         envvar settings cannot interfere.  Otherwise, setting envvars like
41797         prohibit=foo require=bar, etc. would cause spurious test failures.
41799 2012-03-01  Eric Blake  <eblake@redhat.com>
41801         maint.mk: add per-line exclusions to prohibitions
41802         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41803         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41804         (sc_const_long_option): Use it.
41806 2012-03-01  Bruno Haible  <bruno@clisp.org>
41808         Tests for module 'expl-ieee'.
41809         * modules/expl-ieee-tests: New file.
41810         * tests/test-expl-ieee.c: New file.
41812         New module 'expl-ieee'.
41813         * modules/expl-ieee: New file.
41815         Tests for module 'exp-ieee'.
41816         * modules/exp-ieee-tests: New file.
41817         * tests/test-exp-ieee.c: New file.
41819         New module 'exp-ieee'.
41820         * modules/exp-ieee: New file.
41822         Tests for module 'expf-ieee'.
41823         * modules/expf-ieee-tests: New file.
41824         * tests/test-expf-ieee.c: New file.
41825         * tests/test-exp-ieee.h: New file.
41827         New module 'expf-ieee'.
41828         * modules/expf-ieee: New file.
41830 2012-02-29  Bruno Haible  <bruno@clisp.org>
41832         cbrtl-ieee: Work around test failure on IRIX 6.5.
41833         * m4/cbrtl-ieee.m4: New file.
41834         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41835         test whether cbrtl works with a minus zero argument. Replace it if not.
41836         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41838         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41839         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41840         (Depends-on): Update conditions.
41841         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41842         m4/signbit.m4.
41843         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41844         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41845         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41847         Tests for module 'cbrtl-ieee'.
41848         * modules/cbrtl-ieee-tests: New file.
41849         * tests/test-cbrtl-ieee.c: New file.
41851         New module 'cbrtl-ieee'.
41852         * modules/cbrtl-ieee: New file.
41854         Tests for module 'cbrt-ieee'.
41855         * modules/cbrt-ieee-tests: New file.
41856         * tests/test-cbrt-ieee.c: New file.
41858         New module 'cbrt-ieee'.
41859         * modules/cbrt-ieee: New file.
41861         Tests for module 'cbrtf-ieee'.
41862         * modules/cbrtf-ieee-tests: New file.
41863         * tests/test-cbrtf-ieee.c: New file.
41864         * tests/test-cbrt-ieee.h: New file.
41866         New module 'cbrtf-ieee'.
41867         * modules/cbrtf-ieee: New file.
41869 2012-02-29  Bruno Haible  <bruno@clisp.org>
41871         cbrtf: Work around bug in IRIX 6.5 system function.
41872         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41873         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41874         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41875         work.
41876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41877         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41878         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41879         (Depends-on): Update conditions.
41880         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41882 2012-02-29  Bruno Haible  <bruno@clisp.org>
41884         Tests for module 'cbrtl'.
41885         * modules/cbrtl-tests: New file.
41886         * tests/test-cbrtl.c: New file.
41888         New module 'cbrtl'.
41889         * lib/math.in.h (cbrtl): New declaration.
41890         * lib/cbrtl.c: New file.
41891         * m4/cbrtl.m4: New file.
41892         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41894         HAVE_DECL_CBRTL.
41895         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41896         HAVE_DECL_CBRTL.
41897         * modules/cbrtl: New file.
41898         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41899         * doc/posix-functions/cbrtl.texi: Mention the new module.
41901 2012-02-29  Bruno Haible  <bruno@clisp.org>
41903         Tests for module 'cbrtf'.
41904         * modules/cbrtf-tests: New file.
41905         * tests/test-cbrtf.c: New file.
41907         New module 'cbrtf'.
41908         * lib/math.in.h (cbrtf): New declaration.
41909         * lib/cbrtf.c: New file.
41910         * m4/cbrtf.m4: New file.
41911         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41913         HAVE_DECL_CBRTF.
41914         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41915         HAVE_DECL_CBRTF.
41916         * modules/cbrtf: New file.
41917         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41918         * doc/posix-functions/cbrtf.texi: Mention the new module.
41920 2012-02-29  Bruno Haible  <bruno@clisp.org>
41922         cbrt: Provide replacement on MSVC and Minix.
41923         * lib/math.in.h (cbrt): New declaration.
41924         * lib/cbrt.c: New file.
41925         * m4/cbrt.m4: New file.
41926         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41928         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41929         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41930         (Depends-on): Add dependencies.
41931         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41932         * tests/test-math-c++.cc: Check the declaration of cbrt.
41933         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41934         replacement.
41936 2012-02-29  Bruno Haible  <bruno@clisp.org>
41938         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41939         * m4/hypotl-ieee.m4: New file.
41940         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41941         test whether hypotl works with mixed NaN and Infinity arguments.
41942         Replace it if not.
41943         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41945         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41946         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41947         (Depends-on): Update conditions.
41948         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41949         (Depends-on): Add hypot-ieee.
41950         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41951         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41953         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41954         * m4/hypotf-ieee.m4: New file.
41955         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41956         test whether hypotf works with mixed NaN and Infinity arguments.
41957         Replace it if not.
41958         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41959         (Depends-on): Add hypot-ieee.
41960         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41961         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41963         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41964         * lib/math.in.h (hypot): New declaration.
41965         * lib/hypot.c: New file.
41966         * m4/hypot-ieee.m4: New file.
41967         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41968         whether hypot works with mixed NaN and Infinity arguments. Replace it
41969         if not.
41970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41971         REPLACE_HYPOT.
41972         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41973         * modules/hypot (Files): Add lib/hypot.c.
41974         (Depends-on): Add dependencies.
41975         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41976         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41977         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41978         * tests/test-math-c++.cc: Check the declaration of hypot.
41979         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41981         Tests for module 'hypotl-ieee'.
41982         * modules/hypotl-ieee-tests: New file.
41983         * tests/test-hypotl-ieee.c: New file.
41985         New module 'hypotl-ieee'.
41986         * modules/hypotl-ieee: New file.
41988         Tests for module 'hypot-ieee'.
41989         * modules/hypot-ieee-tests: New file.
41990         * tests/test-hypot-ieee.c: New file.
41992         New module 'hypot-ieee'.
41993         * modules/hypot-ieee: New file.
41995         Tests for module 'hypotf-ieee'.
41996         * modules/hypotf-ieee-tests: New file.
41997         * tests/test-hypotf-ieee.c: New file.
41998         * tests/test-hypot-ieee.h: New file.
42000         New module 'hypotf-ieee'.
42001         * modules/hypotf-ieee: New file.
42003 2012-02-29  Bruno Haible  <bruno@clisp.org>
42005         Remove unused variables.
42006         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42007         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42008         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42009         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42011 2012-02-29  Eric Blake  <eblake@redhat.com>
42013         termios: fix pid_t always, not just for tcgetsid
42014         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42015         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42016         just when building tcgetsid.
42018 2012-02-29  Bruno Haible  <bruno@clisp.org>
42020         Tests for module 'hypotl'.
42021         * modules/hypotl-tests: New file.
42022         * tests/test-hypotl.c: New file.
42024         New module 'hypotl'.
42025         * lib/math.in.h (hypotl): New declaration.
42026         * lib/hypotl.c: New file.
42027         * m4/hypotl.m4: New file.
42028         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42030         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42031         * modules/hypotl: New file.
42032         * tests/test-math-c++.cc: Check the hypotl declaration.
42033         * doc/posix-functions/hypotl.texi: Mention the new module.
42035 2012-02-29  Eric Blake  <eblake@redhat.com>
42037         tcgetsid: fix cygwin header bug
42038         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42040         docs: update cygwin progress
42041         * doc/posix-functions/llround.texi (llround): Added in cygwin
42042         1.7.8.
42043         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42044         * doc/glibc-functions/program_invocation_name.texi
42045         (program_invocation_name): Likewise.
42046         * doc/glibc-functions/program_invocation_short_name.texi
42047         (program_invocation_short_name): Likewise.
42048         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42049         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42050         Likewise.
42051         * doc/posix-functions/pthread_spin_destroy.texi
42052         (pthread_spin_destroy): Added in cygwin 1.7.10.
42053         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42054         Likewise.
42055         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42056         Likewise.
42057         * doc/posix-functions/pthread_spin_trylock.texi
42058         (pthread_spin_trylock): Likewise.
42059         * doc/posix-functions/pthread_spin_unlock.texi
42060         (pthread_spin_unlock): Likewise.
42061         * doc/posix-functions/pthread_setschedprio.texi
42062         (pthread_setschedprio): Likewise.
42063         * doc/posix-functions/pthread_attr_getstack.texi
42064         (pthread_attr_getstack): Likewise.
42065         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42066         (pthread_attr_getstackaddr): Likewise.
42067         * doc/glibc-functions/pthread_getattr_np.texi
42068         (pthread_getattr_np): Likewise.
42069         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42070         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42071         * doc/posix-functions/clock_settime.texi (clock_settime):
42072         Likewise.
42073         * doc/posix-functions/pthread_attr_getguardsize.texi
42074         (pthread_attr_getguardsize): Likewise.
42075         * doc/posix-functions/pthread_attr_setguardsize.texi
42076         (pthread_attr_setguardsize): Likewise.
42077         * doc/posix-functions/pthread_attr_setstack.texi
42078         (pthread_attr_setstack): Likewise.
42079         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42080         (pthread_attr_setstackaddr): Likewise.
42081         * doc/posix-functions/clock_getcpuclockid.texi
42082         (clock_getcpuclockid): Likewise.
42083         * doc/posix-functions/pthread_getcpuclockid.texi
42084         (pthread_getcpuclockid): Likewise.
42085         * doc/glibc-functions/error.texi (error): Likewise.
42086         * doc/glibc-functions/error_at_line.texi (error_at_line):
42087         Likewise.
42088         * doc/glibc-functions/error_message_count.texi
42089         (error_message_count): Likewise.
42090         * doc/glibc-functions/error_one_per_line.texi
42091         (error_one_per_line): Likewise.
42092         * doc/glibc-functions/error_print_progname.texi
42093         (error_print_progname): Likewise.
42094         * doc/posix-functions/pthread_condattr_getclock.texi
42095         (pthread_condattr_getclock): Likewise.
42096         * doc/posix-functions/pthread_condattr_setclock.texi
42097         (pthread_condattr_setclock): Likewise.
42098         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42099         Likewise.
42100         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42101         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42102         * doc/glibc-functions/get_current_dir_name.texi
42103         (get_current_dir_name): Likewise.
42104         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42105         Likewise.
42106         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42107         wrong return type.
42108         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42109         1.7.11.
42111 2012-02-29  Bruno Haible  <bruno@clisp.org>
42113         Tests for module 'hypotf'.
42114         * modules/hypotf-tests: New file.
42115         * tests/test-hypotf.c: New file.
42117         New module 'hypotf'.
42118         * lib/math.in.h (hypotf): New declaration.
42119         * lib/hypotf.c: New file.
42120         * m4/hypotf.m4: New file.
42121         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42123         REPLACE_HYPOTF.
42124         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42125         REPLACE_HYPOTF.
42126         * modules/hypotf: New file.
42127         * tests/test-math-c++.cc: Check the hypotf declaration.
42128         * doc/posix-functions/hypotf.texi: Mention the new module.
42130         hypot: Prepare for hypotf module.
42131         * m4/hypot.m4: New file.
42132         * modules/hypot (Files): Add m4/hypot.m4.
42133         (configure.ac): Invoke gl_FUNC_HYPOT.
42135 2012-02-29  Bruno Haible  <bruno@clisp.org>
42137         hypot tests: More tests.
42138         * tests/test-hypot.c: Include <float.h>.
42139         (main): Add tests about overflow and underflow.
42141 2012-02-29  Bruno Haible  <bruno@clisp.org>
42143         math code: Add comments.
42144         * lib/acosl.c: Add comment about related glibc source files.
42145         * lib/asinl.c: Likewise.
42146         * lib/atanl.c: Likewise.
42147         * lib/expl.c: Likewise.
42148         * lib/logl.c: Likewise.
42149         * lib/sincosl.c: Likewise.
42150         * lib/sinl.c: Likewise.
42151         * lib/tanl.c: Likewise.
42152         * lib/trigl.c: Likewise.
42153         * lib/cosl.c: Likewise. Fix comments.
42155 2012-02-28  Bruno Haible  <bruno@clisp.org>
42157         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42158         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42159         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42160         HUGE_VALL are defined.
42161         (numeric_equald): Renamed from numeric_equal.
42162         (numeric_equalf, numeric_equall): New functions.
42163         (main): Check also HUGE_VALF, HUGE_VALL.
42164         * modules/math-tests (Files): Add tests/macros.h.
42165         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42166         HUGE_VALL.
42168 2012-02-28  Bruno Haible  <bruno@clisp.org>
42170         doc: Move ISO C11 feature notes into POSIX chapters.
42171         * doc/posix-functions/aligned_alloc.texi: Renamed from
42172         doc/glibc-functions/aligned_alloc.texi.
42173         * doc/posix-functions/quick_exit.texi: Renamed from
42174         doc/glibc-functions/quick_exit.texi.
42175         * doc/posix-headers/uchar.texi: Renamed from
42176         doc/glibc-headers/uchar.texi.
42177         * doc/posix-functions/c16rtomb.texi: Renamed from
42178         doc/glibc-functions/c16rtomb.texi.
42179         * doc/posix-functions/c32rtomb.texi: Renamed from
42180         doc/glibc-functions/c32rtomb.texi.
42181         * doc/posix-functions/mbrtoc16.texi: Renamed from
42182         doc/glibc-functions/mbrtoc16.texi.
42183         * doc/posix-functions/mbrtoc32.texi: Renamed from
42184         doc/glibc-functions/mbrtoc32.texi.
42185         * doc/gnulib.texi: Update.
42186         (Glibc uchar.h): Remove section.
42187         Suggested by Eric Blake.
42189 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42191         stdnoreturn: port to MSVC better
42192         MSVC standard headers use __declspec(noreturn), so #define noreturn
42193         to empty on that platform.  Reported by Bruno Haible in
42194         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42195         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42196         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42198 2012-02-28  Bruno Haible  <bruno@clisp.org>
42200         doc: Mention new glibc headers and functions.
42201         * doc/glibc-headers/uchar.texi: New file.
42202         * doc/glibc-functions/aligned_alloc.texi: New file.
42203         * doc/glibc-functions/c16rtomb.texi: New file.
42204         * doc/glibc-functions/c32rtomb.texi: New file.
42205         * doc/glibc-functions/clock_adjtime.texi: New file.
42206         * doc/glibc-functions/fanotify_init.texi: New file.
42207         * doc/glibc-functions/fanotify_mark.texi: New file.
42208         * doc/glibc-functions/inet6_opt_append.texi: New file.
42209         * doc/glibc-functions/inet6_opt_find.texi: New file.
42210         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42211         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42212         * doc/glibc-functions/inet6_opt_init.texi: New file.
42213         * doc/glibc-functions/inet6_opt_next.texi: New file.
42214         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42215         * doc/glibc-functions/inet6_rth_add.texi: New file.
42216         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42217         * doc/glibc-functions/inet6_rth_init.texi: New file.
42218         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42219         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42220         * doc/glibc-functions/inet6_rth_space.texi: New file.
42221         * doc/glibc-functions/login.texi: New file.
42222         * doc/glibc-functions/mbrtoc16.texi: New file.
42223         * doc/glibc-functions/mbrtoc32.texi: New file.
42224         * doc/glibc-functions/name_to_handle_at.texi: New file.
42225         * doc/glibc-functions/ntp_gettimex.texi: New file.
42226         * doc/glibc-functions/open_by_handle_at.texi: New file.
42227         * doc/glibc-functions/prlimit.texi: New file.
42228         * doc/glibc-functions/process_vm_readv.texi: New file.
42229         * doc/glibc-functions/process_vm_writev.texi: New file.
42230         * doc/glibc-functions/recvmmsg.texi: New file.
42231         * doc/glibc-functions/scandirat.texi: New file.
42232         * doc/glibc-functions/sendmmsg.texi: New file.
42233         * doc/glibc-functions/setns.texi: New file.
42234         * doc/glibc-functions/timespec_get.texi: New file.
42235         * doc/gnulib.texi: Include them.
42236         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42237         sections.
42238         Reported by Eric Blake.
42240 2012-02-28  Bruno Haible  <bruno@clisp.org>
42242         Avoid compilation errors with MSVC option -fp:strict.
42243         * lib/floor.c: Use MSVC specific pragma fenv_access.
42244         * lib/ceil.c: Likewise.
42245         * lib/trunc.c: Likewise.
42246         * lib/round.c: Likewise.
42247         * lib/rint.c: Likewise.
42248         * lib/fma.c: Likewise.
42249         * lib/integer_length.c: Likewise.
42250         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42251         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42252         * tests/test-floor2.c: Likewise.
42253         * tests/test-floorf2.c: Likewise.
42254         * tests/test-ceil2.c: Likewise.
42255         * tests/test-ceilf2.c: Likewise.
42256         * tests/test-trunc2.c: Likewise.
42257         * tests/test-truncf2.c: Likewise.
42258         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42260 2012-02-27  Bruno Haible  <bruno@clisp.org>
42262         Tests for module 'sqrtl-ieee'.
42263         * modules/sqrtl-ieee-tests: New file.
42264         * tests/test-sqrtl-ieee.c: New file.
42266         New module 'sqrtl-ieee'.
42267         * modules/sqrtl-ieee: New file.
42269         Tests for module 'sqrt-ieee'.
42270         * modules/sqrt-ieee-tests: New file.
42271         * tests/test-sqrt-ieee.c: New file.
42273         New module 'sqrt-ieee'.
42274         * modules/sqrt-ieee: New file.
42276         Tests for module 'sqrtf-ieee'.
42277         * modules/sqrtf-ieee-tests: New file.
42278         * tests/test-sqrtf-ieee.c: New file.
42279         * tests/test-sqrt-ieee.h: New file.
42281         New module 'sqrtf-ieee'.
42282         * modules/sqrtf-ieee: New file.
42284 2012-02-27  Bruno Haible  <bruno@clisp.org>
42286         remainderl-ieee: Work around test failure on OSF/1.
42287         * m4/remainderl-ieee.m4: New file.
42288         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42289         present, test whether remainderl works with a zero second argument.
42290         Replace it if not.
42291         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42293         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42294         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42295         (Depends-on): Update conditions.
42296         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42297         (Depends-on): Add remainder-ieee.
42298         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42299         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42300         module.
42302         remainderf-ieee: Work around test failure on OSF/1.
42303         * m4/remainderf-ieee.m4: New file.
42304         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42305         present, test whether remainderf works with a zero second argument.
42306         Replace it if not.
42307         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42309         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42310         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42311         (Depends-on): Update conditions.
42312         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42313         (Depends-on): Add remainder-ieee.
42314         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42315         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42316         module.
42318         remainder-ieee: Work around test failure on OSF/1.
42319         * m4/remainder-ieee.m4: New file.
42320         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42321         present, test whether remainder works with a zero second argument.
42322         Replace it if not.
42323         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42325         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42326         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42327         (Depends-on): Update dependencies.
42328         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42329         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42330         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42332         Tests for module 'remainderl-ieee'.
42333         * modules/remainderl-ieee-tests: New file.
42334         * tests/test-remainderl-ieee.c: New file.
42336         New module 'remainderl-ieee'.
42337         * modules/remainderl-ieee: New file.
42339         Tests for module 'remainder-ieee'.
42340         * modules/remainder-ieee-tests: New file.
42341         * tests/test-remainder-ieee.c: New file.
42343         New module 'remainder-ieee'.
42344         * modules/remainder-ieee: New file.
42346         Tests for module 'remainderf-ieee'.
42347         * modules/remainderf-ieee-tests: New file.
42348         * tests/test-remainderf-ieee.c: New file.
42349         * tests/test-remainder-ieee.h: New file.
42351         New module 'remainderf-ieee'.
42352         * modules/remainderf-ieee: New file.
42354 2012-02-27  Bruno Haible  <bruno@clisp.org>
42356         modff, modfl: Fix configure syntax error.
42357         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42358         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42360 2012-02-27  Bruno Haible  <bruno@clisp.org>
42362         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42363         * m4/fmodl-ieee.m4: New file.
42364         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42365         whether fmodl works with zero arguments. Replace it if not.
42366         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42367         (Depends-on): Add fmod-ieee.
42368         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42369         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42371         fmodf-ieee: Work around test failure on OSF/1.
42372         * m4/fmodf-ieee.m4: New file.
42373         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42374         whether fmodf works with zero arguments. Replace it if not.
42375         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42377         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42378         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42379         (Depends-on): Update dependencies.
42380         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42381         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42382         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42384         fmodf-ieee: Work around test failure on MSVC 9.
42385         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42386         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42388         fmod-ieee: Work around test failures on OSF/1, mingw.
42389         * m4/fmod-ieee.m4: New file.
42390         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42391         whether fmod works with zero arguments. Replace it if not.
42392         * lib/math.in.h (fmod): New declaration.
42393         * lib/fmod.c: New file.
42394         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42395         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42396         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42397         * modules/fmod (Files): Add lib/fmod.c.
42398         (Depends-on): Add math, isinf, trunc, fma.
42399         (configure.ac): Arrange to compile lib/fmod.c if needed.
42400         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42401         m4/signbit.m4.
42402         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42403         * tests/test-math-c++.cc: Check the declaration of fmod.
42404         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42406         fmodl-ieee: Fix test failures.
42407         * lib/fmodl.c (fmodl): Treat Inf specially.
42408         * modules/fmodl (Depends-on): Add isinf.
42410         Tests for module 'fmodl-ieee'.
42411         * modules/fmodl-ieee-tests: New file.
42412         * tests/test-fmodl-ieee.c: New file.
42414         New module 'fmodl-ieee'.
42415         * modules/fmodl-ieee: New file.
42417         Tests for module 'fmod-ieee'.
42418         * modules/fmod-ieee-tests: New file.
42419         * tests/test-fmod-ieee.c: New file.
42421         New module 'fmod-ieee'.
42422         * modules/fmod-ieee: New file.
42424         Tests for module 'fmodf-ieee'.
42425         * modules/fmodf-ieee-tests: New file.
42426         * tests/test-fmodf-ieee.c: New file.
42427         * tests/test-fmod-ieee.h: New file.
42429         New module 'fmodf-ieee'.
42430         * modules/fmodf-ieee: New file.
42432 2012-02-27  Bruno Haible  <bruno@clisp.org>
42434         Tests for module 'rintl-ieee'.
42435         * modules/rintl-ieee-tests: New file.
42436         * tests/test-rintl-ieee.c: New file.
42438         New module 'rintl-ieee'.
42439         * modules/rintl-ieee: New file.
42441         Tests for module 'rint-ieee'.
42442         * modules/rint-ieee-tests: New file.
42443         * tests/test-rint-ieee.c: New file.
42445         New module 'rint-ieee'.
42446         * modules/rint-ieee: New file.
42448         Tests for module 'rintf-ieee'.
42449         * modules/rintf-ieee-tests: New file.
42450         * tests/test-rintf-ieee.c: New file.
42451         * tests/test-rint-ieee.h: New file.
42453         New module 'rintf-ieee'.
42454         * modules/rintf-ieee: New file.
42456 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42458         regex: re_search etc. should return -2 when memory exhausted
42459         This bug was uncovered when testing 'grep'.  Without the fix,
42460         re_search and friends return -1 when memory is exhausted, but -1
42461         means no match, and this causes grep to falsely report no-match
42462         instead of memory-exhaustion.  See
42463         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42464         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42465         trouble; this can occur if re_search_internal ran out of memory.
42467 2012-02-26  Bruno Haible  <bruno@clisp.org>
42469         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42470         * m4/modfl-ieee.m4: New file.
42471         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42472         whether modfl works with Inf. Replace it if not.
42473         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42475         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42476         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42477         (Depends-on): Update dependencies.
42478         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42479         m4/signbit.m4.
42480         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42481         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42483         modfl-ieee: Fix dependencies.
42484         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42486         modfl-ieee: Fix test failures.
42487         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42488         * modules/modfl (Depends-on): Add isfinite, isinf.
42490         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42491         * m4/modff-ieee.m4: New file.
42492         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42493         whether modff works with NaN and Inf. Replace it if not.
42494         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42496         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42497         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42498         (Depends-on): Update dependencies.
42499         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42500         m4/signbit.m4.
42501         (Depends-on): Add modf-ieee.
42502         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42503         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42505         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42506         * m4/modf-ieee.m4: New file.
42507         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42508         whether modf works with NaN and Inf. Replace it if not.
42509         * lib/math.in.h (modf): New declaration.
42510         * lib/modf.c: New file.
42511         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42513         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42514         * modules/modf (Files): Add lib/modf.c.
42515         (Depends-on): Add math, isfinite, trunc, isinf.
42516         (configure.ac): Addrange to compile lib/modf.c if needed.
42517         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42518         m4/signbit.m4.
42519         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42520         * tests/test-math-c++.cc: Check the declaration of modf.
42521         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42523         Tests for module 'modfl-ieee'.
42524         * modules/modfl-ieee-tests: New file.
42525         * tests/test-modfl-ieee.c: New file.
42527         New module 'modfl-ieee'.
42528         * modules/modfl-ieee: New file.
42530         Tests for module 'modf-ieee'.
42531         * modules/modf-ieee-tests: New file.
42532         * tests/test-modf-ieee.c: New file.
42534         New module 'modf-ieee'.
42535         * modules/modf-ieee: New file.
42537         Tests for module 'modff-ieee'.
42538         * modules/modff-ieee-tests: New file.
42539         * tests/test-modff-ieee.c: New file.
42540         * tests/test-modf-ieee.h: New file.
42542         New module 'modff-ieee'.
42543         * modules/modff-ieee: New file.
42545 2012-02-26  Bruno Haible  <bruno@clisp.org>
42547         Tests for module 'fabsl-ieee'.
42548         * modules/fabsl-ieee-tests: New file.
42549         * tests/test-fabsl-ieee.c: New file.
42551         New module 'fabsl-ieee'.
42552         * modules/fabsl-ieee: New file.
42554         Tests for module 'fabs-ieee'.
42555         * modules/fabs-ieee-tests: New file.
42556         * tests/test-fabs-ieee.c: New file.
42558         New module 'fabs-ieee'.
42559         * modules/fabs-ieee: New file.
42561         Tests for module 'fabsf-ieee'.
42562         * modules/fabsf-ieee-tests: New file.
42563         * tests/test-fabsf-ieee.c: New file.
42564         * tests/test-fabs-ieee.h: New file.
42566         New module 'fabsf-ieee'.
42567         * modules/fabsf-ieee: New file.
42569 2012-02-26  Bruno Haible  <bruno@clisp.org>
42571         Tests for module 'fmal-ieee'.
42572         * modules/fmal-ieee-tests: New file.
42573         * tests/test-fmal-ieee.c: New file.
42575         New module 'fmal-ieee'.
42576         * modules/fmal-ieee: New file.
42578         Tests for module 'fma-ieee'.
42579         * modules/fma-ieee-tests: New file.
42580         * tests/test-fma-ieee.c: New file.
42582         New module 'fma-ieee'.
42583         * modules/fma-ieee: New file.
42585         Tests for module 'fmaf-ieee'.
42586         * modules/fmaf-ieee-tests: New file.
42587         * tests/test-fmaf-ieee.c: New file.
42588         * tests/test-fma-ieee.h: New file.
42590         New module 'fmaf-ieee'.
42591         * modules/fmaf-ieee: New file.
42593 2012-02-26  Bruno Haible  <bruno@clisp.org>
42595         Tests for module 'ldexpl-ieee'.
42596         * modules/ldexpl-ieee-tests: New file.
42597         * tests/test-ldexpl-ieee.c: New file.
42599         New module 'ldexpl-ieee'.
42600         * modules/ldexpl-ieee: New file.
42602         Tests for module 'ldexp-ieee'.
42603         * modules/ldexp-ieee-tests: New file.
42604         * tests/test-ldexp-ieee.c: New file.
42606         New module 'ldexp-ieee'.
42607         * modules/ldexp-ieee: New file.
42609         Tests for module 'ldexpf-ieee'.
42610         * modules/ldexpf-ieee-tests: New file.
42611         * tests/test-ldexpf-ieee.c: New file.
42612         * tests/test-ldexp-ieee.h: New file.
42614         New module 'ldexpf-ieee'.
42615         * modules/ldexpf-ieee: New file.
42617 2012-02-26  Bruno Haible  <bruno@clisp.org>
42619         Refactor frexp*-ieee tests.
42620         * tests/test-frexp-ieee.h: New file.
42621         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42622         (main): Just call test_function.
42623         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42624         (main): Just call test_function.
42625         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42626         (main): Just call test_function.
42627         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42628         * modules/frexp-ieee-tests (Files): Likewise.
42629         * modules/frexpl-ieee-tests (Files): Likewise.
42631         Tests for module 'frexpl-ieee'.
42632         * modules/frexpl-ieee-tests: New file.
42633         * tests/test-frexpl-ieee.c: New file.
42635         New module 'frexpl-ieee'.
42636         * modules/frexpl-ieee: New file.
42638         Tests for module 'frexp-ieee'.
42639         * modules/frexp-ieee-tests: New file.
42640         * tests/test-frexp-ieee.c: New file.
42642         New module 'frexp-ieee'.
42643         * modules/frexp-ieee: New file.
42645         Tests for module 'frexpf-ieee'.
42646         * modules/frexpf-ieee-tests: New file.
42647         * tests/test-frexpf-ieee.c: New file.
42649         New module 'frexpf-ieee'.
42650         * modules/frexpf-ieee: New file.
42652 2012-02-26  Bruno Haible  <bruno@clisp.org>
42654         roundl-ieee tests: More tests.
42655         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42656         (main): Add tests for [MX] shaded specification in POSIX.
42657         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42658         (Depends-on): Add isnanl-nolibm.
42660         round-ieee tests: More tests.
42661         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42662         (main): Add tests for [MX] shaded specification in POSIX.
42663         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42664         (Depends-on): Add isnand-nolibm.
42666         roundf-ieee tests: More tests.
42667         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42668         (main): Add tests for [MX] shaded specification in POSIX.
42669         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42670         (Depends-on): Add isnanf-nolibm.
42672         truncl-ieee tests: More tests.
42673         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42674         (main): Add tests for [MX] shaded specification in POSIX.
42675         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42676         (Depends-on): Add isnanl-nolibm.
42678         trunc-ieee tests: More tests.
42679         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42680         (main): Add tests for [MX] shaded specification in POSIX.
42681         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42682         (Depends-on): Add isnand-nolibm.
42684         truncf-ieee tests: More tests.
42685         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42686         (main): Add tests for [MX] shaded specification in POSIX.
42687         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42688         (Depends-on): Add isnanf-nolibm.
42690         ceill-ieee tests: More tests.
42691         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42692         (main): Add tests for [MX] shaded specification in POSIX.
42693         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42694         (Depends-on): Add isnanl-nolibm.
42696         ceil-ieee tests: More tests.
42697         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42698         (main): Add tests for [MX] shaded specification in POSIX.
42699         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42700         (Depends-on): Add isnand-nolibm.
42702         ceilf-ieee tests: More tests.
42703         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42704         (main): Add tests for [MX] shaded specification in POSIX.
42705         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42706         (Depends-on): Add isnanf-nolibm.
42708         floorl-ieee tests: More tests.
42709         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42710         (main): Add tests for [MX] shaded specification in POSIX.
42711         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42712         (Depends-on): Add isnanl-nolibm.
42714         floor-ieee tests: More tests.
42715         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42716         (main): Add tests for [MX] shaded specification in POSIX.
42717         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42718         (Depends-on): Add isnand-nolibm.
42720         floorf-ieee tests: More tests.
42721         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42722         (main): Add tests for [MX] shaded specification in POSIX.
42723         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42724         (Depends-on): Add isnanf-nolibm.
42726 2012-02-26  Bruno Haible  <bruno@clisp.org>
42728         fpieee: More comments.
42729         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42731 2012-02-25  Bruno Haible  <bruno@clisp.org>
42733         Tests for module 'log10l'.
42734         * modules/log10l-tests: New file.
42735         * tests/test-log10l.c: New file.
42736         * tests/test-math-c++.cc: Check the declaration of log10l.
42738         New module 'log10l'.
42739         * lib/math.in.h (log10l): New declaration.
42740         * lib/log10l.c: New file.
42741         * m4/log10l.m4: New file.
42742         * modules/log10l: New file.
42743         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42745         HAVE_DECL_LOG10L.
42746         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42747         HAVE_DECL_LOG10L.
42748         * doc/posix-functions/log10l.texi: Mention the new module.
42750 2012-02-25  Bruno Haible  <bruno@clisp.org>
42752         fmodl, remainder*: Avoid wrong results due to rounding errors.
42753         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42754         expected bounds.
42755         * lib/remainderf.c (remainderf): Likewise.
42756         * lib/remainder.c (remainder): Likewise.
42757         * lib/remainderl.c (remainderl): Likewise.
42759 2012-02-25  Bruno Haible  <bruno@clisp.org>
42761         Tests for module 'remainderl'.
42762         * modules/remainderl-tests: New file.
42763         * tests/test-remainderl.c: New file.
42764         * tests/test-math-c++.cc: Check the declaration of remainderl.
42766         New module 'remainderl'.
42767         * lib/math.in.h (remainderl): New declaration.
42768         * lib/remainderl.c: New file.
42769         * m4/remainderl.m4: New file.
42770         * modules/remainderl: New file.
42771         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42773         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42774         HAVE_REMAINDERL.
42775         * doc/posix-functions/remainderl.texi: Mention the new module.
42777 2012-02-25  Bruno Haible  <bruno@clisp.org>
42779         Tests for module 'remainderf'.
42780         * modules/remainderf-tests: New file.
42781         * tests/test-remainderf.c: New file.
42782         * tests/test-math-c++.cc: Check the declaration of remainderf.
42784         New module 'remainderf'.
42785         * lib/math.in.h (remainderf): New declaration.
42786         * lib/remainderf.c: New file.
42787         * m4/remainderf.m4: New file.
42788         * modules/remainderf: New file.
42789         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42791         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42792         HAVE_REMAINDERF.
42793         * doc/posix-functions/remainderf.texi: Mention the new module.
42795 2012-02-25  Bruno Haible  <bruno@clisp.org>
42797         remainder: Support for MSVC.
42798         * lib/math.in.h (remainder): New declaration.
42799         * lib/remainder.c: New file.
42800         * m4/remainder.m4: New file.
42801         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42802         (Depends-on): Add math, round, fma.
42803         (configure.ac): Use results of gl_FUNC_REMAINDER.
42804         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42806         HAVE_DECL_REMAINDER.
42807         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42808         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42809         * tests/test-math-c++.cc: Check the declaration of remainder.
42810         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42811         problems are fixed.
42813 2012-02-25  Bruno Haible  <bruno@clisp.org>
42815         Tests for module 'fmodl'.
42816         * modules/fmodl-tests: New file.
42817         * tests/test-fmodl.c: New file.
42818         * tests/test-math-c++.cc: Check the declaration of fmodl.
42820         New module 'fmodl'.
42821         * lib/math.in.h (fmodl): New declaration.
42822         * lib/fmodl.c: New file.
42823         * m4/fmodl.m4: New file.
42824         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42826         REPLACE_FMODL.
42827         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42828         REPLACE_FMODL.
42829         * modules/fmodl: New file.
42830         * doc/posix-functions/fmodl.texi: Mention the new module.
42832 2012-02-25  Bruno Haible  <bruno@clisp.org>
42834         Tests for module 'modfl'.
42835         * modules/modfl-tests: New file.
42836         * tests/test-modfl.c: New file.
42837         * tests/test-math-c++.cc: Check the declaration of modfl.
42839         New module 'modfl'.
42840         * lib/math.in.h (modfl): New declaration.
42841         * lib/modfl.c: New file.
42842         * m4/modfl.m4: New file.
42843         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42845         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42846         * modules/modfl: New file.
42847         * doc/posix-functions/modfl.texi: Mention the new module.
42849 2012-02-25  Bruno Haible  <bruno@clisp.org>
42851         Tests for module 'fabsl'.
42852         * modules/fabsl-tests: New file.
42853         * tests/test-fabsl.c: New file.
42854         * tests/test-math-c++.cc: Check the declaration of fabsl.
42856         New module 'fabsl'.
42857         * lib/math.in.h (fabsl): New declaration.
42858         * lib/fabsl.c: New file.
42859         * m4/fabsl.m4: New file.
42860         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42862         REPLACE_FABSL.
42863         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42864         REPLACE_FABSL.
42865         * modules/fabsl: New file.
42866         * doc/posix-functions/fabsl.texi: Mention the new module.
42868 2012-02-25  Bruno Haible  <bruno@clisp.org>
42870         fabs tests: More tests.
42871         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42872         (zero): New variable.
42873         (main): Add tests for signed zero.
42874         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42876         fabsf tests: More tests.
42877         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42878         (zero): New variable.
42879         (main): Add tests for signed zero.
42880         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42882 2012-02-24  Bruno Haible  <bruno@clisp.org>
42884         atanl: Provide function definition on MSVC.
42885         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42886         function pointer.
42887         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42889 2012-02-24  Bruno Haible  <bruno@clisp.org>
42891         acosl: Provide function definition on MSVC.
42892         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42893         function pointer.
42894         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42896 2012-02-24  Bruno Haible  <bruno@clisp.org>
42898         asinl: Provide function definition on MSVC.
42899         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42900         function pointer.
42901         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42903 2012-02-24  Bruno Haible  <bruno@clisp.org>
42905         tanl: Provide function definition on MSVC.
42906         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42907         function pointer.
42908         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42910 2012-02-24  Bruno Haible  <bruno@clisp.org>
42912         cosl: Provide function definition on MSVC.
42913         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42914         function pointer.
42915         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42917 2012-02-24  Bruno Haible  <bruno@clisp.org>
42919         sinl: Provide function definition on MSVC.
42920         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42921         function pointer.
42922         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42924 2012-02-24  Bruno Haible  <bruno@clisp.org>
42926         logl: Provide function definition on MSVC.
42927         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42928         function pointer.
42929         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42931 2012-02-24  Bruno Haible  <bruno@clisp.org>
42933         expl: Provide function definition on MSVC.
42934         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42935         function pointer.
42936         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42938 2012-02-24  Bruno Haible  <bruno@clisp.org>
42940         sqrtl: Provide function definition on MSVC.
42941         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42942         a function pointer.
42943         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42945 2012-02-24  Bruno Haible  <bruno@clisp.org>
42947         ceill: Provide function definition on MSVC.
42948         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42949         used as a function pointer.
42950         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42952 2012-02-24  Bruno Haible  <bruno@clisp.org>
42954         floorl: Provide function definition on MSVC.
42955         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42956         used as a function pointer.
42957         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42959 2012-02-24  Bruno Haible  <bruno@clisp.org>
42961         ceilf: Provide function definition on MSVC.
42962         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42963         used as a function pointer.
42964         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42966 2012-02-24  Bruno Haible  <bruno@clisp.org>
42968         floorf: Provide function definition on MSVC.
42969         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42970         used as a function pointer.
42971         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42973 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42975         stdnoreturn: new module
42976         This implements a replacement for C11's <stdnoreturn.h>.
42977         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42978         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42979         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42980         * tests/test-stdnoreturn.c: New files.
42982 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42984         regex: fix false multibyte matches in some regular expressions
42985         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42986         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42987         * lib/regex_internal.c (re_string_skip_chars):
42988         Fix miscomputation of remain_len that may cause incomplete
42989         multi-byte character and false match.
42991 2012-02-24  Jim Meyering  <meyering@redhat.com>
42993         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42994         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42995         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42996         Remove now-unnecessary str''cmp obfuscation.
42997         Suggested by Akim Demaille.
42999 2012-02-24  Bruno Haible  <bruno@clisp.org>
43001         streq: Rename macro.
43002         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43003         * NEWS: Mention the change.
43004         * lib/mbrtowc.c (mbrtowc): Update.
43005         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43006         * lib/wcwidth.c (wcwidth): Update.
43007         Suggested by Akim Demaille and Jim Meyering.
43009 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43011         regex: fix typo in definition of MIN
43012         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43013         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43015 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43016             Bruno Haible  <bruno@clisp.org>
43018         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43019         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43020         entries into a stack-allocated buffer directly.
43021         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43023 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43024             Bruno Haible  <bruno@clisp.org>
43026         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43028          - There were several instances of this pattern:
43030              for (;;) {
43031                n = acl (f, GETACLCNT, 0, NULL);
43032                [ allocate an array A of size N ]
43033                if (acl (f, GETACL, n, a) == n)
43034                  break;
43035              }
43037            This loop might never terminate if some other process is constantly
43038            manipulating the file's ACL.  The loop should be rewritten to
43039            terminate.
43041          - The acl (... GETACLNT ...) call is merely an optimization; its value
43042            is merely a hint as to how big to make the array.  A better
43043            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43044            and just guess a reasonably-big size, growing the size and trying
43045            again if it's not large enough.  This guarantees termination, and
43046            saves a system call.
43048         * lib/acl-internal.h: Include <limits.h>.
43049         (MIN, SIZE_MAX): New macros.
43050         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43051         a stack-allocated buffer, and use malloc if it does not fit. Don't
43052         use GETACLCNT.
43053         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43055 2012-02-19  Bruno Haible  <bruno@clisp.org>
43057         acl: Fix endless loop on Solaris with vxfs.
43058         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43059         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43060         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43061         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43062         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43063         Reported by Bill Jones in
43064         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43066 2012-02-19  Bruno Haible  <bruno@clisp.org>
43068         acl: Fix copy-acl test failure on Solaris 11.0.
43069         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43070         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43071         that this function returns 0 in some more cases.
43073 2012-02-19  Bruno Haible  <bruno@clisp.org>
43075         acl: Update doc references.
43076         * doc/acl-resources.txt: Update links to Solaris documentation.
43078 2012-02-19  Bruno Haible  <bruno@clisp.org>
43080         Fix test failure in many locales on Solaris 11.
43081         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43082         'tr' arguments.
43083         * tests/test-pipe-filter-ii1.c (main): Likewise.
43084         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43085         expressions in the C locale.
43086         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43087         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43089 2012-02-19  Bruno Haible  <bruno@clisp.org>
43091         gnulib-tool: Improve usage message.
43092         * gnulib-tool (func_usage): Move doc of --help and --version to the
43093         section "Operation modes".
43095 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43097         README-release: make it easier to execute commands
43098         * top/README-release: break commands out on to separate lines.
43100 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43102         GNUmakefile: simplify detection of unconfigured trees
43103         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43104         whether the tree make is being run from is already configured or
43105         not.  Related simplifications.
43107 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43109         * gnulib-tool (func_usage): Document --help and --version.
43111 2012-02-11  Jim Meyering  <meyering@redhat.com>
43113         bootstrap: don't exit 0 upon gnulib-tool failure
43114         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43115         its exit status, not 0.
43117 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43119         README-release: various improvements
43120         * top/README-release: Give a command to push changes for the
43121         release.  Add "distcheck" to list of other pre-release checks.
43122         Fix instance of "make stable" which should be "make TYPE".
43124 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43126         maint: replace FSF snail-mail addresses with URLs
43127         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43128         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43129         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43130         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43131         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43132         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43133         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43134         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43135         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43136         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43137         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43138         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43139         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43140         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43141         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43142         * lib/glthread/thread.c, lib/glthread/thread.h:
43143         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43144         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43145         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43146         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43147         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43148         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43149         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43150         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43151         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43152         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43153         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43154         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43155         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43156         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43157         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43158         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43159         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43160         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43161         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43162         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43163         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43164         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43165         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43166         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43167         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43168         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43169         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43170         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43171         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43172         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43173         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43174         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43175         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43176         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43177         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43178         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43179         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43180         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43181         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43182         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43183         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43184         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43185         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43186         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43187         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43188         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43189         * tests/test-poll.c, tests/test-quotearg-simple.c:
43190         * tests/test-quotearg.c, tests/test-quotearg.h:
43191         * tests/test-round-ieee.c, tests/test-round1.c:
43192         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43193         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43194         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43195         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43196         * tests/test-strerror.c, tests/test-strerror_r.c:
43197         * tests/test-strsignal.c, tests/test-strverscmp.c:
43198         * tests/test-xmemdup0.c:
43199         Replace FSF snail mail addresses with URLs, as per GNU coding
43200         standards.  See glibc bug
43201         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43203 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43205         README-release: capitalize a word and split a line
43206         * top/README-release: Fix punctuation and spacing.
43208 2012-02-08  Akim Demaille  <demaille@gostai.com>
43210         fatal-signal: use C prototypes (with explicit void).
43211         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43212         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43214 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43216         regex: spelling fix
43217         * lib/regexec.c: spelling fix
43219         regex: rely on stdint.h for SIZE_MAX
43220         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43222 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43224         regex: merge glibc changes
43226         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43227         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43228         (init_word_char): Work even if bitset words are not exactly 32 or
43229         64 bits wide.  Don't assume there are no padding bits.
43230         * lib/regex.c [_LIBC]: Do not include <config.h>.
43231         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43232         and -Wtype-limits.
43233         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43234         needless disagreement with glibc.  All uses changed.  Define it to
43235         1 only if _GNU_SOURCE, to match glibc.
43236         (_REG_RM_NAME): Remove; no longer needed, since the names in
43237         question are now all protected by __USE_GNU.
43238         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43239         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43240         * lib/regex_internal.h (MIN): New macro.
43242         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43243         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43245         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43246         * lib/regex_internal.c (re_string_fetch_byte_case):
43247         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43248         is miscompiled, and it turns out it is because of an incorrect
43249         attribute on re_string_fetch_byte_case.  Unlike
43250         re_string_peek_byte_case, this one is really not pure, it modifies
43251         memory (increments pstr->cur_idx), and with the pure attribute GCC
43252         assumed it doesn't and it cached the presumed value of
43253         regexp->cur_idx in a variable across the
43254          for (;; ++i)
43255            {
43256              if (i >= BRACKET_NAME_BUF_SIZE)
43257                return REG_EBRACK;
43258              if (token->type == OP_OPEN_CHAR_CLASS)
43259                ch = re_string_fetch_byte_case (regexp);
43260              else
43261                ch = re_string_fetch_byte (regexp);
43262              if (re_string_eoi(regexp))
43263                return REG_EBRACK;
43264              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43265                break;
43266              elem->opr.name[i] = ch;
43267            }
43269         2011-11-29 Andreas Schwab <schwab@redhat.com>
43270         * lib/regcomp.c (build_equiv_class):
43271         Fix access after end of search string in regex matcher.
43273         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43274         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43276         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43277         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43279         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43280         * lib/regcomp.c (parse_branch, parse_sub_exp):
43281         More regex memory leak fixes and tests.
43282         (parse_sub_exp, parse_bracket_exp):
43283         Fix memory leak for some invalid regular expressions.
43285         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43286         * lib/regex_internal.c, lib/regexec.c:
43287         Fix unnecessary overallocation due to incomplete character.  When
43288         incomplete characters are found at the end of a string the code
43289         ran amok and allocated lots of memory.  Stricter limits are now in
43290         place.
43292         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43293         * lib/regex.h: Update documentation.
43295         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43296         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43298         2010-05-05 Andreas Schwab <schwab@redhat.com>
43299         * lib/regexec.c (find_collation_sequence_value):
43300         Fix lookup of collation sequence value during regexp matching.
43302         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43303         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43305         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43306         * lib/regex.h: Cleanup namespace.
43308         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43309         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43311         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43312         * lib/regex_internal.h: Prevent some declarations and definitions
43313         to be seen when used in tests.
43315         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43316         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43317         __libc_lock_* macros if not _LIBC.
43318         (struct re_dfa_t): Add lock.
43320 2012-02-07  Eric Blake  <eblake@redhat.com>
43322         maint.mk: also prohibit lower-case @var@
43323         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43324         lower case, like @top_srcdir@.
43326 2012-02-04  Eric Blake  <eblake@redhat.com>
43328         canonicalize: avoid uninitialized memory use
43329         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43330         random '/' left in dest.
43331         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43333 2012-02-04  Bruno Haible  <bruno@clisp.org>
43335         isatty: Fix test failure of ptsname_r on native Windows.
43336         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43337         and don't set errno.
43338         (isatty): Test first whether fd is valid. Set errno when returning 0.
43340 2012-02-04  Bruno Haible  <bruno@clisp.org>
43342         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43343         * tests/test-spawn-pipe-main.c: Include progname.h.
43344         (main): Invoke set_program_name.
43345         * modules/spawn-pipe-tests (Depends-on): Add progname.
43347         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43348         * tests/test-nonblocking-socket-main.c: Include progname.h.
43349         (main): Invoke set_program_name.
43350         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43352         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43353         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43354         (main): Invoke set_program_name.
43355         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43357 2012-02-04  Eric Blake  <eblake@redhat.com>
43359         canonicalize-lgpl: fix // handling
43360         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43362         canonicalize: fix // handling
43363         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43364         /// to //, since only // is special.
43366 2012-02-04  Bruno Haible  <bruno@clisp.org>
43368         ioctl: Fix test failure on native Windows.
43369         * lib/ioctl.c: Include msvc-nothrow.h.
43370         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43372 2012-02-04  Bruno Haible  <bruno@clisp.org>
43374         fsync: Avoid test failure on native Windows.
43375         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43376         read-only.
43378 2012-02-04  Bruno Haible  <bruno@clisp.org>
43380         sys_select: Avoid syntax error on OpenBSD 5.0.
43381         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43382         currently being included, just include the system's <sys/select.h>.
43384 2012-02-04  Bruno Haible  <bruno@clisp.org>
43386         sys_select: Avoid syntax error on OpenBSD 5.0.
43387         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43388         <sys/select.h>, not before.
43389         Reported by Jiri B <jirib@devio.us>.
43391 2012-02-04  Bruno Haible  <bruno@clisp.org>
43393         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43394         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43395         global variables.
43396         * tests/test-get-rusage-data.c (main): Likewise.
43397         Reported by Jim Meyering.
43399 2012-02-04  Bruno Haible  <bruno@clisp.org>
43401         stdioext: Fix last commit.
43402         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43404 2012-02-03  Bruno Haible  <bruno@clisp.org>
43406         stdioext: Add tentative support for Plan9.
43407         * lib/stdio-impl.h: Include <errno.h>.
43408         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43409         * lib/freadable.c (freadable): Likewise.
43410         * lib/fwritable.c (fwritable): Likewise.
43411         * lib/fbufmode.c (fbufmode): Likewise.
43412         * lib/freading.c (freading): Likewise.
43413         * lib/fwriting.c (fwriting): Likewise.
43414         * lib/freadptr.c (freadptr): Likewise.
43415         * lib/freadseek.c (freadptrinc): Likewise.
43416         * lib/freadahead.c (freadahead): Likewise.
43417         * lib/fpurge.c (fpurge): Likewise.
43418         * lib/fseeko.c (rpl_fseeko): Likewise.
43419         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43420         Reported by Jens Staal <staal1978@gmail.com>.
43422 2012-02-02  Jim Meyering  <meyering@redhat.com>
43424         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43425         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43426         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43427         not even to try to add the attribute.  Instead, add a pragma to suppress
43428         the suggestion/warning.
43430 2012-01-31  Karl Berry  <karl@gnu.org>
43432         setstate doc: typo.
43433         * doc/posix-functions/setstate.texi (setstate): { not (.
43435 2012-01-31  Bruno Haible  <bruno@clisp.org>
43437         popen: Make more robust on Windows.
43438         * lib/popen.c: On native Windows, use the _popen based code even if
43439         HAVE_POPEN is set.
43440         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43441         environment variable on native Windows.
43443 2012-01-30  Bruno Haible  <bruno@clisp.org>
43445         pclose: Fix typo.
43446         * lib/stdio.in.h (pclose): Fix typo in warning message.
43448 2012-01-30  Bruno Haible  <bruno@clisp.org>
43450         doc about getlogin_r, setstate.
43451         * doc/posix-functions/getlogin_r.texi: List the incompatible
43452         declaration problem under "not fixed by gnulib".
43453         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43454         problem on Solaris 11 and other platforms.
43456 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43457             Bruno Haible  <bruno@clisp.org>
43459         poll tests: Make test more robust.
43460         * tests/test-poll.c: Include macros.h.
43461         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43462         return value of various I/O operations.
43463         * modules/poll-tests (Files): Add tests/macros.h.
43465 2012-01-30  Bruno Haible  <bruno@clisp.org>
43467         sys_stat: Fix support for mingw64 and MSVC.
43468         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43469         header files already do it.
43470         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43471         stat itself.
43472         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43474 2012-01-30  Bruno Haible  <bruno@clisp.org>
43476         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43478         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43480 2012-01-29  Bruno Haible  <bruno@clisp.org>
43482         quotearg: Fix test failure on MacOS X 10.5.
43483         * tests/test-quotearg-simple.c: Include localcharset.h.
43484         (main): If the locale encoding is not ASCII, bypass the tests of
43485         locale_quoting_style and clocale_quoting_style.
43486         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43488 2012-01-29  Jim Meyering  <meyering@redhat.com>
43490         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43491         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43492         detect uses of canonicalize_file_name.
43494 2012-01-28  Bruno Haible  <bruno@clisp.org>
43496         test-framework-sh: Fix test failure with AIX 7.1 diff.
43497         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43498         in column 1, like 'diff -c' does.
43499         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43500         whether 'diff -u' is used. Instead, test whether the output contains
43501         some '@' character.
43503 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43505         strtoimax: eliminate need for stdint.h, inttypes.h checks
43506         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43507         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43508         the prerequisites for a recently-introduced strtoimax test.
43509         I guess this might cause strtoimax to be replaced when not
43510         strictly necessary on older hosts, but this shouldn't introduce
43511         any bugs and it should make Emacs 'configure' faster on typical
43512         modern hosts.  Problem discovered when importing the latest gnulib
43513         to an Emacs test version.
43514         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43516 2012-01-28  Bruno Haible  <bruno@clisp.org>
43518         sys_time: Override 'struct timeval' on some native Windows platforms.
43519         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43520         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43521         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43522         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43523         needs to be overridden.
43524         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43525         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43526         * tests/test-sys_select.c: Check that the tv_sec member has the same
43527         size as a 'time_t'.
43528         * tests/test-sys_time.c: Likewise.
43529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43530         is set, set also REPLACE_GETTIMEOFDAY.
43531         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43532         convert the resulting 'struct timeval' before returning.
43533         * lib/select.c: Include <sys/time.h>.
43534         (select, timeval): Undefine at the right place.
43535         * modules/select (Depends-on): Add sys_time.
43536         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43537         some Windows platforms.
43538         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43540 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43542         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43543         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43544         an integer.
43545         * lib/fcntl.c (dupfd): Likewise.
43546         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43548 2012-01-28  Bruno Haible  <bruno@clisp.org>
43550         fcntl: Avoid compilation error on native Windows.
43551         * modules/fcntl (Depends-on): Add 'close'.
43553 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43555         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43556         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43557         pointer to an integer.
43558         * lib/poll.c (IsConsoleHandle): Likewise.
43559         * lib/isatty.c (IsConsoleHandle): Likewise.
43561 2012-01-28  Jim Meyering  <meyering@redhat.com>
43563         doc: clarify README-release
43564         * top/README-release: Clarify: you should make a point to have
43565         the latest stable versions of build tools in your PATH, and the
43566         reference to buildreq is solely for its list of tool names, not
43567         for its minimal-functional version numbers.
43568         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43570         maint.mk: use more readable (yet functionally equivalent) quoting
43571         It is common to quote a single quote in a single quoted string like
43572         this:  '...'\''...'.  Unless you know the idiom, that looks like
43573         gibberish, so prefer to double-quote the string when possible.
43574         Then you can use a more readable, lone single quote: "...'..."
43575         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43576         "don't" is more readable than the equivalent 'don'\''t'.
43577         (sc_cast_of_x_alloc_return_value): Likewise.
43578         (sc_cast_of_alloca_return_value): Likewise.
43579         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43580         rather than '\'':'\''.
43582 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43584         stdalign: relax _Alignof and tighten _Alignas test
43585         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43586         as it was too strict: alignof must divide offsetof, but it need
43587         not equal offsetof.  Inspired by Joseph S. Myers's comment
43588         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43589         Conversely, tighten the _Alignas test a bit, as the resulting
43590         alignment must be exactly 8.
43592 2012-01-27  Bruno Haible  <bruno@clisp.org>
43594         stdalign: Document the last change.
43595         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43597 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43599         stdalign: check that alignof and offsetof are consistent
43600         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43601         Problem reported for gnulib by Richard W.M. Jones in
43602         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43604 2012-01-27  Jim Meyering  <meyering@redhat.com>
43606         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43607         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43608         convert a sequence with gaps to the minimal containing range.
43609         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43610         * tests/test-update-copyright.sh: Test for this.
43611         The FSF confirmed it is ok to do this, assuming there is at
43612         least one significant change per year in the affected range:
43613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43615 2012-01-26  Bruno Haible  <bruno@clisp.org>
43617         pipe2: refine doc about thread-safety
43618         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43619         multithread-safety problem.
43620         * doc/glibc-functions/accept4.texi: Likewise.
43622 2012-01-26  Bruno Haible  <bruno@clisp.org>
43624         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43625         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43626         In the test program, include <fcntl.h>, for O_RDONLY.
43628 2012-01-26  Eric Blake  <eblake@redhat.com>
43630         pipe2: document lack of thread-safety in replacement
43631         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43632         issue in replacement.
43633         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43634         Based on a report by Eric Wong.
43636 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43637             Bruno Haible  <bruno@clisp.org>
43639         malloca: Avoid warnings on x86_64 mingw64.
43640         * lib/malloca.c: Include <stdint.h>.
43641         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43642         * modules/malloca (Depends-on): Add stdint.
43643         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43645 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43647         obstack: remove __STDC__ conditionals
43648         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43649         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43650         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43651         m4/include_next.m4 as the only gnulib-maintained places that still
43652         refer to __STDC__.
43654 2012-01-24  Bruno Haible  <bruno@clisp.org>
43656         havelib: Modern quoting.
43657         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43658         the recent change to the GNU coding standards.
43660 2012-01-24  Bruno Haible  <bruno@clisp.org>
43662         stdint: Improve support for Android.
43663         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43664         Reported by Simon Josefsson <simon@josefsson.org>.
43666 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43668         doc: omit trailing empty lines from INSTALL etc.
43669         * doc/Makefile (INSTALL): Omit trailing empty lines.
43670         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43671         omit trailing empty lines.  This simplifies the build procedure.
43673 2012-01-23  Jim Meyering  <meyering@redhat.com>
43675         tests: avoid spurious warnings about gl_sockets_startup
43676         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43677         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43678         reporting a "statement with no effect".
43679         * tests/test-accept.c (main): Mark as "(void)".
43680         * tests/test-accept4.c (main): Likewise.
43681         * tests/test-bind.c (main): Likewise.
43682         * tests/test-connect.c (main): Likewise.
43683         * tests/test-getpeername.c (main): Likewise.
43684         * tests/test-getsockname.c (main): Likewise.
43685         * tests/test-getsockopt.c (main): Likewise.
43686         * tests/test-listen.c (main): Likewise.
43687         * tests/test-recv.c (main): Likewise.
43688         * tests/test-recvfrom.c (main): Likewise.
43689         * tests/test-send.c (main): Likewise.
43690         * tests/test-sendto.c (main): Likewise.
43691         * tests/test-setsockopt.c (main): Likewise.
43692         * tests/test-shutdown.c (main): Likewise.
43694 2012-01-21  Bruno Haible  <bruno@clisp.org>
43696         locale-fr.m4: Fix for Android.
43697         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43698         failure of the test program on Bionic libc.
43700 2012-01-21  Jim Meyering  <meyering@redhat.com>
43702         bootstrap: fail when bootstrap_post_import_hook fails
43703         Otherwise, it's far too easy to miss diagnostics emitted
43704         between gnulib-tool's output and that of running configure.
43705         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43707 2012-01-17  Jim Meyering  <meyering@redhat.com>
43709         maint: enable sc_trailing_blank
43710         * build-aux/pmccabe.css: Remove trailing blanks.
43711         * doc/acl-cygwin.txt: Likewise.
43712         * doc/gnu-oids.texi: Likewise
43713         * cfg.mk: Enable sc_trailing_blank.
43714         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43716 2012-01-17  Jim Meyering  <meyering@redhat.com>
43718         maint: enable sc_prohibit_openat_without_use
43719         * cfg.mk: Enable sc_prohibit_openat_without_use.
43720         Exempt lib/selinux-at.c.
43722 2012-01-17  Jim Meyering  <meyering@redhat.com>
43724         maint: enable sc_prohibit_cloexec_without_use
43725         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43726         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43728 2012-01-17  Jim Meyering  <meyering@redhat.com>
43730         maint: enable sc_prohibit_intprops_without_use
43731         * cfg.mk: Enable sc_prohibit_intprops_without_use
43732         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43734 2012-01-17  Jim Meyering  <meyering@redhat.com>
43736         maint: enable sc_prohibit_hash_pjw_without_use
43737         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43738         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43739         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43740         following " (".
43742 2012-01-17  Jim Meyering  <meyering@redhat.com>
43744         maint: enable double-word-prohibiting rule
43745         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43746         Exempt three files.
43748 2012-01-17  Jim Meyering  <meyering@redhat.com>
43750         maint: remove empty lines at EOF, but excluding modules/*
43751         Apply syntax rules at home as well as abroad.  Most changes
43752         were induced by running this:
43753           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43754             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43755             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43756         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43757         Exempt modules/* and two binary files.
43758         Also exempt doc/INSTALL*, per request from Bruno Haible.
43759         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43760         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43761         * doc/Copyright/request-assign.future: Likewise.
43762         * doc/Copyright/request-disclaim.changes: Likewise.
43763         * doc/INSTALL: Likewise.
43764         * doc/INSTALL.ISO: Likewise.
43765         * doc/INSTALL.UTF-8: Likewise.
43766         * doc/acl-cygwin.txt: Likewise.
43767         * doc/acl-resources.txt: Likewise.
43768         * doc/fdl-1.2.texi: Likewise.
43769         * doc/fdl-1.3.texi: Likewise.
43770         * doc/fdl.texi: Likewise.
43771         * lib/argp-pin.c: Likewise.
43772         * lib/round.c: Likewise.
43773         * lib/unicase/u16-totitle.c: Likewise.
43774         * lib/unictype/block_test.c: Likewise.
43775         * lib/uninorm/canonical-decomposition.c: Likewise.
43776         * m4/README: Likewise.
43777         * m4/relocatable-lib.m4: Likewise.
43778         * tests/test-isnand-nolibm.c: Likewise.
43779         * tests/test-isnand.c: Likewise.
43780         * tests/uninorm/NormalizationTest.txt: Likewise.
43782 2012-01-17  Jim Meyering  <meyering@redhat.com>
43784         maint: add framework to run syntax-check rules against gnulib sources
43785         * cfg.mk: New file, to disable all currently-failing tests.
43786         We'll enable them one by one, as they are made to pass.
43787         * Makefile (sc_maint): New rule.
43789 2012-01-21  Bruno Haible  <bruno@clisp.org>
43791         stdint: Add support for Android.
43792         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43793         include the system's <stdint.h>.
43794         Reported by Simon Josefsson <simon@josefsson.org>.
43796 2012-01-19  Jim Meyering  <meyering@redhat.com>
43798         bootstrap: add bootstrap_post_import_hook
43799         Bison does still need something like the gnulib_mk_hook whose
43800         invocation I had to remove along with slurp in commit 767ccd40.
43801         Technically, we could get along without it, but doing so would
43802         have required living with a warning and a mandatory post-bootstrap
43803         automake rerun.
43804         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43805         (bootstrap_post_import_hook): New function.
43806         Invoke it after gnulib-tool --import and before autoreconf.
43808 2012-01-18  Jim Meyering  <meyering@redhat.com>
43810         gitlog-to-changelog: don't use "no_"-prefixed variable name
43811         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43812         to enable both --cluster and --no-cluster.  Change variable name,
43813         s/\$no_cluster/$cluster/, and reverse usage to match.
43815         gitlog-to-changelog: use "||", not "or" in expressions
43816         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43817         expressions.
43819 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43821         gitlog-to-changelog: new option --no-cluster
43822         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43823         clustering of adjacent commit messages.
43825 2012-01-17  Jim Meyering  <meyering@redhat.com>
43827         maint: spell file systems with two words, not one
43828         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43829         two words, not one.
43831 2012-01-16  Jim Meyering  <meyering@redhat.com>
43833         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43834         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43836 2012-01-16  Eric Blake  <eblake@redhat.com>
43838         bootstrap: cater to autoconf 2.59
43839         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43840         is not available.
43842         bootstrap: properly check for libtool
43843         * build-aux/bootstrap (libtoolize): Also run libtool when older
43844         usage is detected.
43846 2012-01-15  Bruno Haible  <bruno@clisp.org>
43848         Improve support for MSVC 9.
43849         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43850         clashes on MSVC.
43851         * lib/fcntl.in.h: Likewise.
43852         * lib/stdlib.in.h: Likewise.
43853         * lib/sys_stat.in.h: Likewise.
43855 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43857         gnupload: we hold the master copy of this script now
43858         For motivation and more information, see:
43859         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43860         * build-aux/gnupload: Make it clear in the heading comments that the
43861         master copy of this file is maintained by gnulib.  Since we are at
43862         it, bump its copyright year and ...
43863         ($scriptversion): ... the date in its version.
43864         ($usage): Patches and bug reports should be sent to the gnulib list,
43865         not the automake one.
43866         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43867         anymore.
43869 2012-01-15  Bruno Haible  <bruno@clisp.org>
43871         Fix module 'random'.
43872         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43873         initstate, setstate are declared.
43875 2012-01-14  Bruno Haible  <bruno@clisp.org>
43877         Tests for module 'random'.
43878         * modules/random-tests: New file.
43879         * tests/test-random.c: New file, based on tests/test-random_r.c.
43881         New module 'random'.
43882         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43883         declarations.
43884         * lib/random.c: New file, based on glibc/stdlib/random.c.
43885         * m4/random.m4: New file.
43886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43887         HAVE_RANDOM.
43888         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43889         * modules/random: New file.
43890         * config/srclist.txt: Add an entry for random.c.
43891         * doc/posix-functions/random.texi: Mention the 'random' module.
43892         * doc/posix-functions/initstate.texi: Likewise.
43893         * doc/posix-functions/setstate.texi: Likewise.
43894         * doc/posix-functions/srandom.texi: Likewise.
43896 2012-01-12  Bruno Haible  <bruno@clisp.org>
43898         random_r: Use common idioms.
43899         * lib/random_r.c: Include <stdlib.h> first.
43901         random_r: Override incompatible API on AIX, OSF/1.
43902         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43903         Override the system function if REPLACE_RANDOM_R is 1.
43904         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43905         and OSF/1, set REPLACE_RANDOM_R.
43906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43907         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43908         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43909         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43910         * doc/glibc-functions/random_r.texi: Likewise.
43911         * doc/glibc-functions/setstate_r.texi: Likewise.
43913         random_r: Support for MSVC 9.
43914         * lib/random_r.c: Include stdint.h, not inttypes.h.
43916 2012-01-12  Eric Blake  <eblake@redhat.com>
43918         inet_ntop: guard extra work by IF_LINT
43919         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43920         better code generation when not checking for warnings.
43921         Suggested by Paul Eggert and Jim Meyering.
43923         strptime: fix regression on mingw
43924         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43925         Fix regression.  Reported by Bruno Haible.
43927 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43928             Bruno Haible  <bruno@clisp.org>
43930         copy-file: add error-code-returning variant.
43931         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43932         (qcopy_file_preserving): New declaration.
43933         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43934         copy_file_preserving. Change return type to 'int'. Don't emit an error
43935         message here.
43936         (copy_file_preserving): New function.
43937         * tests/test-copy-file.c: Include <stdlib.h>.
43938         (main): Test qcopy_file_preserving if the environment variable
43939         NO_STDERR_OUTPUT is set.
43940         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43941         with NO_STDERR_OUTPUT
43942         * tests/test-copy-file-2.sh: Likewise.
43944 2012-01-10  Bruno Haible  <bruno@clisp.org>
43946         copy-file: Use 'quote' module consistently.
43947         * lib/copy-file.c (copy_file_preserving): Use quote().
43949         copy-file: Refactor.
43950         * lib/copy-file.c: Include quote.h.
43951         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43952         message here.
43953         * modules/copy-file (Depends-on): Add quote.
43955         acl: Export qcopy_acl.
43956         * lib/acl.h (qcopy_acl): New declaration.
43957         * lib/copy-acl.c (qcopy_acl): Make non-static.
43959         acl: Rename a local variable.
43960         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43962         acl: Align return values of copy_acl and qcopy_acl.
43963         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43964         maybe < -1.
43966 2012-01-11  Eric Blake  <eblake@redhat.com>
43968         strptime: silence gcc warnings
43969         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43970         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43971         Reported by Daniel P. Berrange.
43973         inet_ntop: silence gcc warning
43974         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43975         Reported by Daniel P. Berrange.
43977 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43979         getloadavg test: skip the test on GNU/Linux without /proc mounted
43980         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43981         file.  When /proc is not mounted, it always fails with ENOENT.
43982         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43983         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43985 2012-01-10  Bruno Haible  <bruno@clisp.org>
43987         regex: Avoid link error on MSVC 9.
43988         * modules/regex (Depends-on): Add wctype.
43990 2012-01-10  Bruno Haible  <bruno@clisp.org>
43992         doc: Mention --with-tests option.
43993         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43994         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43995         --with-tests.
43996         Reported by Reuben Thomas.
43998 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44000         users.txt: order package names lexicographically.
44001         * users.txt: Order package names lexicographically.
44003 2012-01-10  Jim Meyering  <meyering@redhat.com>
44005         maint.mk: fix description in comment
44006         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44008         ignore-value: remove deprecated ignore_ptr function
44009         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44010         * NEWS: Note this.
44012 2012-01-09  Jim Meyering  <meyering@redhat.com>
44014         test-init.sh: avoid a subshell
44015         * tests/test-init.sh: Remove protective subshell.
44016         Suggested by Bernhard Voelker.  While a subshell is normally
44017         required to protect against older shells (Solaris, FreeBSD) that
44018         warn about a missing program before performing redirection, the
44019         shell-selection tests performed by init.sh probably exclude any
44020         offending shell.
44022 2012-01-08  Bruno Haible  <bruno@clisp.org>
44024         setlocale tests: Avoid test failure on Solaris 11.0.
44025         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44026         variable.
44028 2012-01-08  Bruno Haible  <bruno@clisp.org>
44030         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44031         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44032         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44033         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44034         macro.
44035         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44036         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44037         * lib/spawn_faction_addopen.c: Add workaround implementation if
44038         HAVE_WORKING_POSIX_SPAWN.
44039         * modules/spawn (Makefile): Substitute
44040         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44041         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44042         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44043         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44044         (Depends-on): Update conditions.
44045         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44046         the Solaris 11 bug.
44048 2012-01-08  Bruno Haible  <bruno@clisp.org>
44050         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44051         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44053         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44054         macro.
44055         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44057         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44058         HAVE_WORKING_POSIX_SPAWN.
44059         * modules/spawn (Makefile): Substitute
44060         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44061         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44062         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44063         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44064         (Depends-on): Update conditions.
44065         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44066         the Solaris 11 bug.
44068 2012-01-08  Bruno Haible  <bruno@clisp.org>
44070         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44071         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44072         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44074         HAVE_WORKING_POSIX_SPAWN.
44075         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44076         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44077         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44078         * lib/spawn_faction_addclose.c: Add workaround implementation if
44079         HAVE_WORKING_POSIX_SPAWN.
44080         * modules/spawn (Makefile): Substitute
44081         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44082         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44083         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44084         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44085         (Depends-on): Update conditions.
44086         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44087         the Solaris 11 bug.
44089 2012-01-08  Bruno Haible  <bruno@clisp.org>
44091         doc: Update for Solaris 11.0.
44092         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44093         * m4/printf.m4: Update comments.
44095 2012-01-08  Bruno Haible  <bruno@clisp.org>
44097         mktime: Avoid compilation error on Solaris 11.
44098         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44100 2012-01-08  Bruno Haible  <bruno@clisp.org>
44102         doc: Small fix.
44103         * doc/posix-headers/nl_types.texi: Correct platforms list.
44105 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44107         Add lgpl-3.0 module.
44108         * MODULES.html.sh (Support for building documentation): Add
44109         lgpl-3.0.
44110         * modules/lgpl-3.0: New file.
44112 2012-01-08  Jim Meyering  <meyering@redhat.com>
44114         select.c: indent with spaces, not TABs
44115         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44117 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44119         quotearg: do not use grave accent for left quote
44120         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44121         locale_quoting_style.
44122         (quotearg_buffer_restyled): Fix example.
44123         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44125 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44127         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44128         Most programs do not have translation catalogs for English and much
44129         less separate catalogs for British and American English.  Drop the
44130         suggestion to translators about these two, and provide it
44131         automatically for Unicode locales.  Like most programs, even those
44132         using American English, we use single quotation marks.  This conflicts
44133         with the American typographic convention, but works better when you
44134         cite the entire error message within double quotes.  It also tries not
44135         to clash with established practice and with what non-gnulib programs
44136         will usually do.
44137         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44138         using an UTF-8 or GB-18030 locale.  The list of other locales with
44139         quotes was provided by Bruno Haible.
44140         (quotearg_buffer_restyled): Adjust instructions to translators.
44141         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44142         text, since this would be wrong when using Unicode.
44143         * modules/quotearg: Depend on c-strcaseeq.
44145 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44147         quotearg: fix Wikipedia link
44148         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44150 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44152         Fix for mingw with MSVC9.
44153         * m4/ld-version-script.m4: Check that compiler rejects version
44154         scripts with syntax errors.  Reported by Bruno Haible
44155         <bruno@clisp.org>.
44157 2012-01-06  Bruno Haible  <bruno@clisp.org>
44159         Talk about "native Windows API", not "Woe32".
44160         * lib/accept4.c: Update comments to mention native Windows.
44161         * lib/execute.c: Likewise.
44162         * lib/fatal-signal.c: Likewise.
44163         * lib/localcharset.c: Likewise.
44164         * lib/nanosleep.c: Likewise.
44165         * lib/nl_langinfo.c: Likewise.
44166         * lib/pclose.c: Likewise.
44167         * lib/pipe-filter-gi.c: Likewise.
44168         * lib/pipe-filter-ii.c: Likewise.
44169         * lib/pipe.c: Likewise.
44170         * lib/pipe2.c: Likewise.
44171         * lib/popen.c: Likewise.
44172         * lib/progreloc.c: Likewise.
44173         * lib/relocatable.c: Likewise.
44174         * lib/sigaction.c: Likewise.
44175         * lib/sigprocmask.c: Likewise.
44176         * lib/spawn-pipe.h: Likewise.
44177         * lib/spawn-pipe.c: Likewise.
44178         * lib/spawni.c: Likewise.
44179         * lib/stat-time.h: Likewise.
44180         * lib/w32spawn.h: Likewise.
44181         * tests/test-isatty.c: Likewise.
44182         * lib/config.charset: More comments.
44183         * doc/gnulib-intro.texi: Mention native Windows.
44184         * doc/posix-functions/_Exit_C99.texi: Likewise.
44185         * doc/posix-headers/fcntl.texi: Likewise.
44187 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44189         argp: Avoid crash if translator uses % characters in a translation.
44190         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44191         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44193 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44195         doc: C11 and C++11 are now official
44196         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44197         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44198         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44199         * modules/stdalign:
44200         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44202 2012-01-06  Bruno Haible  <bruno@clisp.org>
44204         uc-is-grapheme-break tests: Tweak.
44205         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44206         message.
44208 2012-01-06  Bruno Haible  <bruno@clisp.org>
44210         test-init.sh: correct the test for diff -u
44211         * tests/test-init.sh: Also redirect stdout to /dev/null.
44213 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44215         Use ', not `, for quoting output.
44216         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44217         (print_changelog_deltas, get_tool_versions, main program):
44218         * build-aux/git-version-gen:
44219         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44220         * build-aux/move-if-change (help):
44221         * build-aux/useless-if-before-free (usage, main program):
44222         * check-module (parse_module_file, usage)
44223         (find_included_lib_files, check_module):
44224         * lib/argmatch.c (main) [TEST]:
44225         * lib/argp-help.c (_help):
44226         * lib/getopt1.c (main) [TEST]:
44227         * lib/git-merge-changelog.c (usage):
44228         * lib/xstrtol-error.c (xstrtol_error):
44229         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44230         * m4/argz.m4 (gl_FUNC_ARGZ):
44231         * m4/bison.m4 (gl_BISON):
44232         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44233         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44234         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44235         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44236         * m4/gc-random.m4 (gl_GC_RANDOM):
44237         * m4/intl.m4 (gt_CHECK_DECL):
44238         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44239         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44240         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44241         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44242         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44243         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44244         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44245         * tests/test-dirname.c (main):
44246         * tests/test-getpass.c (main):
44247         * tests/test-iconvme.c (main):
44248         * tests/test-parse-datetime.c (LOG):
44249         * tests/test-xstrtoimax.sh:
44250         * tests/test-xstrtol.sh:
44251         * tests/test-xstrtoll.sh:
44252         * tests/test-xstrtoumax.sh:
44253         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44254         * top/GNUmakefile (abort-due-to-no-makefile):
44255         Quote 'like this', not `like this', as per the recent change to
44256         the GNU coding standards.
44258 2012-01-05  Bruno Haible  <bruno@clisp.org>
44260         strtoimax: Don't force a replacement on systems where intmax_t is int.
44261         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44262         'intmax_t' is not larger than 'int'.
44263         Reported by Pádraig Brady <P@draigBrady.com>.
44265 2012-01-05  Bruno Haible  <bruno@clisp.org>
44267         doc: Mention NetBSD bugs.
44268         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44269         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44271 2012-01-05  Bruno Haible  <bruno@clisp.org>
44273         strtoumax tests: Enhance tests.
44274         * tests/test-strtoumax.c (main): Add tests for large values.
44276 2012-01-05  Bruno Haible  <bruno@clisp.org>
44278         strtoimax: Work around AIX 5.1 bug.
44279         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44280         definition.
44281         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44282         Set HAVE_STRTOIMAX.
44283         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44284         REPLACE_STRTOIMAX.
44285         * modules/inttypes-incomplete (Makefile.am): Substitute
44286         REPLACE_STRTOIMAX.
44287         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44288         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44289         (Depends-on): Update conditions.
44290         * tests/test-strtoimax.c (main): Add tests for large values.
44291         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44293 2012-01-05  Bruno Haible  <bruno@clisp.org>
44295         inttypes: Modernize.
44296         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44297         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44298         (Makefile.am): Update inttypes.h rule.
44300 2012-01-05  Jim Meyering  <meyering@redhat.com>
44302         init.sh: don't waste a subshell just to redirect stderr
44303         * tests/init.sh: In testing for diff -u and diff -c, use a
44304         stderr-redirecting exec inside `...` rather than a subshell.
44306         test-init.sh: avoid failure on HP-UX 11.00
44307         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44308         resolves to diff -c or cmp.  Reported by Bruno Haible.
44310 2012-01-05  Bruno Haible  <bruno@clisp.org>
44312         Tests for module 'strtoull'.
44313         * modules/strtoull-tests: New file.
44314         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44316 2012-01-05  Bruno Haible  <bruno@clisp.org>
44318         Tests for module 'strtoll'.
44319         * modules/strtoll-tests: New file.
44320         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44322 2012-01-05  Bruno Haible  <bruno@clisp.org>
44324         Tests for module 'strtoul'.
44325         * modules/strtoul-tests: New file.
44326         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44328 2012-01-05  Bruno Haible  <bruno@clisp.org>
44330         Tests for module 'strtol'.
44331         * modules/strtol-tests: New file.
44332         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44334 2012-01-04  Jim Meyering  <meyering@redhat.com>
44336         test-init.sh: accommodate Solaris 5.10's different diff -u output
44337         * tests/test-init.sh: Also exempt @@ lines from the comparison
44338         of diff output, since Solaris 5.10 and GNU diff formats differ.
44339         Reported by Stefano Lattarini.
44341 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44343         test-posixtm: don't assume signed integer wraparound
44344         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44345         after signed integer overflow.  Inspired by (though it may not
44346         fix) Bruno Haible's bug report in
44347         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44349         Spell out "Windows 9x" and "Windows XP".
44350         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44351         "Windows 9x" and "WinXP" with "Windows XP".
44353 2012-01-04  Jim Meyering  <meyering@redhat.com>
44355         test-vc-list-files-cvs.sh: remove obsolete comment
44356         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44357         double exit.  Now that's all encapsulated via skip_ and Exit.
44359 2012-01-04  Bruno Haible  <bruno@clisp.org>
44361         Talk about "native Windows API", not "Win32".
44362         * lib/classpath.c: Update comments to mention native Windows.
44363         * lib/csharpexec.c: Likewise.
44364         * lib/dup2.c: Likewise.
44365         * lib/error.c: Likewise.
44366         * lib/fcntl.c: Likewise.
44367         * lib/filename.h: Likewise.
44368         * lib/findprog.c: Likewise.
44369         * lib/get-rusage-as.c: Likewise.
44370         * lib/get-rusage-data.c: Likewise.
44371         * lib/getpagesize.c: Likewise.
44372         * lib/javaexec.c: Likewise.
44373         * lib/msvc-inval.c: Likewise.
44374         * lib/msvc-nothrow.c: Likewise.
44375         * lib/nanosleep.c: Likewise.
44376         * lib/nonblocking.c: Likewise.
44377         * lib/printf-parse.c: Likewise.
44378         * lib/setlocale.c: Likewise.
44379         * lib/sigaction.c: Likewise.
44380         * lib/strerror_r.c: Likewise.
44381         * lib/tmpdir.c: Likewise.
44382         * lib/vasnprintf.c: Likewise.
44383         * lib/w32spawn.h: Likewise.
44384         * lib/waitpid.c: Likewise.
44385         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44386         * m4/locale-ar.m4: Likewise.
44387         * m4/locale-fr.m4: Likewise.
44388         * m4/locale-ja.m4: Likewise.
44389         * m4/locale-tr.m4: Likewise.
44390         * m4/locale-zh.m4: Likewise.
44391         * m4/printf.m4: Likewise.
44392         * tests/test-cloexec.c: Likewise.
44393         * tests/test-copy-acl.sh: Likewise.
44394         * tests/test-copy-file.sh: Likewise.
44395         * tests/test-file-has-acl.sh: Likewise.
44396         * tests/test-set-mode-acl.sh: Likewise.
44397         * tests/test-dup-safer.c: Likewise.
44398         * tests/test-dup2.c: Likewise.
44399         * tests/test-dup3.c: Likewise.
44400         * tests/test-fcntl.c: Likewise.
44401         * tests/test-nonblocking-pipe.h: Likewise.
44402         * tests/test-nonblocking-socket.h: Likewise.
44403         * tests/test-pipe.c: Likewise.
44404         * tests/test-pipe2.c: Likewise.
44405         * tests/test-spawn-pipe-child.c: Likewise.
44406         * doc/acl-resources.txt: Likewise.
44407         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44408         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44409         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44410         * lib/localcharset.c: Update comments to mention native Windows.
44411         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44412         * lib/localename.c: Likewise.
44413         * lib/progreloc.c: Likewise.
44414         * lib/relocatable.c: Likewise.
44415         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44416         (windows_compute_revents): Renamed from win32_compute_revents.
44417         (windows_compute_revents_socket): Renamed from
44418         win32_compute_revents_socket.
44419         * lib/select.c: Update comments to mention native Windows.
44420         (windows_poll_handle): Renamed from win32_poll_handle.
44421         * m4/threadlib.m4: Update comments to mention native Windows.
44422         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44423         --enable-threads=windows instead of --enable-threads=win32. Set
44424         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44425         * lib/glthread/lock.h: Update comments to mention native Windows.
44426         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44427         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44428         USE_WIN32_THREADS.
44429         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44430         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44431         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44432         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44433         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44434         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44435         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44436         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44437         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44438         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44439         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44440         * tests/test-tls.c: Likewise.
44441         Rationale:
44442         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44443         on both 32-bit and 64-bit Windows systems.
44444         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44445         line of distinction is between "native Windows" on one side and Unix/
44446         POSIX systems on the other side. More details in
44447         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44448         Suggested by Paul Eggert.
44450 2012-01-03  Bruno Haible  <bruno@clisp.org>
44452         isatty: Support for MSVC 9.
44453         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44454         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44455         (_isatty_nothrow): New function.
44456         (isatty): Use it instead of _isatty.
44457         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44458         * lib/poll.c (IsConsoleHandle): Likewise.
44459         * lib/select.c (IsConsoleHandle): Likewise.
44460         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44461         (gl_PREREQ_ISATTY): New macro.
44462         * modules/isatty (Depends-on): Add msvc-inval.
44463         (configure.ac): Invoke gl_PREREQ_ISATTY.
44465 2012-01-03  Jim Meyering  <meyering@redhat.com>
44467         maint.mk: remove temporary transition aid from over 1.5 years ago
44468         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44469         purpose was to aid in the transition (avoiding silent malfunction)
44470         from that old name to the new _sc_search_regexp.  This shim was
44471         added by commit 219c504b.
44473         init.sh: do not try to accommodate compare arguments starting with "-"
44474         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44475         compare arguments that start with "-".  Besides, we do not worry
44476         about this when invoking diff or cmp; why start now with sed?
44477         Using "--" to separate options from argument would trigger sed
44478         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44479         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44481 2012-01-02  Bruno Haible  <bruno@clisp.org>
44483         Enhance tests for module 'isatty'.
44484         * modules/isatty-tests (Depends-on): Add pipe-posix.
44485         * tests/test-isatty.c: Include <fcntl.h>.
44486         (DEV_NULL): New macro.
44487         (main): Test the resut of isatty() also on regular files, pipes, and
44488         /dev/null.
44490         New module 'isatty'.
44491         * lib/unistd.in.h (isatty): New declaration.
44492         * lib/isatty.c: New file, based on an idea of
44493         Bastien Roucariès <roucaries.bastien@gmail.com>.
44494         * m4/isatty.m4: New file.
44495         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44497         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44498         REPLACE_ISATTY.
44499         * modules/isatty: New file.
44500         * doc/posix-functions/isatty.texi: Mention the new module.
44501         Suggested by Paolo Bonzini.
44503 2012-01-02  Bruno Haible  <bruno@clisp.org>
44505         canonicalize: Tweak 2011-12-29 commit.
44506         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44507         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44509 2012-01-02  Jim Meyering  <meyering@redhat.com>
44511         gitlog-to-changelog: describe input syntax in --help output
44512         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44514         gitlog-to-changelog: fix typo in --help: show backslash before email @
44515         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44516         in sources, but not in actual output.
44518 2011-12-30  Jim Meyering  <meyering@redhat.com>
44520         gitlog-to-changelog: don't malfunction when name contains %-directive
44521         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44522         in a name string cause trouble.  E.g., with a user name of "%s",
44523         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44525 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44527         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44528         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44529         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44530         the "  (tiny change)" notation that is appended to the standard
44531         ChangeLog "date  name  email" header line.
44533 2012-01-01  Jim Meyering  <meyering@redhat.com>
44535         test-framework-sh: init.sh: fix "make dist" failure
44536         When using gnulib-tool's --with-tests option and any module that
44537         depends on test-framework-sh, "make dist" would fail due to the
44538         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44539         in the gltests directory, and not in the gllib/ directory.
44540         One way to work around that is to move the EXTRA_DIST += init.sh
44541         from the primary module to the -tests one:
44542         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44543         * modules/test-framework-sh (Makefile.am): ...not here.
44544         Reported by Tom G. Christensen in
44545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44547         version-etc: update copyright year reported by --version
44548         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44550 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44552         canonicalize: only stat() if required
44553         * lib/canonicalize.c (canonicalize_filename_mode):
44554         Avoid calling l?stat() when both CAN_MISSING,
44555         and CAN_NOLINKS are set, as we neither need
44556         to resolve symlinks or test component existence.
44558 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44560         doc: cover st_ino issues once; add OpenVMS etc.
44561         * doc/posix-functions/stat.texi (stat):
44562         * doc/posix-functions/lstat.texi (lstat):
44563         * doc/posix-functions/fstatat.texi (fstatat):
44564         * doc/posix-functions/fstat.texi (fstat):
44565         Move general 'struct stat' stuff to sys_stat.texi,
44566         leaving behind a pointer.
44567         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44568         Merge duplicate info about 'struct stat' problems into here.
44569         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44570         and suggest partial workarounds.
44572         same-inode: port to OpenVMS
44573         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44574         three st_ino values.
44576 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44578         canonicalize: fix references to stat() and lstat()
44579         * lib/canonicalize.c (canonicalize_filename_mode):
44580         Ensure references always resolve to a replacement
44581         function if required (even via a macro).
44583 2011-12-30  Jim Meyering  <meyering@redhat.com>
44585         gitlog-to-changelog: remove a little duplication
44586         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44587         rather than twice.
44589 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44591         canonicalize: add support for not resolving symlinks
44592         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44593         indicate we don't want to follow symlinks.  Also
44594         provide CAN_MODE_MASK to aid setting these existing
44595         mutually exclusive values.
44596         * lib/canonicalize.c (canonicalize_filename_mode):
44597         Extract the flags from can_mode parameter, which
44598         are currently just used to select between stat()
44599         and lstat().  Also ensure that mutually exclusive
44600         values are flagged immediately as invalid.
44601         * tests/test-canonicalize.c: Verify symlinks are
44602         not followed, and that invalid flag combinations
44603         are diagnosed.
44605 2011-12-25  Jim Meyering  <meyering@redhat.com>
44607         gitlog-to-changelog: do not clump multi-paragraph entries
44608         Identical header lines (date,name,email+coauthors) are suppressed,
44609         thus putting all entries with those same characteristics under
44610         a single header.  However, when a log entry consists of two or
44611         more paragraphs, it may not be clear where it starts and ends.
44612         This change makes it so that such an entry is always separated
44613         from others by a header line, even when that header would
44614         otherwise be suppressed.
44615         * build-aux/gitlog-to-changelog: Implement the above.
44616         Inspired by a related request from Stefano Lattarini in
44617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44619 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44621         announce-gen: fix `cmd' typo in diagnostic
44622         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44623         diagnostic: a missing '$' meant that the command was not output.
44625 2011-12-23  Jim Meyering  <meyering@redhat.com>
44627         test-framework-sh: distribute init.sh
44628         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44629         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44630         fail due to the lack of init.sh.
44632         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44633         * modules/atexit-tests: Rather than listing tests/init.sh,
44634         now that there's a module for it, simply depend on that new module.
44635         * modules/closein-tests: Likewise.
44636         * modules/exclude-tests: Likewise.
44637         * modules/getcwd-tests: Likewise.
44638         * modules/perror-tests: Likewise.
44639         * modules/pread-tests: Likewise.
44640         * modules/pwrite-tests: Likewise.
44641         * modules/vc-list-files-tests: Likewise.
44642         * modules/verify-tests: Likewise.
44643         * modules/xalloc-die-tests: Likewise.
44644         * modules/xstrtoimax-tests: Likewise.
44645         * modules/xstrtol-tests: Likewise.
44646         * modules/xstrtoll-tests: Likewise.
44647         * modules/xstrtoumax-tests: Likewise.
44648         * modules/yesno-tests: Likewise.
44650 2011-12-22  Jim Meyering  <meyering@redhat.com>
44652         test-framework-sh: add minimal tests of init.sh's compare function
44653         * modules/test-framework-sh-tests: New file.
44654         * tests/test-init.sh: New file.
44656         test-framework-sh: new module
44657         * modules/test-framework-sh: New file.
44658         * MODULES.html.sh (Support for maintaining and releasing projects):
44659         List it.
44661         init.sh: do not emit simulated diff output to stderr
44662         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44664 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44666         .gitignore: ignore gnulib.dvi and regex.info
44667         * doc/.gitignore:add gnulib.dvi and regex.info
44669 2011-12-22  Jim Meyering  <meyering@redhat.com>
44671         init.sh: correct previous change
44672         * tests/init.sh (compare): My previous change was wrong.
44673         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44675         init.sh: avoid unwarranted test failure when using "set -e"
44676         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44677         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44678         a use like "compare exp out" would get evoke an unconditional failure.
44680 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44682         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44683         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44684         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44685         autoreconf that did not.
44686         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44687         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44689 2011-12-17  Jim Meyering  <meyering@redhat.com>
44691         bootstrap: remove some now-unneeded code
44692         This script arose back when gnulib-tool was young.
44693         Since then, it has seen improvements that render much of this
44694         script unnecessary.  In particular, it can now make symlinks
44695         to the files it uses.  Also, I no longer see as much value in
44696         marking files as read-only via comments.
44697         If you relied on the symlink-creation feature of the preceding
44698         version of this script, you can get most of that functionality
44699         by adding the --symlink option to the definition of
44700         gnulib_tool_option_extras in your bootstrap.conf file.
44701         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44702         Run autopoint and libtoolize *before* gnulib-tool.
44703         After it, run an abbreviated autoreconf, rather than a loop around
44704         all tools.
44705         (slirp, bt_mark_as_generated): Remove functions.
44707 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44709         ftoastr: fix typo
44710         * lib/ftoastr.h: Fix misspelling in comment.
44712 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44714         * top/README-release: fix punctuation.
44716 2011-12-17  Jim Meyering  <meyering@redhat.com>
44718         bootstrap: correct the recent buildreq change
44719         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44720         had no effect.
44721         * build-aux/bootstrap (buildreq): Bracket each search term with
44722         "*...*", so that the shell "case" statement works as intended.
44723         Add comments.
44725 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44727         build: let bootstrap resort to wget when downloading .po files
44728         * build-aux/bootstrap (download_po_files): Fallback to wget when
44729         downloading the .po files via rsync fails.  This is necessary to
44730         bootstrap from behind a strict firewall.
44732 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44734         stdint: don't assume C++11 when compiling with g++
44735         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44736         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44737         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44738         work also in C++ before C++11, as that improperly inhibits
44739         generating a substitute stdint.h for that case.
44741 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44743         alloca: protect comment from gnulib-tool
44744         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44745         that gnulib-tool doesn't think it's a license, and munge it to
44746         say "GCC version 3".
44748 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44750         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44751         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44752         $(abs_top_builddir) instead of $(top_builddir).
44754 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44756         strftime-tests: also test nanoseconds
44757         * tests/test-strftime.c (T): Add a test of %N.
44759 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44761         inttypes, stdint: add C++11 support
44762         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44763         when including inttypes.h and stdint.h.  Support this change to
44764         the standard.
44765         * doc/posix-headers/inttypes.texi (inttypes.h):
44766         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44767         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44768         Define if not defined already, for the benefit of pre-C++11 hosts.
44769         Define the standard format macros (e.g., PRId8) always.
44770         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44771         Likewise, if __cpluspus.  Define the standard constant and limit
44772         macros (e.g., INT8_C, INT8_MAX) always.
44773         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44774         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44775         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44776         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44777         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44778         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44779         Likewise.
44781 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44783         nonblocking tests: Fix test failure on Linux/PPC.
44784         Suggested by Prerna Saxena in
44785         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44786         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44787         Set to 1100000.
44789 2011-12-12  Jim Meyering  <meyering@redhat.com>
44791         argmatch: don't hard-code `' when listing valid option arguments
44792         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44793         use the quote function to add quotes.  Use fputs rather than
44794         fprintf for the format string with no format directive.
44796 2011-12-07  Eric Blake  <eblake@redhat.com>
44798         bootstrap: detect tools required by gnulib-tool
44799         * build-aux/bootstrap (buildreq): Provide minimum implicit
44800         dependencies.
44801         * DEPENDENCIES: Mention patch as a prereq.
44803 2011-12-04  Bruno Haible  <bruno@clisp.org>
44805         sethostname: Port to Windows platforms.
44806         * lib/sethostname.c: Provide an alternate implementation for Windows
44807         platforms.
44808         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44809         (main): Skip the test if sethostname() fails with EPERM. On Windows
44810         platforms, don't check the result of gethostname().
44812 2011-12-04  Bruno Haible  <bruno@clisp.org>
44813             Jim Meyering  <meyering@redhat.com>
44815         tests: Avoid spurious error message on platforms without mktemp program.
44816         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44818 2011-12-04  Bruno Haible  <bruno@clisp.org>
44820         sethostname: Fix documentation.
44821         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44822         "not fixed" section.
44824 2011-12-03  Bruno Haible  <bruno@clisp.org>
44826         gnulib-tool: Verify that the License field is present and non-empty.
44827         * gnulib-tool (func_get_license_raw): New function, extracted from
44828         func_get_license.
44829         (func_get_license): Use it. Warn if the module is not a test module and
44830         has no license.
44831         Suggested by Jim Meyering.
44833 2011-12-03  Bruno Haible  <bruno@clisp.org>
44835         sethostname tests: Fix link error on mingw.
44836         * tests/test-sethostname1.c: New file, extracted from
44837         tests/test-sethostname.c.
44838         * tests/test-sethostname2.c: New file, extracted from
44839         tests/test-sethostname.c.
44840         * tests/test-sethostname.c: Remove file.
44841         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44842         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44843         (Depends-on): Add gethostname.
44844         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44845         Link the latter with $(GETHOSTNAME_LIB).
44847         sethostname tests: Fix compilation error on mingw.
44848         * tests/test-sethostname.c: Don't include <sys/types.h>.
44849         (geteuid): Use a dummy value without uid_t.
44850         * modules/sethostname-tests (Depends-on): Remove sys_types.
44852         sethostname tests: Avoid a gcc warning.
44853         * tests/test-sethostname.c (main): Remove an unused variable.
44855         Tweak last commit.
44856         * modules/sethostname-tests (Files): Sort by decreasing importance.
44857         (configure.ac): Check for geteuid.
44858         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44859         the test when there's nothing to test. Drop an unnecessary cast.
44860         Improve an error message. Verify that the final sethostname() call
44861         succeeds.
44863 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44865         Add a test suite for the sethostname module.
44866         * modules/sethostname-tests: New file.  A test program
44867         for the sethostname module.
44868         * tests/test-sethostname.c: Likewise.
44870 2011-12-03  Bruno Haible  <bruno@clisp.org>
44872         Tweak last commit.
44873         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44874         Fix preprocessor directives indentation. Fix typos.
44875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44876         * modules/unistd (Makefile): Likewise.
44878 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44880         Integrate the sethostname module into unistd.
44881         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44882         into the unistd.h header.
44883         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44884         preprocessor directives.
44885         * modules/unistd: Setup the Makefile substitutions of the
44886         SETHOSTNAME preprocessor directives.
44888 2011-12-03  Bruno Haible  <bruno@clisp.org>
44890         Tweak last commit.
44891         * lib/sethostname.c: Don't include <string.h>.
44892         (sethostname): No need to copy the argument string to the stack. Don't
44893         call clearerr. Preserve errno when fprintf failed.
44894         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44895         Don't invoke AC_REPLACE_FUNCS.
44896         * modules/sethostname (Link): Remove empty section.
44897         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44898         failure problem.
44900 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44902         New module 'sethostname'.
44903         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44904         for systems that lack it.
44905         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44906         sethostname declaration and function.
44907         * modules/sethostname: New file.  Define the sethostname module.
44909 2011-12-03  Bruno Haible  <bruno@clisp.org>
44911         Tweak last commit.
44912         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44914 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44916         Split the HOST_NAME_MAX detection into a separate m4 macro.
44917         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44918         macro so it can be used by the pending sethostname module.
44920 2011-12-03  Bruno Haible  <bruno@clisp.org>
44922         Fix module descriptions syntax.
44923         * modules/argv-iter (License): Fix syntax.
44924         * modules/di-set (License): Likewise.
44925         * modules/ino-map (License): Likewise.
44926         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44928 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44930         stdalign: port to Clang 3.0
44931         Problem reported by Simon Josefsson in
44932         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44933         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44934         which has <stdalign.h> but which does not define alignof.
44935         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44937 2011-12-01  Eric Blake  <eblake@redhat.com>
44939         mktempd: silence dd usage
44940         * build-aux/mktempd (rand_bytes): Silence dd.
44942 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44944         manywarnings: Don't mention gcc version in docstring.
44945         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44946         Jim Meyering <meyering@redhat.com>.
44948 2011-11-30  Jim Meyering  <meyering@redhat.com>
44950         hash: mark a few floating point constants with "f" suffix
44951         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44952         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44953         floating point constants with "f", since they're destined to be
44954         saved/used as "float"s.
44956 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44958         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44959         * tests/test-float.c (test_long_double): Correct and re-enable the
44960         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44962 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44964         Avoid subtracting two pointers that don't point into the same block.
44965         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44966         only pointers into the same memory block are subtracted. We cannot
44967         assume that sizeof (ptrdiff_t) == sizeof (void *).
44969 2011-11-29  Eric Blake  <eblake@redhat.com>
44971         maint.mk: add syntax check for use of compare from init.sh
44972         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44973         moved here from coreutils.
44975         manywarnings: drop -Wunsuffixed-float-constants
44976         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44977         '1.0D', which is the only way to silence this warning for 'double'.
44979 2011-11-29  Jim Meyering  <meyering@redhat.com>
44981         hash: mark compute_bucket_size with the pure attribute
44982         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44984         quotearg, propername: correct pragma guard expression
44985         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44986         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44988 2011-11-28  Jim Meyering  <meyering@redhat.com>
44990         propername: do not mark proper_name with the const attribute
44991         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44992         since it examines data pointed to by its parameter.
44993         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44994         the suggestion from -Wsuggest-attribute=const.
44996         propername: mark one more function as const
44997         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44999 2011-11-27  Jim Meyering  <meyering@redhat.com>
45001         mark functions with const and pure attributes
45003         Mark functions per suggestions from gcc-4.6 when using these options:
45004         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45005         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45006         Follow these guidelines: when possible, apply the attribute to
45007         an extern declaration, not to its definition.  Apply it to the
45008         definition only when the definition is static.
45009         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45010         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45011         * lib/base64.h (isbase64): Likewise.
45012         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45013         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45014         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45015         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45016         (c_tolower, c_toupper): Likewise.
45017         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45018         * lib/chdir-long.c (find_non_slash): Likewise.
45019         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45020         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45021         * lib/file-type.h (file_type): Likewise.
45022         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45023         * lib/filevercmp.c (verrevcmp): Likewise.
45024         * lib/freadahead.h (freadahead): Likewise.
45025         * lib/fts.c (fts_maxarglen): Likewise.
45026         * lib/hash-pjw.h (hash_pjw): Likewise.
45027         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45028         * lib/hash.c (is_prime, next_prime): Likewise.
45029         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45030         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45031         (hash_table_ok, hash_get_first, hash_string): Likewise.
45032         (compute_bucket_size): Likewise.
45033         * lib/i-ring.h (i_ring_empty): Likewise.
45034         * lib/isnan.c (isnanl): Likewise.
45035         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45036         * lib/memcasecmp.h (memcasecmp): Likewise.
45037         * lib/memchr2.h (memchr2): Likewise.
45038         * lib/memcmp2.h (memcmp2): Likewise.
45039         * lib/parse-datetime.y (lookup_zone): Likewise.
45040         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45041         [!WINDOWS_SOCKETS]: Likewise.
45042         * lib/strnlen1.h (strnlen1): Likewise.
45043         * lib/uniwidth.in.h (uc_width): Likewise.
45044         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45045         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45046         (quoting_options_from_style): Add a comment.
45047         * lib/propername.h (proper_name): Add a comment.
45049 2011-11-27  Bruno Haible  <bruno@clisp.org>
45051         Remove unused macros from !_LIBC code in glibc-borrowed files.
45052         * lib/fnmatch.c (STRCOLL): Remove macro.
45053         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45054         * lib/glob.c (__stat, __readdir64): Remove macros.
45055         * lib/tempname.c (__open64, __xstat64): Remove macros.
45056         Suggested by Paul Eggert.
45058 2011-11-27  Bruno Haible  <bruno@clisp.org>
45060         getcwd: Fix link error on MSVC 9.
45061         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45063 2011-11-27  Bruno Haible  <bruno@clisp.org>
45065         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45066         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45067         HAVE_OPENDIR is 0.
45068         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45069         HAVE_CLOSEDIR is 0.
45070         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45071         is 0.
45072         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45074 2011-11-27  Bruno Haible  <bruno@clisp.org>
45076         getcwd: Fix bug from 2011-08-17.
45077         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45078         platforms that need it.
45079         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45080         code of 4 to be a failure, not a success. This ensures that
45081         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45083 2011-11-27  Bruno Haible  <bruno@clisp.org>
45085         binary-io tests: Avoid test failure on mingw when libtool is used.
45086         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45087         Don't verify the size of t-bin-out1.tmp here.
45088         * tests/test-binary-io.sh: Verify it here.
45089         Reported by Simon Josefsson.
45091 2011-11-26  Bruno Haible  <bruno@clisp.org>
45093         Fix conflict between two instantiations of module 'unistd'.
45094         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45095         ${include_guard_prefix} also in the autoconf snippet.
45096         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45098         GNULIB_UNISTD_H_GETOPT.
45099         * modules/getopt-posix (configure.ac): Set the
45100         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45101         * modules/getopt-gnu (configure.ac): Likewise.
45102         * modules/unistd (Makefile.am): Change the substitution value of
45103         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45104         Reported by Simon Josefsson.
45106 2011-11-25  Bruno Haible  <bruno@clisp.org>
45108         pagealign_alloc: Doc and comments.
45109         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45110         module.
45111         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45113 2011-11-25  Jim Meyering  <meyering@redhat.com>
45115         test-update-copyright.sh: avoid false-positive failure
45116         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45117         around false positive failure on Cygwin/Windows.  The latter was
45118         matching erroneously-created files with names like
45119         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45121 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45123         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45124         * m4/valgrind-tests.m4: Check that the parameters that will be
45125         used works, not just a subset of them.  Reported by Bruno Haible
45126         <bruno@clisp.org>.
45128 2011-11-24  Jim Meyering  <meyering@redhat.com>
45130         test-stdalign.c: comment out long double tests
45131         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45132         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45133         error: '_Alignas' specifiers cannot reduce alignment of \
45134         'static_longdouble_alignas'.
45136 2011-11-22  Jim Meyering  <meyering@redhat.com>
45138         init.sh: make "compare /dev/null FILE" output more readable
45139         * tests/init.sh (compare_): Document the preferred order of arguments.
45140         (emit_diff_u_header_): New function.
45141         (compare_dev_null_): Emit a simulated diff, rather than just the
45142         contents of the unexpected file.  Suggestion from Bruno Haible.
45144 2011-11-21  Jim Meyering  <meyering@redhat.com>
45145             Eric Blake  <eblake@redhat.com>
45147         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45148         * tests/init.sh: Make our compare function slightly more portable.
45149         Reported by Bruno Haible in
45150         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45152 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45154         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45155         before using it, in code that ends up in config.h.
45157 2011-11-20  Bruno Haible  <bruno@clisp.org>
45159         getcwd: Work around getcwd bug on AIX 5..7.
45160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45161         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45162         Use a different value for gl_cv_func_getcwd_path_max. Move the
45163         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45164         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45165         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45166         Define HAVE_MINIMALLY_WORKING_GETCWD.
45167         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45168         where it is not even minimally working, that is, on AIX.
45169         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45170         m4/getcwd-path-max.m4.
45171         (main): Update exit code computation.
45172         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45173         getcwd does not handle long file names.
45175 2011-11-20  Bruno Haible  <bruno@clisp.org>
45177         getcwd: Fix bug from 2009-09-10.
45178         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45179         like "no".
45181 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45183         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45185 2011-11-20  Bruno Haible  <bruno@clisp.org>
45187         fma tests: Avoid shadowing local variables.
45188         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45189         expected.
45191 2011-11-20  Bruno Haible  <bruno@clisp.org>
45193         copysignf tests: Fix.
45194         * tests/test-copysignf.c: Fix signature check.
45196 2011-11-20  Bruno Haible  <bruno@clisp.org>
45198         fma: Remove unused code.
45199         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45200         unused macros.
45202 2011-11-20  Bruno Haible  <bruno@clisp.org>
45204         sethostname: Fix doc about AIX.
45205         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45206         sethostname; it has it.
45208         sethostname: Mention more portability problems.
45209         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45210         problem.
45211         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45213 2011-11-19  Bruno Haible  <bruno@clisp.org>
45215         Depend on module fcntl-h when AT_FDCWD is used.
45216         * modules/utimens (Depends-on): Add fcntl-h.
45217         * modules/areadlinkat (Depends-on): Likewise.
45218         * modules/areadlinkat-with-size (Depends-on): Likewise.
45219         * modules/faccessat (Depends-on): Likewise.
45220         * modules/fchmodat (Depends-on): Likewise.
45221         * modules/fchownat (Depends-on): Likewise.
45222         * modules/getcwd (Depends-on): Likewise.
45223         * modules/mkdirat (Depends-on): Likewise.
45224         * modules/mkfifoat (Depends-on): Likewise.
45225         * modules/readlinkat (Depends-on): Likewise.
45226         * modules/symlinkat (Depends-on): Likewise.
45227         * modules/dup2-tests (Depends-on): Likewise.
45228         * modules/fdutimensat-tests (Depends-on): Likewise.
45229         * modules/futimens-tests (Depends-on): Likewise.
45231 2011-11-19  Bruno Haible  <bruno@clisp.org>
45233         euidaccess: Update a comment.
45234         * lib/euidaccess.c: Update comment about platforms with faccessat.
45236 2011-11-19  Bruno Haible  <bruno@clisp.org>
45238         openat: Fix file list.
45239         * modules/openat (Files): Remove lib/at-func.c.
45241 2011-11-19  Bruno Haible  <bruno@clisp.org>
45243         fstatat: Simplify.
45244         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45245         gnulib should define rpl_fstatat, there is a
45246         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45248 2011-11-19  Bruno Haible  <bruno@clisp.org>
45250         Ensure 'inline' can be used in tests/test-utimens-common.h.
45251         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45252         * modules/futimens-tests (configure.ac): Likewise.
45253         * modules/utimens-tests (configure.ac): Likewise.
45254         * modules/utimensat-tests (configure.ac): Likewise.
45256 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45258         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45259         not hash_insert0.
45260         (hash_insert_if_absent): Doc fix.
45262 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45264         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45266 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45268         test-getcwd: disambiguate exit status
45269         * tests/test-getcwd.c (test_long_name): Return 0..7.
45270         (main): Exit with an unambiguous exit status.  The old
45271         code yielded a mysterious mixture of two failure codes.
45273         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45274         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45275         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45276         rpl_fstatat or fstatat.  This should fix the other problem
45277         reported by Kai Habel in
45278         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45279         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45280         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45281         and I reproduced it on a Solaris 8 host we still have in production.
45283 2011-11-18  Jim Meyering  <meyering@redhat.com>
45285         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45286         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45287         Add a sentence to the comment.
45288         (hash_insert0): New function that simply calls hash_insert_if_absent.
45289         * lib/hash.h (hash_insert_if_absent): Declare it.
45290         (hash_insert0): Add deprecation attribute.
45291         (_GL_ATTRIBUTE_DEPRECATED): Define.
45292         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45293         not hash_insert0.
45294         * NEWS: Mention it, even though it's not really an incompatible change.
45296 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45298         openat: avoid compilation failure due to lack of <errno.h> inclusion
45299         * lib/openat.c: Include <errno.h>.
45301 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45303         * modules/getcwd (Depends-on): Add fdopendir.
45304         This fixes one of the two problems reported by Kai Habel in
45305         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45307         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45308         stdalign problem reported by Ian Beckwith in
45309         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45310         * modules/crypto/gc-arcfour (Depends-on):
45311         Depend conditionally on crypto/arcfour.
45312         * modules/crypto/gc-arctwo (Depends-on):
45313         Depend conditionally on crypto/arctwo.
45314         * modules/crypto/gc-des (Depends-on):
45315         Depend conditionally on crypto/des.
45316         * modules/crypto/gc-hmac-md5 (Depends-on):
45317         Depend conditionally on crypto/hmac-md5.
45318         * modules/crypto/gc-hmac-sha1 (Depends-on):
45319         Depend conditionally on crypto/hmac-sha1.
45320         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45321         * modules/crypto/gc-md4 (Depends-on):
45322         Depend conditionally on crypto/md4.
45323         * modules/crypto/gc-md5 (Depends-on):
45324         Depend conditionally on crypto/md5.
45325         * modules/crypto/gc-rijndael (Depends-on):
45326         Depend conditionally on crypto/rijndael.
45327         * modules/crypto/gc-sha1 (Depends-on):
45328         Depend conditionally on crypto/sha1.
45329         * modules/crypto/gc-arcfour:
45330         * modules/crypto/gc-arctwo:
45331         * modules/crypto/gc-des:
45332         * modules/crypto/gc-hmac-md5:
45333         * modules/crypto/gc-hmac-sha1:
45334         * modules/crypto/gc-md2:
45335         * modules/crypto/gc-md4:
45336         * modules/crypto/gc-md5:
45337         * modules/crypto/gc-rijndael:
45338         * modules/crypto/gc-sha1:
45339         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45340         now that the conditional dependencies do the work for us.
45342 2011-11-17  Jim Meyering  <meyering@redhat.com>
45344         tests: factor st_ctime-comparison out of two headers
45345         * tests/test-utimens-common.h (ctime_compare): Define.
45346         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45347         * tests/test-lutimens.h (test_lutimens): Likewise.
45348         * tests/test-utimens.h (test_utimens): Likewise.
45350         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45351         Invoke the test program via an init.sh-using wrapper.
45352         * tests/test-getcwd.sh: New file.
45353         * modules/getcwd-tests (Files): Add it.
45354         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45356 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45358         gitlog-to-changelog: support multi-author commits.
45359         The FSF cares about keeping track of all authors of patches to its
45360         projects, but Git doesn't provide obvious support for multi-author
45361         changesets. Consensus seems to be forming around the use of extra
45362         Signed-off-by inspired lines in the log message formatted as
45363         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45364         multi-author commits between version control systems.
45365         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45366         log message and output in standard ChangeLog multi-author format.
45367         Reported by Peter Rosin <peda@lysator.liu.se>
45369 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45370             Bruno Haible  <bruno@clisp.org>
45372         Fix some modules' file list.
45373         * modules/fstatat (Files): Add m4/lstat.m4.
45374         * modules/openat (Files): Likewise.
45375         * modules/unlinkat (Files): Likewise.
45377 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45379         maint.mk: fix tight-scope.mk generation in VPATH builds.
45380         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45381         reference with $(srcdir) so that the file is found correctly even
45382         when running `make syntax-check' in a VPATH build.
45384 2011-11-13  Bruno Haible  <bruno@clisp.org>
45385             Jim Meyering  <meyering@redhat.com>
45387         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45388         * tests/init.sh (compare): Remove "No differences encountered" or
45389         synonymous output from the 'diff' program.
45391 2011-11-13  Bruno Haible  <bruno@clisp.org>
45393         Makefile: Tweak indentation.
45394         * Makefile: Use tab as first character in every line that contains rule
45395         commands.
45397 2011-11-13  Bruno Haible  <bruno@clisp.org>
45399         Syntax check for copyright statements.
45400         * check-copyright: New file.
45401         * Makefile (sc_check_copyright): New rule.
45403 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45405         * build-aux/git-version-gen: Add --prefix to configure the tag
45406         match string.
45408 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45410         * build-aux/git-version-gen: Add --help and --version.
45412 2011-11-12  Jim Meyering  <meyering@redhat.com>
45414         revamp the other test-exclude?.sh scripts to use init.sh, too
45415         * tests/test-exclude1.sh: Use init.sh.
45416         * tests/test-exclude2.sh: Likewise.
45417         * tests/test-exclude3.sh: Likewise.
45418         * tests/test-exclude4.sh: Likewise.
45419         * tests/test-exclude5.sh: Likewise.
45420         * tests/test-exclude6.sh: Likewise.
45421         * tests/test-exclude7.sh: Likewise.
45422         * tests/test-exclude8.sh: Likewise.
45423         * modules/exclude-tests (Files): List init.sh.
45425         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45426         These shell scripts ignored failure of the binary test-exclude,
45427         so making the latter return 77 didn't cause them to be skipped.
45428         * tests/test-exclude5.sh: Exit with test-exclude's error status
45429         when that program fails.  Revamp to use init.sh.
45430         * tests/test-exclude2.sh: Likewise.
45432         test-exclude: fix a typo
45433         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45435 2011-11-11  Bruno Haible  <bruno@clisp.org>
45437         obstack: Fix compilation error on MSVC 9.
45438         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45440 2011-11-11  Jim Meyering  <meyering@redhat.com>
45442         test-exclude: skip tests rather than failing on deficient systems
45443         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45444         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45445         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45446         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45448 2011-11-10  Bruno Haible  <bruno@clisp.org>
45450         ptsname_r test: Avoid gcc warning on glibc systems.
45451         * tests/test-ptsname_r.c (null_ptr): New function.
45452         (test_errors): Use it.
45454 2011-11-10  Bruno Haible  <bruno@clisp.org>
45456         ptsname_r: Avoid compilation error on OSF/1 5.1.
45457         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45459         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45460         function is not declared or incompatibly declared.
45461         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45462         * modules/ptsname_r (Depends-on, configure.ac): Update.
45463         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45465 2011-11-10  Bruno Haible  <bruno@clisp.org>
45467         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45468         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45469         When cross-compiling, guess yes on all platforms except AIX.
45470         Reported by Ludovic Courtès <ludo@gnu.org>.
45472 2011-11-09  Bruno Haible  <bruno@clisp.org>
45474         ptsname_r tests: Fix bugs.
45475         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45476         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45478 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45480         fstatat: work with cross-compilation
45481         Problem reported by Ludovic Courtès in
45482         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45483         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45484         "cross-compiling" and assume the bug is present.  Replace
45485         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45486         an inverted sense, to be more conservative about our assumptions.
45487         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45489 2011-11-09  Bruno Haible  <bruno@clisp.org>
45491         Improve MODULES.html output.
45492         * modules/mkfifoat (Description): Use the word "function".
45493         * modules/readlinkat (Description): Likewise.
45494         * modules/symlinkat (Description): Likewise.
45496 2011-11-09  Eric Blake  <eblake@redhat.com>
45498         ptsname_r-tests: new test module
45499         * modules/ptsname_r-tests: New module.
45500         * tests/test-ptsname_r.c: New file.
45502         ptsname_r: new module
45503         * modules/ptsname_r: New module.
45504         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45505         * lib/ptsname.c (__ptsname_r): Split...
45506         * lib/ptsname_r.c: ...into new file.
45507         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45508         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45509         * modules/stdlib (Makefile.am): Substitute witnesses.
45510         * lib/stdlib.in.h (ptsname_r): Declare it.
45511         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45512         * MODULES.html.sh (Misc): Likewise.
45513         * modules/ptsname (Depends-on): Alter dependency.
45514         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45516 2011-11-09  Jim Meyering  <meyering@redhat.com>
45518         announce-gen: be more concise when there's only one URL+tarball
45519         * build-aux/announce-gen (get_tool_versions): When you distribute
45520         only one type of tarball, combine the first two "Here are..."
45521         sections and make the key-checking grammar independent of
45522         how many tarballs there are.
45524 2011-11-09  Eric Blake  <eblake@redhat.com>
45526         openpty: provide a stub on mingw
45527         * lib/pty.in.h (includes): Provide forward declarations.
45528         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45530         raise: fix mingw handling of SIGPIPE
45531         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45533 2011-11-08  Bruno Haible  <bruno@clisp.org>
45535         More conditional dependencies.
45536         * modules/faccessat (Depends-on): Add conditions.
45537         * modules/fchmodat (Depends-on): Likewise.
45538         * modules/fchownat (Depends-on): Likewise.
45539         * modules/fstatat (Depends-on): Likewise.
45540         * modules/mkfifoat (Depends-on): Likewise.
45541         * modules/readlinkat (Depends-on): Likewise.
45542         * modules/symlinkat (Depends-on): Likewise.
45543         * modules/unlinkat (Depends-on): Likewise.
45544         * modules/utimensat (Depends-on): Likewise.
45545         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45546         * modules/linkat (Depends-on): Refine the conditions.
45547         * modules/renameat (Depends-on): Likewise.
45549 2011-11-08  Bruno Haible  <bruno@clisp.org>
45551         faccessat: Move AC_LIBOBJ invocation to module description.
45552         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45553         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45554         invocation from here...
45555         * modules/faccessat (configure.ac): ... to here. Invoke
45556         gl_PREREQ_FACCESSAT.
45558 2011-11-08  Bruno Haible  <bruno@clisp.org>
45560         faccessat: Simplify autoconf macro.
45561         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45562         gl_FUNC_EUIDACCESS.
45564 2011-11-08  Bruno Haible  <bruno@clisp.org>
45566         renameat: Fix dependencies.
45567         * modules/renameat (Depends-on): Add stdbool.
45569 2011-11-08  Bruno Haible  <bruno@clisp.org>
45571         mkfifoat: Fix module description.
45572         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45573         not gl_UNISTD_MODULE_INDICATOR.
45575 2011-11-08  Bruno Haible  <bruno@clisp.org>
45577         fstatat: Remove unused dependency.
45578         * modules/fstatat (Depends-on): Remove fstat.
45580 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45582         GNUmakefile: behave when Makefile is missing.
45583         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45585 2011-11-08  Bruno Haible  <bruno@clisp.org>
45587         openat: Conditionalize dependencies.
45588         * lib/openat.c: Reduce the scope of some #includes.
45589         * modules/openat (Depends-on): Add conditions.
45591 2011-11-07  Jim Meyering  <meyering@redhat.com>
45593         maint.mk: extract GPG key ID without using a temporary file
45594         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45595         without using a temporary file.  Based on a suggestion from Werner Koch
45596         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45598 2011-11-07  Eric Blake  <eblake@redhat.com>
45600         grantpt: fix typo
45601         * lib/stdlib.in.h (grantpt): Check correct function.
45603         maint.mk: silence new syntax check
45604         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45606 2011-11-06  Bruno Haible  <bruno@clisp.org>
45608         Doc about floating-point and math API.
45609         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45610         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45612 2011-11-06  Bruno Haible  <bruno@clisp.org>
45614         stdalign tests: Skip the test when compiled by Sun C.
45615         * tests/test-stdalign.c (main): Skip the test on Sun C.
45617 2011-11-06  Bruno Haible  <bruno@clisp.org>
45619         ansi-c++-opt: Complete the 2011-06-05 change.
45620         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45621         does not support namespaces, set the variable to "no", not to ":".
45623 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45625         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45627 2011-11-06  Bruno Haible  <bruno@clisp.org>
45629         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45630         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45631         (minus_zerol) [HP-UX]: New macro.
45632         (unary_minus) [HP-UX]: New function.
45633         (copysignl) [HP-UX]: Use unary_minus function.
45635 2011-11-06  Bruno Haible  <bruno@clisp.org>
45637         ldexp, ldexpf, ldexpl: Enhance tests.
45638         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45639         and tests/test-ldexpl.c.
45640         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45641         LDEXP, MIN_EXP, MAX_EXP): New macros.
45642         Include test-ldexp.h.
45643         (main): Just call test_function.
45644         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45645         infinity.h, nan.h.
45646         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45647         MAX_EXP): New macros.
45648         Include test-ldexp.h.
45649         (x, y): Remove variables.
45650         (main): Just call test_function.
45651         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45652         infinity.h, nan.h.
45653         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45654         MAX_EXP): New macros.
45655         Include test-ldexp.h.
45656         (x, y): Remove variables.
45657         (main): Just call test_function.
45658         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45659         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45660         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45661         (Depends-on): Add isnand-nolibm, signbit, float.
45662         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45663         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45664         (Depends-on): Add isnanf-nolibm, signbit, float.
45666 2011-11-06  Bruno Haible  <bruno@clisp.org>
45668         math tests: Cosmetics.
45669         * tests/test-math-c++.cc: Reorder declarations.
45671 2011-11-05  Bruno Haible  <bruno@clisp.org>
45673         fma*: Simplify test.
45674         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45675         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45677         Tests for module 'fmal'.
45678         * modules/fmal-tests: New file.
45679         * tests/test-fmal1.c: New file.
45680         * tests/test-fmal2.c: New file.
45682         New module 'fmal'.
45683         * lib/math.in.h (fmal): New declaration.
45684         * lib/fmal.c: New file.
45685         * m4/fmal.m4: New file.
45686         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45688         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45689         REPLACE_FMAL.
45690         * modules/fmal: New file.
45691         * doc/posix-functions/fmal.texi: Mention the new module and the various
45692         bugs.
45694         Tests for module 'fmaf'.
45695         * modules/fmaf-tests: New file.
45696         * tests/test-fmaf1.c: New file.
45697         * tests/test-fmaf2.c: New file.
45699         New module 'fmaf'.
45700         * lib/math.in.h (fmaf): New declaration.
45701         * lib/fmaf.c: New file.
45702         * m4/fmaf.m4: New file.
45703         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45705         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45706         REPLACE_FMAF.
45707         * modules/fmaf: New file.
45708         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45709         bugs.
45711         Tests for module 'fma'.
45712         * modules/fma-tests: New file.
45713         * tests/test-fma1.c: New file.
45714         * tests/test-fma1.h: New file.
45715         * tests/test-fma2.c: New file.
45716         * tests/test-fma2.h: New file.
45718         New module 'fma'.
45719         * lib/math.in.h (fma): New declaration.
45720         * lib/fma.c: New file.
45721         * m4/fma.m4: New file.
45722         * m4/fegetround.m4: New file.
45723         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45725         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45726         REPLACE_FMA.
45727         * modules/fma: New file.
45728         * doc/posix-functions/fma.texi: Mention the new module and the various
45729         bugs.
45731         Extend gl_MATHFUNC.
45732         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45733         Support 'void' as argument type.
45734         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45736 2011-11-05  Jim Meyering  <meyering@redhat.com>
45738         maint.mk: also prohibit inclusion of dirent.h without use
45739         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45741 2011-11-05  Bruno Haible  <bruno@clisp.org>
45743         ldexpl tests: Avoid test failure on MSVC 9.
45744         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45745         value. Needed in order to enforce the conversion from a value greater
45746         than LDBL_MAX to Infinity.
45748 2011-11-05  Bruno Haible  <bruno@clisp.org>
45750         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45751         * modules/at-internal: New file, extracted from modules/openat.
45752         * modules/openat-h: New file.
45753         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45754         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45755         * modules/openat (Description): Add reference to POSIX function.
45756         (Files): Remove lib/openat.h, lib/openat-proc.c.
45757         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45758         intprops, unistd.
45759         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45760         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45761         gl_FCNTL_MODULE_INDICATOR.
45762         (Include): Remove unistd.h, openat.h.
45763         * modules/areadlinkat (Files): Add lib/at-func.c.
45764         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45765         openat-die, openat-h, save-cwd.
45766         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45767         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45768         openat-die, openat-h, save-cwd, unistd.
45769         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45770         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45771         openat-h, save-cwd. Remove fcntl-h, openat.
45772         * modules/fchmodat (Files): Remove lib/openat.h.
45773         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45774         openat, stdbool, unistd.
45775         * modules/fchownat (Files): Remove lib/openat.h.
45776         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45777         openat, stdbool, sys_stat.
45778         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45779         lib/openat-proc.c.
45780         (Depends-on): Add at-internal.
45781         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45782         * modules/fstatat (Files): Remove lib/openat.h.
45783         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45784         stdbool, unistd.
45785         * modules/fts (Depends-on): Add openat-h.
45786         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45787         openat.
45788         * modules/mkdirat (Files): Remove lib/openat.h.
45789         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45790         openat, stdbool, sys_stat.
45791         * modules/mkfifoat (Files): Add lib/at-func.c.
45792         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45793         openat-h, save-cwd. Remove fcntl-h, openat.
45794         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45795         * modules/readlinkat (Files): Add lib/at-func.c.
45796         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45797         openat-h, save-cwd. Remove fcntl-h, openat.
45798         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45799         openat.
45800         * modules/selinux-at (Files): Add lib/at-func.c.
45801         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45802         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45803         * modules/symlinkat (Files): Add lib/at-func.c.
45804         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45805         openat-h, save-cwd. Remove fcntl-h, openat.
45806         * modules/unlinkat (Files): Remove lib/openat.h.
45807         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45808         stdbool.
45809         * modules/utimensat (Files): Add lib/at-func.c.
45810         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45811         openat-die, openat-h, save-cwd.
45812         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45813         * modules/fdutimensat-tests (Depends-on): Add openat.
45814         * modules/fstatat-tests (Depends-on): Add openat-h.
45815         * modules/readlinkat-tests (Depends-on): Add openat.
45816         * modules/symlinkat-tests (Depends-on): Add openat.
45818 2011-11-05  Bruno Haible  <bruno@clisp.org>
45820         openat: Include <stdbool.h>.
45821         * lib/openat.c: Include <stdbool.h>.
45823 2011-11-04  Bruno Haible  <bruno@clisp.org>
45825         fchownat, renameat, unlinkat: Fix dependencies.
45826         * modules/fchownat (Depends-on): Add fstatat.
45827         * modules/renameat (Depends-on): Likewise.
45828         * modules/unlinkat (Depends-on): Likewise.
45830 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45832         openat: remove direct dependency on dirent
45833         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45834         and hasn't been needed ever since fdopendir was split into its own
45835         module on 2009-08-31.
45836         * modules/openat (Depends-on): Remove dirent.
45838 2011-11-04  Bruno Haible  <bruno@clisp.org>
45840         renameat: Optimize code size.
45841         * modules/renameat (configure.ac): Don't compile at-func2.c if
45842         REPLACE_RENAMEAT is 1.
45844 2011-11-04  Bruno Haible  <bruno@clisp.org>
45846         openat tests: Fix file list.
45847         * modules/openat-tests (Files): Add tests/test-open.h.
45849 2011-11-04  Bruno Haible  <bruno@clisp.org>
45851         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45852         * modules/fchmodat (Depends-on): Add openat-die.
45853         * modules/fchownat (Depends-on): Likewise.
45854         * modules/linkat (Depends-on): Likewise.
45855         * modules/renameat (Depends-on): Likewise.
45856         * modules/openat (Depends-on): Add dirent.
45858 2011-11-04  Jim Meyering  <meyering@redhat.com>
45860         at-func*.c: fix comments
45861         * lib/at-func2.c: Correct/improve first-line comment.
45862         * lib/at-func.c: Correct grammar in first-line comment.
45864 2011-11-04  Bruno Haible  <bruno@clisp.org>
45866         New module 'mkdirat', split off from module 'openat'.
45867         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45868         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45869         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45870         * modules/mkdirat: New file, extracted from modules/openat.
45871         * modules/openat (Files): Remove lib/mkdirat.c.
45872         (Depends-on): Remove mkdir.
45873         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45874         (Include): Remove <sys/stat.h>.
45875         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45876         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45877         tests/test-mkdir.h.
45878         (Depends-on): Remove ignore-value.
45879         (Makefile.am): Remove rules for test-mkdirat.
45880         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45881         of module 'openat'.
45882         * NEWS: Mention the change.
45884 2011-11-04  Bruno Haible  <bruno@clisp.org>
45886         closedir: Avoid warning on mingw.
45887         * lib/closedir.c: Include <unistd.h>.
45889 2011-11-04  Bruno Haible  <bruno@clisp.org>
45891         New module 'fstatat', split off from module 'openat'.
45892         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45893         defined.
45894         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45895         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45896         gl_FUNC_FSTATAT.
45897         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45898         * modules/fstatat: New file, extracted from modules/openat.
45899         * modules/openat (Files): Remove lib/fstatat.c.
45900         (Depends-on): Remove lstat.
45901         (configure.ac): Remove AC_LIBOBJ of fstatat.
45902         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45903         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45904         tests/test-lstat.h, tests/test-stat.h.
45905         (Depends-on): Remove getcwd-lgpl.
45906         (Makefile.am): Remove rules for test-fstatat.
45907         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45908         of module 'openat'.
45909         * NEWS: Mention the change.
45910         * modules/getcwd (Depends-on): Add fstatat.
45911         * modules/linkat (Depends-on): Likewise.
45912         * modules/mkfifoat-tests (Depends-on): Likewise.
45913         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45915 2011-11-03  Bruno Haible  <bruno@clisp.org>
45917         New module 'unlinkat', split off from module 'openat'.
45918         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45919         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45920         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45921         * modules/unlinkat: New file, extracted from modules/openat. Correct
45922         the dependency conditions.
45923         * modules/openat (Files): Remove lib/unlinkat.c.
45924         (Depends-on): Remove rmdir, unlink.
45925         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45926         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45927         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45928         tests/test-rmdir.h, tests/test-unlink.h.
45929         (Depends-on): Remove unlinkdir.
45930         (Makefile.am): Remove rules for test-unlinkat.
45931         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45932         of module 'openat'.
45933         * NEWS: Mention the change.
45934         * modules/linkat-tests (Depends-on): Add unlinkat.
45935         * modules/mkfifoat-tests (Depends-on): Likewise.
45936         * modules/readlinkat-tests (Depends-on): Likewise.
45938 2011-11-02  Bruno Haible  <bruno@clisp.org>
45940         New module 'fchmodat', split off from module 'openat'.
45941         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45942         defined.
45943         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45944         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45945         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45946         * modules/fchmodat: New file, extracted from modules/openat.
45947         * modules/openat (Files): Remove lib/fchmodat.c.
45948         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45949         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45950         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45951         (Makefile.am): Remove rules for test-fchmodat.
45952         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45953         of module 'openat'.
45954         * NEWS: Mention the change.
45956 2011-11-02  Jim Meyering  <meyering@redhat.com>
45958         putenv: indent #definition of "environ" to placate cppi
45959         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45961         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45962         Git logs are often treated as immutable, because editing them
45963         changes the SHA1 checksums of all descendants.  Thus, errors in
45964         git logs tend to stay there forever.  However, when we generate
45965         a ChangeLog file -- typically for distribution -- from that git log,
45966         we can actually make corrections in the generated file.  The key
45967         lies in recording in machine-readable/applicable form the desired
45968         corrections.  See --help for description and an example.
45969         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45970         (usage): Describe it; alphabetize option descriptions.
45971         (main): Honor the new option, carefully.
45973 2011-11-01  Jim Meyering  <meyering@redhat.com>
45975         gitlog-to-changelog: avoid an infloop
45976         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45977         that ends up being empty.
45979 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45981         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45982         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45983         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45984         contains (possibly-quoted) backslashes.  This should avoid
45985         all-too-common shell bugs if COMPLICATED contains backslashes in
45986         the "wrong" places.  Reported by David Evans in
45987         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45988         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45989         because we want ASCII ranges.  Is there some reason we don't use
45990         the C locale everywhere in this script?
45991         (func_module, top level): Avoid unwanted pathname expansion when
45992         $repo_url_prefix or $repo_url_suffix_repl contain shell
45993         metacharacters like '?' and '*'.
45995 2011-11-01  Bruno Haible  <bruno@clisp.org>
45997         fchownat: Improve description.
45998         * modules/fchownat (Description): Add link to function.
46000 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46002         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46003         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46004         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46005         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46007 2011-11-01  Bruno Haible  <bruno@clisp.org>
46009         alignof: Avoid collision with stdalign module.
46010         * lib/alignof.h (alignof): Remove macro.
46011         * NEWS: Mention the change.
46012         Reported by Paul Eggert.
46014 2011-11-01  Bruno Haible  <bruno@clisp.org>
46016         New module 'fchownat', split off from module 'openat'.
46017         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46018         defined.
46019         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46020         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46021         invoke gl_FUNC_FCHOWNAT.
46022         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46023         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46024         * modules/fchownat: New file, extracted from modules/openat.
46025         * modules/openat (Files): Remove lib/fchownat.c.
46026         (Depends-on): Remove lchown.
46027         (configure.ac): Remove AC_LIBOBJ of fchownat.
46028         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46029         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46030         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46031         (Depends-on): Remove mgetgroups, usleep, stat-time.
46032         (configure.ac): Remove test for getegid.
46033         (Makefile.am): Remove rules for test-fchownat.
46034         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46035         of module 'openat'.
46036         * NEWS: Mention the change.
46038 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46040         stdalign: port better to MSVC and to Sun C 5.11
46041         This fixes some of the problems reported by Bruno Haible in
46042         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46043         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46044         shortcomings of MSVC and of Sun C 5.11.
46045         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46046         around __declspec arg.
46047         * modules/stdalign-tests (Files): Add tests/macros.h.
46048         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46049         Include macros.h, for ASSERT.
46050         (DECLARE_ALIGNED): Remove.
46051         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46052         to catch bug), and to 1 if not (simplifies the rest of the code).
46053         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46054         (CHECK_AUTO): Remove.
46055         (CHECK_ALIGNED): Check only the alignment of the static vars,
46056         since auto var alignment isn't supported by Sun C 5.11.
46057         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46058         ASSERT failures are easier to diagnose.
46060 2011-10-31  Bruno Haible  <bruno@clisp.org>
46062         doc about some IRIX 5.3 problems.
46063         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46064         on IRIX 5.3.
46065         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46066         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46067         5.3.
46068         * doc/posix-functions/grantpt.texi: Likewise.
46069         * doc/posix-functions/unlockpt.texi: Likewise.
46070         * doc/posix-functions/lgamma.texi: Likewise.
46071         * doc/posix-functions/nextafter.texi: Likewise.
46072         * doc/posix-functions/remainder.texi: Likewise.
46073         * doc/posix-functions/select.texi: Mention misplaced declaration on
46074         IRIX 5.3.
46075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46077 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46079         gitlog-to-changelog: fix git-log invocation.
46080         git-log mishandles date strings before 1970-01-01 UTC, and there is
46081         no use to specify --since=1970-01-01 by default anyway.
46082         * build-aux/gitlog-to-changelog: By default, when no --since option
46083         was given, do not specify explicit --since option to git-log.
46085 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46087         gitlog-to-changelog: new option --append-dot.
46088         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46089         first non-blank line of each commit message terminated with a dot.
46091 2011-10-30  Bruno Haible  <bruno@clisp.org>
46093         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46094         * lib/ffsl.h: Include <config.h>.
46095         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46097 2011-10-30  Jim Meyering  <meyering@redhat.com>
46099         GNUmakefile: reenable "make syntax-check" for most projects
46100         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46101         build-aux variable", "syntax-check" would do nothing but succeed with
46102         the "No version control files detected..." diagnostic (unless you
46103         happened to override _build-aux via cfg.mk).
46104         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46105         to precede inclusion of maint.mk.  Otherwise, these variables would
46106         be used undefined in any project that does not override the default.
46108 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46110         gitlog-to-changelog: treat a message with only blank lines as empty.
46111         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46112         trailing blank lines before the code that issues a warning about an
46113         empty commit message.
46115 2011-10-30  Jim Meyering  <meyering@redhat.com>
46117         test-parse-datetime.c: avoid new DST-related false positive test failure
46118         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46119         based on the time/date we'll convert, not the current time.
46120         Otherwise, the moment we cross a DST boundary like today's in
46121         Europe, (CEST to CET), that offset ends up being one hour off.
46123 2011-10-27  Bruno Haible  <bruno@clisp.org>
46125         fstat: Tweak documentation.
46126         * modules/fstat (Description): More precise description.
46128 2011-10-27  Bruno Haible  <bruno@clisp.org>
46130         Update documentation regarding 'largefile' module.
46131         * doc/posix-functions/fstat.texi: Tweak wording.
46132         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46133         problems with huge directories and/or small ino_t types.
46134         * doc/posix-functions/readdir.texi: Likewise.
46135         * doc/posix-functions/rewinddir.texi: Likewise.
46137 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46139         maint.mk: don't maintain a second build-aux variable.
46140         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46141         depends on GNUmakefile, which already maintains a cfg.mk
46142         overridable $(_build-aux) for projects with a non-standard
46143         build-aux directory location, although without the $(srcdir)
46144         prefix.  Use that variable consistently instead of introducing a
46145         second one.  Adjust all call sites.
46147 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46149         Add stdalign module and use it in other modules.
46150         This is based on a previous proposal by Bruno Haible
46151         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46153         stdalign: new module
46154         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46155         * modules/stdalign: New files.
46156         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46157         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46159         stdalign-tests: new module
46160         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46162         argp: use stdalign
46163         * lib/argp-parse.c: Include <stdalign.h>.
46164         (alignof): Remove.
46165         * modules/argp (Depends-on): Add stdalign.
46167         crypto libraries: use stdalign
46168         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46169         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46170         Do not include <stdlib.h> twice, in md4.c.
46171         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46172         because we are accessing a pointer's bit-pattern, not a size.
46173         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46174         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46175         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46176         * modules/crypto/sha512: Likewise.
46178         sys_socket: use stdalign, not alignof
46179         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46180         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46182 2011-10-27  Bruno Haible  <bruno@clisp.org>
46184         raise test: Avoid a test failure on Linux/MIPS.
46185         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46186         because 99 is a valid signal on Linux/MIPS.
46188 2011-10-27  Bruno Haible  <bruno@clisp.org>
46190         nonblocking tests: Fix test failure on Linux/MIPS.
46191         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46192         Set to 270000.
46194 2011-10-27  Bruno Haible  <bruno@clisp.org>
46196         utimensat: Work around problem on Linux/hppa.
46197         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46198         values.
46199         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46201 2011-10-25  Jim Meyering  <meyering@redhat.com>
46203         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46204         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46205         after symbols like NULL, size_t, etc.
46206         Reported by Alfred M. Szmidt.
46208         maint.mk: exempt ENODATA from a syntax-check rule
46209         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46210         from the sc_prohibit_always-defined_macros syntax-check rule.
46211         Add a comment.  See this for more details:
46212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46214 2011-10-23  Jim Meyering  <meyering@redhat.com>
46216         fts: close parent dir FD before returning from post-traversal fts_read
46217         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46218         unlink A, even though an FD open on A remained.  This is suboptimal
46219         (holding a file descriptor open longer than needed), but otherwise not
46220         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46221         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46222         that represents a real problem: it causes the removal of A to fail
46223         with e.g., "rm: cannot remove `A': Device or resource busy"
46225         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46226         directory file descriptors.  After completing the final, FTS_DP,
46227         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46228         cache, but then proceeded to add a new FD to it via the subsequent
46229         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46230         final file descriptor would be closed only via fts_close's call to
46231         fd_ring_clear.  Now, it is usually closed earlier, via the final
46232         FTS_DP-returning fts_read call.
46233         * lib/fts.c (restore_initial_cwd): New function, converted from
46234         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46235         Update callers.
46236         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46237         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46239 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46240             Bruno Haible  <bruno@clisp.org>
46241             Jim Meyering  <jim@meyering.net>
46243         readme-release: improve safety of release prep instructions.
46244         * README-release: Don't git pull all branches when only master
46245         is needed for the release process.
46246         Run make maintainer-clean before changing trees and merging.
46247         Don't try to run ./configure right after git pull in case files
46248         that influence the bootstrap process have changed, move the
46249         ./configure step to after running ./bootstrap.
46250         Don't bootstrap "one last time"... it's the first time!
46252 2011-10-22  Bruno Haible  <bruno@clisp.org>
46254         errno, strerror-override: Support for MSVC 10.
46255         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46256         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46257         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46258         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46259         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46260         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46261         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46262         Assign values compatible with MSVC 10.
46263         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46264         New macros.
46265         (GNULIB_defined_EWINSOCK): New macro.
46266         * lib/strerror-override.c (strerror_override): Update accordingly.
46267         * lib/strerror-override.h: Likewise.
46268         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46269         longer equal to the corresponding errno value.
46270         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46272 2011-10-22  Bruno Haible  <bruno@clisp.org>
46274         perror: Recognize when test program crashes.
46275         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46276         strerror, set gl_cv_func_perror_works to no.
46277         Reported by Daniel Richard G. <skunk@iskunk.org>.
46279         perror: Fix indentation.
46280         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46282 2011-10-22  Bruno Haible  <bruno@clisp.org>
46284         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46285         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46286         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46287         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46288         functions, not as a macro.
46289         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46290         macros.
46291         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46292         absence of macro.
46293         Suggested by Eric Blake.
46294         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46296 2011-10-21  Bruno Haible  <bruno@clisp.org>
46298         relocatable-prog-wrapper: Don't leave object files behind.
46299         * build-aux/install-reloc: Re-synchronize list of .o files to be
46300         removed with list of compilation units.
46302 2011-10-20  Bruno Haible  <bruno@clisp.org>
46304         openpty, posix_openpt: Remove code duplication.
46305         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46306         * lib/openpty.c: Include <stdlib.h>.
46307         (openpty): Use posix_openpt on all platforms except IRIX.
46308         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46310 2011-10-20  Bruno Haible  <bruno@clisp.org>
46312         unlockpt: Detect invalid argument.
46313         * lib/unlockpt.c: Include <fcntl.h>.
46314         (unlockpt): Check whether fd is valid, using fcntl().
46315         * modules/unlockpt (Depends-on): Add fcntl-h.
46317 2011-10-20  Bruno Haible  <bruno@clisp.org>
46319         openpty: Avoid compilation error on AIX 6.1.
46320         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46322 2011-10-20  Bruno Haible  <bruno@clisp.org>
46324         posix_openpt: Support for OpenBSD.
46325         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46326         (posix_openpt) [OpenBSD]: New code.
46327         * lib/grantpt.c: Include <fcntl.h>.
46328         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46329         * modules/grantpt (Depends-on): Add fcntl-h.
46331 2011-10-20  Bruno Haible  <bruno@clisp.org>
46333         posix_openpt test: Coding style.
46334         * tests/test-posix_openpt.c: Use GNU coding style.
46336 2011-10-20  Bruno Haible  <bruno@clisp.org>
46338         grantpt: Support --avoid=pt_chown.
46339         * modules/grantpt (Files): Add lib/pty-private.h.
46341 2011-10-20  Bruno Haible  <bruno@clisp.org>
46343         posix_openpt: Fix autoconf macro.
46344         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46345         unneeded check for _getpty.
46347 2011-10-20  Bruno Haible  <bruno@clisp.org>
46349         openpty: Update comments.
46350         * lib/openpty.c: Add comments about Minix.
46352 2011-10-19  Eric Blake  <eblake@redhat.com>
46354         openpty: relax license
46355         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46357         pt_chown: use configmake to simplify build
46358         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46360         ptsname and others: relax license
46361         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46362         * modules/unlockpt (License): Likewise.
46363         * modules/pt_chown (License): Likewise.
46364         * modules/ptsname (License): Likewise.
46365         * modules/ttyname_r (License): Likewise.
46367 2011-10-19  Jim Meyering  <meyering@redhat.com>
46369         posix_openpt: remove spurious #endif
46370         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46372 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46374         maint.mk: Respect $(build_aux) in web-manual rule.
46375         * top/maint.mk (web-manual): Find gen-announce script in user's
46376         $(build_aux) directory instead of hard-coding 'build-aux'.
46378 2011-10-19  Bruno Haible  <bruno@clisp.org>
46380         posix_openpt: Fix compilation error.
46381         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46382         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46383         Mention the openpty module as an alternative.
46385 2011-10-19  Bruno Haible  <bruno@clisp.org>
46387         Support for old NeXTstep 3.3 frexp().
46388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46389         execution time of the test to 5 seconds.
46390         Reported by Daniel Richard G. <skunk@iskunk.org>.
46392 2011-10-19  Bruno Haible  <bruno@clisp.org>
46394         Support for old NeXTstep 3.3 sed.
46395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46396         part, use /.../, not \|...|. Escape periods in the header file name.
46397         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46398         Reported by Daniel Richard G. <skunk@iskunk.org>.
46400 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46402         Support for old NeXTstep 3.3 gcc.
46403         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46404         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46405         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46406         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46407         * lib/regex.h (_Restrict_arr_): Likewise.
46408         * lib/regex_internal.h (re_token_t): Likewise.
46409         * lib/regexec.c (check_node_accept_bytes): Likewise.
46410         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46412 2011-10-18  Eric Blake  <eblake@redhat.com>
46414         posix_openpt: new module
46415         * modules/posix_openpt: New module.
46416         * m4/posix_openpt.m4: New file.
46417         * lib/posix_openpt.c: Likewise.
46418         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46419         (gl_STDLIB_H_DEFAULTS): Set defaults.
46420         * modules/stdlib (Makefile.am): Substitute macros.
46421         * lib/stdlib.in.h (posix_openpt): Declare.
46422         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46423         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46424         * modules/posix_openpt-tests: New test module.
46425         * tests/test-posix_openpt.c: New test.
46427 2011-10-15  Bruno Haible  <bruno@clisp.org>
46429         xstrtoll: Fix compilation failure.
46430         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46431         from lib/strtol.c.
46432         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46433         some platforms.
46434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46436 2011-10-15  Bruno Haible  <bruno@clisp.org>
46438         vasnprintf: Optimize bit search operation.
46439         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46441         gl_DOUBLE_EXPONENT_LOCATION.
46442         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46443         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46444         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46445         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46446         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46447         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46448         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46449         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46450         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46452 2011-10-15  Bruno Haible  <bruno@clisp.org>
46454         vasnprintf: Fix comments.
46455         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46457 2011-10-14  Bruno Haible  <bruno@clisp.org>
46459         Tests for module 'integer_length_ll'.
46460         * modules/integer_length_ll-tests: New file.
46461         * tests/test-integer_length_ll.c: New file.
46463         New module 'integer_length_ll'.
46464         * lib/integer_length_ll.c: New file.
46465         * modules/integer_length_ll: New file.
46467 2011-10-14  Bruno Haible  <bruno@clisp.org>
46469         Tests for module 'integer_length_l'.
46470         * modules/integer_length_l-tests: New file.
46471         * tests/test-integer_length_l.c: New file.
46473         New module 'integer_length_l'.
46474         * lib/integer_length_l.c: New file.
46475         * modules/integer_length_l: New file.
46477 2011-10-14  Bruno Haible  <bruno@clisp.org>
46479         Tests for module 'integer_length'.
46480         * modules/integer_length-tests: New file.
46481         * tests/test-integer_length.c: New file.
46483         New module 'integer_length'.
46484         * lib/integer_length.h: New file.
46485         * lib/integer_length.c: New file.
46486         * modules/integer_length: New file.
46488 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46490         popen: Fix dependency conditions.
46491         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46493 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46495         perror: Fix autoconf test.
46496         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46497         <stdlib.h> and <string.h>.
46499 2011-10-14  Bruno Haible  <bruno@clisp.org>
46501         ffsl: Optimize on 64-bit platforms.
46502         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46503         unrolling.
46505 2011-10-13  Bruno Haible  <bruno@clisp.org>
46507         ffsl: Optimize on 32-bit platforms.
46508         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46509         use ffs() without a loop.
46511         ffsl, ffsll: Optimize for GCC.
46512         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46513         * lib/ffsl.c (GCC_BUILTIN): New macro.
46514         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46516 2011-10-13  Bruno Haible  <bruno@clisp.org>
46518         ffs, bcopy, memset: Support symbol renaming via config.h.
46519         * lib/ffs.c: Include <config.h>.
46520         * lib/bcopy.c: Likewise.
46521         * lib/memset.c: Likewise.
46523 2011-10-10  Bruno Haible  <bruno@clisp.org>
46525         atanl: Simplify for platforms where 'long double' == 'double'.
46526         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46527         alternative implementation.
46528         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46529         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46530         * modules/atanl (Depends-on): Add atan. Update conditions.
46532 2011-10-10  Bruno Haible  <bruno@clisp.org>
46534         acosl: Simplify for platforms where 'long double' == 'double'.
46535         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46536         alternative implementation.
46537         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46538         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46539         * modules/acosl (Depends-on): Add acos. Update conditions.
46541 2011-10-10  Bruno Haible  <bruno@clisp.org>
46543         asinl: Simplify for platforms where 'long double' == 'double'.
46544         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46545         alternative implementation.
46546         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46547         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46548         * modules/asinl (Depends-on): Add asin. Update conditions.
46550 2011-10-10  Bruno Haible  <bruno@clisp.org>
46552         tanl: Simplify for platforms where 'long double' == 'double'.
46553         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46554         implementation.
46555         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46556         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46557         * modules/tanl (Depends-on): Add tan. Update conditions.
46558         (configure.ac): Don't compile trigl.c if
46559         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46561 2011-10-10  Bruno Haible  <bruno@clisp.org>
46563         cosl: Simplify for platforms where 'long double' == 'double'.
46564         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46565         implementation.
46566         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46567         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46568         * modules/cosl (Depends-on): Add cos. Update conditions.
46569         (configure.ac): Don't compile sincosl.c and trigl.c if
46570         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46572 2011-10-10  Bruno Haible  <bruno@clisp.org>
46574         sinl: Simplify for platforms where 'long double' == 'double'.
46575         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46576         implementation.
46577         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46578         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46579         * modules/sinl (Depends-on): Add sin. Update conditions.
46580         (configure.ac): Don't compile sincosl.c and trigl.c if
46581         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46583 2011-10-10  Bruno Haible  <bruno@clisp.org>
46585         logl: Simplify for platforms where 'long double' == 'double'.
46586         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46587         implementation.
46588         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46589         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46590         * modules/logl (Depends-on): Add log. Update conditions.
46592 2011-10-10  Bruno Haible  <bruno@clisp.org>
46594         expl: Simplify for platforms where 'long double' == 'double'.
46595         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46596         implementation.
46597         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46598         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46599         * modules/expl (Depends-on): Add exp. Update conditions.
46601 2011-10-10  Bruno Haible  <bruno@clisp.org>
46603         sqrtl: Simplify for platforms where 'long double' == 'double'.
46604         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46605         alternative implementation.
46606         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46607         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46608         * modules/sqrtl (Depends-on): Update conditions.
46610 2011-10-10  Bruno Haible  <bruno@clisp.org>
46612         ldexpl: Simplify for platforms where 'long double' == 'double'.
46613         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46614         alternative implementation.
46615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46616         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46617         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46619 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46621         ffsll: set correct witness
46622         * modules/ffsll (configure.ac): Fix typo.
46624 2011-10-10  Bruno Haible  <bruno@clisp.org>
46626         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46627         * lib/printf-frexpl.c: Include <config.h>.
46628         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46629         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46630         second time.
46631         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46632         gl_LONG_DOUBLE_VS_DOUBLE.
46633         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46634         conditions.
46636 2011-10-10  Bruno Haible  <bruno@clisp.org>
46638         frexpl: Simplify for platforms where 'long double' == 'double'.
46639         * lib/frexpl.c: Include <config.h>.
46640         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46641         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46642         time.
46643         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46644         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46645         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46646         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46647         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46648         conditions.
46650 2011-10-10  Jim Meyering  <meyering@redhat.com>
46652         test-renameat: don't leave behind a temporary file
46653         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46654           ERROR: files left in build directory after distclean:
46655           ./gltests/test-renameat.too
46656           make[1]: *** [distcleancheck] Error 1
46657         Reported by Tom G. Christensen.
46659 2011-10-09  Bruno Haible  <bruno@clisp.org>
46661         rint: Determine RINT_LIBM correctly on AIX 7.
46662         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46663         directly, not only through a function pointer. Also accept an optional
46664         4th argument with extra code.
46665         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46666         rintf() call by gcc when optimizing.
46668         mathfunc.m4: Refactor.
46669         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46670         m4 variable.
46672 2011-10-09  Bruno Haible  <bruno@clisp.org>
46674         rintl: Simplify for platforms where 'long double' == 'double'.
46675         * lib/rintl.c: Include <config.h>.
46676         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46677         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46678         time.
46679         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46680         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46681         * modules/rintl (Depends-on): Add rint. Update conditions.
46683 2011-10-09  Bruno Haible  <bruno@clisp.org>
46685         roundl: Simplify for platforms where 'long double' == 'double'.
46686         * lib/roundl.c: Include <config.h>.
46687         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46688         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46689         time.
46690         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46691         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46692         * modules/roundl (Depends-on): Add round. Update conditions.
46694 2011-10-09  Bruno Haible  <bruno@clisp.org>
46696         truncl: Simplify for platforms where 'long double' == 'double'.
46697         * lib/truncl.c: Include <config.h>.
46698         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46699         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46700         time.
46701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46702         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46703         * modules/truncl (Depends-on): Add trunc. Update conditions.
46705 2011-10-09  Bruno Haible  <bruno@clisp.org>
46707         ceill: Simplify for platforms where 'long double' == 'double'.
46708         * lib/ceill.c: Include <config.h>.
46709         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46710         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46711         time.
46712         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46713         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46714         * modules/ceill (Depends-on): Add ceil. Update conditions.
46716 2011-10-09  Bruno Haible  <bruno@clisp.org>
46718         floorl: Simplify for platforms where 'long double' == 'double'.
46719         * lib/floorl.c: Include <config.h>.
46720         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46721         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46722         time.
46723         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46724         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46725         * modules/floorl (Depends-on): Add floor. Update conditions.
46727 2011-10-09  Bruno Haible  <bruno@clisp.org>
46729         rint: Fix ordering constraints.
46730         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46731         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46732         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46734 2011-10-09  Bruno Haible  <bruno@clisp.org>
46736         copysignl: Simplify for platforms where 'long double' == 'double'.
46737         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46738         alternative.
46739         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46740         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46741         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46743 2011-10-09  Bruno Haible  <bruno@clisp.org>
46745         Tests for module 'rintl'.
46746         * modules/rintl-tests: New file.
46747         * tests/test-rintl.c: New file.
46749         New module 'rintl'.
46750         * lib/math.in.h (rintl): New declaration.
46751         * lib/rintl.c: New file.
46752         * m4/rintl.m4: New file.
46753         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46755         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46756         * modules/rintl: New file.
46757         * tests/test-math-c++.cc: Check the declaration of rintl.
46758         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46759         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46760         * doc/posix-functions/rintl.texi: Mention the new module.
46762 2011-10-09  Bruno Haible  <bruno@clisp.org>
46764         Tests for module 'rintf'.
46765         * modules/rintf-tests: New file.
46766         * tests/test-rintf.c: New file.
46768         New module 'rintf'.
46769         * lib/math.in.h (rintf): New declaration.
46770         * lib/rintf.c: New file.
46771         * m4/rintf.m4: New file.
46772         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46774         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46775         * modules/rintf: New file.
46776         * tests/test-math-c++.cc: Check the declaration of rintf.
46777         * doc/posix-functions/rintf.texi: Mention the new module.
46779 2011-10-09  Bruno Haible  <bruno@clisp.org>
46781         rint: Support for MSVC.
46782         * lib/math.in.h (rint): New declaration.
46783         * lib/rint.c: New file.
46784         * m4/rint.m4: New file.
46785         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46787         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46788         * modules/rint (Description): Fix.
46789         (Files): Add lib/rint.c, m4/rint.m4.
46790         (Depends-on): Add math.
46791         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46792         gl_MATH_MODULE_INDICATOR.
46793         * tests/test-math-c++.cc: Check the declaration of rint.
46794         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46795         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46796         * doc/posix-functions/rint.texi: Mention the replacement provided by
46797         the module.
46799         rint tests: More tests.
46800         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46801         minus-zero.h, infinity.h, nan.h.
46802         (main): Skip the test if the current rounding mode is not standard. Add
46803         tests for negative numbers, minus zero, infinity, NaN.
46804         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46805         tests/nan.h.
46806         (Depends-on): Add isnand-nolibm.
46808 2011-10-09  Bruno Haible  <bruno@clisp.org>
46810         Tests for module 'copysignl'.
46811         * modules/copysignl-tests: New file.
46812         * tests/test-copysignl.c: New file.
46814         New module 'copysignl'.
46815         * lib/math.in.h (copysignl): New declaration.
46816         * lib/copysignl.c: New file.
46817         * m4/copysignl.m4: New file.
46818         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46820         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46821         HAVE_COPYSIGNL.
46822         * modules/copysignl: New file.
46823         * tests/test-math-c++.cc: Check the declaration of copysignl.
46824         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46825         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46826         * doc/posix-functions/copysignl.texi: Mention the new module.
46828 2011-10-09  Bruno Haible  <bruno@clisp.org>
46830         Tests for module 'copysignf'.
46831         * modules/copysignf-tests: New file.
46832         * tests/test-copysignf.c: New file.
46834         New module 'copysignf'.
46835         * lib/math.in.h (copysignf): New declaration.
46836         * lib/copysignf.c: New file.
46837         * m4/copysignf.m4: New file.
46838         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46840         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46841         HAVE_COPYSIGNF.
46842         * modules/copysignf: New file.
46843         * tests/test-math-c++.cc: Check the declaration of copysignf.
46844         * doc/posix-functions/copysignf.texi: Mention the new module.
46846 2011-10-09  Bruno Haible  <bruno@clisp.org>
46848         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46849         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46850         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46851         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46853         gl_SIGNAL_H_DEFAULTS.
46855 2011-10-09  Bruno Haible  <bruno@clisp.org>
46857         poll: Make macro safer.
46858         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46859         ac_cv_header_poll_h is not set.
46861 2011-10-09  Bruno Haible  <bruno@clisp.org>
46863         copysign: Provide replacement.
46864         * lib/math.in.h (copysign): New declaration.
46865         * lib/copysign.c: New file.
46866         * m4/copysign.m4: New file.
46867         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46869         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46870         HAVE_COPYSIGN.
46871         * modules/copysign (Description): Clarify.
46872         (Files): Add lib/copysign.c, m4/copysign.m4.
46873         (Depends-on): Add math, signbit.
46874         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46875         gl_MATH_MODULE_INDICATOR.
46876         * tests/test-math-c++.cc: Check the declaration of copysign.
46877         * doc/posix-functions/copysign.texi: Mention the effects of the module
46878         on Minix and MSVC.
46880 2011-10-09  Bruno Haible  <bruno@clisp.org>
46882         isinf: Ensure macro on AIX 5.1.
46883         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46884         macro.
46885         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46887 2011-10-09  Bruno Haible  <bruno@clisp.org>
46889         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46890         * modules/snprintf-posix-tests (configure.ac): Require
46891         gl_LONG_DOUBLE_VS_DOUBLE.
46892         * modules/sprintf-posix-tests (configure.ac): Likewise.
46893         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46894         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46895         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46896         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46897         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46898         tests on platforms where 'long double' is the same as 'double'.
46899         * tests/test-sprintf-posix.h (test_function): Likewise.
46900         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46901         * tests/test-vasprintf-posix.c (test_function): Likewise.
46903         *printf: Fix for platforms where 'long double' == 'double'.
46904         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46905         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46906         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46907         * modules/fprintf-posix (Files): Likewise.
46908         * modules/obstack-printf-posix (Files): Likewise.
46909         * modules/snprintf-posix (Files): Likewise.
46910         * modules/sprintf-posix (Files): Likewise.
46911         * modules/vasnprintf (Files): Likewise.
46912         * modules/vasnprintf-posix (Files): Likewise.
46913         * modules/vasprintf-posix (Files): Likewise.
46914         * modules/vdprintf-posix (Files): Likewise.
46915         * modules/vfprintf-posix (Files): Likewise.
46916         * modules/vsnprintf-posix (Files): Likewise.
46917         * modules/vsprintf-posix (Files): Likewise.
46918         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46919         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46920         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46921         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46922         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46923         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46924         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46926         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46927         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46928         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46929         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46930         'long double'.
46931         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46933         isinf: Fix for platforms where 'long double' == 'double'.
46934         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46935         Don't blindly assume 80-bit 'long double'.
46937         isfinite: Fix for platforms where 'long double' == 'double'.
46938         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46939         Don't blindly assume 80-bit 'long double'.
46941         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46942         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46943         * modules/isfinite-tests (configure.ac): Require
46944         gl_LONG_DOUBLE_VS_DOUBLE.
46945         * modules/isinf-tests (configure.ac): Likewise.
46946         * modules/isnan-tests (configure.ac): Likewise.
46947         * modules/isnanl-tests (configure.ac): Likewise.
46948         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46949         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46950         tests on platforms where 'long double' is the same as 'double'.
46951         * tests/test-isinf.c (test_isinfl): Likewise.
46952         * tests/test-isnan.c (test_long_double): Likewise.
46953         * tests/test-isnanl.h (main): Likewise.
46955 2011-10-08  Bruno Haible  <bruno@clisp.org>
46957         Tests for module 'tanhf'.
46958         * modules/tanhf-tests: New file.
46959         * tests/test-tanhf.c: New file.
46961         New module 'tanhf'.
46962         * lib/math.in.h (tanhf): New declaration.
46963         * lib/tanhf.c: New file.
46964         * m4/tanhf.m4: New file.
46965         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46967         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46968         * modules/tanhf: New file.
46969         * tests/test-math-c++.cc: Check the declaration of tanhf.
46970         * doc/posix-functions/tanhf.texi: Mention the new module.
46972         tanh: Use a .m4 file.
46973         * m4/tanh.m4: New file.
46974         * modules/tanh (Files): Add it.
46975         (configure.ac): Just invoke gl_FUNC_TANH.
46977 2011-10-08  Bruno Haible  <bruno@clisp.org>
46979         Tests for module 'coshf'.
46980         * modules/coshf-tests: New file.
46981         * tests/test-coshf.c: New file.
46983         New module 'coshf'.
46984         * lib/math.in.h (coshf): New declaration.
46985         * lib/coshf.c: New file.
46986         * m4/coshf.m4: New file.
46987         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46988         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46989         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46990         * modules/coshf: New file.
46991         * tests/test-math-c++.cc: Check the declaration of coshf.
46992         * doc/posix-functions/coshf.texi: Mention the new module.
46994         cosh: Use a .m4 file.
46995         * m4/cosh.m4: New file.
46996         * modules/cosh (Files): Add it.
46997         (configure.ac): Just invoke gl_FUNC_COSH.
46999 2011-10-08  Bruno Haible  <bruno@clisp.org>
47001         Tests for module 'sinhf'.
47002         * modules/sinhf-tests: New file.
47003         * tests/test-sinhf.c: New file.
47005         New module 'sinhf'.
47006         * lib/math.in.h (sinhf): New declaration.
47007         * lib/sinhf.c: New file.
47008         * m4/sinhf.m4: New file.
47009         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47011         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47012         * modules/sinhf: New file.
47013         * tests/test-math-c++.cc: Check the declaration of sinhf.
47014         * doc/posix-functions/sinhf.texi: Mention the new module.
47016         sinh: Use a .m4 file.
47017         * m4/sinh.m4: New file.
47018         * modules/sinh (Files): Add it.
47019         (configure.ac): Just invoke gl_FUNC_SINH.
47021 2011-10-08  Bruno Haible  <bruno@clisp.org>
47023         Tests for module 'atan2f'.
47024         * modules/atan2f-tests: New file.
47025         * tests/test-atan2f.c: New file.
47027         New module 'atan2f'.
47028         * lib/math.in.h (atan2f): New declaration.
47029         * lib/atan2f.c: New file.
47030         * m4/atan2f.m4: New file.
47031         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47033         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47034         * modules/atan2f: New file.
47035         * tests/test-math-c++.cc: Check the declaration of atan2f.
47036         * doc/posix-functions/atan2f.texi: Mention the new module.
47038         atan2: Use a .m4 file.
47039         * m4/atan2.m4: New file.
47040         * modules/atan2 (Files): Add it.
47041         (configure.ac): Just invoke gl_FUNC_ATAN2.
47043 2011-10-08  Bruno Haible  <bruno@clisp.org>
47045         Tests for module 'atanf'.
47046         * modules/atanf-tests: New file.
47047         * tests/test-atanf.c: New file.
47049         New module 'atanf'.
47050         * lib/math.in.h (atanf): New declaration.
47051         * lib/atanf.c: New file.
47052         * m4/atanf.m4: New file.
47053         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47055         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47056         * modules/atanf: New file.
47057         * tests/test-math-c++.cc: Check the declaration of atanf.
47058         * doc/posix-functions/atanf.texi: Mention the new module.
47060         atan: Use a .m4 file.
47061         * m4/atan.m4: New file.
47062         * modules/atan (Files): Add it.
47063         (configure.ac): Just invoke gl_FUNC_ATAN.
47065 2011-10-08  Bruno Haible  <bruno@clisp.org>
47067         Tests for module 'acosf'.
47068         * modules/acosf-tests: New file.
47069         * tests/test-acosf.c: New file.
47071         New module 'acosf'.
47072         * lib/math.in.h (acosf): New declaration.
47073         * lib/acosf.c: New file.
47074         * m4/acosf.m4: New file.
47075         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47076         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47077         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47078         * modules/acosf: New file.
47079         * tests/test-math-c++.cc: Check the declaration of acosf.
47080         * doc/posix-functions/acosf.texi: Mention the new module.
47082         acos: Use a .m4 file.
47083         * m4/acos.m4: New file.
47084         * modules/acos (Files): Add it.
47085         (configure.ac): Just invoke gl_FUNC_ACOS.
47087 2011-10-08  Bruno Haible  <bruno@clisp.org>
47089         Tests for module 'asinf'.
47090         * modules/asinf-tests: New file.
47091         * tests/test-asinf.c: New file.
47093         New module 'asinf'.
47094         * lib/math.in.h (asinf): New declaration.
47095         * lib/asinf.c: New file.
47096         * m4/asinf.m4: New file.
47097         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47099         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47100         * modules/asinf: New file.
47101         * tests/test-math-c++.cc: Check the declaration of asinf.
47102         * doc/posix-functions/asinf.texi: Mention the new module.
47104         asin: Use a .m4 file.
47105         * m4/asin.m4: New file.
47106         * modules/asin (Files): Add it.
47107         (configure.ac): Just invoke gl_FUNC_ASIN.
47109 2011-10-08  Bruno Haible  <bruno@clisp.org>
47111         Tests for module 'tanf'.
47112         * modules/tanf-tests: New file.
47113         * tests/test-tanf.c: New file.
47115         New module 'tanf'.
47116         * lib/math.in.h (tanf): New declaration.
47117         * lib/tanf.c: New file.
47118         * m4/tanf.m4: New file.
47119         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47121         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47122         * modules/tanf: New file.
47123         * tests/test-math-c++.cc: Check the declaration of tanf.
47124         * doc/posix-functions/tanf.texi: Mention the new module.
47126         tan: Use a .m4 file.
47127         * m4/tan.m4: New file.
47128         * modules/tan (Files): Add it.
47129         (configure.ac): Just invoke gl_FUNC_TAN.
47131 2011-10-08  Bruno Haible  <bruno@clisp.org>
47133         Tests for module 'cosf'.
47134         * modules/cosf-tests: New file.
47135         * tests/test-cosf.c: New file.
47137         New module 'cosf'.
47138         * lib/math.in.h (cosf): New declaration.
47139         * lib/cosf.c: New file.
47140         * m4/cosf.m4: New file.
47141         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47143         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47144         * modules/cosf: New file.
47145         * tests/test-math-c++.cc: Check the declaration of cosf.
47146         * doc/posix-functions/cosf.texi: Mention the new module.
47148         cos: Use a .m4 file.
47149         * m4/cos.m4: New file.
47150         * modules/cos (Files): Add it.
47151         (configure.ac): Just invoke gl_FUNC_COS.
47153 2011-10-08  Bruno Haible  <bruno@clisp.org>
47155         Tests for module 'sinf'.
47156         * modules/sinf-tests: New file.
47157         * tests/test-sinf.c: New file.
47159         New module 'sinf'.
47160         * lib/math.in.h (sinf): New declaration.
47161         * lib/sinf.c: New file.
47162         * m4/sinf.m4: New file.
47163         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47165         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47166         * modules/sinf: New file.
47167         * tests/test-math-c++.cc: Check the declaration of sinf.
47168         * doc/posix-functions/sinf.texi: Mention the new module.
47170         sin: Use a .m4 file.
47171         * m4/sin.m4: New file.
47172         * modules/sin (Files): Add it.
47173         (configure.ac): Just invoke gl_FUNC_SIN.
47175 2011-10-08  Bruno Haible  <bruno@clisp.org>
47177         Tests for module 'powf'.
47178         * modules/powf-tests: New file.
47179         * tests/test-powf.c: New file.
47181         New module 'powf'.
47182         * lib/math.in.h (powf): New declaration.
47183         * lib/powf.c: New file.
47184         * m4/powf.m4: New file.
47185         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47187         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47188         * modules/powf: New file.
47189         * tests/test-math-c++.cc: Check the declaration of powf.
47190         * doc/posix-functions/powf.texi: Mention the new module.
47192         pow: Use a .m4 file.
47193         * m4/pow.m4: New file.
47194         * modules/pow (Files): Add it.
47195         (configure.ac): Just invoke gl_FUNC_POW.
47197 2011-10-08  Bruno Haible  <bruno@clisp.org>
47199         Tests for module 'log10f'.
47200         * modules/log10f-tests: New file.
47201         * tests/test-log10f.c: New file.
47203         New module 'log10f'.
47204         * lib/math.in.h (log10f): New declaration.
47205         * lib/log10f.c: New file.
47206         * m4/log10f.m4: New file.
47207         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47209         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47210         * modules/log10f: New file.
47211         * tests/test-math-c++.cc: Check the declaration of log10f.
47212         * doc/posix-functions/log10f.texi: Mention the new module.
47214         log10: Use a .m4 file.
47215         * m4/log10.m4: New file.
47216         * modules/log10 (Files): Add it.
47217         (configure.ac): Just invoke gl_FUNC_LOG10.
47219 2011-10-08  Bruno Haible  <bruno@clisp.org>
47221         Tests for module 'logf'.
47222         * modules/logf-tests: New file.
47223         * tests/test-logf.c: New file.
47225         New module 'logf'.
47226         * lib/math.in.h (logf): New declaration.
47227         * lib/logf.c: New file.
47228         * m4/logf.m4: New file.
47229         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47231         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47232         * modules/logf: New file.
47233         * tests/test-math-c++.cc: Check the declaration of logf.
47234         * doc/posix-functions/logf.texi: Mention the new module.
47236         log: Use a .m4 file.
47237         * m4/log.m4: New file.
47238         * modules/log (Files): Add it.
47239         (configure.ac): Just invoke gl_FUNC_LOG.
47241 2011-10-08  Bruno Haible  <bruno@clisp.org>
47243         Tests for module 'expf'.
47244         * modules/expf-tests: New file.
47245         * tests/test-expf.c: New file.
47247         New module 'expf'.
47248         * lib/math.in.h (expf): New declaration.
47249         * lib/expf.c: New file.
47250         * m4/expf.m4: New file.
47251         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47253         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47254         * modules/expf: New file.
47255         * tests/test-math-c++.cc: Check the declaration of expf.
47256         * doc/posix-functions/expf.texi: Mention the new module.
47258         exp: Use a .m4 file.
47259         * m4/exp.m4: New file.
47260         * modules/exp (Files): Add it.
47261         (configure.ac): Just invoke gl_FUNC_EXP.
47263 2011-10-08  Bruno Haible  <bruno@clisp.org>
47265         Tests for module 'sqrtf'.
47266         * modules/sqrtf-tests: New file.
47267         * tests/test-sqrtf.c: New file.
47269         New module 'sqrtf'.
47270         * lib/math.in.h (sqrtf): New declaration.
47271         * lib/sqrtf.c: New file.
47272         * m4/sqrtf.m4: New file.
47273         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47275         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47276         * modules/sqrtf: New file.
47277         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47278         * doc/posix-functions/sqrtf.texi: Mention the new module.
47280 2011-10-08  Bruno Haible  <bruno@clisp.org>
47282         Tests: Avoid link failures w.r.t. libintl.
47283         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47284         $(LIBINTL).
47285         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47286         $(LIBINTL).
47287         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47288         against $(LIBINTL).
47289         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47290         $(LIBINTL).
47291         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47292         $(LIBINTL).
47293         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47295 2011-10-08  Bruno Haible  <bruno@clisp.org>
47297         pow tests: Defeat compiler optimizations.
47298         * tests/test-pow.c (main): Assign arguments to x and y before use.
47300 2011-10-08  Bruno Haible  <bruno@clisp.org>
47302         gnulib-tool: Improve last commit.
47303         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47304         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47305         ignore dependencies that are not among the modules list.
47307 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47309         gnulib-tool: don't follow dependencies to avoided modules
47310         This fixes a bug that is related to the previous one.
47311         * gnulib-tool (func_modules_transitive_closure)
47312         (func_emit_autoconf_snippets):
47313         Check whether a dependency is acceptable before using it.
47314         (--extract-dependencies): Report an error if --avoid is also used,
47315         since this combination of options is not yet supported.
47317         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47318         Problem reported by Peter Dyballa in
47319         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47320         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47321         when echoing "$condition".
47323 2011-10-07  Bruno Haible  <bruno@clisp.org>
47325         Fix documentation about math functions on MacOS X.
47326         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47327         MacOS X 10.5.
47328         * doc/posix-functions/fdim.texi: Likewise.
47329         * doc/posix-functions/feclearexcept.texi: Likewise.
47330         * doc/posix-functions/fegetenv.texi: Likewise.
47331         * doc/posix-functions/fegetround.texi: Likewise.
47332         * doc/posix-functions/feholdexcept.texi: Likewise.
47333         * doc/posix-functions/feraiseexcept.texi: Likewise.
47334         * doc/posix-functions/fesetenv.texi: Likewise.
47335         * doc/posix-functions/fesetround.texi: Likewise.
47336         * doc/posix-functions/fetestexcept.texi: Likewise.
47337         * doc/posix-functions/feupdateenv.texi: Likewise.
47338         * doc/posix-functions/fmax.texi: Likewise.
47339         * doc/posix-functions/fmin.texi: Likewise.
47340         * doc/posix-functions/log2.texi: Likewise.
47341         * doc/posix-functions/modff.texi: Likewise.
47342         * doc/posix-functions/nan.texi: Likewise.
47343         * doc/posix-functions/nanf.texi: Likewise.
47344         * doc/posix-functions/nextafterf.texi: Likewise.
47345         * doc/posix-functions/remquo.texi: Likewise.
47347 2011-10-07  Bruno Haible  <bruno@clisp.org>
47349         modff: Drop assumption about library that defines modff.
47350         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47351         AC_CHECK_FUNCS.
47352         * modules/modff (Files): Add m4/mathfunc.m4.
47354 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47356         raise tests: Avoid a GCC warning.
47357         * tests/test-raise.c (handler): Use _Noreturn.
47359 2011-10-07  Bruno Haible  <bruno@clisp.org>
47361         Tests for module 'ldexpf'.
47362         * modules/ldexpf-tests: New file.
47363         * tests/test-ldexpf.c: New file.
47365         New module 'ldexpf'.
47366         * lib/math.in.h (ldexpf): New declaration.
47367         * lib/ldexpf.c: New file.
47368         * m4/ldexpf.m4: New file.
47369         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47371         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47372         * modules/ldexpf: New file.
47373         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47374         * doc/posix-functions/ldexpf.texi: Mention the new module.
47376 2011-10-06  Bruno Haible  <bruno@clisp.org>
47378         frexpf: Work around problems on IRIX and mingw.
47379         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47381         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47382         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47383         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47384         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47385         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47387 2011-10-06  Bruno Haible  <bruno@clisp.org>
47389         fabsf: Drop assumption about library that defines fabsf.
47390         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47391         AC_CHECK_FUNCS.
47392         * modules/fabsf (Files): Add m4/mathfunc.m4.
47394 2011-10-06  Bruno Haible  <bruno@clisp.org>
47396         frexpf: Drop assumption about library that defines frexpf.
47397         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47398         'int *', 'float *', 'long double *', 'float', 'long double'.
47399         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47400         AC_CHECK_FUNCS.
47401         * modules/frexpf (Files): Add m4/mathfunc.m4.
47403         Tests for module 'frexpf'.
47404         * modules/frexpf-tests: New file.
47405         * tests/test-frexpf.c: New file.
47407         New module 'frexpf'.
47408         * lib/math.in.h (frexpf): New declaration.
47409         * lib/frexpf.c: New file.
47410         * m4/frexpf.m4: New file.
47411         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47413         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47414         * modules/frexpf: New file.
47415         * tests/test-math-c++.cc: Check the declaration of frexpf.
47416         * doc/posix-functions/frexpf.texi: Mention the new module.
47418 2011-10-06  Bruno Haible  <bruno@clisp.org>
47420         math: Sort function declarations of math.in.h.
47421         * lib/math.in.h (frexp, logb): Move declarations.
47423 2011-10-05  Bruno Haible  <bruno@clisp.org>
47425         Tests for module 'modff'.
47426         * modules/modff-tests: New file.
47427         * tests/test-modff.c: New file.
47429         New module 'modff'.
47430         * lib/math.in.h (modff): New declaration.
47431         * lib/modff.c: New file.
47432         * m4/modff.m4: New file.
47433         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47435         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47436         * modules/modff: New file.
47437         * tests/test-math-c++.cc: Check the declaration of modff.
47438         * doc/posix-functions/modff.texi: Mention the new module.
47440         modf tests: Make test sharper.
47441         * tests/test-modf.c (main): Strengthen upper bound.
47443         modf: Use a .m4 file.
47444         * m4/modf.m4: New file.
47445         * modules/modf (Files): Add it.
47446         (configure.ac): Just invoke gl_FUNC_MODF.
47448 2011-10-05  Bruno Haible  <bruno@clisp.org>
47450         Tests for module 'fmodf'.
47451         * modules/fmodf-tests: New file.
47452         * tests/test-fmodf.c: New file.
47454         New module 'fmodf'.
47455         * lib/math.in.h (fmodf): New declaration.
47456         * lib/fmodf.c: New file.
47457         * m4/fmodf.m4: New file.
47458         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47460         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47461         * modules/fmodf: New file.
47462         * tests/test-math-c++.cc: Check the declaration of fmodf.
47463         * doc/posix-functions/fmodf.texi: Mention the new module.
47465         fmod: Use a .m4 file.
47466         * m4/fmod.m4: New file.
47467         * modules/fmod (Files): Add it.
47468         (configure.ac): Just invoke gl_FUNC_FMOD.
47470 2011-10-05  Bruno Haible  <bruno@clisp.org>
47472         Tests for module 'fabsf'.
47473         * modules/fabsf-tests: New file.
47474         * tests/test-fabsf.c: New file.
47476         New module 'fabsf'.
47477         * lib/math.in.h (fabsf): New declaration.
47478         * lib/fabsf.c: New file.
47479         * m4/fabsf.m4: New file.
47480         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47482         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47483         * modules/fabsf: New file.
47484         * tests/test-math-c++.cc: Check the declaration of fabsf.
47485         * doc/posix-functions/fabsf.texi: Mention the new module.
47487         fabs: Use a .m4 file.
47488         * m4/fabs.m4: New file.
47489         * modules/fabs (Files): Add it.
47490         (configure.ac): Just invoke gl_FUNC_FABS.
47492 2011-10-05  Jim Meyering  <meyering@redhat.com>
47494         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47495         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47496         ls -lL regression introduced in coreutils-8.12, it does so at the
47497         cost of an additional stat call in the common case.  Besides, now
47498         that the kernel change that prompted commit 95f7c57f has been reverted
47499         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47500         we have no use for commit 95f7c57f, "file-has-acl: use
47501         acl_extended_file_nofollow if available".
47503 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47505         file-has-acl: revert unintended change in behavior of ls -L
47506         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47507         derived from...
47508         (file_has_acl): ...code here.  Call it.
47509         This problem was introduced with 2011-07-22 commit 95f7c57f,
47510         "file-has-acl: use acl_extended_file_nofollow if available".
47511         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47513 2011-10-03  Bruno Haible  <bruno@clisp.org>
47515         poll: Avoid link errors on MSVC.
47516         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47517         * modules/poll (Depends-on): Add sockets.
47518         (Link): New section.
47519         * NEWS: Mention the change.
47520         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47521         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47522         $(LIB_POLL) instead of $(LIBSOCKET).
47524 2011-10-03  Bruno Haible  <bruno@clisp.org>
47526         sys_select tests: Fix link error on MSVC 9.
47527         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47528         with $(LIB_SELECT) instead of $(LIBSOCKET).
47530 2011-10-03  Bruno Haible  <bruno@clisp.org>
47532         sys_select: Fix compilation error on mingw.
47533         * lib/sys_select.in.h: On native Windows, include <io.h>.
47535 2011-10-03  Bruno Haible  <bruno@clisp.org>
47537         wmemset: Support for MSVC.
47538         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47539         whether wmemset() exists.
47541 2011-10-03  Bruno Haible  <bruno@clisp.org>
47543         wmemmove: Support for MSVC.
47544         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47545         whether wmemmove() exists.
47547 2011-10-03  Bruno Haible  <bruno@clisp.org>
47549         wmemcpy: Support for MSVC.
47550         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47551         whether wmemcpy() exists.
47553 2011-10-03  Bruno Haible  <bruno@clisp.org>
47555         wmemcmp: Support for MSVC.
47556         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47557         whether wmemcmp() exists.
47559 2011-10-03  Bruno Haible  <bruno@clisp.org>
47561         wmemchr: Support for MSVC.
47562         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47563         whether wmemchr() exists.
47565 2011-10-03  Bruno Haible  <bruno@clisp.org>
47567         glthread/*, strsignal: Support for MSVC.
47568         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47569         including <winsock.h> on MSVC 9.
47570         * lib/glthread/lock.h: Likewise.
47571         * lib/glthread/thread.h: Likewise.
47572         * lib/glthread/tls.h: Likewise.
47573         * lib/glthread/yield.h: Likewise.
47574         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47575         if HAVE_UNISTD_H is false.
47576         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47578 2011-10-03  Bruno Haible  <bruno@clisp.org>
47580         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47581         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47582         Set to 100000.
47584 2011-10-03  Bruno Haible  <bruno@clisp.org>
47586         acl: Fix specification.
47587         * lib/file-has-acl.c (file_has_acl): Fix specification.
47589 2011-10-03  Bruno Haible  <bruno@clisp.org>
47591         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47592         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47593         (compute_curr_prefix, shared_library_fullname,
47594         find_shared_library_fullname, get_shared_library_fullname, relocate):
47595         Use it together with PIC && INSTALLDIR.
47596         Reported by <jojelino@gmail.com>
47597         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47599 2011-10-01  Jim Meyering  <meyering@redhat.com>
47601         maint.mk: adjust a release-related rule not to require use of gzip
47602         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47603         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47604         projects that build only .tar.xz files.  Also fix an erroneous test.
47606         test-linkat: don't leave behind a temporary file
47607         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47608         Otherwise, coreutils' "make distcheck" would fail with this:
47609           Only in /c/cu/tests/torture/coreutils/test/\
47610             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47611           make[2]: *** [my-distcheck] Error 1
47613         float, math: add omitted file
47614         * lib/itold.c: Add file, required for yesterday's float change.
47616 2011-10-01  Bruno Haible  <bruno@clisp.org>
47618         isinf: Fix for OpenBSD/x86.
47619         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47620         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47621         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47623 2011-10-01  Bruno Haible  <bruno@clisp.org>
47625         isfinite: Fix syntax error in configure test.
47626         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47628         isfinite: Fix typo.
47629         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47630         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47632 2011-10-01  Bruno Haible  <bruno@clisp.org>
47634         nonblocking tests: Fix test failure on Linux/IA-64.
47635         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47636         Set to 270000.
47638 2011-10-01  Bruno Haible  <bruno@clisp.org>
47640         mkfifoat tests: Fix a test failure on mingw.
47641         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47642         with error ENOSYS.
47644 2011-09-30  Bruno Haible  <bruno@clisp.org>
47646         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47647         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47648         'long double'. Set REPLACE_ITOLD.
47649         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47650         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47651         * lib/itold.c: New file.
47652         * modules/float (Files): Add lib/itold.c.
47653         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47654         (Makefile.am): Substitute REPLACE_ITOLD.
47655         * modules/math (Depends-on): Add float.
47656         (Makefile.am): Substitute REPLACE_ITOLD.
47657         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47658         * doc/posix-headers/math.texi: Likewise.
47659         * doc/posix-functions/logl.texi: Likewise.
47661 2011-09-30  Bruno Haible  <bruno@clisp.org>
47663         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47664         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47665         Set to 140000.
47667 2011-09-30  Bruno Haible  <bruno@clisp.org>
47669         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47670         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47671         invocation, say "right after AC_PROG_CC_STDC", not "right after
47672         AC_PROG_CC".
47673         Reported by Gary V. Vaughan <gary@gnu.org>.
47675 2011-09-30  Bruno Haible  <bruno@clisp.org>
47677         Centralize C99 requirement.
47678         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47679         * modules/stdarg (configure.ac-early): Invoke it instead of
47680         AC_PROG_CC_STDC.
47681         Reported by Gary V. Vaughan and Paul Eggert.
47683 2011-09-29  Bruno Haible  <bruno@clisp.org>
47685         float: Fix LDBL_MAX value on Linux/PowerPC.
47686         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47687         on Linux/PowerPC.
47688         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47689         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47690         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47691         platform.
47692         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47694 2011-09-29  Bruno Haible  <bruno@clisp.org>
47696         doc: Improve doc about gl_EARLY.
47697         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47698         AC_PROG_CC_STDC invocation.
47699         Reported by Gary V. Vaughan <gary@gnu.org>.
47701 2011-09-28  Bruno Haible  <bruno@clisp.org>
47703         fgetc, fputc, fread, fwrite tests: Fix link error.
47704         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47705         on non-MSVC platforms.
47706         * tests/test-fputc.c (main): Likewise.
47707         * tests/test-fread.c (main): Likewise.
47708         * tests/test-fwrite.c (main): Likewise.
47709         Reported by Jim Meyering.
47711 2011-09-27  Bruno Haible  <bruno@clisp.org>
47713         fputc, fwrite tests: Avoid test failure on MSVC.
47714         * tests/test-fgetc.c: Include msvc-inval.h.
47715         (main): Invoke gl_msvc_inval_ensure_handler.
47716         * tests/test-fputc.c: Include msvc-inval.h.
47717         (main): Invoke gl_msvc_inval_ensure_handler.
47718         * tests/test-fread.c: Include msvc-inval.h.
47719         (main): Invoke gl_msvc_inval_ensure_handler.
47720         * tests/test-fwrite.c: Include msvc-inval.h.
47721         (main): Invoke gl_msvc_inval_ensure_handler.
47722         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47723         * modules/fputc-tests (Depends-on): Likewise.
47724         * modules/fread-tests (Depends-on): Likewise.
47725         * modules/fwrite-tests (Depends-on): Likewise.
47727 2011-09-27  Bruno Haible  <bruno@clisp.org>
47729         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47730         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47731         (raise): Remove older, duplicated declaration.
47732         (_gl_raise_SIGPIPE): New declaration.
47733         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47734         (rpl_raise): Remove function.
47735         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47736         a gnulib-defined SIGPIPE here.
47737         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47738         'sigprocmask' has detected missing signal-blocking and the module
47739         'sigpipe' is enabled.
47740         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47742 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47744         base64-tests: avoid memory leak
47745         * tests/test-base64.c (main): Plug memory leak.
47747         base32: new module
47748         * modules/base32: New module.
47749         * lib/base32.c: New file.
47750         * lib/base32.h: Likewise.
47751         * m4/base32.m4: Likewise.
47752         * modules/base32-tests: New test.
47753         * tests/test-base32.c: Likewise.
47754         * MODULES.html.sh (Misc): Mention it.
47756 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47758         gnulib: use more-standard license notice wording
47759         * gnulib-tool (func_emit_copyright_notice): When emitting a
47760         license notice into a file, use the standard wording as suggested
47761         by the current information for GNU maintainers, except say "file"
47762         rather than "program".  The new wording gives a license version
47763         number, which addresses an issue raised by Glenn Morris in
47764         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47765         * m4/onceonly.m4: Use that same wording here, too.
47767         dup2: minor simplification
47768         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47769         as lib/dup2.c no longer uses 'inline'.
47771 2011-09-25  Bruno Haible  <bruno@clisp.org>
47773         strings: Fix compilation error on MSVC.
47774         * lib/strings.in.h: Include <stddef.h> for size_t.
47776 2011-09-25  Bruno Haible  <bruno@clisp.org>
47778         fflush et al.: Document limitation on MSVC.
47779         * doc/posix-functions/fflush.texi: Document possible crash in handling
47780         mode other than DEFAULT_HANDLING.
47781         * doc/posix-functions/fgetc.texi: Likewise.
47782         * doc/posix-functions/fputc.texi: Likewise.
47783         * doc/posix-functions/fread.texi: Likewise.
47784         * doc/posix-functions/fwrite.texi: Likewise.
47786 2011-09-25  Bruno Haible  <bruno@clisp.org>
47788         msvc-inval: Allow three invalid parameter handling modes.
47789         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47790         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47791         macros.
47792         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47793         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47794         SANE_LIBRARY_HANDLING as a no-op.
47795         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47796         <stdlib.h>.
47797         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47799 2011-09-25  Bruno Haible  <bruno@clisp.org>
47801         msvc-inval: Make handler multithread-safe.
47802         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47803         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47804         declarations.
47805         (gl_msvc_inval_current): New declaration.
47806         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47807         Operate on the structure returned by gl_msvc_inval_current().
47808         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47809         Remove varaiables.
47810         (tls_index, tls_initialized): New variables.
47811         (not_per_thread): New variable.
47812         (gl_msvc_inval_current): New function.
47813         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47814         returned by gl_msvc_inval_current().
47816 2011-09-25  Bruno Haible  <bruno@clisp.org>
47818         msvc-inval: Install handler globally.
47819         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47820         !_MSC_VER.
47821         (gl_msvc_invalid_parameter_handler): Remove declaration.
47822         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47823         declarations.
47824         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47825         Install the handler globally, don't uninstall it.
47826         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47827         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47828         currently valid, call RaiseException instead.
47829         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47830         for !_MSC_VER.
47832 2011-09-25  Bruno Haible  <bruno@clisp.org>
47834         strerror_r-posix: Fix for MSVC 9.
47835         * lib/strerror_r.c (local_snprintf): New function.
47836         (snprintf): Define to local_snprintf, not to _snprintf.
47838 2011-09-25  Bruno Haible  <bruno@clisp.org>
47840         ftruncate: Support for MSVC 9.
47841         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47842         (chsize_nothrow): New function.
47843         (chsize): Redefine as a macro.
47844         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47845         * modules/ftruncate (Depends-on): Add msvc-inval.
47847 2011-09-25  Bruno Haible  <bruno@clisp.org>
47849         New module 'fstat'.
47850         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47851         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47852         * lib/fchdir.c (rpl_fstat): Remove function.
47853         * m4/fstat.m4: New file.
47854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47855         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47856         declared.
47857         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47858         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47859         * modules/fstat: New file.
47860         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47861         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47862         is set.
47863         * doc/posix-functions/fstat.texi: Mention the new module and the
47864         problem on MSVC.
47865         * NEWS: Mention the change.
47866         * modules/acl (Depends-on): Add fstat.
47867         * modules/chdir-safer (Depends-on): Likewise.
47868         * modules/chown (Depends-on): Likewise.
47869         * modules/copy-file (Depends-on): Likewise.
47870         * modules/fchdir (Depends-on): Likewise.
47871         * modules/fdopendir (Depends-on): Likewise.
47872         * modules/fopen (Depends-on): Likewise.
47873         * modules/fts (Depends-on): Likewise.
47874         * modules/getcwd (Depends-on): Likewise.
47875         * modules/isapipe (Depends-on): Likewise.
47876         * modules/linkat (Depends-on): Likewise.
47877         * modules/lseek (Depends-on): Likewise.
47878         * modules/mkdir-p (Depends-on): Likewise.
47879         * modules/open (Depends-on): Likewise.
47880         * modules/openat (Depends-on): Likewise.
47881         * modules/read-file (Depends-on): Likewise.
47882         * modules/renameat (Depends-on): Likewise.
47883         * modules/utimens (Depends-on): Likewise.
47885 2011-09-25  Bruno Haible  <bruno@clisp.org>
47887         linkat: Fix compilation on MSVC 9.
47888         * lib/linkat.c: Don't include <stdint.h>.
47890 2011-09-25  Bruno Haible  <bruno@clisp.org>
47892         fclose: Support for MSVC 9.
47893         * lib/fclose.c: Include msvc-inval.h.
47894         (fclose_nothrow): New function.
47895         (rpl_fclose): Use it.
47896         * modules/fclose (Depends-on): Add msvc-inval.
47897         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47899 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47901         dup2: minor simplifications
47902         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47903         that it's a performance win.
47904         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47905         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47907 2011-09-24  Jim Meyering  <meyering@redhat.com>
47909         test-futimens: avoid a warning from gcc -Wshadow
47910         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47911         to avoid a shadowing warning.
47913 2011-09-24  Bruno Haible  <bruno@clisp.org>
47915         fdopen: Support for MSVC 9.
47916         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47917         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47918         * lib/fdopen.c: Include msvc-inval.h.
47919         (fdopen_nothrow): New function.
47920         (rpl_fdopen): Use it.
47921         * modules/fdopen (Depends-on): Add msvc-inval.
47922         * modules/fclose-tests (Depends-on): Add fdopen.
47923         * modules/fflush-tests (Depends-on): Likewise.
47924         * modules/fgetc-tests (Depends-on): Likewise.
47925         * modules/fputc-tests (Depends-on): Likewise.
47926         * modules/fread-tests (Depends-on): Likewise.
47927         * modules/freopen-tests (Depends-on): Likewise.
47928         * modules/fseeko-tests (Depends-on): Likewise.
47929         * modules/ftello-tests (Depends-on): Likewise.
47930         * modules/fwrite-tests  (Depends-on): Likewise.
47931         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47933 2011-09-24  Bruno Haible  <bruno@clisp.org>
47935         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47936         * modules/fgetc-tests (Depends-on): Add unistd.
47937         * modules/fputc-tests (Depends-on): Likewise.
47938         * modules/fread-tests (Depends-on): Likewise.
47939         * modules/fwrite-tests (Depends-on): Likewise.
47941 2011-09-24  Bruno Haible  <bruno@clisp.org>
47943         dup: Simplify autoconf test.
47944         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47945         on gl_MSVC_INVAL's result.
47947 2011-09-24  Bruno Haible  <bruno@clisp.org>
47949         Tests for function fwrite().
47950         * modules/fwrite-tests: New file.
47951         * tests/test-fwrite.c: New file.
47952         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47954         Tests for function fread().
47955         * modules/fread-tests: New file.
47956         * tests/test-fread.c: New file.
47957         * modules/stdio-tests (Depends-on): Add fread-tests.
47959         Activate fputc tests.
47960         * modules/stdio-tests (Depends-on): Add fputc-tests.
47962         Enhance fgetc, fputc tests.
47963         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47964         * tests/test-fputc.c (main): Likewise.
47966 2011-09-24  Bruno Haible  <bruno@clisp.org>
47968         write: Support for MSVC 9.
47969         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47970         is not 1.
47971         * lib/write.c (write_nothrow): New function.
47972         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47973         not 1. Use write_nothrow.
47974         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47975         invalid parameter handler.
47976         (gl_PREREQ_WRITE): New macro.
47977         * modules/write (Depends-on): Add msvc-inval.
47978         (configure.ac): Invoke gl_PREREQ_WRITE.
47979         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47981 2011-09-24  Bruno Haible  <bruno@clisp.org>
47983         read: Fix last commit.
47984         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47986 2011-09-24  Bruno Haible  <bruno@clisp.org>
47988         dup2: Fix last commit.
47989         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47990         (rpl_dup2): Disable fcntl workaround on native Windows.
47992         sigprocmask: Make code safer.
47993         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47994         section that changes macro definitions for this compilation unit.
47996 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47998         dup2: clarify by coalescing Windows-specific material
47999         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48000         "msvc-nothrow.h"' to the Windows-specific section, so that the
48001         Emacs source need not contain these include files.
48002         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48003         Windows-specific fixes into this function rather than just the
48004         nothrow fix, as this shortens and clarifies the code.  Always
48005         define as a function, as that's a bit cleaner than having it be
48006         sometimes a function and sometimes a macro.
48007         (rpl_dup2): Move the Windows-specific stuff out of here and into
48008         ms_windows_dup2.  Don't protect the Haiku-related fix with
48009         "#if !defined __linux__", as the same code also works around
48010         a Linux kernel bug, and it doesn't add any system calls on any
48011         platform.  Add comment about FreeBSD 6.1.
48013         sigprocmask: move #include directive
48014         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48015         Windows-specific section, so that the Emacs source need not
48016         contain msvc-inval.h.
48018 2011-09-23  Bruno Haible  <bruno@clisp.org>
48020         read: Support for MSVC 9.
48021         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48022         is not 1.
48023         * lib/read.c (read_nothrow): New function.
48024         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48025         read_nothrow.
48026         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48027         invalid parameter handler.
48028         (gl_PREREQ_READ): New macro.
48029         * modules/read (Depends-on): Add msvc-inval.
48030         (configure.ac): Invoke gl_PREREQ_READ.
48031         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48033 2011-09-23  Bruno Haible  <bruno@clisp.org>
48035         close: Support for MSVC 9.
48036         * lib/close.c: Include <errno.h>, msvc-inval.h.
48037         (close_nothrow): New function.
48038         (rpl_close): Use it.
48039         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48040         invalid parameter handler.
48041         * modules/close (Depends-on): Add msvc-inval.
48042         * modules/dup2-tests (Depends-on): Add close.
48043         * modules/dup3-tests (Depends-on): Likewise.
48044         * modules/fcntl-tests (Depends-on): Likewise.
48045         * modules/spawn-pipe-tests (Depends-on): Likewise.
48046         * modules/unistd-safer-tests (Depends-on): Likewise.
48047         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48049 2011-09-23  Bruno Haible  <bruno@clisp.org>
48051         New module 'dup'.
48052         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48053         Allow replacement.
48054         * lib/dup.c: New file.
48055         * lib/fchdir.c (rpl_dup): Remove function.
48056         * m4/dup.m4: New file.
48057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48058         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48059         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48060         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48061         * modules/dup: New file.
48062         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48063         'dup' module is in use.
48064         * modules/fdopendir (Depends-on): Add dup.
48065         * modules/fdutimensat-tests (Depends-on): Likewise.
48066         * modules/fts (Depends-on): Likewise.
48067         * modules/futimens-tests (Depends-on): Likewise.
48068         * modules/posix_spawnp-tests (Depends-on): Likewise.
48069         * modules/unistd-safer-tests (Depends-on): Likewise.
48070         * modules/utimens-tests (Depends-on): Likewise.
48071         * doc/posix-functions/dup.texi: Mention the new module and the problem
48072         on MSVC.
48074 2011-09-23  Bruno Haible  <bruno@clisp.org>
48076         getdtablesize: Support for MSVC 9.
48077         * lib/getdtablesize.c: Include msvc-inval.h.
48078         (_setmaxstdio_nothrow): New function.
48079         (_setmaxstdio): Redefine it.
48080         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48081         * modules/getdtablesize (Depends-on): Add msvc-inval.
48082         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48084 2011-09-23  Bruno Haible  <bruno@clisp.org>
48086         signal-h: Rename from signal.
48087         * modules/signal-h: Renamed from modules/signal.
48088         * modules/pthread_sigmask (Depends-on): Update.
48089         * modules/raise (Depends-on): Likewise.
48090         * modules/sigaction (Depends-on): Likewise.
48091         * modules/sigpipe (Depends-on): Likewise.
48092         * modules/sigprocmask (Depends-on): Likewise.
48093         * modules/sys_select (Depends-on): Likewise.
48094         * modules/signal-h-tests: Renamed from modules/signal-tests.
48095         (Files, Depends-on, Makefile.am): Update.
48096         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48097         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48098         (Files, Makefile.am): Update.
48099         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48100         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48101         * modules/signal: New placeholder file.
48102         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48103         * doc/posix-headers/signal.texi: Update.
48104         * NEWS: Mention the change.
48106 2011-09-23  Bruno Haible  <bruno@clisp.org>
48108         sigprocmask: Avoid crashes through signal() on MSVC 9.
48109         * lib/sigprocmask.c: Include msvc-inval.h.
48110         (signal_nothrow): New function.
48111         (signal): Redefine it.
48112         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48113         * modules/sigprocmask (Depends-on): Add msvc-inval.
48114         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48116 2011-09-23  Bruno Haible  <bruno@clisp.org>
48118         Tests for module 'raise'.
48119         * modules/raise-tests: New file.
48120         * tests/test-raise.c: New file.
48122         raise: Support for MSVC.
48123         * lib/signal.in.h (raise): New declaration.
48124         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48125         for native Windows platforms.
48126         * m4/raise.m4: New file.
48127         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48128         HAVE_RAISE, REPLACE_RAISE.
48129         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48130         REPLACE_RAISE.
48131         * modules/raise (Status, Notice): Remove fields.
48132         (Files): Add m4/raise.m4.
48133         (Depends-on): Add signal, msvc-inval.
48134         (configure.ac): Use the common idioms.
48135         (Maintainer): Add me.
48136         * tests/test-signal-c++.cc: Check the signature of raise.
48137         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48139 2011-09-23  Bruno Haible  <bruno@clisp.org>
48141         pipe2: Fix compilation on pre-C99 compilers.
48142         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48144 2011-09-23  Bruno Haible  <bruno@clisp.org>
48146         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48147         * lib/msvc-nothrow.h: New file.
48148         * lib/msvc-nothrow.c: New file.
48149         * m4/msvc-nothrow.m4: New file.
48150         * modules/msvc-nothrow: New file.
48151         * lib/dup2.c: Include msvc-nothrow.h.
48152         (rpl_dup2): No need to protect _get_osfhandle call here.
48153         * lib/accept4.c: Include msvc-nothrow.h.
48154         * lib/error.c: Likewise.
48155         * lib/fcntl.c: Likewise.
48156         * lib/lseek.c: Likewise.
48157         * lib/nonblocking.c: Likewise.
48158         * lib/poll.c: Likewise.
48159         * lib/read.c: Likewise.
48160         * lib/select.c: Likewise.
48161         * lib/sockets.h: Likewise.
48162         * lib/sockets.c: Likewise.
48163         * lib/stdio-read.c: Likewise.
48164         * lib/stdio-write.c: Likewise.
48165         * lib/write.c: Likewise.
48166         * lib/w32sock.h: Likewise.
48167         * lib/w32spawn.h: Likewise.
48168         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48169         * lib/fsync.c: Likewise.
48170         * lib/isapipe.c: Likewise.
48171         * modules/dup2 (Depends-on): Add msvc-nothrow.
48172         * modules/accept4 (Depends-on): Likewise.
48173         * modules/error (Depends-on): Likewise.
48174         * modules/fcntl (Depends-on): Likewise.
48175         * modules/lseek (Depends-on): Likewise.
48176         * modules/nonblocking (Depends-on): Likewise.
48177         * modules/poll (Depends-on): Likewise.
48178         * modules/read (Depends-on): Likewise.
48179         * modules/select (Depends-on): Likewise.
48180         * modules/sockets (Depends-on): Likewise.
48181         * modules/sigpipe (Depends-on): Likewise.
48182         * modules/write (Depends-on): Likewise.
48183         * modules/accept (Depends-on): Likewise.
48184         * modules/bind (Depends-on): Likewise.
48185         * modules/connect (Depends-on): Likewise.
48186         * modules/gethostname (Depends-on): Likewise.
48187         * modules/getpeername (Depends-on): Likewise.
48188         * modules/getsockname (Depends-on): Likewise.
48189         * modules/getsockopt (Depends-on): Likewise.
48190         * modules/ioctl (Depends-on): Likewise.
48191         * modules/listen (Depends-on): Likewise.
48192         * modules/recv (Depends-on): Likewise.
48193         * modules/recvfrom (Depends-on): Likewise.
48194         * modules/send (Depends-on): Likewise.
48195         * modules/sendto (Depends-on): Likewise.
48196         * modules/setsockopt (Depends-on): Likewise.
48197         * modules/shutdown (Depends-on): Likewise.
48198         * modules/socket (Depends-on): Likewise.
48199         * modules/execute (Depends-on): Likewise.
48200         * modules/spawn-pipe (Depends-on): Likewise.
48201         * modules/flock (Depends-on): Likewise.
48202         * modules/fsync (Depends-on): Likewise.
48203         * modules/isapipe (Depends-on): Likewise.
48204         * tests/test-cloexec.c: Include msvc-nothrow.h.
48205         * tests/test-dup-safer.c: Likewise.
48206         * tests/test-dup2.c: Likewise.
48207         * tests/test-dup3.c: Likewise.
48208         * tests/test-fcntl.c: Likewise.
48209         * tests/test-pipe.c: Likewise.
48210         * tests/test-pipe2.c: Likewise.
48211         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48212         * modules/unistd-safer-tests (Depends-on): Likewise.
48213         * modules/dup2-tests (Depends-on): Likewise.
48214         * modules/dup3-tests (Depends-on): Likewise.
48215         * modules/fcntl-tests (Depends-on): Likewise.
48216         * modules/pipe-posix-tests (Depends-on): Likewise.
48217         * modules/pipe2-tests (Depends-on): Likewise.
48219 2011-09-23  Bruno Haible  <bruno@clisp.org>
48221         dup2: Make code more maintainable.
48222         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48223         (rpl_dup2): Use it.
48224         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48225         * modules/dup2 (configure.ac): Invoke it.
48226         Reported by Paul Eggert.
48228 2011-09-23  Bruno Haible  <bruno@clisp.org>
48230         msvc-inval: Fix compilation error.
48231         * lib/msvc-inval.h: Include <excpt.h>.
48233 2011-09-23  Bruno Haible  <bruno@clisp.org>
48235         mkdir: Tweak for MSVC 9.
48236         * lib/sys_stat.in.h: Update comments.
48237         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48239         Tests for module 'chdir'.
48240         * modules/chdir-tests: New file.
48241         * tests/test-chdir.c: New file.
48243         New module 'chdir'.
48244         * modules/chdir: New file.
48245         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48246         (chdir): New declaration.
48247         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48248         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48249         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48250         * tests/test-unistd-c++.cc: Check signature of chdir.
48251         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48252         * modules/chdir-long (Depends-on): Add chdir.
48253         * modules/fchdir (Depends-on): Likewise.
48254         * modules/rename (Depends-on): Likewise.
48255         * modules/savewd (Depends-on): Likewise.
48257         rmdir: Support for mingw, MSVC 9.
48258         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48259         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48261         getcwd: Tweak for MSVC 9.
48262         * lib/unistd.in.h: Update comments.
48263         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48265 2011-09-22  Bruno Haible  <bruno@clisp.org>
48267         strerror_r-posix: Avoid a link error on MSVC.
48268         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48269         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48271 2011-09-22  Bruno Haible  <bruno@clisp.org>
48273         select: Avoid link errors on MSVC.
48274         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48275         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48276         * modules/pselect (Link): Likewise.
48277         * NEWS: Mention the change.
48278         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48279         test-select-stdin against $(LIB_SELECT).
48280         * modules/pselect-tests (Makefile.am): Link test-pselect against
48281         $(LIB_SELECT).
48283 2011-09-22  Bruno Haible  <bruno@clisp.org>
48285         select: Avoid compilation error on MSVC.
48286         * lib/select.c: Don't include <stdbool.h>.
48288 2011-09-21  Bruno Haible  <bruno@clisp.org>
48290         Consolidate all uses of PATH_MAX in *.m4 files.
48291         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48292         macros.
48293         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48294         and gl_PATHMAX_SNIPPET.
48295         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48296         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48297         * modules/chdir-long (Files): Add m4/pathmax.m4.
48298         * modules/getcwd (Files): Likewise.
48300 2011-09-21  Bruno Haible  <bruno@clisp.org>
48302         ftruncate: Un-deprecate, concentrate on Win32 support.
48303         * modules/ftruncate (Status, Notice): Remove sections.
48304         (Depends-on): Add largefile.
48305         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48306         non-mingw platforms.
48307         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48308         include <io.h>.
48309         * modules/perror-tests (Depends-on): Add ftruncate.
48310         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48311         'ftruncate' module.
48313 2011-09-21  Bruno Haible  <bruno@clisp.org>
48315         Add dependencies to new dirent related modules.
48316         * modules/opendir (Depends-on): Add closedir.
48317         * modules/getcwd (Depends-on): Add opendir, closedir.
48318         * modules/dirent-safer-tests (Depends-on): Likewise.
48319         * modules/fdopendir-tests (Depends-on): Likewise.
48320         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48321         * modules/renameat-tests (Depends-on): Likewise.
48323 2011-09-21  Bruno Haible  <bruno@clisp.org>
48325         opendir: Avoid compilation error on mingw.
48326         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48327         * modules/opendir (Depends-on): Add unistd.
48329 2011-09-21  Bruno Haible  <bruno@clisp.org>
48331         ftruncate tests: Avoid a test failure on mingw.
48332         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48334 2011-09-21  Bruno Haible  <bruno@clisp.org>
48336         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48337         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48338         native Windows.
48340 2011-09-21  Bruno Haible  <bruno@clisp.org>
48342         New module 'fdopen'.
48343         * lib/stdio.in.h (fdopen): New declaration.
48344         * lib/fdopen.c: New file.
48345         * m4/fdopen.m4: New file.
48346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48347         REPLACE_FDOPEN.
48348         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48349         REPLACE_FDOPEN.
48350         * modules/fdopen: New file.
48351         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48352         * tests/test-stdio-c++.cc: Check signature of fdopen.
48353         * doc/posix-functions/fdopen.texi: Mention the new module.
48355 2011-09-21  Bruno Haible  <bruno@clisp.org>
48357         unlockpt tests: Avoid test failure on NetBSD 5.1.
48358         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48359         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48361 2011-09-21  Bruno Haible  <bruno@clisp.org>
48363         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48364         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48365         * tests/test-getlogin_r.c (main): Likewise.
48367 2011-09-20  Bruno Haible  <bruno@clisp.org>
48369         time tests: Don't require pid_t.
48370         * doc/posix-headers/time.texi: Revert last change.
48371         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48372         * tests/test-time.c: Comment out the check for pid_t.
48374 2011-09-20  Bruno Haible  <bruno@clisp.org>
48376         fsync tests: Avoid a test failure on mingw.
48377         * tests/test-fsync.c (main): Allow a failure with EIO.
48379 2011-09-20  Bruno Haible  <bruno@clisp.org>
48381         euidaccess: Update comments.
48382         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48384 2011-09-20  Bruno Haible  <bruno@clisp.org>
48386         Ensure EBADF returns for socket functions on mingw.
48387         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48388         descriptor is invalid.
48389         * lib/bind.c (rpl_bind): Likewise.
48390         * lib/connect.c (rpl_connect): Likewise.
48391         * lib/getpeername.c (rpl_getpeername): Likewise.
48392         * lib/getsockname.c (rpl_getsockname): Likewise.
48393         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48394         * lib/listen.c (rpl_listen): Likewise.
48395         * lib/recv.c (rpl_recv): Likewise.
48396         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48397         * lib/send.c (rpl_send): Likewise.
48398         * lib/sendto.c (rpl_sendto): Likewise.
48399         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48400         * lib/shutdown.c (rpl_shutdown): Likewise.
48402 2011-09-20  Bruno Haible  <bruno@clisp.org>
48404         select tests: EBADF tests.
48405         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48406         test_bad_fd): New functions.
48407         (test_function): Invoke also test_bad_fd.
48409 2011-09-20  Bruno Haible  <bruno@clisp.org>
48411         Tests for module 'posix_spawn_file_actions_addopen.
48412         * modules/posix_spawn_file_actions_addopen-tests: New file.
48413         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48415         Tests for module 'posix_spawn_file_actions_adddup2'.
48416         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48417         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48419         Tests for module 'posix_spawn_file_actions_addclose'.
48420         * modules/posix_spawn_file_actions_addclose-tests: New file.
48421         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48423 2011-09-20  Bruno Haible  <bruno@clisp.org>
48425         Tests for module 'unlockpt'.
48426         * modules/unlockpt-tests: New file.
48427         * tests/test-unlockpt.c: New file.
48428         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48430         Tests for module 'grantpt'.
48431         * modules/grantpt-tests: New file.
48432         * tests/test-grantpt.c: New file.
48433         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48435 2011-09-20  Bruno Haible  <bruno@clisp.org>
48437         freopen tests: EBADF tests.
48438         * tests/test-freopen.c: Include errno.h, unistd.h.
48439         (main): Add tests for EBADF, commented out for the moment.
48441         fclose tests: EBADF tests.
48442         * tests/test-fclose.c (main): Add tests for EBADF.
48444         fflush tests: EBADF tests.
48445         * tests/test-fflush.c: Include errno.h, macros.h.
48446         (main): Add tests for EBADF.
48448         ftello tests: EBADF tests.
48449         * tests/test-ftello4.sh: New file.
48450         * tests/test-ftello4.c: New file.
48451         * modules/ftello-tests (Files): Add them.
48452         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48454         fseeko tests: EBADF tests.
48455         * tests/test-fseeko4.sh: New file.
48456         * tests/test-fseeko4.c: New file.
48457         * modules/fseeko-tests (Files): Add them.
48458         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48460         Tests for function fputc().
48461         * modules/fputc-tests: New file.
48462         * tests/test-fputc.c: New file.
48463         * modules/stdio-tests (Depends-on): Add fputc-tests.
48465         Tests for function fgetc().
48466         * modules/fgetc-tests: New file.
48467         * tests/test-fgetc.c: New file.
48468         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48470         Tests for function fdopen().
48471         * modules/fdopen-tests: New file.
48472         * tests/test-fdopen.c: New file.
48473         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48475         Tests for module 'vdprintf'.
48476         * modules/vdprintf-tests: New file.
48477         * tests/test-vdprintf.c: New file.
48479         Tests for module 'dprintf'.
48480         * modules/dprintf-tests: New file.
48481         * tests/test-dprintf.c: New file.
48483 2011-09-20  Bruno Haible  <bruno@clisp.org>
48485         Tests for module 'ioctl'.
48486         * modules/ioctl-tests: New file.
48487         * tests/test-ioctl.c: New file.
48489 2011-09-20  Bruno Haible  <bruno@clisp.org>
48491         fcntl tests: EBADF tests.
48492         * tests/test-fcntl.c (main): Add more tests for EBADF.
48494 2011-09-20  Bruno Haible  <bruno@clisp.org>
48496         utimensat tests: EBADF tests.
48497         * tests/test-utimensat.c (main): Add tests for EBADF.
48499         renameat tests: EBADF tests.
48500         * tests/test-renameat.c (main): Add tests for EBADF.
48502         mkfifoat tests: EBADF tests.
48503         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48505         readlinkat tests: EBADF tests.
48506         * tests/test-readlinkat.c (main): Add tests for EBADF.
48508         symlinkat tests: EBADF tests.
48509         * tests/test-symlinkat.c (main): Add tests for EBADF.
48511         linkat tests: EBADF tests.
48512         * tests/test-linkat.c (main): Add tests for EBADF.
48514         Tests for module 'faccessat'.
48515         * modules/faccessat-tests: New file.
48516         * tests/test-faccessat.c: New file.
48518         fdopendir tests: EBADF tests.
48519         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48521         openat tests: EBADF tests.
48522         * tests/test-fchownat.c (main): Add tests for EBADF.
48523         * tests/test-fstatat.c (main): Likewise.
48524         * tests/test-mkdirat.c (main): Likewise.
48525         * tests/test-openat.c (main): Likewise.
48526         * tests/test-unlinkat.c (main): Likewise.
48527         * tests/test-fchmodat.c: New file.
48528         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48529         (Makefile.am): Also run 'test-fchmodat'.
48531 2011-09-20  Bruno Haible  <bruno@clisp.org>
48533         utimens, futimens, fdutimensat tests: EBADF tests.
48534         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48536         Tests for function fstat().
48537         * modules/fstat-tests: New file.
48538         * tests/test-fstat.c: New file.
48539         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48541 2011-09-20  Bruno Haible  <bruno@clisp.org>
48543         test-ttyname_r tests: EBADF tests.
48544         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48546         Tests for module 'isatty'.
48547         * modules/isatty-tests: New file.
48548         * tests/test-isatty.c: New file.
48550         Tests for module 'write'.
48551         * modules/write-tests: New file.
48552         * tests/test-write.c: New file.
48554         Tests for module 'read'.
48555         * modules/read-tests: New file.
48556         * tests/test-read.c: New file.
48558         pwrite tests: EBADF tests.
48559         * tests/test-pwrite.c (main): Add tests for EBADF.
48561         pread tests: EBADF tests.
48562         * tests/test-pread.c (main): Add tests for EBADF.
48564         lseek tests: EBADF tests.
48565         * tests/test-lseek.c (main): Add more tests for EBADF.
48567         Tests for module 'ftruncate'.
48568         * modules/ftruncate-tests: New file.
48569         * tests/test-ftruncate.sh: New file.
48570         * tests/test-ftruncate.c: New file.
48572         fsync tests: EBADF tests.
48573         * tests/test-fsync.c (main): Add more tests for EBADF.
48575         fdatasync tests: EBADF tests.
48576         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48578         Tests for module 'fchown'.
48579         * modules/fchown-tests: New file.
48580         * tests/test-fchown.c: New file.
48582         Tests for module 'fchmod'.
48583         * modules/fchmod-tests: New file.
48584         * tests/test-fchmod.c: New file.
48586         fchdir tests: EBADF tests.
48587         * tests/test-fchdir.c (main): Add more tests for EBADF.
48589         dup2 tests: EBADF tests.
48590         * tests/test-dup2.c (main): Add more tests for EBADF.
48592         Tests for module 'dup'.
48593         * modules/dup-tests: New file.
48594         * tests/test-dup.c: New file.
48596         Tests for module 'close'.
48597         * modules/close-tests: New file.
48598         * tests/test-close.c: New file.
48600 2011-09-20  Bruno Haible  <bruno@clisp.org>
48602         Tests for module 'shutdown'.
48603         * modules/shutdown-tests: New file.
48604         * tests/test-shutdown.c: New file.
48606         Tests for module 'setsockopt'.
48607         * modules/setsockopt-tests: New file.
48608         * tests/test-setsockopt.c: New file.
48610         Tests for module 'sendto'.
48611         * modules/sendto-tests: New file.
48612         * tests/test-sendto.c: New file.
48614         Tests for module 'send'.
48615         * modules/send-tests: New file.
48616         * tests/test-send.c: New file.
48618         Tests for module 'recvfrom'.
48619         * modules/recvfrom-tests: New file.
48620         * tests/test-recvfrom.c: New file.
48622         Tests for module 'recv'.
48623         * modules/recv-tests: New file.
48624         * tests/test-recv.c: New file.
48626         Tests for module 'listen'.
48627         * modules/listen-tests: New file.
48628         * tests/test-listen.c: New file.
48630         Tests for module 'getsockopt'.
48631         * modules/getsockopt-tests: New file.
48632         * tests/test-getsockopt.c: New file.
48634         Tests for module 'getsockname'.
48635         * modules/getsockname-tests: New file.
48636         * tests/test-getsockname.c: New file.
48638         Tests for module 'getpeername'.
48639         * modules/getpeername-tests: New file.
48640         * tests/test-getpeername.c: New file.
48642         Tests for module 'connect'.
48643         * modules/connect-tests: New file.
48644         * tests/test-connect.c: New file.
48646         Tests for module 'bind'.
48647         * modules/bind-tests: New file.
48648         * tests/test-bind.c: New file.
48650         accept4 tests: Fix for native Windows.
48651         * tests/test-accept4.c: Include sockets.h.
48652         (main): Invoke gl_sockets_startup.
48653         * modules/accept4-tests (Depends-on): Add sockets.
48655         accept tests: Fix for native Windows.
48656         * tests/test-accept.c: Include sockets.h.
48657         (main): Invoke gl_sockets_startup.
48658         * modules/accept-tests (Depends-on): Add sockets.
48660 2011-09-19  Bruno Haible  <bruno@clisp.org>
48662         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48663         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48664         do...while(0).
48665         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48666         Suggested by Paul Eggert.
48668 2011-09-19  Bruno Haible  <bruno@clisp.org>
48670         sched: Ensure pid_t is defined.
48671         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48672         not define pid_t.
48673         * lib/sched.in.h: Include <sys/types.h>.
48674         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48677 2011-09-19  Bruno Haible  <bruno@clisp.org>
48679         msvc-inval: Ensure the entire expansion is a single statement.
48680         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48681         of braces.
48683 2011-09-19  Jim Meyering  <meyering@redhat.com>
48685         tests: use printf, not echo in init.sh's warn_ function
48686         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48687         misbehave when given strings containing a backslash or starting
48688         with e.g., -n.  James Youngman suggested setting IFS.
48690 2011-09-19  Eric Blake  <eblake@redhat.com>
48692         futimens: enhance test
48693         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48694         closed non-negative fd.
48696         date: accept 'hence' as opposite of 'ago'
48697         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48698         * tests/test-parse-datetime.c (main): Enhance test.
48699         Suggested by Jesse Wilson.
48701 2011-09-19  Jim Meyering  <meyering@redhat.com>
48703         getcwd: don't fail in a deep directory on a system without openat
48704         Before this change, getcwd would fail when called from a directory
48705         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48706         the non-openat implementation used "..", "../..", "../../..", etc.
48707         to access ancestor directories.  With too many, that string would
48708         be longer than PATH_MAX.
48709         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48710         using gnulib's openat replacement.
48711         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48712         we're using the replacement function.
48714 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48716         maint.mk: avoid warnings from perl about missing files
48717         * top/maint.mk (def_sym_regex): Ignore files listed in
48718         $(gl_other_headers_) that do not exist, say because a project
48719         does not use a corresponding module.
48721 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48723         stat: use pathmax.h only if needed
48724         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48725         This is better for Emacs, which does not have a mingw port and
48726         therefore can avoid the pathmax module.
48728         utimens: remove dependency on dup2
48729         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48730         to work around the Linux kernel bug.
48731         * modules/utimens (Depends-on): Remove dup2.
48733 2011-09-18  Bruno Haible  <bruno@clisp.org>
48735         inet_ntop, inet_pton: Look for it also in libresolv.
48736         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48737         libnsl, search for it in libresolv.
48738         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48739         Needed on Solaris 7.
48741 2011-09-18  Bruno Haible  <bruno@clisp.org>
48743         accept, accept4 tests: Avoid link error on Solaris.
48744         * modules/accept-tests (Makefile.am): Link test-accept against
48745         $(LIBSOCKET).
48746         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48747         $(LIBSOCKET).
48749         accept4: Avoid link error on Solaris.
48750         * modules/accept4 (Link): New section.
48752         socket functions: Avoid link errors on Solaris.
48753         * modules/accept (Depends-on): Add socketlib.
48754         (Link): New section.
48755         * modules/bind (Depends-on): Add socketlib.
48756         (Link): New section.
48757         * modules/connect (Depends-on): Add socketlib.
48758         (Link): New section.
48759         * modules/getpeername (Depends-on): Add socketlib.
48760         (Link): New section.
48761         * modules/getsockname (Depends-on): Add socketlib.
48762         (Link): New section.
48763         * modules/getsockopt (Depends-on): Add socketlib.
48764         (Link): New section.
48765         * modules/listen (Depends-on): Add socketlib.
48766         (Link): New section.
48767         * modules/recv (Depends-on): Add socketlib.
48768         (Link): New section.
48769         * modules/recvfrom (Depends-on): Add socketlib.
48770         (Link): New section.
48771         * modules/send (Depends-on): Add socketlib.
48772         (Link): New section.
48773         * modules/sendto (Depends-on): Add socketlib.
48774         (Link): New section.
48775         * modules/setsockopt (Depends-on): Add socketlib.
48776         (Link): New section.
48777         * modules/shutdown (Depends-on): Add socketlib.
48778         (Link): New section.
48779         * modules/socket (Depends-on): Add socketlib.
48780         (Link): New section.
48782 2011-09-18  Bruno Haible  <bruno@clisp.org>
48784         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48785         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48786         than 5 seconds.
48787         * modules/ptsname-tests (configure.ac): Test for alarm.
48789 2011-09-18  Bruno Haible  <bruno@clisp.org>
48791         posix_spawn_file_actions_add*: Fix module dependencies.
48792         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48793         posix_spawn_file_actions_init.
48794         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48795         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48797 2011-09-18  Bruno Haible  <bruno@clisp.org>
48799         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48800         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48801         * tests/test-renameat.c (main): Likewise.
48803 2011-09-18  Bruno Haible  <bruno@clisp.org>
48805         Tests for module 'accept4'.
48806         * modules/accept4-tests: New file.
48807         * tests/test-accept4.c: New file.
48809 2011-09-18  Bruno Haible  <bruno@clisp.org>
48811         Tests for module 'accept'.
48812         * modules/accept-tests: New file.
48813         * tests/test-accept.c: New file.
48815 2011-09-18  Bruno Haible  <bruno@clisp.org>
48817         dup2: Support for MSVC.
48818         * lib/dup2.c: Include msvc-inval.h.
48819         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48820         _get_osfhandle calls.
48821         * modules/dup2 (Depends-on): Add msvc-inval.
48822         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48824         New module 'msvc-inval'.
48825         * lib/msvc-inval.h: New file.
48826         * lib/msvc-inval.c: New file.
48827         * m4/msvc-inval.m4: New file.
48828         * modules/msvc-inval: New file.
48830 2011-09-17  Bruno Haible  <bruno@clisp.org>
48832         Tests for module 'pclose'.
48833         * modules/pclose-tests: New file.
48835         New module 'pclose'.
48836         * lib/stdio.in.h (pclose): New declaration.
48837         * lib/pclose.c: New file.
48838         * m4/pclose.m4: New file.
48839         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48840         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48841         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48842         * modules/pclose: New file.
48843         * modules/popen-tests (Depends-on): Add pclose.
48844         * modules/popen-safer-tests (Depends-on): Likewise.
48845         * doc/posix-functions/pclose.texi: Mention the new module.
48847 2011-09-17  Bruno Haible  <bruno@clisp.org>
48849         popen: Support for MSVC.
48850         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48851         * lib/popen.c (popen): Provide alternate definition for native Windows.
48852         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48854         * modules/popen (Depends-on, configure.ac): Update condition.
48855         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48856         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48857         fixed.
48859 2011-09-17  Bruno Haible  <bruno@clisp.org>
48861         isnanl, isnand, isnanf: Work around MSVC bug.
48862         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48864 2011-09-17  Bruno Haible  <bruno@clisp.org>
48866         sys_socket tests: Fix recent mistake.
48867         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48869 2011-09-17  Bruno Haible  <bruno@clisp.org>
48871         putenv: Support for MSVC.
48872         * modules/putenv (Depends-on): Add environ.
48873         * lib/putenv.c (environ): Disable declaration.
48874         * lib/unistd.in.h: Update comment.
48876 2011-09-17  Bruno Haible  <bruno@clisp.org>
48878         math: Avoid macro redefinition warnings on MSVC.
48879         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48880         Undefine before redefining.
48882 2011-09-17  Bruno Haible  <bruno@clisp.org>
48884         doc: Mention functions which are declared as macros.
48885         * doc/posix-functions/*[fl].texi: Mention that some functions are
48886         defined as macros with arguments only.
48888 2011-09-17  Bruno Haible  <bruno@clisp.org>
48890         Add dependencies to new dirent related modules.
48891         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48892         * modules/fts (Depends-on): Likewise.
48893         * modules/glob (Depends-on): Likewise.
48894         * modules/savedir (Depends-on): Likewise.
48895         * modules/scandir (Depends-on): Likewise.
48896         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48897         * modules/fdopendir (Depends-on): Add opendir.
48899 2011-09-17  Bruno Haible  <bruno@clisp.org>
48901         inet_pton: Support for MSVC on Windows Vista or newer.
48902         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48903         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48904         HAVE_DECL_INET_PTON is defined.
48905         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48906         On platforms with <winsock2.h>, test whether inet_pton is declared in
48907         <ws2tcpip.h>. If so, arrange to replace it.
48908         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48909         REPLACE_INET_PTON.
48910         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48911         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48912         (Depends-on, configure.ac): Update condition.
48913         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48915 2011-09-17  Bruno Haible  <bruno@clisp.org>
48917         inet_ntop: Support for MSVC on Windows Vista or newer.
48918         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48919         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48920         HAVE_DECL_INET_NTOP is defined.
48921         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48922         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48923         <ws2tcpip.h>. If so, arrange to replace it.
48924         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48925         REPLACE_INET_NTOP.
48926         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48927         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48928         (Depends-on, configure.ac): Update condition.
48929         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48931 2011-09-16  Eric Blake  <eblake@redhat.com>
48933         test-fsync: yet another enhancement
48934         * tests/test-fsync.c (main): Also test behavior on read-only text
48935         file.
48937 2011-09-16  Bruno Haible  <bruno@clisp.org>
48939         Enhance fsync, fdatasync tests.
48940         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48941         * tests/test-fdatasync.c (main): Likewise.
48943 2011-09-16  Bruno Haible  <bruno@clisp.org>
48945         Support for MSVC compiler: Ensure mode_t gets defined.
48946         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48947         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48949         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48950         * tests/test-fcntl-h.c: Check that mode_t is defined.
48951         * tests/test-sys_stat.c: Likewise.
48952         * tests/test-sys_types.c: Likewise.
48953         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48954         * doc/posix-headers/sys_stat.texi: Likewise.
48955         * doc/posix-headers/sys_types.texi: Likewise.
48957 2011-09-16  Bruno Haible  <bruno@clisp.org>
48959         sys_stat: Support for MSVC.
48960         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48961         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48962         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48963         MSVC.
48965 2011-09-16  Bruno Haible  <bruno@clisp.org>
48967         Support for MSVC compiler: Ensure off_t gets defined.
48968         * lib/unistd.in.h: Include <sys/types.h>.
48969         * tests/test-fcntl-h.c: Check that off_t is defined.
48970         * tests/test-sys_stat.c: Likewise.
48971         * tests/test-sys_types.c: Likewise.
48973 2011-09-16  Eric Blake  <eblake@redhat.com>
48975         fdatasync: port to Solaris
48976         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48977         * modules/fdatasync (Link): Document it.
48978         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48980         fdatasync: port to MacOS X 10.7
48981         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48982         declared.
48983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48984         * modules/unistd (Makefile.am): Substitute it.
48985         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48986         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48988         fdatasync: minor improvements
48989         * modules/fdatasync (Depends-on): Add condition for fsync.
48990         * lib/fdatasync.c (fdatasync): Add comment.
48991         * tests/test-unistd-c++.cc: Test fdatasync.
48993         unistd: update refs to newer POSIX
48994         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48995         Suggested by Bruno Haible.
48997         fdatasync: new module
48998         * modules/fsync (Description): Document difference to fdatasync.
48999         * modules/fdatasync: New module.
49000         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49001         * lib/fdatasync.c (fdatasync): Likewise.
49002         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49003         defaults.
49004         * modules/unistd (Makefile.am): Set witnesses.
49005         * lib/unistd.in.h (fdatasync): Declare.
49006         * MODULES.html.sh: Document it.
49007         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49008         * modules/fdatasync-tests: New test.
49009         * tests/test-fdatasync.c: Likewise.
49011 2011-09-16  Eric Blake  <eblake@redhat.com>
49013         test-fsync: enhance tests
49014         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49015         * tests/test-fsync.c (main): Enhance test.
49017 2011-09-15  Bruno Haible  <bruno@clisp.org>
49019         Support for MSVC compiler: Ensure ssize_t gets defined.
49020         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49021         * doc/posix-headers/stdio.texi: Likewise.
49022         * modules/stdio (Depends-on): Add ssize_t.
49023         * modules/sys_socket (Depends-on): Likewise.
49024         * modules/sys_types (Depends-on): Likewise.
49025         * modules/sys_uio (Depends-on): Likewise.
49026         * modules/unistd (Depends-on): Likewise.
49027         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49028         * tests/test-sys_types.c: Check that ssize_t is defined.
49030 2011-09-14  Bruno Haible  <bruno@clisp.org>
49032         Avoid using #, the m4 comment starter character, near brackets.
49033         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49034         delimiter character in sed expressions.
49035         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49036         Suggested by Eric Blake.
49038         Properly quote AC_CHECK_DECLS' 4th argument.
49039         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49040         argument.
49041         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49042         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49043         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49044         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49045         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49046         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49048         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49049         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49050         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49051         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49052         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49053         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49054         * m4/isinf.m4 (gl_ISINF): Likewise.
49055         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49056         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49057         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49058         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49061         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49062         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49063         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49064         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49065         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49068         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49070         Reported by Eric Blake.
49072         Properly quote AC_CHECK_DECL's 4th argument.
49073         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49074         argument.
49075         * m4/argp.m4 (gl_ARGP): Likewise.
49076         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49077         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49078         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49079         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49080         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49081         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49082         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49083         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49084         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49085         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49086         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49087         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49088         Reported by Eric Blake.
49090 2011-09-14  Eric Blake  <eblake@redhat.com>
49092         opendir: avoid compile warning
49093         * lib/opendir.c (includes): Always include errno.h.
49094         Reported by Tatsuro MATSUOKA.
49096 2011-09-14  Jim Meyering  <meyering@redhat.com>
49098         maint.mk: sc_tight_scope: propagate failure from sub-make
49099         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49100         Reported by Martin von Gagern.
49102 2011-09-13  Bruno Haible  <bruno@clisp.org>
49104         tempname: Support for MSVC.
49105         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49106         MSVC.
49107         * modules/tempname (Depends-on): Add fcntl-h.
49109 2011-09-13  Bruno Haible  <bruno@clisp.org>
49111         sys_time: Support for MSVC.
49112         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49113         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49114         include <winsock2.h>.
49115         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49116         function declarations that collide with POSIX.
49117         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49118         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49120 2011-09-13  Bruno Haible  <bruno@clisp.org>
49122         stat: Support for MSVC.
49123         * lib/stat.c: Include pathmax.h.
49124         * modules/stat (Depends-on): Add pathmax.
49126         pathmax: Support for native Windows.
49127         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49129 2011-09-12  Bruno Haible  <bruno@clisp.org>
49131         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49132         * lib/dirent.in.h (struct dirent): New type.
49133         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49134         DT_WHT): New macros.
49135         (DIR): New type.
49136         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49137         (readdir, rewinddir): New declarations.
49138         * lib/dirent-private.h: New file.
49139         * lib/opendir.c: New file.
49140         * lib/readdir.c: New file.
49141         * lib/rewinddir.c: New file.
49142         * lib/closedir.c: New file.
49143         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49144         * m4/opendir.m4: New file.
49145         * m4/readdir.m4: New file.
49146         * m4/rewinddir.m4: New file.
49147         * m4/closedir.m4: New file.
49148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49149         REPLACE_CLOSEDIR here.
49150         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49151         readdir, rewinddir are declared.
49152         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49153         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49154         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49155         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49156         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49157         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49158         * modules/opendir: New file.
49159         * modules/readdir: New file.
49160         * modules/rewinddir: New file.
49161         * modules/closedir: New file.
49162         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49163         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49164         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49165         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49166         * NEWS: Mention the 'fchdir' change.
49168 2011-09-11  Bruno Haible  <bruno@clisp.org>
49170         asm-underscore.m4: Support for MSVC.
49171         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49172         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49174 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49176         Doc about crypt functions.
49177         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49178         needing for _GNU_SOURCE to get crypt.
49179         * doc/posix-functions/encrypt.texi: Likewise.
49180         * doc/posix-functions/setkey.texi: Likewise.
49182 2011-09-11  Bruno Haible  <bruno@clisp.org>
49184         doc: Update regarding MSVC 9.
49185         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49186         tested".
49187         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49188         * doc/posix-headers/*.texi: Likewise.
49189         * doc/pastposix-functions/*.texi: Likewise.
49190         * doc/glibc-functions/*.texi: Likewise.
49191         * doc/glibc-headers/*.texi: Likewise.
49193 2011-09-11  Bruno Haible  <bruno@clisp.org>
49195         unistd et al.: Don't assume <unistd.h> exists.
49196         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49197         does not exist.
49198         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49199         exist. But include <stdlib.h>.
49200         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49201         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49202         symlink() does not exist.
49203         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49204         include <io.h> instead.
49205         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49206         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49207         include <direct.h> instead.
49208         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49209         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49210         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49211         <io.h> instead.
49212         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49213         correctly if the system does not have hard links.
49214         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49215         <direct.h> instead.
49216         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49217         it when looking for function declarations.
49218         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49219         <direct.h> and <io.h> instead.
49220         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49222 2011-09-11  Bruno Haible  <bruno@clisp.org>
49224         strcase: Support for MSVC.
49225         * modules/strcase (Status, Notice): Remove obsoletion mark.
49226         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49227         * doc/posix-functions/strncasecmp.texi: Likewise.
49229         strings: Don't assume <strings.h> exists.
49230         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49231         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49232         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49233         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49235 2011-09-11  Bruno Haible  <bruno@clisp.org>
49237         dirent: Don't assume <dirent.h> exists.
49238         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49239         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49240         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49241         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49243 2011-09-11  Bruno Haible  <bruno@clisp.org>
49245         Fix wint_t on MSVC.
49246         * lib/wchar.in.h (wint_t): On MSVC, override it.
49247         * lib/wctype.in.h (wint_t): Likewise.
49248         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49249         MSVC.
49250         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49251         * doc/posix-headers/wctype.texi: Likewise.
49253 2011-09-11  Bruno Haible  <bruno@clisp.org>
49255         sys_types: Fix typo.
49256         * lib/sys_types.in.h: Fix typo in comment.
49257         Reported by Paul Eggert.
49259         Support for MSVC compiler: Ensure size_t gets defined.
49260         * modules/strings (Depends-on): Add 'sys_types'.
49261         * modules/sys_uio (Depends-on): Likewise.
49262         * lib/sys_uio.in.h: Update comment.
49264         C++ tests for module 'sys_types'.
49265         * modules/sys_types-c++-tests: New file.
49266         * tests/test-sys_types-c++.cc: New file.
49268         Tests for module 'sys_types'.
49269         * modules/sys_types-tests: New file.
49270         * tests/test-sys_types.c: New file.
49272         New module 'sys_types'.
49273         * lib/sys_types.in.h: New file.
49274         * m4/sys_types_h.m4: New file.
49275         * modules/sys_types: New file.
49276         * doc/posix-headers/sys_types.texi: Mention the new module and the
49277         size_t problem on MSVC 9.
49279 2011-09-11  Bruno Haible  <bruno@clisp.org>
49281         Support for MSVC compiler: Avoid division by a literal 0.
49282         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49284         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49285         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49286         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49287         * tests/infinity.h: New file.
49288         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49289         on MSVC.
49290         * tests/test-ceilf1.c: Include infinity.h.
49291         (main): Use Infinityf.
49292         * tests/test-ceil1.c: Include infinity.h.
49293         (main): Use Infinityd.
49294         * tests/test-ceill.c: Include infinity.h.
49295         (main): Use Infinityl.
49296         * tests/test-dprintf-posix.c: Include infinity.h.
49297         (test_function): Use Infinityd.
49298         * tests/test-floorf1.c: Include infinity.h.
49299         (main): Use Infinityf.
49300         * tests/test-floor1.c: Include infinity.h.
49301         (main): Use Infinityd.
49302         * tests/test-floorl.c: Include infinity.h.
49303         (main): Use Infinityl.
49304         * tests/test-fprintf-posix.c: Include infinity.h.
49305         (test_function): Use Infinityd.
49306         * tests/test-frexp.c: Include infinity.h.
49307         (main): Use Infinityd.
49308         * tests/test-frexpl.c: Include infinity.h.
49309         (main): Use Infinityl.
49310         * tests/test-isfinite.c: Include infinity.h.
49311         (test_isfinitef): Use Infinityf.
49312         (test_isfinited): Use Infinityd.
49313         (test_isfinitel): Use Infinityl.
49314         * tests/test-isinf.c: Include infinity.h.
49315         (test_isinff): Use Infinityf.
49316         (test_isinfd): Use Infinityd.
49317         (test_isinfl): Use Infinityl.
49318         * tests/test-isnan.c: Include infinity.h.
49319         (test_float): Use Infinityf.
49320         (test_double): Use Infinityd.
49321         (test_long_double): Use Infinityl.
49322         * tests/test-isnanf.h: Include infinity.h.
49323         (main): Use Infinityf.
49324         * tests/test-isnand.h: Include infinity.h.
49325         (main): Use Infinityd.
49326         * tests/test-isnanl.h: Include infinity.h.
49327         (main): Use Infinityl.
49328         * tests/test-ldexpl.c: Include infinity.h.
49329         (main): Use Infinityl.
49330         * tests/test-printf-posix.h: Include infinity.h.
49331         (test_function): Use Infinityd.
49332         * tests/test-roundf1.c: Include infinity.h.
49333         (main): Use Infinityf.
49334         * tests/test-round1.c: Include infinity.h.
49335         (main): Use Infinityd.
49336         * tests/test-roundl.c: Include infinity.h.
49337         (main): Use Infinityl.
49338         * tests/test-signbit.c: Include infinity.h.
49339         (test_signbitf): Use Infinityf.
49340         (test_signbitd): Use Infinityd.
49341         (test_signbitl): Use Infinityl.
49342         * tests/test-snprintf-posix.h: Include infinity.h.
49343         (test_function): Use Infinityd, Infinityl.
49344         * tests/test-sprintf-posix.h: Include infinity.h.
49345         (test_function): Use Infinityd, Infinityl.
49346         * tests/test-truncf1.c: Include infinity.h.
49347         (main): Use Infinityf.
49348         * tests/test-trunc1.c: Include infinity.h.
49349         (main): Use Infinityd.
49350         * tests/test-truncl.c: Include infinity.h.
49351         (main): Use Infinityl.
49352         * tests/test-vasnprintf-posix.c: Include infinity.h.
49353         (test_function): Use Infinityd, Infinityl.
49354         * tests/test-vasprintf-posix.c: Include infinity.h.
49355         (test_function): Use Infinityd, Infinityl.
49356         * modules/ceilf-tests (Files): Add tests/infinity.h.
49357         * modules/ceil-tests (Files): Likewise.
49358         * modules/ceill-tests (Files): Likewise.
49359         * modules/dprintf-posix-tests (Files): Likewise.
49360         * modules/floorf-tests (Files): Likewise.
49361         * modules/floor-tests (Files): Likewise.
49362         * modules/floorl-tests (Files): Likewise.
49363         * modules/fprintf-posix-tests (Files): Likewise.
49364         * modules/frexp-tests (Files): Likewise.
49365         * modules/frexp-nolibm-tests (Files): Likewise.
49366         * modules/frexpl-tests (Files): Likewise.
49367         * modules/frexpl-nolibm-tests (Files): Likewise.
49368         * modules/isfinite-tests (Files): Likewise.
49369         * modules/isinf-tests (Files): Likewise.
49370         * modules/isnan-tests (Files): Likewise.
49371         * modules/isnanf-tests (Files): Likewise.
49372         * modules/isnanf-nolibm-tests (Files): Likewise.
49373         * modules/isnand-tests (Files): Likewise.
49374         * modules/isnand-nolibm-tests (Files): Likewise.
49375         * modules/isnanl-tests (Files): Likewise.
49376         * modules/isnanl-nolibm-tests (Files): Likewise.
49377         * modules/ldexpl-tests (Files): Likewise.
49378         * modules/printf-posix-tests (Files): Likewise.
49379         * modules/roundf-tests (Files): Likewise.
49380         * modules/round-tests (Files): Likewise.
49381         * modules/roundl-tests (Files): Likewise.
49382         * modules/signbit-tests (Files): Likewise.
49383         * modules/snprintf-posix-tests (Files): Likewise.
49384         * modules/sprintf-posix-tests (Files): Likewise.
49385         * modules/truncf-tests (Files): Likewise.
49386         * modules/trunc-tests (Files): Likewise.
49387         * modules/truncl-tests (Files): Likewise.
49388         * modules/vasnprintf-posix-tests (Files): Likewise.
49389         * modules/vasprintf-posix-tests (Files): Likewise.
49390         * modules/vdprintf-posix-tests (Files): Likewise.
49391         * modules/vfprintf-posix-tests (Files): Likewise.
49392         * modules/vprintf-posix-tests (Files): Likewise.
49393         * modules/vsnprintf-posix-tests (Files): Likewise.
49394         * modules/vsprintf-posix-tests (Files): Likewise.
49395         * modules/xprintf-posix-tests (Files): Likewise.
49397 2011-09-11  Bruno Haible  <bruno@clisp.org>
49399         Ensure pid_t gets defined.
49400         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49401         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49402         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49403         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49404         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49405         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49406         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49407         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49408         * tests/test-fcntl-h.c: Check that pid_t is defined.
49409         * tests/test-sched.c: Likewise.
49410         * tests/test-termios.c: Likewise.
49411         * tests/test-time.c: Likewise.
49412         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49413         * doc/posix-headers/signal.texi: Likewise.
49414         * doc/posix-headers/sys_types.texi: Likewise.
49415         * doc/posix-headers/time.texi: Likewise.
49417 2011-09-11  Bruno Haible  <bruno@clisp.org>
49419         acl: Fix compilation on Solaris 10 (older version).
49420         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49421         of ACE_EVERYONE.
49422         * lib/set-mode-acl.c (qset_acl): Likewise.
49423         Reported by Christian Jullien <eligis@orange.fr>.
49425 2011-09-10  Bruno Haible  <bruno@clisp.org>
49427         iconv, unsetenv: Add support for MSVC compiler.
49428         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49431 2011-09-10  Bruno Haible  <bruno@clisp.org>
49433         *printf: Add support for MSVC compiler.
49434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49435         handles the exception caused by the %n directive. When cross-compiling,
49436         guess no on native Windows.
49437         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49438         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49439         emulate it through vsnprintf.
49440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49441         * doc/posix-functions/dprintf.texi: Update documentation regarding
49442         MSVC 9.
49443         * doc/posix-functions/fprintf.texi: Likewise.
49444         * doc/posix-functions/printf.texi: Likewise.
49445         * doc/posix-functions/snprintf.texi: Likewise.
49446         * doc/posix-functions/sprintf.texi: Likewise.
49447         * doc/posix-functions/swprintf.texi: Likewise.
49448         * doc/posix-functions/vdprintf.texi: Likewise.
49449         * doc/posix-functions/vfprintf.texi: Likewise.
49450         * doc/posix-functions/vprintf.texi: Likewise.
49451         * doc/posix-functions/vsnprintf.texi: Likewise.
49452         * doc/posix-functions/vsprintf.texi: Likewise.
49453         * doc/glibc-functions/asprintf.texi: Likewise.
49454         * doc/glibc-functions/obstack_printf.texi: Likewise.
49455         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49456         * doc/glibc-functions/vasprintf.texi: Likewise.
49458 2011-09-10  Bruno Haible  <bruno@clisp.org>
49460         nocrash: Add support for native Windows.
49461         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49463 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49464             Bruno Haible  <bruno@clisp.org>
49466         absolute-header, include-next: Add support for MSVC compiler.
49467         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49468         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49469         directory separator in #line directives.
49470         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49471         recognize also backslash as directory separator in #line directives.
49473 2011-09-08  Jim Meyering  <meyering@redhat.com>
49475         maint.mk: mark the post-release commit log with "maint: " prefix
49476         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49477         one-line commit-log summary.
49479 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49480             Bruno Haible  <bruno@clisp.org>
49482         Doc about crypt functions.
49483         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49484         systems.
49485         * doc/posix-functions/encrypt.texi: Likewise.
49486         * doc/posix-functions/setkey.texi: Likewise.
49488 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49490         * lib/gc.h: Fix copyright header.
49492 2011-09-07  Bruno Haible  <bruno@clisp.org>
49494         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49495         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49496         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49498 2011-09-07  Bruno Haible  <bruno@clisp.org>
49500         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49501         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49502         * lib/freopen.c: Likewise.
49503         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49504         * lib/lstat.c: Likewise.
49505         * lib/stat.c: Likewise.
49506         * lib/open.c: Use different syntax for include of <fcntl.h>.
49507         * lib/openat.c: Include fcntl.h again, explicitly.
49509 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49511         parse-datetime: document the newly accepted format
49512         * doc/parse-datetime.texi (Combined date and time of day items):
49513         New section.
49515 2011-09-06  Bruno Haible  <bruno@clisp.org>
49517         acl: Fix a test failure on newer Solaris 10 with ZFS.
49518         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49519         ENOSYS as no ACL.
49520         Reported by Jim Meyering.
49522 2011-09-06  Bruno Haible  <bruno@clisp.org>
49524         acl: Update for AIX >= 5.3 with NFS.
49525         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49526         ENOSYS as no ACL.
49528         acl: Fix a test failure on AIX >= 5.3 with NFS.
49529         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49530         as no ACL.
49532 2011-09-06  Bruno Haible  <bruno@clisp.org>
49534         acl: Fix a test failure on IRIX 6.5 with NFS.
49535         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49536         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49537         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49538         * lib/copy-acl.c (qcopy_acl): Likewise.
49540 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49542         openat: port to AIX 7.1 with large files
49543         AIX 7.1 does a "#define openat open64at" if large files are in use,
49544         so we can't simply #undef openat.  Use the orig_openat trick (similar
49545         to orig_open in lib/open.c) to work around the problem.  Problem
49546         reported by Kevin Brott for GNU tar, in the thread containing
49547         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49548         * lib/openat.c (__need_system_fcntl_h): Define first.
49549         Include <fcntl.h> and <sys/types.h> before undefining.
49550         (orig_openat) [HAVE_OPENAT]: New inline function.
49551         (openat) [HAVE_OPENAT]: Do not undef.
49552         (rpl_openat): Use orig_openat, not openat.
49554 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49555             Bruno Haible  <bruno@clisp.org>
49557         acl: Avoid errors on NonStop Kernel.
49558         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49559         ENOTSUP errors.
49561 2011-09-05  Bruno Haible  <bruno@clisp.org>
49563         acl: Clean up Solaris code.
49564         * lib/acl-internal.h: Remove no-op #if.
49565         * lib/file-has-acl.c: Likewise.
49566         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49567         * lib/copy-acl.c (qcopy_acl): Likewise.
49569 2011-09-05  Bruno Haible  <bruno@clisp.org>
49571         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49572         binaries built on the original Solaris 10.
49573         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49574         trivial.
49576 2011-09-05  Bruno Haible  <bruno@clisp.org>
49578         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49579         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49580         10.
49581         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49582         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49583         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49584         instead of acl_get, facl_get, acl_set, facl_set.
49586 2011-09-05  Bruno Haible  <bruno@clisp.org>
49588         copy-file: Try unit tests on more file systems.
49589         * tests/test-copy-file-1.sh: New file.
49590         * tests/test-copy-file-2.sh: New file.
49591         * modules/copy-file-tests (Files): Add them.
49592         (Makefile.am): Add them to TESTS.
49594         acl: Try unit tests on more file systems.
49595         * tests/test-file-has-acl-1.sh: New file.
49596         * tests/test-file-has-acl-2.sh: New file.
49597         * tests/test-set-mode-acl-1.sh: New file.
49598         * tests/test-set-mode-acl-2.sh: New file.
49599         * tests/test-copy-acl-1.sh: New file.
49600         * tests/test-copy-acl-2.sh: New file.
49601         * modules/acl-tests (Files): Add them.
49602         (Makefile.am): Add them to TESTS.
49604 2011-09-04  Bruno Haible  <bruno@clisp.org>
49606         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49607         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49608         10.
49609         (OLD_ALLOW, OLD_DENY): New macros.
49610         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49611         ACE_ACCESS_ALLOWED_ACE_TYPE.
49612         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49613         ACE_ACCESS_DENIED_ACE_TYPE.
49614         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49615         (NEW_ACE_EXECUTE): Fix value.
49616         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49617         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49618         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49619         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49620         NEW_ACE_SYNCHRONIZE): New macros.
49621         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49622         instead of acl_fromtext, acl_set, facl_set.
49623         Fixes a coreutils/tests/cp/perm failure.
49625 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49627         openat: test for fstatat (..., 0) bug
49628         Further testing with tar suggests that fstatat (..., 0)
49629         does not work in general, on AIX 7.1; see
49630         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49631         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49632         replacement fstatat (which is what older AIX releases were using
49633         anyway).
49634         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49635         use is now changed to orig_fstatat.  This was probably the right
49636         thing to do anyway.
49637         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49638         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49639         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49640         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49641         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49642         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49643         if the bug is found.
49645         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49646         This tests for another fstatat bug on AIX 7.1:
49647         fstatat (AT_FDCWD, ..., 0) does not work.  See
49648         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49649         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49650         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49651         (rpl_fstatat): Adjust so that it works around either (or both)
49652         bugs if present.
49653         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49655 2011-09-03  Karl Berry  <karl@gnu.org>
49657         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49658         in index entries.
49660 2011-09-02  Bruno Haible  <bruno@clisp.org>
49662         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49663         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49664         values of AR, ARFLAGS, RANLIB.
49665         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49667 2011-09-02  Bruno Haible  <bruno@clisp.org>
49669         Find 'ar' program that fits with --host argument.
49670         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49672 2011-09-02  Bruno Haible  <bruno@clisp.org>
49674         tests: init.sh: Support any non-GNU diff.
49675         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49676         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49677         Solaris 8.
49679 2011-09-02  Bruno Haible  <bruno@clisp.org>
49681         tests: init.sh: work also with any non-GNU diff that supports -u
49682         * tests/init.sh: Relax check for diff -u support.
49683         Rather than checking for GNU diff via --version, simply check
49684         for support for -u itself.  Useful at least on OpenBSD 4.9,
49685         AIX 7.1, IRIX 6.5, and Solaris 10.
49687 2011-09-01  Bruno Haible  <bruno@clisp.org>
49689         strtoimax, strtoumax: Document problem on HP-UX 11.
49690         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49691         * doc/posix-functions/strtoumax.texi: Likewise.
49693 2011-09-01  Bruno Haible  <bruno@clisp.org>
49695         strtoumax: Avoid link error on OSF/1 with DTK cc.
49696         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49697         defined as a function.
49698         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49699         strtoumax is defined, not whether it is declared.
49701 2011-09-01  Bruno Haible  <bruno@clisp.org>
49703         strtoimax: Avoid link error on OSF/1 with DTK cc.
49704         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49705         defined as a function.
49706         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49707         strtoimax is defined, not whether it is declared.
49709 2011-09-01  Bruno Haible  <bruno@clisp.org>
49711         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49712         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49713         as a function.
49714         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49715         whether it is declared.
49717 2011-09-01  Bruno Haible  <bruno@clisp.org>
49719         imaxabs: Avoid link error on OSF/1 with DTK cc.
49720         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49721         as a function.
49722         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49723         whether it is declared.
49725 2011-09-01  Bruno Haible  <bruno@clisp.org>
49727         Tests for module 'strtoumax'.
49728         * modules/strtoumax-tests: New file.
49729         * tests/test-strtoumax.c: New file.
49731         Tests for module 'strtoimax'.
49732         * modules/strtoimax-tests: New file.
49733         * tests/test-strtoimax.c: New file.
49735         Tests for module 'imaxdiv'.
49736         * modules/imaxdiv-tests: New file.
49737         * tests/test-imaxdiv.c: New file.
49739         Tests for module 'imaxabs'.
49740         * modules/imaxabs-tests: New file.
49741         * tests/test-imaxabs.c: New file.
49743 2011-09-01  Bruno Haible  <bruno@clisp.org>
49745         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49746         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49747         pthread_create.
49749 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49751         openat: work around AIX 7.1 fstatat issue
49752         This should fix the problem that was not properly fixed
49753         in the previous change, dated 2011-08-30.
49754         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49755         __need_system_stat_h defined.
49756         (orig_fstatat) [HAVE_FSTATAT]: New function.
49757         (rpl_fstatat): Go back to the old way of doing things,
49758         except call orig_fstatat instead of fstatat.
49759         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49760         Remove unnecessary check whether fstatat fills in st_size etc.
49762 2011-09-01  Bruno Haible  <bruno@clisp.org>
49764         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49765         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49766         just include the system's header.
49768 2011-08-31  Jim Meyering  <meyering@redhat.com>
49770         tests: avoid spurious assertion failure in test-float.c on ppc64
49771         * tests/test-float.c (test_long_double): Comment out an assertion,
49772         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49773         with gcc-4.4.4.
49775         maint: indent with spaces, not TABs
49776         I need to get in the habit of running gnulib's "make check".
49777         Both of these would have been caught.
49778         * m4/largefile.m4: Indent with spaces, not TABs.
49779         * lib/parse-datetime.y (iso_8601_time): Likewise.
49780         Spotted by Pádraig Brady.
49782         test-parse-datetime.c: accommodate a relatively strict gcc warning
49783         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49784         to avoid a warning from gcc's -Werror=missing-declarations.
49785         Insert a few spaces-before-funcall-parenthesis.
49787 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49789         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49790         The parser now accepts ISO 8601 date-time strings with "T" as the
49791         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49792         with a space between the date and time strings.  Now it also parses
49793         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49794         variants like "2004-02-29T16:21:42.333-07:00"
49795         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49796         of day representation using the 'T' separator character.
49797         * doc/parse-datetime.texi (General date syntax): replace use of
49798         deprecated --iso-8601 option with --rfc-3339 in example of date
49799         command output formats that can be parsed.
49800         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49801         lib/parse-datetime.y.
49802         (gmt_offset): New function.
49803         (main): Add additional test cases to validate ISO8601 extended
49804         date and time of day parsing.
49806 2011-08-31  Bruno Haible  <bruno@clisp.org>
49808         freopen: Documentation.
49809         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49810         name.
49811         Reported by Claudio Bley <claudio.bley@gmail.com>.
49813 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49815         freopen: Don't crash if the filename argument is NULL.
49816         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49817         NULL.
49819 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49821         openat: work around AIX 7.1 fstatat bug
49822         Problem reported by Kevin Brott for GNU tar, in the thread containing
49823         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49824         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49825         FSTATAT_ST_SIZE_ETC_BROKEN.
49826         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49827         rpl_fstatat.
49828         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49829         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49830         AC_CHECK_FUNCS_ONCE for fstatat.
49831         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49832         fchmodat, mkdirat, openat and unlinkat.
49834 2011-08-30  Bruno Haible  <bruno@clisp.org>
49836         Avoid endless recursions if config.h includes some header files.
49837         * lib/fopen.c (__need_FILE): Define already before including config.h.
49838         * lib/freopen.c (__need_FILE): Likewise.
49839         * lib/open.c (__need_system_fcntl_h): Likewise.
49840         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49841         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49842         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49844 2011-08-25  Karl Berry  <karl@gnu.org>
49846         * config/srclist.txt (ylwrap): new try.
49847         * build-aux/ylwrap: new file.
49849 2011-08-23  Bruno Haible  <bruno@clisp.org>
49851         tmpdir: Use a good default directory on native Windows.
49852         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49853         (P_tmpdir): Default to _P_tmpdir on native Windows.
49854         (path_search): On native Windows, try the value returned by GetTempPath
49855         before trying P_tmpdir.
49856         * modules/tmpdir (Depends-on): Add pathmax.
49857         Suggested by John Darrington <john@darrington.wattle.id.au>.
49859 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49861         doc: fix typo in README-release
49862         * top/README-release: Capitalize first word of a sentence.
49864 2011-08-19  Jim Meyering  <meyering@redhat.com>
49866         fts: do not exhaust memory when processing million-entry directories
49867         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49868         directory would require about 256*N bytes of memory.  Thus, it was
49869         easy to construct a directory too large to be processed by any of
49870         those tools.  With this change, fts' maximum memory utilization is
49871         now limited to around 30MB.
49872         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49873         (fts_read): When we've processed the final entry (i.e., when
49874         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49875         using the parent entry to read any remaining entries.  Dispatch
49876         depending on what fts_build returns:
49877         - NULL+stop, aka failure: stop
49878         - NULL otherwise: move up in the dir hierarchy
49879         - non-NULL: handle this new entry
49880         (fts_build): Declare and use new local, continue_readdir.
49881         Prepare to be called from fts_read, when the entries
49882         from a partially-read directory have just been exhausted.
49883         In that case, we'll skip the opendir and instead use the parent's
49884         fts_dirp and derive dir_fd from that.
49885         Finally, in the readdir loop, if we read max_entries entries,
49886         exit the loop ensuring *not* to call closedir.  This is required
49887         so that fts_dirp can be reused on a subsequent call.
49888         Prompted by Ben England's report of memory exhaustion in find
49889         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49891         maint: fts: move decl of `dp' down into while loop; split a long line
49892         * lib/fts.c (fts_build): No semantic change.
49894         fts: add/use new struct member, fts_dirp
49895         We are about to use this to manage any directory with
49896         too many entries to read all of them into memory at once.
49897         To do that, we'll need to save the DIR* pointer in each
49898         affected FTSENT struct.
49899         * lib/fts_.h: Include <dirent.h>.
49900         (struct FTSENT) [fts_dirp]: New member.
49901         * lib/fts.c (closedir_and_clear): Define.
49902         Use it in place of closedir so that we are sure to
49903         clear the new fts_dirp member when done with it.
49904         (fts_alloc): Initialize the new member.
49905         (fts_lfree): Free, if needed.
49907         maint: fts: give __opendir2 a new parameter and rename
49908         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49909         than surreptitiously using sole caller's "dir_fd".
49910         (fts_opendir): Rename from __opendir2.
49912         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49913         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49915         maint: fts.c: correct off-by-one indentation
49916         * lib/fts.c (fts_build): Correct indentation, change style
49917         of a couple of block comments, and bracing style.
49919         maint: fts.c: move __opendir2 #define "up" out of function body
49920         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49922         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49923         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49924         out for a long time and besides was useful only on BSD systems.
49926 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49928         regex: port to Stratus OpenVOS
49929         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49930         define to empty, rather than attempting nonportable optimizations.
49931         Problem reported by Paul Green in:
49932         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49933         and fix suggested by Eric Blake in:
49934         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49936 2011-08-17  Eric Blake  <eblake@redhat.com>
49938         getcwd: fix test failures on mingw
49939         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49940         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49941         test if long directory cannot be created, and allow mingw errno.
49943         getcwd-lgpl: fix m4 to match relaxed test for BSD
49944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49945         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49946         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49947         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49948         signature problem.
49950         getcwd: fix compilation on mingw64
49951         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49952         getcwd.
49953         Reported by Marc-André Lureau.
49955         pipe2: silence compiler warning
49956         * lib/pipe2.c (pipe2): Hide label if it is not used.
49958 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49960         relocatable-prog: fix link error
49961         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49962         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49963         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49964         into modules/relocatable-lib without noticing that
49965         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49966         also needs to build relocatable.c.
49968 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49970         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49971         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49972         shell code: it contained a 'break' that was not in a loop.
49973         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49974         via a shell-language loop; this may have been true in old Autoconf
49975         versions, but it's not true in Autoconf 2.68.  I found this bug
49976         when testing coreutils git on Solaris 8, whose shell complains
49977         about the syntax error.
49979 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49981         * lib/base64.c: Fix comment to reference RFC 4648.
49982         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49983         <gvtulder@gmail.com>.
49985 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49987         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49989         po/Makefile.in.in: fix make -q problem
49990         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49991         rule, since there's no file named 'check-macro-version' and its
49992         use as a file breaks make -q.
49993         (all): Don't depend on check-macro-version.
49994         (CHECK_MACRO_VERSION): New macro.
49995         (stamp-po): Use it.
49997         configmake: fix make -q problem
49998         * modules/configmake (configmake.h): Update configmake.h's time stamp
49999         even if the file does not change.  Otherwise, 'make -q' fails.
50000         Problem reported by Simon Josefsson in
50001         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50003 2011-08-11  Jim Meyering  <meyering@redhat.com>
50005         git-version-gen: correct the advice in a comment
50006         * build-aux/git-version-gen: Correct comment.
50007         Don't recommend to list .tarball-version in .gitignore.
50009 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50011         base64: fix off-by-one buffer size bug
50012         Problem and (trivial) fix reported by Gijs van Tulder in
50013         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50014         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50015         * tests/test-base64.c (main): Catch the bug.
50017 2011-08-10  Eric Blake  <eblake@redhat.com>
50019         closein: correct comments
50020         * lib/closein.c (close_stdin): Improve comments.
50022 2011-08-09  Bruno Haible  <bruno@clisp.org>
50024         More tests for 'fseeko'.
50025         * tests/test-fseeko3.c: New file, from Eric Blake.
50026         * tests/test-fseeko3.sh: New file.
50027         * modules/fseeko-tests (Files): Add them.
50028         (TESTS): Add test-fseeko3.sh.
50029         (check_PROGRAMS): Add test-fseeko3.
50031 2011-08-09  Eric Blake  <eblake@redhat.com>
50033         fseeko: remove unneeded hack
50034         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50036         fseeko: fix bug on glibc
50037         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50038         Reported by John W. Eaton.
50040 2011-08-08  Bruno Haible  <bruno@clisp.org>
50042         unictype/base: Fix interoperability with preinstalled libunistring.
50043         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50044         Reported by Simon Josefsson.
50046 2011-08-08  Bruno Haible  <bruno@clisp.org>
50048         iswblank: Detect declaration correctly.
50049         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50050         AC_CHECK_DECLS invocation.
50052 2011-08-08  Bruno Haible  <bruno@clisp.org>
50054         tcgetsid: Detect declaration correctly.
50055         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50056         AC_CHECK_DECLS invocation.
50057         Reported by Simon Josefsson.
50059 2011-08-08  Eric Blake  <eblake@redhat.com>
50061         largefile: fix typo that regressed large file support
50062         * modules/largefile (configure.ac-early): Fix section name.
50064 2011-08-06  Karl Berry  <karl@gnu.org>
50066         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50067         a separate module.
50069 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50071         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50072         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50073         get prototype for free.
50075 2011-08-04  Bruno Haible  <bruno@clisp.org>
50077         Tests for module 'pathmax'.
50078         * modules/pathmax-tests: New file.
50079         * tests/test-pathmax.c: New file.
50081         canonicalize-lgpl: Support larger filenames on the Hurd.
50082         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50083         Reported by Paul Eggert.
50085         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50086         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50087         * lib/chdir-long.h: Include pathmax.h.
50088         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50089         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50090         (PATH_MAX): Remove code that is done by pathmax.h.
50091         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50092         * lib/tmpfile.c: Add a comment.
50093         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50094         * modules/chdir-long (Depends-on): Add pathmax.
50095         * modules/getcwd (Depends-on): Add pathmax.
50096         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50097         is not defined.
50098         * doc/posix-headers/limits.texi: Mention the pathmax module.
50099         * NEWS: Mention the change.
50101 2011-08-02  Bruno Haible  <bruno@clisp.org>
50103         pthread_sigmask: Actually use results of gl_THREADLIB.
50104         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50105         gl_THREADLIB, not gl_[]THREADLIB.
50106         Reported by Eric Blake.
50108 2011-08-02  Jim Meyering  <meyering@redhat.com>
50110         maint.mk: relax the default _gl_TS_function_match regexp
50111         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50112         space between function name and "(" in an "extern" declaration.
50113         That would fail to match a decl with no space there: extern void foo();
50115 2011-07-31  Iain Nicol  <iain@thenicols.net>
50117         git-version-gen: document that EXTRA_DIST must include .version
50118         * build-aux/git-version-gen: In the how-to-use comment, document
50119         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50120         will fail when run from an unpacked distribution tarball.
50122 2011-08-01  Bruno Haible  <bruno@clisp.org>
50124         wctype-h: Fix last change.
50125         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50126         REPLACE_TOWLOWER to 0.
50127         Reported by Sam Steingold <sds@gnu.org>.
50129 2011-07-31  Bruno Haible  <bruno@clisp.org>
50131         frexpl: Update autoconf test.
50132         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50133         according to changes of 2011-06-20.
50135 2011-07-31  Bruno Haible  <bruno@clisp.org>
50137         sys_utsname: Add support for Minix.
50138         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50139         <sys/utsname.h>.
50140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50141         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50143 2011-07-31  Bruno Haible  <bruno@clisp.org>
50145         strings: Add support for Minix.
50146         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50147         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50148         * doc/posix-headers/strings.texi: Document the Minix problem.
50150 2011-07-31  Bruno Haible  <bruno@clisp.org>
50152         wctype-h: Add support for Minix.
50153         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50154         REPLACE_TOWLOWER.
50155         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50156         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50157         REPLACE_ISWCNTRL.
50159 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50161         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50162         This is a performance improvement for 64-bit hosts: it causes the
50163         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50165 2011-07-31  Bruno Haible  <bruno@clisp.org>
50167         stdioext: Add support for Minix.
50168         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50169         * lib/fpurge.c (fpurge): Likewise.
50170         * lib/freadahead.c (freadahead): Likewise.
50171         * lib/freadable.c (freadable): Likewise.
50172         * lib/freading.c (freading): Likewise.
50173         * lib/freadptr.c (freadptr): Likewise.
50174         * lib/freadseek.c (freadptrinc): Likewise.
50175         * lib/fseeko.c (rpl_fseeko): Likewise.
50176         * lib/fseterr.c (fseterr): Likewise.
50177         * lib/fwritable.c (fwritable): Likewise.
50178         * lib/fwriting.c (fwriting): Likewise.
50179         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50180         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50182 2011-07-31  Bruno Haible  <bruno@clisp.org>
50184         errno: Port to Minix.
50185         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50186         ECONNABORTED are defined.
50187         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50188         GNULIB_defined_ECONNABORTED): New macros.
50189         * lib/strerror-override.h (strerror_override): Test also
50190         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50191         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50192         ECONNABORTED.
50193         * doc/posix-headers/errno.texi: Mention the Minix problem.
50195 2011-07-31  Bruno Haible  <bruno@clisp.org>
50197         Work around declaration collisions on Minix.
50198         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50199         defined, set REPLACE_MBSINIT.
50200         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50201         defined, set REPLACE_MBRTOWC.
50202         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50203         set REPLACE_MBRLEN.
50204         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50205         defined, set REPLACE_MBSRTOWCS.
50206         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50207         defined, set REPLACE_WCRTOMB.
50208         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50209         defined, set REPLACE_WCSRTOMBS.
50211 2011-07-31  Bruno Haible  <bruno@clisp.org>
50213         Add support for Minix with ACK compiler.
50214         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50215         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50216         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50218 2011-07-31  Bruno Haible  <bruno@clisp.org>
50220         Documentation about Minix.
50221         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50222         * doc/glibc-headers/*.texi: Likewise.
50223         * doc/posix-functions/*.texi: Likewise.
50224         * doc/glibc-functions/*.texi: Likewise.
50226 2011-07-31  Bruno Haible  <bruno@clisp.org>
50228         snippet/warn-on-use: Fix indentation.
50229         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50231 2011-07-25  Jim Meyering  <meyering@redhat.com>
50233         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50234         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50235         commands.
50237 2011-07-27  Jim Meyering  <meyering@redhat.com>
50239         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50240         * top/maint.mk (gl_extract_significant_defines_): Now that
50241         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50242         gnulib/lib/signal.in.h, and now that we recommend to
50243         define-if-undefined those two symbols in application code,
50244         we must filter them out of the "significant" list.
50245         This avoids a "make syntax-check" failure in coreutils.
50247 2011-07-26  Eric Blake  <eblake@redhat.com>
50249         warnings: add comments about previous patch
50250         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50251         * m4/include_next.m4: Likewise.
50252         * m4/warn-on-use.m4: Likewise.
50253         * m4/warnings.m4: Likewise, and simplify use.
50254         Suggested by Stefano Lattarini.
50256         include-next, warnings: support older autoconf
50257         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50258         AS_VAR_PUSHDEF in a way that works with older autoconf.
50259         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50260         Reported by Daniel P. Berrange.
50262 2011-07-25  Bruno Haible  <bruno@clisp.org>
50264         fseek, ftell: Fix doc.
50265         * doc/posix-functions/fseek.texi: Reword statement about
50266         AC_SYS_LARGEFILE.
50267         * doc/posix-functions/ftell.texi: Likewise.
50269 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50270             Bruno Haible  <bruno@clisp.org>
50272         Add dependencies to the 'largefile' module.
50273         * modules/fopen (Depends-on): Add 'largefile'.
50274         * modules/freopen (Depends-on): Likewise.
50275         * modules/fseeko (Depends-on): Likewise.
50276         * modules/ftello (Depends-on): Likewise.
50277         * modules/glob (Depends-on): Likewise.
50278         * modules/lseek (Depends-on): Likewise.
50279         * modules/lstat (Depends-on): Likewise.
50280         * modules/mkostemp (Depends-on): Likewise.
50281         * modules/mkostemps (Depends-on): Likewise.
50282         * modules/mkstemp (Depends-on): Likewise.
50283         * modules/mkstemps (Depends-on): Likewise.
50284         * modules/open (Depends-on): Likewise.
50285         * modules/openat (Depends-on): Likewise.
50286         * modules/pread (Depends-on): Likewise.
50287         * modules/pwrite (Depends-on): Likewise.
50288         * modules/scandir (Depends-on): Likewise.
50289         * modules/stat (Depends-on): Likewise.
50290         * modules/tmpfile (Depends-on): Likewise.
50291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50292         since the containing module now depends on the largefile module.
50293         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50294         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50295         off_t is fixed by gnulib.
50296         * doc/posix-functions/freopen.texi: Likewise.
50297         * doc/posix-functions/fseeko.texi: Likewise.
50298         * doc/posix-functions/fstatat.texi: Likewise.
50299         * doc/posix-functions/ftello.texi: Likewise.
50300         * doc/posix-functions/glob.texi: Likewise.
50301         * doc/posix-functions/lseek.texi: Likewise.
50302         * doc/posix-functions/lstat.texi: Likewise.
50303         * doc/posix-functions/mkstemp.texi: Likewise.
50304         * doc/posix-functions/open.texi: Likewise.
50305         * doc/posix-functions/openat.texi: Likewise.
50306         * doc/posix-functions/pread.texi: Likewise.
50307         * doc/posix-functions/pwrite.texi: Likewise.
50308         * doc/posix-functions/scandir.texi: Likewise.
50309         * doc/posix-functions/stat.texi: Likewise.
50310         * doc/posix-functions/tmpfile.texi: Likewise.
50311         * doc/glibc-functions/mkostemp.texi: Likewise.
50312         * doc/glibc-functions/mkostemps.texi: Likewise.
50313         * doc/glibc-functions/mkstemps.texi: Likewise.
50315 2011-07-25  Bruno Haible  <bruno@clisp.org>
50317         fcntl: Move AC_LIBOBJ invocation to module description.
50318         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50319         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50321         fcntl: Remove call-in from fchdir.m4.
50322         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50325         dup3: Remove potential call-in from fchdir.m4.
50326         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50329         dup2: Move AC_LIBOBJ invocation to module description.
50330         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50331         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50332         Don't invoke AC_LIBOBJ.
50333         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50335         dup2: Remove call-in from fchdir.m4.
50336         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50339         fclose: Move AC_LIBOBJ invocation to module description.
50340         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50341         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50342         to 1.
50343         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50345         fclose: Remove call-in from close.m4.
50346         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50347         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50349         close: Move AC_LIBOBJ invocation to module description.
50350         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50351         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50352         1.
50353         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50355         close: Remove call-in from fchdir.m4.
50356         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50359         open: Move AC_LIBOBJ invocation to module description.
50360         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50361         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50362         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50364         open: Remove call-in from fchdir.m4.
50365         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50368         fchdir: Start to remove gl_REPLACE_* idiom.
50369         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50370         (gl_FUNC_FCHDIR): Invoke it.
50372 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50374         * lib/ftell.c (ftell): Comment out cast.
50376         close: use gl_REPLACE_FCLOSE only if defined
50377         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50378         is defined.  The close module doesn't depend on the fclose module
50379         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50380         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50381         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50383 2011-07-24  Jim Meyering  <meyering@redhat.com>
50385         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50386         * tests/test-select.h (test_function): Declare as "static".
50388 2011-07-24  Bruno Haible  <bruno@clisp.org>
50390         doc: Mention the effects of AC_SYS_LARGEFILE.
50391         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50392         on this function.
50393         * doc/posix-functions/aio_error.texi: Likewise.
50394         * doc/posix-functions/aio_fsync.texi: Likewise.
50395         * doc/posix-functions/aio_read.texi: Likewise.
50396         * doc/posix-functions/aio_return.texi: Likewise.
50397         * doc/posix-functions/aio_suspend.texi: Likewise.
50398         * doc/posix-functions/aio_write.texi: Likewise.
50399         * doc/posix-functions/fgetpos.texi: Likewise.
50400         * doc/posix-functions/fopen.texi: Likewise.
50401         * doc/posix-functions/freopen.texi: Likewise.
50402         * doc/posix-functions/fsetpos.texi: Likewise.
50403         * doc/posix-functions/fstatvfs.texi: Likewise.
50404         * doc/posix-functions/ftruncate.texi: Likewise.
50405         * doc/posix-functions/ftw.texi: Likewise.
50406         * doc/posix-functions/getrlimit.texi: Likewise.
50407         * doc/posix-functions/glob.texi: Likewise.
50408         * doc/posix-functions/lio_listio.texi: Likewise.
50409         * doc/posix-functions/lockf.texi: Likewise.
50410         * doc/posix-functions/mkstemp.texi: Likewise.
50411         * doc/posix-functions/mmap.texi: Likewise.
50412         * doc/posix-functions/nftw.texi: Likewise.
50413         * doc/posix-functions/openat.texi: Likewise.
50414         * doc/posix-functions/opendir.texi: Likewise.
50415         * doc/posix-functions/posix_fadvise.texi: Likewise.
50416         * doc/posix-functions/posix_fallocate.texi: Likewise.
50417         * doc/posix-functions/pread.texi: Likewise.
50418         * doc/posix-functions/pwrite.texi: Likewise.
50419         * doc/posix-functions/readdir.texi: Likewise.
50420         * doc/posix-functions/readdir_r.texi: Likewise.
50421         * doc/posix-functions/rewinddir.texi: Likewise.
50422         * doc/posix-functions/scandir.texi: Likewise.
50423         * doc/posix-functions/seekdir.texi: Likewise.
50424         * doc/posix-functions/setrlimit.texi: Likewise.
50425         * doc/posix-functions/statvfs.texi: Likewise.
50426         * doc/posix-functions/telldir.texi: Likewise.
50427         * doc/posix-functions/tmpfile.texi: Likewise.
50428         * doc/posix-functions/truncate.texi: Likewise.
50429         * doc/glibc-functions/fallocate.texi: Likewise.
50430         * doc/glibc-functions/fstatfs.texi: Likewise.
50431         * doc/glibc-functions/fts_children.texi: Likewise.
50432         * doc/glibc-functions/fts_read.texi: Likewise.
50433         * doc/glibc-functions/getdirentries.texi: Likewise.
50434         * doc/glibc-functions/mkostemp.texi: Likewise.
50435         * doc/glibc-functions/mkostemps.texi: Likewise.
50436         * doc/glibc-functions/mkstemps.texi: Likewise.
50437         * doc/glibc-functions/preadv.texi: Likewise.
50438         * doc/glibc-functions/pwritev.texi: Likewise.
50439         * doc/glibc-functions/sendfile.texi: Likewise.
50440         * doc/glibc-functions/statfs.texi: Likewise.
50442 2011-07-24  Bruno Haible  <bruno@clisp.org>
50444         doc: Fix typo.
50445         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50447 2011-07-24  Bruno Haible  <bruno@clisp.org>
50449         doc: Mention fsusage.
50450         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50452 2011-07-24  Bruno Haible  <bruno@clisp.org>
50454         doc: Mention new glibc headers and functions.
50455         * doc/glibc-headers/gshadow.texi: New file.
50456         * doc/glibc-functions/endsgent.texi: New file.
50457         * doc/glibc-functions/fgetsgent.texi: New file.
50458         * doc/glibc-functions/fgetsgent_r.texi: New file.
50459         * doc/glibc-functions/getsgent.texi: New file.
50460         * doc/glibc-functions/getsgent_r.texi: New file.
50461         * doc/glibc-functions/getsgnam.texi: New file.
50462         * doc/glibc-functions/getsgnam_r.texi: New file.
50463         * doc/glibc-functions/putsgent.texi: New file.
50464         * doc/glibc-functions/setsgent.texi: New file.
50465         * doc/glibc-functions/sgetsgent.texi: New file.
50466         * doc/glibc-functions/sgetsgent_r.texi: New file.
50467         * doc/glibc-functions/malloc_info.texi: New file.
50468         * doc/glibc-functions/preadv.texi: New file.
50469         * doc/glibc-functions/pwritev.texi: New file.
50470         * doc/glibc-functions/register_printf_modifier.texi: New file.
50471         * doc/glibc-functions/register_printf_specifier.texi: New file.
50472         * doc/glibc-functions/register_printf_type.texi: New file.
50473         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50474         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50475         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50476         * doc/glibc-functions/pthread_getname_np.texi: New file.
50477         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50478         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50479         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50480         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50481         * doc/glibc-functions/pthread_setname_np.texi: New file.
50482         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50483         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50484         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50485         * doc/glibc-functions/qsort_r.texi: New file.
50486         * doc/glibc-functions/quick_exit.texi: New file.
50487         * doc/glibc-functions/syncfs.texi: New file.
50488         * doc/gnulib.texi: Include them.
50489         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50490         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50491         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50492         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50493         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50494         * doc/glibc-functions/execvpe.texi: Likewise.
50496 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50498         ftell: don't include <unistd.h>
50499         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50500         guaranteed to define off_t, and the ftell module depends on the
50501         stdio module.
50503         ftell: do not assume wraparound signed arithmetic
50504         * lib/ftell.c: Include <limits.h>.
50505         (ftell): Don't assume wraparound signed arithmetic.
50507 2011-07-24  Bruno Haible  <bruno@clisp.org>
50509         close: No longer depend on module 'fclose'.
50510         * modules/close (Depends-on): Remove fclose.
50511         * NEWS: Mention the change.
50512         Suggested by Sam Steingold <sds@gnu.org>.
50514 2011-07-24  Bruno Haible  <bruno@clisp.org>
50516         fsusage: Enable large volume support on AIX >= 5.2.
50517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50518         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50519         instead of STAT_STATVFS.
50520         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50522         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50523         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50524         f_blocks field only on MacOS X.
50526         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50527         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50528         * modules/fsusage (Depends-on): Add largefile.
50530 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50532         * README: Modernize discussion of signed integers.
50533         Assuming overflow wraparound is no longer safe.
50534         Mention ones' complement and signed magnitude.
50536 2011-07-22  Bruno Haible  <bruno@clisp.org>
50538         select tests, pselect tests: Refactor.
50539         * tests/test-select.h: New file, extracted from tests/test-select.c.
50540         (select_fn): New type.
50541         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50542         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50543         test_pipe): Add my_select argument.
50544         (test_function): Renamed from main. Add my_select argument.
50545         * tests/test-select.c: Move most code to tests/test-select.h. Include
50546         test-select.h.
50547         * modules/select-tests (Files): Add tests/test-select.h.
50548         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50549         (my_select, main): New functions.
50550         * modules/pselect-tests (Files): Add tests/test-select.h,
50551         tests/macros.h, tests/signature.h.
50552         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50553         (configure.ac): Check for <sys/wait.h>.
50555 2011-07-22  Bruno Haible  <bruno@clisp.org>
50557         sys_select tests: Check the signature of FD_*.
50558         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50559         signature tests from here...
50560         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50561         here.
50562         * modules/sys_select-tests (Files): Add tests/signature.h.
50564 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50566         largefile: new module, replacing large-inode
50567         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50568         * MODULES.html.sh: Add largefile, remove large-inode.
50569         * modules/largefile, m4/largefile.m4: New files.
50570         * modules/large-inode, m4/large-inode.m4: Remove.
50572         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50574         implementations that use only 32 bits to count blocks.
50575         On typical hosts with 1024-byte blocks, this fails with file
50576         systems as small as 4 TiB.  Problem reported by Herb Wartens
50577         <http://debbugs.gnu.org/9140> and this should also fix a similar
50578         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50580         large-inode: New module
50581         * MODULES.html.sh: Add it.
50582         * modules/large-inode, m4/large-inode.m4: New files.
50584         extensions: Enable extensions on MacOS X 10.5 and later.
50585         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50587 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50589         file-has-acl: use acl_extended_file_nofollow if available
50590         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50591         (acl_extended_file): New macro.
50592         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50593         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50595 2011-07-21  Bruno Haible  <bruno@clisp.org>
50597         Declare system functions in a way that works with C++.
50598         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50599         declare fdopendir as extern "C".
50600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50601         declare frexpl as extern "C".
50602         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50603         declare gai_strerror as extern "C".
50604         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50605         programs, declare gai_strerror as extern "C".
50606         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50607         declare getlogin_r as extern "C".
50608         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50609         as extern "C".
50610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50611         declare ldexpl as extern "C".
50612         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50613         as extern "C".
50614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50615         program, declare getmntinfo as extern "C".
50616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50617         stpncpy as extern "C".
50618         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50619         program, declare __xpg_strerror_r as extern "C".
50620         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50621         strndup as extern "C".
50622         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50623         declare memset and bzero as extern "C".
50624         Reported by Sam Steingold <sds@gnu.org>.
50626 2011-07-12  Jim Meyering  <meyering@redhat.com>
50628         maint.mk: prohibit inclusion of "verify.h" without use
50629         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50631 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50633         timer-time: A new module to check for timer_settime()
50634         * m4/timer_time.m4: Check for the posix function.
50635         * modules/timer-time: Add the new module.
50636         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50637         Mention it.
50639 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50640             Bruno Haible  <bruno@clisp.org>
50642         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50644         not defined, assume POSIX threads and look for pthread_sigmask in
50645         $LIBS, without changing $CPPFLAGS.
50647 2011-07-19  Bruno Haible  <bruno@clisp.org>
50649         strstr: Update cross-compilation guess.
50650         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50651         CPUs, guess no, in view of glibc
50652         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50653         Suggested by Eric Blake. Reported by Reuben Thomas.
50655 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50657         getopt-gnu: suppress core dumps from detection code
50658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50659         to suppress core dumps that may well occur on glibc systems.
50660         * modules/getopt-gnu: Depend on nocrash.
50662 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50664         pthread_sigmask: ensure usleep is declared
50665         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50666         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50668 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50670         doc: Document NonStop portability issues.
50671         * doc/posix-functions/sigaction.texi (sigaction):
50672         * doc/posix-headers/signal.texi (signal.h):
50673         Document NonStop.  See Joachim Schmitz in
50674         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50676 2011-07-15  Bruno Haible  <bruno@clisp.org>
50678         ffsl, ffsll: Avoid unportable behaviour.
50679         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50681 2011-07-15  Bruno Haible  <bruno@clisp.org>
50683         ffs: More tests.
50684         * tests/test-ffs.c (NBITS): New macro.
50685         (main): Add more tests.
50686         * tests/test-ffsl.c (NBITS): New macro.
50687         (main): Add more tests.
50688         * tests/test-ffsll.c (NBITS): New macro.
50689         (main): Add more tests.
50691 2011-07-15  Eric Blake  <eblake@redhat.com>
50693         ffsl, ffsll: new modules
50694         * modules/ffsl: New file.
50695         * modules/ffsll: Likewise.
50696         * m4/ffsl.m4: Likewise.
50697         * m4/ffsll.m4: Likewise.
50698         * lib/ffsl.c: Likewise.
50699         * lib/ffsl.h: Likewise.
50700         * lib/ffsll.c: Likewise.
50701         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50702         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50703         * modules/string (Makefile.am): Substitute witnesses.
50704         * lib/strings.in.h (ffsl, ffsll): Declare.
50705         * modules/ffsl-tests: New test file.
50706         * modules/ffsll-tests: Likewise.
50707         * tests/test-ffsl.c: Likewise.
50708         * tests/test-ffsll.c: Likewise.
50709         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50710         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50711         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50713         ffs: fix m4 prerequisite
50714         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50716         ffs: avoid undefined behavior
50717         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50718         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50719         Reported by Bruno Haible.
50721 2011-07-12  Bruno Haible  <bruno@clisp.org>
50723         pthread_sigmask: Rely on module 'threadlib'.
50724         * modules/pthread_sigmask (Depends-on): Add threadlib.
50725         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50726         is defined.
50728 2011-07-12  Bruno Haible  <bruno@clisp.org>
50730         regex: Depend on module 'strcase'.
50731         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50733 2011-07-12  Jim Meyering  <meyering@redhat.com>
50735         warn-on-use: fix typo in file name
50736         * modules/snippet/warn-on-use (Files): Correct file name:
50737         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50739 2011-07-12  Bruno Haible  <bruno@clisp.org>
50741         strings: Document module.
50742         * doc/posix-headers/strings.texi: Mention module 'strings'.
50744 2011-07-12  Bruno Haible  <bruno@clisp.org>
50746         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50747         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50748         (Files, Makefile.am): Update.
50749         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50750         * modules/stdlib (Depends-on): Update.
50752 2011-07-12  Bruno Haible  <bruno@clisp.org>
50754         * NEWS: Mention the changes.
50756         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50757         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50758         (Files, Makefile.am): Update.
50759         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50760         * modules/arpa_inet (Depends-on): Update.
50761         * modules/ctype (Depends-on): Update.
50762         * modules/dirent (Depends-on): Update.
50763         * modules/fcntl-h (Depends-on): Update.
50764         * modules/glob (Depends-on): Update.
50765         * modules/iconv-h (Depends-on): Update.
50766         * modules/inttypes-incomplete (Depends-on): Update.
50767         * modules/langinfo (Depends-on): Update.
50768         * modules/locale (Depends-on): Update.
50769         * modules/math (Depends-on): Update.
50770         * modules/netdb (Depends-on): Update.
50771         * modules/poll-h (Depends-on): Update.
50772         * modules/pty (Depends-on): Update.
50773         * modules/search (Depends-on): Update.
50774         * modules/signal (Depends-on): Update.
50775         * modules/spawn (Depends-on): Update.
50776         * modules/stdio (Depends-on): Update.
50777         * modules/stdlib (Depends-on): Update.
50778         * modules/string (Depends-on): Update.
50779         * modules/strings (Depends-on): Update.
50780         * modules/sys_file (Depends-on): Update.
50781         * modules/sys_ioctl (Depends-on): Update.
50782         * modules/sys_select (Depends-on): Update.
50783         * modules/sys_socket (Depends-on): Update.
50784         * modules/sys_stat (Depends-on): Update.
50785         * modules/sys_time (Depends-on): Update.
50786         * modules/sys_times (Depends-on): Update.
50787         * modules/sys_utsname (Depends-on): Update.
50788         * modules/sys_wait (Depends-on): Update.
50789         * modules/termios (Depends-on): Update.
50790         * modules/time (Depends-on): Update.
50791         * modules/unistd (Depends-on): Update.
50792         * modules/wchar (Depends-on): Update.
50793         * modules/wctype-h (Depends-on): Update.
50794         * MODULES.html.sh (Support for building libraries and executables):
50795         Update.
50797         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50798         * modules/snippet/unused-parameter: Renamed from
50799         modules/unused-parameter.
50800         (Files, Makefile.am): Update.
50801         * build-aux/snippet/unused-parameter.h: Renamed from
50802         build-aux/unused-parameter.h.
50803         * modules/selinux-h (Depends-on): Update.
50804         * modules/unistr/base (Depends-on): Update.
50805         * MODULES.html.sh (Core language properties): Update.
50807         Rename module 'link-warning' to 'snippet/link-warning'.
50808         * modules/snippet/link-warning: Renamed from modules/link-warning.
50809         (Files, Makefile.am): Update.
50810         * build-aux/snippet/link-warning.h: Renamed from
50811         build-aux/link-warning.h.
50812         * MODULES.html.sh (Support for building libraries and executables):
50813         Update.
50815         Rename module 'c++defs' to 'snippet/c++defs'.
50816         * modules/snippet/c++defs: Renamed from modules/c++defs.
50817         (Files, Makefile.am): Update.
50818         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50819         * modules/arpa_inet (Depends-on): Update.
50820         * modules/ctype (Depends-on): Update.
50821         * modules/dirent (Depends-on): Update.
50822         * modules/fcntl-h (Depends-on): Update.
50823         * modules/glob (Depends-on): Update.
50824         * modules/iconv-h (Depends-on): Update.
50825         * modules/langinfo (Depends-on): Update.
50826         * modules/locale (Depends-on): Update.
50827         * modules/math (Depends-on): Update.
50828         * modules/netdb (Depends-on): Update.
50829         * modules/poll-h (Depends-on): Update.
50830         * modules/pty (Depends-on): Update.
50831         * modules/search (Depends-on): Update.
50832         * modules/signal (Depends-on): Update.
50833         * modules/spawn (Depends-on): Update.
50834         * modules/stdio (Depends-on): Update.
50835         * modules/stdlib (Depends-on): Update.
50836         * modules/string (Depends-on): Update.
50837         * modules/strings (Depends-on): Update.
50838         * modules/sys_ioctl (Depends-on): Update.
50839         * modules/sys_select (Depends-on): Update.
50840         * modules/sys_socket (Depends-on): Update.
50841         * modules/sys_stat (Depends-on): Update.
50842         * modules/sys_time (Depends-on): Update.
50843         * modules/sys_wait (Depends-on): Update.
50844         * modules/termios (Depends-on): Update.
50845         * modules/time (Depends-on): Update.
50846         * modules/unistd (Depends-on): Update.
50847         * modules/wchar (Depends-on): Update.
50848         * modules/wctype-h (Depends-on): Update.
50850         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50851         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50852         (Files, Makefile.am): Update.
50853         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50854         * modules/argv-iter (Depends-on): Update.
50855         * modules/arpa_inet (Depends-on): Update.
50856         * modules/dirent (Depends-on): Update.
50857         * modules/fcntl-h (Depends-on): Update.
50858         * modules/fnmatch (Depends-on): Update.
50859         * modules/getopt-posix (Depends-on): Update.
50860         * modules/glob (Depends-on): Update.
50861         * modules/iconv-h (Depends-on): Update.
50862         * modules/inttypes-incomplete (Depends-on): Update.
50863         * modules/locale (Depends-on): Update.
50864         * modules/math (Depends-on): Update.
50865         * modules/netdb (Depends-on): Update.
50866         * modules/search (Depends-on): Update.
50867         * modules/signal (Depends-on): Update.
50868         * modules/spawn (Depends-on): Update.
50869         * modules/stdio (Depends-on): Update.
50870         * modules/stdlib (Depends-on): Update.
50871         * modules/string (Depends-on): Update.
50872         * modules/strings (Depends-on): Update.
50873         * modules/sys_socket (Depends-on): Update.
50874         * modules/sys_stat (Depends-on): Update.
50875         * modules/sys_time (Depends-on): Update.
50876         * modules/sys_times (Depends-on): Update.
50877         * modules/sys_utsname (Depends-on): Update.
50878         * modules/time (Depends-on): Update.
50879         * modules/unistd (Depends-on): Update.
50880         * modules/wchar (Depends-on): Update.
50881         * MODULES.html.sh (Support for building libraries and executables):
50882         Update.
50884 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50886         Improvements on _Noreturn and related modules.
50888         modules/_Exit-tests: test _Noreturn too
50889         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50890         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50891         (main): Use them.
50893         stdnoreturn, stdnoreturn-tests: remove modules
50894         They're not needed here and a bit premature for use elsewhere.  See
50895         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50896         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50897         * tests/test-stdnoreturn.c: Remove files.
50898         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50899         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50900         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50901         and using noreturn.
50902         * modules/openat, modules/sigpipe-die, modules/xalloc:
50903         * modules/xmemdup0, modules/xstrtol:
50904         Remove dependency on stdnoreturn.
50906         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50907         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50908         Reparenthesize to avoid GCC warning.
50909         Support Microsoft's syntax.
50910         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50912         _Noreturn-tests: remove module
50913         * modules/_Noreturn-tests: Remove.
50914         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50915         * tests/test-_Noreturn.c: Remove.
50916         * tests/test-stdnoreturn.c: Merge from the old
50917         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50919 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50921         _Noreturn, stdnoreturn, and related modules.
50923         * top/maint.mk: Adjust to new noreturn support.
50924         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50925         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50927         xalloc: use stdnoreturn.h
50928         * lib/xalloc.h: Include <stdnoreturn.h>.
50929         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50930         * modules/xalloc (Depends-on): Add stdnoreturn.
50932         xstrtol: use stdnoreturn.h
50933         * lib/xstrtol.h: Include <stdnoreturn.h>.
50934         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50935         * modules/xstrtol (Depends-on): Add stdnoreturn.
50937         xmemdup0: use stdnoreturn.h
50938         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50939         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50940         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50942         sigpipe-die: use stdnoreturn.h
50943         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50944         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50945         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50947         openat: use stdnoreturn.h
50948         * lib/openat.h: Include <stdnoreturn.h>.
50949         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50950         * modules/openat (Depends-on): Add stdnoreturn.
50952         * lib/openat-die.c (openat_save_fail): Modernize comment.
50954         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50956         * lib/glthread/thread.h: Modernize comment.
50958         obstack: use _Noreturn
50959         * lib/obstack.c (__attribute__): Remove macro.
50960         (print_and_abort): Use _Noreturn.
50962         c-stack: use _Noreturn
50963         * lib/c-stack.c (die, overflow_handler, segv_handler):
50964         Use _Noreturn rather than __attribute__((noreturn)).
50966         argmatch-tests, exclude_tests: use _Noreturn
50967         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50968         Remove.
50969         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50971         stdlib: use _Noreturn
50972         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50973         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50974         * modules/stdlib (Depends-on): Add _Noreturn.
50975         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50977         stdnoreturn-tests: new module
50978         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50980         stdnoreturn: new module
50981         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50982         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50984         _Noreturn-tests: new module
50985         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50987         _Noreturn: new module
50988         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50989         New section, mentioning it.
50990         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50992         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50994 2011-07-11  Eric Blake  <eblake@redhat.com>
50996         ffs: new module
50997         * modules/ffs: New file.
50998         * m4/ffs.m4: Likewise.
50999         * lib/ffs.c: Likewise.
51000         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51001         * modules/strings (Makefile.am): Substitute witness.
51002         (Depends-on): Add c++defs.
51003         * lib/strings.in.h (ffs): Declare.
51004         * modules/ffs-tests: New test file.
51005         * tests/test-ffs.c: Test new module.
51006         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51007         * doc/posix-functions/ffs.texi (ffs): Likewise.
51009         regex: avoid compiler warning
51010         * lib/regex.c (includes): Include <strings.h>, for use of
51011         strcasecmp in regcomp.c.
51012         Reported by Joachim Schmitz.
51014 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51016         stdint: respect system's intmax_t if INTMAX_MAX
51017         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51018         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51019         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51020         long but int64_t is long long, and where we will clash with the
51021         system intmax_t if we override it.  See
51022         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51023         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51024         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51025         similarly for UINTMAX_C.
51027 2011-07-08  Bruno Haible  <bruno@clisp.org>
51029         pthread_sigmask tests: Avoid a compiler warning.
51030         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51031         non-zero.
51033         sigprocmask tests: A better way to avoid a compiler warning.
51034         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51035         (main): Complain if system() returns non-zero.
51036         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51038 2011-07-08  Bruno Haible  <bruno@clisp.org>
51040         pthread_sigmask: Work around IRIX bug.
51041         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51042         bug.
51043         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51044         there may be unblocked pending signals.
51045         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51047 2011-07-08  Bruno Haible  <bruno@clisp.org>
51049         pthread_sigmask: Work around Cygwin bug.
51050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51051         bug.
51052         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51053         the system's pthread_sigmask function.
51054         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51056 2011-07-08  Bruno Haible  <bruno@clisp.org>
51058         pthread_sigmask: Work around bug in single-threaded implementation.
51059         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51060         FreeBSD, HP-UX, Solaris bug.
51061         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51062         * lib/pthread_sigmask.c: Include <stddef.h>.
51063         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51064         the system's pthread_sigmask function.
51065         * modules/pthread_sigmask (configure.ac): Invoke
51066         gl_PREREQ_PTHREAD_SIGMASK.
51067         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51068         HP-UX, Solaris.
51070 2011-07-08  Eric Blake  <eblake@redhat.com>
51072         test-sigprocmask: avoid compiler warning
51073         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51074         * tests/test-sigprocmask.c (main): Use it to silence warning.
51075         Reported by Jim Meyering.
51077         test-snprintf: avoid compiler warning
51078         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51079         * tests/test-vsnprintf.c (main): Likewise.
51080         Reported by Jim Meyering.
51082 2011-07-08  Bruno Haible  <bruno@clisp.org>
51084         Tests for module 'pthread_sigmask'.
51085         * modules/pthread_sigmask-tests: New file.
51086         * tests/test-pthread_sigmask1.c: New file, based on
51087         tests/test-sigprocmask.c.
51088         * tests/test-pthread_sigmask2.c: New file.
51090 2011-07-08  Jim Meyering  <meyering@redhat.com>
51092         test-getopt.h: avoid warning about an unused variable
51093         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51095 2011-07-07  Jim Meyering  <meyering@redhat.com>
51097         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51098         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51099         now that it no longer contains leading TABs.
51100         Remove unused "url=FIXME" statement.
51102 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51104         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51105         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51106         When gl_THREADLIB is not in use, assume that the POSIX sematics
51107         are desired.  This is better for Emacs, which uses POSIX semantics
51108         on GNUish and/or POSIXish platforms, and does not use threads at
51109         all otherwise.
51111         pthread_sigmask: fix typo when testing for libraries
51112         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51113         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51115 2011-07-08  Eric Blake  <eblake@redhat.com>
51117         fts: introduce FTS_NOATIME
51118         * lib/fts_.h (FTS_NOATIME): New bit flag.
51119         (FTS_OPTIONMASK): Adjust.
51120         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51121         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51123 2011-07-08  Bruno Haible  <bruno@clisp.org>
51125         Tests for module 'thread'.
51126         * modules/thread-tests: New file.
51127         * tests/test-thread_self.c: New file.
51128         * tests/test-thread_create.cc: New file.
51130 2011-07-08  Bruno Haible  <bruno@clisp.org>
51132         thread: Avoid gcc warnings when using gl_thread_self().
51133         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51134         'void *'.
51135         (gl_thread_self_pointer): Update.
51137 2011-07-07  Bruno Haible  <bruno@clisp.org>
51139         signal-c++-tests: Check declaration of pthread_sigmask.
51140         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51141         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51142         $(LIB_PTHREAD_SIGMASK).
51144 2011-07-07  Bruno Haible  <bruno@clisp.org>
51146         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51147         * lib/signal.in.h (pthread_sigmask): Override if
51148         REPLACE_PTHREAD_SIGMASK is 1.
51149         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51150         REPLACE_PTHREAD_SIGMASK.
51151         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51152         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51153         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51154         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51155         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51157 2011-07-07  Bruno Haible  <bruno@clisp.org>
51159         pthread_sigmask: Ensure declaration in <signal.h>.
51160         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51161         include <pthread.h>.
51162         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51163         problem.
51165 2011-07-07  Bruno Haible  <bruno@clisp.org>
51167         pthread_sigmask: Document the module.
51168         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51170 2011-07-07  Bruno Haible  <bruno@clisp.org>
51172         pthread_sigmask: Follow gnulib conventions.
51173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51174         gl_PTHREAD_SIGMASK.
51175         * modules/pthread_sigmask (configure.ac): Update.
51177 2011-07-07  Bruno Haible  <bruno@clisp.org>
51179         pthread_sigmask: Make declaration C++ safe.
51180         * lib/signal.in.h: In two special conditions, just do an #include_next.
51181         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51182         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51184         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51185         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51186         not REPLACE_PTHREAD_MASK.
51187         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51188         not REPLACE_PTHREAD_MASK.
51189         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51191 2011-07-07  Bruno Haible  <bruno@clisp.org>
51193         pthread_sigmask: Fix return value.
51194         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51195         * lib/pthread_sigmask.c: New file.
51196         * modules/pthread_sigmask (Files): Add it.
51197         (configure.ac): Invoke AC_LIBOBJ.
51199 2011-07-07  Eric Blake  <eblake@redhat.com>
51201         getopt: more portable argv creation
51202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51203         const, use char arrays rather than strings.
51204         Suggested by Paul Eggert.
51206 2011-07-07  Bruno Haible  <bruno@clisp.org>
51208         Tests for module 'sigprocmask'.
51209         * modules/sigprocmask-tests: New file.
51210         * tests/test-sigprocmask.c: New file.
51212 2011-07-07  Bruno Haible  <bruno@clisp.org>
51214         float tests: Tweak.
51215         * tests/test-float.c (main): Tweak skip message.
51217 2011-07-07  Eric Blake  <eblake@redhat.com>
51219         getopt: avoid compiler warning during configure
51220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51221         assigning string literals to non-const pointer.
51223         getopt-gnu: avoid crash in glibc getopt
51224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51225         * tests/test-getopt.h (test_getopt): Enhance test.
51226         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51227         * doc/posix-functions/getopt.texi (getopt): Document it.
51228         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51229         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51230         Likewise.
51232 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51234         getopt: handle W; without long options in getopt [BZ #12922]
51235         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51236         but no long options are defined, just return 'W'.
51238 2011-07-07  Bruno Haible  <bruno@clisp.org>
51240         Avoid literal tabs.
51241         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51242         variable containing a tab instead of a literal tab.
51243         Reported by Jim Meyering.
51245 2011-07-07  Bruno Haible  <bruno@clisp.org>
51247         Comments.
51248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51250 2011-07-06  Bruno Haible  <bruno@clisp.org>
51252         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51253         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51254         <winsock2.h>.
51255         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51256         lib/sys_socket.in.h.
51257         (close, gethostname): Hide declarations from <winsock2.h>.
51258         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51259         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51260         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51261         (select): Don't override if gnulib's <sys/select.h> was already
51262         included.
51263         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51264         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51265         setsockopt, shutdown, select): Tweak indentation.
51267 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51269         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51270         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51271         in an application that does not use the sys_select module.
51273 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51275         poll: do not return 0 on timeout=-1
51276         * lib/poll.c: Loop with yield if no events occurred.
51278 2011-07-06  Eric Blake  <eblake@redhat.com>
51280         pthread_sigmask: always replace when not using pthread
51281         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51282         replacement when using some threading other than pthread.  Fix
51283         logic bug.
51285 2011-07-06  Bruno Haible  <bruno@clisp.org>
51287         Comments.
51288         * m4/printf.m4: Update comments about mingw.
51290 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51292         sys_select: define sigset_t more portably
51293         * lib/sys_select.in.h: Always include <sys/types.h>, since
51294         we now need sigset_t and mingw defines it there.
51295         Include <signal.h> before split inclusion guard, to avoid
51296         mishaps on Solaris, whose <signal.h> eventually includes us.
51297         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51298         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51299         which come from ...
51300         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51301         gl_CHECK_TYPE_SIGSET_T.
51302         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51303         does the real work.
51304         * modules/sys_select (Depends-on): Add 'signal'.
51306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51307         Suggested by Bruno Haible.
51309         pselect: Use pthread_sigmask, not sigprocmask.
51310         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51311         multithreaded apps better than sigprocmask does.
51312         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51313         sigprocmask directly.
51315 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51317         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51318         Don't #undef,  since we don't need any underlying pselect.
51319         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51320         (Depends-on): Add select.
51321         (Link): Add $(LIBSOCKET).
51322         These changes suggested by Bruno Haible.
51324         pselect: document better
51325         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51326         * doc/posix-functions/pselect.texi (pselect): Document new module.
51328         pthread_sigmask: new module
51329         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51330         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51331         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51332         This is done only as a macro; I don't know how well that'll
51333         work for C++.  Move <sys/types.h> include before the include_next,
51334         to avoid mishap on Solaris.
51335         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51336         * modules/signal (Makefile.am): Substitute the check's results.
51337         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51339         test-pselect: new module
51340         * modules/pselect-tests, tests/test-pselect.c: New files.
51341         * tests/test-select.c, tests/test-sys_select-c++.cc:
51342         If TEST_PSELECT is defined, test pselect instead of testing select.
51344         * tests/test-sys_select.c (sigset_t): Test for it, too.
51345         Suggested by Bruno Haible.
51347 2011-07-05  Eric Blake  <eblake@redhat.com>
51349         snprintf: guarantee %1$d, for libintl
51350         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51351         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51352         * doc/posix-functions/snprintf.texi (snprintf): Update.
51353         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51354         * tests/test-snprintf.c (main): Enhance test.
51355         * tests/test-vsnprintf.c (main): Likewise.
51357 2011-07-05  Jim Meyering  <meyering@redhat.com>
51359         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51360         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51361         per Bruno's request, to accommodate this idiom (no space after "#")
51362         even when the function is inside an #if block:
51363         char *
51364         gets (char *s)
51365         #undef gets
51366         {
51367           ...
51368         }
51370 2011-07-04  Jim Meyering  <meyering@redhat.com>
51372         maint: indent with spaces, not TABs, and add a rule to check this
51373         * tests/test-userspec.c: Indent with spaces, not TABs.
51374         * tests/test-argp.c: Likewise.
51375         * tests/test-c-stack2.sh: Likewise.
51376         * tests/test-parse-duration.sh: Likewise
51377         * m4/strtod.m4: Likewise.
51378         * m4/alloca.m4: Likewise.
51379         * m4/pselect.m4: Likewise.
51380         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51382 2011-07-03  Jim Meyering  <meyering@redhat.com>
51384         maint.mk: correct omissions in prohibit_argmatch_without_use check
51385         This rule would mistakenly report that argmatch.h is included without
51386         use even when both the argmatch and invalid_arg macro were used.
51387         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51388         of argmatch and invalid_arg.
51390 2011-07-03  Bruno Haible  <bruno@clisp.org>
51392         Comments about EINTR.
51393         * lib/safe-read.h: Explain the purpose of this module.
51394         * lib/safe-write.h: Likewise.
51395         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51396         module.
51397         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51398         module.
51399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51401 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51403         xnanosleep: Rewrite to use new dtotimespec module.
51404         It has the conversion code that used to be in xnanosleep.
51405         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51406         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51407         (TIME_T_MAX): Remove.
51408         (xnanosleep): Rewrite in terms of dtotimespec.
51409         * modules/xnanosleep (Depends-on): Add dtotimespec.
51410         Remove intprops, stdbool.
51412         timespec-add, timespec-sub: new modules
51413         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51414         * lib/timespec-add.c, lib/timespec-sub.c:
51415         * modules/timespec-add, modules/timespec-sub: New files.
51417         dtotimespec: new module
51418         * lib/timespec.h (dtotimespec): New decl.
51419         * lib/dtotimespec.c, modules/dtotimespec: New files.
51421         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51423         pselect: new module
51424         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51425         (pselect): New decls.
51426         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51427         since the standard pselect decl uses 'restrict'.
51428         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51429         HAVE_PSELECT, REPLACE_PSELECT.
51430         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51431         HAVE_PSELECT, REPLACE_PSELECT.
51432         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51434         sys_select: don't depend on sys_socket
51435         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51436         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51437         This fix works on GNU and GNU-like platforms, but has not been tested
51438         on native Windows.
51439         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51440         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51441         gl_HEADER_SYS_SOCKET.
51442         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51443         gl_PREREQ_SYS_H_WINSOCK2.
51445 2011-06-29  Eric Blake  <eblake@redhat.com>
51447         pipe2: fix C89 compile problem
51448         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51449         Reported by Bruno Haible.
51451         pipe, pipe2: don't corrupt fd on error
51452         * lib/pipe.c (pipe): Leave fd unchanged on error.
51453         * lib/pipe2.c (pipe2): Likewise.
51454         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51455         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51457 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51459         mmap-anon: do not use regular expressions inadvertently
51460         * m4/mmap-anon.m4: Remove trailing period from strings sought
51461         in the output.
51463 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51465         nanosleep: fix integer overflow problem
51466         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51467         arithmetic wraps around on overflow.
51469         nanosleep: simplify carrying
51470         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51471         first call to the underyling nanosleep, not for the last one.
51472         This doesn't fix any bugs, but it simplifies the computation of
51473         the remaining delay.  Found while auditing integer overflow issues.
51475         dup2: remove test for existence of fcntl
51476         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51477         "#if HAVE_FCNTL", in the configure-time test program.
51478         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51479         and therefore speeds up "configure" a bit.  Found while
51480         adding the dup2 module to Emacs.
51482 2011-06-24  Eric Blake  <eblake@redhat.com>
51484         maint.mk: enhance useless header checks
51485         * top/maint.mk (_sc_header_without_use): Check both include
51486         styles.
51487         (sc_prohibit_assert_without_use)
51488         (sc_prohibit_close_stream_without_use)
51489         (sc_prohibit_getopt_without_use)
51490         (sc_prohibit_quotearg_without_use)
51491         (sc_prohibit_quote_without_use)
51492         (sc_prohibit_long_options_without_use)
51493         (sc_prohibit_inttostr_without_use)
51494         (sc_prohibit_ignore_value_without_use)
51495         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51496         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51497         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51498         (sc_prohibit_hash_pjw_without_use)
51499         (sc_prohibit_safe_read_without_use)
51500         (sc_prohibit_argmatch_without_use)
51501         (sc_prohibit_canonicalize_without_use)
51502         (sc_prohibit_root_dev_ino_without_use)
51503         (sc_prohibit_openat_without_use)
51504         (sc_prohibit_c_ctype_without_use)
51505         (sc_prohibit_signal_without_use)
51506         (sc_prohibit_stdio--_without_use)
51507         (sc_prohibit_stdio-safer_without_use)
51508         (sc_prohibit_strings_without_use)
51509         (sc_prohibit_intprops_without_use)
51510         (sc_prohibit_stddef_without_use)
51511         (sc_prohibit_xfreopen_without_use): Update clients.
51513 2011-06-24  Jim Meyering  <meyering@redhat.com>
51515         syntax-check: keep one maint.mk rule in sync with its header
51516         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51517         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51518         I prefer to avoid temporary files here, so use <(...), but that
51519         is not supported by /bin/sh, so...
51520         (SHELL): Define to /bin/bash.
51522 2011-06-24  Eric Blake  <eblake@redhat.com>
51524         maint.mk: update sc_prohibit_intprops_without_use
51525         * top/maint.mk (_intprops_names): Match recent changes.
51527 2011-06-24  Bruno Haible  <bruno@clisp.org>
51529         strerror-override: No-op tweak.
51530         * lib/strerror-override.h (strerror_override): Reorder conditions,
51531         for consistency with lib/strerror-override.c.
51533 2011-06-23  Eric Blake  <eblake@redhat.com>
51535         maint.mk: test further PATH_MAX issues
51536         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51537         (sc_prohibit_path_max_allocation): ...and also test alloca.
51538         Suggested by Jim Meyering.
51540 2011-06-22  Eric Blake  <eblake@redhat.com>
51542         maint.mk: add syntax-check to avoid char[PATH_MAX]
51543         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51545         stat: be robust to PATH_MAX definition
51546         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51547         * modules/stat (Depends-on): Add verify.
51549         link: work around IRIX bug
51550         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51551         * lib/link.c (rpl_link): Work around it.
51552         * tests/test-link.h (test_link): Enhance test.
51553         * doc/posix-functions/link.texi (link): Document the bug.
51555         getopt: silence clang warning
51556         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51557         dereference.
51558         Reported by Gustavo Martin Domato.
51560 2011-06-22  Jim Meyering  <meyering@redhat.com>
51562         bootstrap: do not insert a blank line into each .gitignore file
51563         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51565 2011-06-21  Eric Blake  <eblake@redhat.com>
51567         perror: test for output mismatch
51568         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51569         perror on IRIX.
51571         strerror_r: fix OpenBSD behavior on out-of-range
51572         * lib/strerror_r.c (strerror_r): Always use maximal string.
51573         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51575         strerror_r: fix OpenBSD behavior on 0
51576         * lib/strerror-override.c (strerror_override): Also override 0
51577         when needed.
51578         * lib/strerror-override.h (strerror_override): Likewise.
51579         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51580         earlier.
51581         * lib/strerror_r.c (strerror_r): Likewise.
51582         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51583         behavior...
51584         (gl_FUNC_STRERROR_0): ...into new macro.
51585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51586         is overridden.
51587         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51588         * modules/strerror-override (Files): Add strerror.m4.
51589         (configure.ac): Also provide override for 0 when needed.
51590         * doc/posix-functions/strerror.texi (strerror): Document this.
51591         * doc/posix-functions/perror.texi (perror): Likewise.
51593         perror: adjust array size
51594         * modules/perror (Depends-on): Add strerror-override.
51595         * lib/perror.c (perror): Use it to avoid magic number.
51597         strerror-override: reduce size
51598         * lib/strerror-override.c (strerror_override): Use fewer lines.
51600 2011-06-20  Bruno Haible  <bruno@clisp.org>
51602         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51603         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51605 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51607         alloca: port to compilers that can optimize like GCC 4.6.0
51608         * lib/alloca.c (find_stack_direction): New signature, taken from
51609         Autoconf git.  This works with GCC 4.6.0.  This code should never
51610         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51611         be used with other compilers that optimize as well as GCC 4.6.0 does.
51612         (alloca): Adjust to new signature.
51613         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51614         New macro, which patches Autoconf in a similar way.
51616         c-stack: stop worrying about stack direction
51617         * lib/c-stack.c (find_stack_direction): Remove.
51618         (segv_handler): Don't worry about stack direction growth, as it's
51619         too much of a pain to configure this correctly, given how compilers
51620         are optimizing-away our stack-growth detection code.  Instead, assume
51621         that any access to just before or just after the stack is OK.
51622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51623         Don't require AC_FUNC_ALLOCA; no longer needed.
51625 2011-06-20  Eric Blake  <eblake@redhat.com>
51627         test-stat: don't allocate PATH_MAX bytes
51628         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51629         PATH_MAX-sized buffer.
51630         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51631         * modules/stat-tests (Depends-on): Likewise.
51632         * tests/test-fstatat.c (includes): Drop pathmax.h.
51633         * tests/test-stat.c (includes): Likewise.
51634         Reported by Bruno Haible.
51636 2011-06-20  Bruno Haible  <bruno@clisp.org>
51638         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51639         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51640         * lib/float.c: New file.
51641         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51642         REPLACE_FLOAT_LDBL.
51643         * modules/float (Files): Add lib/float.c.
51644         (configure.ac): Invoke AC_LIBOBJ.
51645         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51647 2011-06-20  Bruno Haible  <bruno@clisp.org>
51649         Tests for module 'float'.
51650         * modules/float-tests: New file.
51651         * tests/test-float.c: New file.
51653 2011-06-19  Bruno Haible  <bruno@clisp.org>
51655         isinf: Coding style.
51656         * lib/isinf.c: Use GNU coding style.
51658 2011-06-19  Bruno Haible  <bruno@clisp.org>
51660         linkat test: Avoid test failure on AIX 7.1.
51661         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51662         * tests/test-link.h (test_link): Likewise.
51664 2011-06-19  Bruno Haible  <bruno@clisp.org>
51666         pread test: Avoid test failure on OpenBSD 4.9.
51667         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51669 2011-06-19  Bruno Haible  <bruno@clisp.org>
51671         sprintf-posix: Fix test failure on AIX 7.1.
51672         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51673         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51674         on AIX.
51675         * doc/posix-functions/fprintf.texi: Likewise.
51676         * doc/posix-functions/printf.texi: Likewise.
51677         * doc/posix-functions/snprintf.texi: Likewise.
51678         * doc/posix-functions/sprintf.texi: Likewise.
51679         * doc/posix-functions/vdprintf.texi: Likewise.
51680         * doc/posix-functions/vfprintf.texi: Likewise.
51681         * doc/posix-functions/vprintf.texi: Likewise.
51682         * doc/posix-functions/vsnprintf.texi: Likewise.
51683         * doc/posix-functions/vsprintf.texi: Likewise.
51685 2011-06-19  Bruno Haible  <bruno@clisp.org>
51687         roundl-ieee: Fix test failure on AIX 7.1.
51688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51689         * doc/posix-functions/roundl.texi: Mention problem with negative
51690         arguments.
51692 2011-06-19  Bruno Haible  <bruno@clisp.org>
51694         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51695         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51696         * doc/posix-functions/round.texi: Mention problem with negative
51697         arguments.
51698         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51700 2011-06-19  Bruno Haible  <bruno@clisp.org>
51702         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51704         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51705         * doc/posix-functions/roundf.texi: Mention problem with negative
51706         arguments.
51707         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51709 2011-06-19  Bruno Haible  <bruno@clisp.org>
51711         ceilf-ieee: Work around bug on MacOS X 10.5.
51712         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51714         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51715         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51716         IEEE compliant, avoid compiler optimizations.
51717         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51718         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51719         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51720         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51721         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51722         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51723         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51725         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51728 2011-06-19  Bruno Haible  <bruno@clisp.org>
51730         ceilf-ieee: Work around bug on AIX 7.1.
51731         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51732         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51734 2011-06-19  Bruno Haible  <bruno@clisp.org>
51736         ceil-ieee: Work around bug on AIX 7.1.
51737         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51738         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51740 2011-06-18  Bruno Haible  <bruno@clisp.org>
51742         fsync test: Avoid test failure on MacOS X and AIX.
51743         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51744         EINVAL.
51746 2011-06-18  Bruno Haible  <bruno@clisp.org>
51748         openat, fdopendir tests: Fix link errors.
51749         * modules/openat-tests (Depends-on): Add progname.
51750         * modules/fdopendir-tests (Depends-on): Likewise.
51751         * tests/test-fchownat.c: Include progname.h.
51752         (main): Call set_program_name.
51753         * tests/test-fstatat.c: Include progname.h.
51754         (main): Call set_program_name.
51755         * tests/test-mkdirat.c: Include progname.h.
51756         (main): Call set_program_name.
51757         * tests/test-openat.c: Include progname.h.
51758         (main): Call set_program_name.
51759         * tests/test-unlinkat.c: Include progname.h.
51760         (main): Call set_program_name.
51761         * tests/test-fdopendir.c: Include progname.h.
51762         (main): Call set_program_name.
51764 2011-06-18  Bruno Haible  <bruno@clisp.org>
51766         Doc update.
51767         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51768         HP-UX.
51769         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51771 2011-06-18  Bruno Haible  <bruno@clisp.org>
51773         getcwd tests: Avoid compilation error on HP-UX 11.31.
51774         * modules/getcwd-tests (Depends-on): Add pathmax.
51775         * tests/test-getcwd.c: Include pathmax.h.
51777 2011-06-18  Bruno Haible  <bruno@clisp.org>
51779         isfinite, isinf: Fix link error on AIX 6 and 7.
51780         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51781         needed, also test the macro with a 'float' argument.
51782         * m4/isinf.m4 (gl_ISINF): Likewise.
51784 2011-06-18  Bruno Haible  <bruno@clisp.org>
51786         getloadavg: Don't clobber LIBS. Regression from previous commit.
51787         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51788         AC_CHECK_LIB from here...
51789         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51790         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51791         gl_func_getloadavg_done.
51792         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51794 2011-06-18  Bruno Haible  <bruno@clisp.org>
51796         clean-temp: Improve documentation.
51797         * lib/clean-temp.h: Explain better how to use this module.
51798         Reported by John Darrington <john@darrington.wattle.id.au>.
51800 2011-06-17  Bruno Haible  <bruno@clisp.org>
51802         pread, pwrite: Avoid cc warning on AIX.
51803         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51804         (pwrite): Likewise.
51806 2011-06-17  Bruno Haible  <bruno@clisp.org>
51808         spawn-pipe tests: Fix link error.
51809         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51812 2011-06-17  Bruno Haible  <bruno@clisp.org>
51814         Tests: Remove unnecessary dependency.
51815         * modules/canonicalize-tests (Depends-on): Remove progname.
51816         * modules/chown-tests (Depends-on): Likewise.
51817         * modules/dirname-tests (Depends-on): Likewise.
51818         * modules/fdopendir-tests (Depends-on): Likewise.
51819         * modules/fdutimensat-tests (Depends-on): Likewise.
51820         * modules/hash-tests (Depends-on): Likewise.
51821         * modules/lchown-tests (Depends-on): Likewise.
51822         * modules/linkat-tests (Depends-on): Likewise.
51823         * modules/renameat-tests (Depends-on): Likewise.
51824         * modules/spawn-pipe-tests (Depends-on): Likewise.
51825         * modules/utimensat-tests (Depends-on): Likewise.
51827 2011-06-17  Bruno Haible  <bruno@clisp.org>
51829         spawn-pipe tests: Fix link error.
51830         * tests/test-spawn-pipe-child.c: Undefine fflush.
51832 2011-06-17  Bruno Haible  <bruno@clisp.org>
51834         Fix tests link errors.
51835         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51836         * modules/chown-tests (Makefile.am): Don't link test-chown with
51837         LIBINTL.
51838         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51839         LIBINTL.
51840         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51841         LIBINTL.
51842         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51843         LIBINTL.
51845 2011-06-16  Bruno Haible  <bruno@clisp.org>
51847         crypto/gc-sha1: Fix recent regression.
51848         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51849         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51851         crypto/gc-md5: Fix recent regression.
51852         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51854         crypto/gc-md4: Fix recent regression.
51855         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51856         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51858         crypto/gc-arctwo: Fix recent regression.
51859         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51860         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51862         crypto/gc-rijndael: Fix recent regression.
51863         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51864         (configure.ac): Invoke AC_LIBOBJ here.
51865         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51868         crypto/gc-hmac-sha1: Fix recent regression.
51869         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51870         (configure.ac): Invoke AC_LIBOBJ here.
51871         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51874         crypto/gc-hmac-md5: Fix recent regression.
51875         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51876         (configure.ac): Invoke AC_LIBOBJ here.
51877         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51880         crypto/gc-des: Fix recent regression.
51881         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51882         (configure.ac): Invoke AC_LIBOBJ here.
51883         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51886         crypto/gc-arcfour: Fix recent regression.
51887         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51888         (configure.ac): Invoke AC_LIBOBJ here.
51889         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51890         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51892 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51894         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51895         After the 2011-05-21 change, this macro requires
51896         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51897         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51899 2011-06-16  Bruno Haible  <bruno@clisp.org>
51901         fprintftime: Move AC_LIBOBJ invocations to module description.
51902         * m4/fprintftime.m4: Remove file.
51903         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51904         (configure.ac): Remove gl_FPRINTFTIME call.
51905         (Makefile.am): Augment lib_SOURCES.
51906         Reported by Jim Meyering.
51908 2011-06-16  Bruno Haible  <bruno@clisp.org>
51910         tmpfile-safer: Finish 2011-05-23 commit.
51911         * m4/stdio-safer.m4: Really remove file.
51912         Reported by Jim Meyering.
51914 2011-06-16  Bruno Haible  <bruno@clisp.org>
51916         syntax-check: Fix typo.
51917         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51918         printf-posix.m4.
51919         Reported by Jim Meyering.
51921 2011-06-13  Jim Meyering  <meyering@redhat.com>
51923         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51924         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51926 2011-05-23  Bruno Haible  <bruno@clisp.org>
51928         yesno: Move AC_LIBOBJ invocations to module description.
51929         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51930         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51932 2011-05-23  Bruno Haible  <bruno@clisp.org>
51934         xstrtol: Move AC_LIBOBJ invocations to module description.
51935         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51936         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51938 2011-05-23  Bruno Haible  <bruno@clisp.org>
51940         xstrtold: Move AC_LIBOBJ invocations to module description.
51941         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51942         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51944 2011-05-23  Bruno Haible  <bruno@clisp.org>
51946         xstrtod: Move AC_LIBOBJ invocations to module description.
51947         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51948         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51950 2011-05-23  Bruno Haible  <bruno@clisp.org>
51952         xnanosleep: Move AC_LIBOBJ invocations to module description.
51953         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51954         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51956 2011-05-23  Bruno Haible  <bruno@clisp.org>
51958         xgetcwd: Move AC_LIBOBJ invocations to module description.
51959         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51960         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51962 2011-05-23  Bruno Haible  <bruno@clisp.org>
51964         xalloc: Move AC_LIBOBJ invocations to module description.
51965         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51966         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51968 2011-05-23  Bruno Haible  <bruno@clisp.org>
51970         write-any-file: Move AC_LIBOBJ invocations to module description.
51971         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51972         invocation.
51973         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51975 2011-05-23  Bruno Haible  <bruno@clisp.org>
51977         utimens: Move AC_LIBOBJ invocations to module description.
51978         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51979         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51981 2011-05-23  Bruno Haible  <bruno@clisp.org>
51983         utimecmp: Move AC_LIBOBJ invocations to module description.
51984         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51985         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51987 2011-05-23  Bruno Haible  <bruno@clisp.org>
51989         userspec: Move AC_LIBOBJ invocations to module description.
51990         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51991         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51993 2011-05-23  Bruno Haible  <bruno@clisp.org>
51995         unlinkdir: Move AC_LIBOBJ invocations to module description.
51996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51997         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51999 2011-05-23  Bruno Haible  <bruno@clisp.org>
52001         unistd-safer: Move AC_LIBOBJ invocations to module description.
52002         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52003         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52005 2011-05-23  Bruno Haible  <bruno@clisp.org>
52007         tempname: Move AC_LIBOBJ invocations to module description.
52008         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52009         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52011 2011-05-23  Bruno Haible  <bruno@clisp.org>
52013         strftime: Move AC_LIBOBJ invocations to module description.
52014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52015         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52017 2011-05-23  Bruno Haible  <bruno@clisp.org>
52019         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52020         * m4/stdlib-safer.m4: Remove file.
52021         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52022         (configure.ac): Remove gl_STDLIB_SAFER call.
52023         (Makefile.am): Augment lib_SOURCES.
52025 2011-05-23  Bruno Haible  <bruno@clisp.org>
52027         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52028         * m4/stdio-safer.m4: Remove file.
52029         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52030         (configure.ac): Remove gl_TMPFILE_SAFER call.
52031         (Makefile.am): Augment lib_SOURCES.
52033 2011-05-23  Bruno Haible  <bruno@clisp.org>
52035         popen-safer: Move AC_LIBOBJ invocations to module description.
52036         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52037         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52038         (configure.ac): Remove gl_POPEN_SAFER call.
52039         (Makefile.am): Augment lib_SOURCES.
52041 2011-05-23  Bruno Haible  <bruno@clisp.org>
52043         freopen-safer: Move AC_LIBOBJ invocations to module description.
52044         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52045         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52046         (configure.ac): Remove gl_FREOPEN_SAFER call.
52047         (Makefile.am): Augment lib_SOURCES.
52049 2011-05-23  Bruno Haible  <bruno@clisp.org>
52051         fopen-safer: Move AC_LIBOBJ invocations to module description.
52052         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52053         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52054         (configure.ac): Remove gl_FOPEN_SAFER call.
52055         (Makefile.am): Augment lib_SOURCES.
52057 2011-05-23  Bruno Haible  <bruno@clisp.org>
52059         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52060         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52061         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52063 2011-05-23  Bruno Haible  <bruno@clisp.org>
52065         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52066         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52067         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52069 2011-05-23  Bruno Haible  <bruno@clisp.org>
52071         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52072         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52073         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52075 2011-05-23  Bruno Haible  <bruno@clisp.org>
52077         settime: Move AC_LIBOBJ invocations to module description.
52078         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52079         * modules/settime (Makefile.am): Augment lib_SOURCES.
52081 2011-05-23  Bruno Haible  <bruno@clisp.org>
52083         savedir: Move AC_LIBOBJ invocations to module description.
52084         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52085         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52087 2011-05-23  Bruno Haible  <bruno@clisp.org>
52089         save-cwd: Move AC_LIBOBJ invocations to module description.
52090         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52091         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52093 2011-05-23  Bruno Haible  <bruno@clisp.org>
52095         same: Move AC_LIBOBJ invocations to module description.
52096         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52097         * modules/same (Makefile.am): Augment lib_SOURCES.
52099 2011-05-23  Bruno Haible  <bruno@clisp.org>
52101         safe-write: Move AC_LIBOBJ invocations to module description.
52102         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52103         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52104         instead of gl_SAFE_WRITE.
52105         (Makefile.am): Augment lib_SOURCES.
52107 2011-05-23  Bruno Haible  <bruno@clisp.org>
52109         safe-read: Move AC_LIBOBJ invocations to module description.
52110         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52111         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52112         of gl_SAFE_READ.
52113         (Makefile.am): Augment lib_SOURCES.
52115 2011-05-23  Bruno Haible  <bruno@clisp.org>
52117         safe-alloc: Move AC_LIBOBJ invocations to module description.
52118         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52119         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52121 2011-05-23  Bruno Haible  <bruno@clisp.org>
52123         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52124         * m4/rijndael.m4: Remove file.
52125         * modules/crypto/rijndael (Files): Remove it.
52126         (configure.ac): Remove gl_RIJNDAEL call.
52127         (Makefile.am): Augment lib_SOURCES.
52129 2011-05-23  Bruno Haible  <bruno@clisp.org>
52131         readtokens: Move AC_LIBOBJ invocations to module description.
52132         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52133         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52135 2011-05-23  Bruno Haible  <bruno@clisp.org>
52137         read-file: Move AC_LIBOBJ invocations to module description.
52138         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52139         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52140         of gl_FUNC_READ_FILE.
52141         (Makefile.am): Augment lib_SOURCES.
52143 2011-05-23  Bruno Haible  <bruno@clisp.org>
52145         quotearg: Move AC_LIBOBJ invocations to module description.
52146         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52147         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52149 2011-05-23  Bruno Haible  <bruno@clisp.org>
52151         quote: Move AC_LIBOBJ invocations to module description.
52152         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52153         * modules/quote (Makefile.am): Augment lib_SOURCES.
52155 2011-05-23  Bruno Haible  <bruno@clisp.org>
52157         posixver: Move AC_LIBOBJ invocations to module description.
52158         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52159         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52161 2011-05-23  Bruno Haible  <bruno@clisp.org>
52163         posixtm: Move AC_LIBOBJ invocations to module description.
52164         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52165         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52167 2011-05-23  Bruno Haible  <bruno@clisp.org>
52169         physmem: Move AC_LIBOBJ invocations to module description.
52170         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52171         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52173 2011-05-23  Bruno Haible  <bruno@clisp.org>
52175         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52176         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52177         invocation.
52178         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52180 2011-05-23  Bruno Haible  <bruno@clisp.org>
52182         mpsort: Move AC_LIBOBJ invocations to module description.
52183         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52184         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52186 2011-05-23  Bruno Haible  <bruno@clisp.org>
52188         modechange: Move AC_LIBOBJ invocations to module description.
52189         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52190         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52192 2011-05-23  Bruno Haible  <bruno@clisp.org>
52194         mkdir-p: Move AC_LIBOBJ invocations to module description.
52195         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52196         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52198 2011-05-23  Bruno Haible  <bruno@clisp.org>
52200         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52201         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52202         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52204 2011-05-23  Bruno Haible  <bruno@clisp.org>
52206         mgetgroups: Move AC_LIBOBJ invocations to module description.
52207         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52208         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52210 2011-05-23  Bruno Haible  <bruno@clisp.org>
52212         memxor: Move AC_LIBOBJ invocations to module description.
52213         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52214         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52216 2011-05-23  Bruno Haible  <bruno@clisp.org>
52218         memcoll: Move AC_LIBOBJ invocations to module description.
52219         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52220         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52222 2011-05-23  Bruno Haible  <bruno@clisp.org>
52224         memcasecmp: Move AC_LIBOBJ invocations to module description.
52225         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52226         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52228 2011-05-23  Bruno Haible  <bruno@clisp.org>
52230         crypto/md5: Move AC_LIBOBJ invocations to module description.
52231         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52232         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52234 2011-05-23  Bruno Haible  <bruno@clisp.org>
52236         crypto/md4: Move AC_LIBOBJ invocations to module description.
52237         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52238         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52240 2011-05-23  Bruno Haible  <bruno@clisp.org>
52242         crypto/md2: Move AC_LIBOBJ invocations to module description.
52243         * m4/md2.m4: Remove file.
52244         * modules/crypto/md2 (Files): Remove it.
52245         (configure.ac): Remove gl_MD2 call.
52246         (Makefile.am): Augment lib_SOURCES.
52248 2011-05-23  Bruno Haible  <bruno@clisp.org>
52250         long-options: Move AC_LIBOBJ invocations to module description.
52251         * m4/long-options.m4: Remove file.
52252         * modules/long-options (Files): Remove it.
52253         (configure.ac): Remove gl_LONG_OPTIONS call.
52254         (Makefile.am): Augment lib_SOURCES.
52256 2011-05-23  Bruno Haible  <bruno@clisp.org>
52258         i-ring: Move AC_LIBOBJ invocations to module description.
52259         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52260         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52262 2011-05-23  Bruno Haible  <bruno@clisp.org>
52264         idcache: Move AC_LIBOBJ invocations to module description.
52265         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52266         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52268 2011-05-23  Bruno Haible  <bruno@clisp.org>
52270         human: Move AC_LIBOBJ invocations to module description.
52271         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52272         * modules/human (Makefile.am): Augment lib_SOURCES.
52274 2011-05-23  Bruno Haible  <bruno@clisp.org>
52276         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52277         * m4/hmac-sha1.m4: Remove file.
52278         * modules/crypto/hmac-sha1 (Files): Remove it.
52279         (configure.ac): Remove gl_HMAC_SHA1 call.
52280         (Makefile.am): Augment lib_SOURCES.
52282 2011-05-23  Bruno Haible  <bruno@clisp.org>
52284         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52285         * m4/hmac-md5.m4: Remove file.
52286         * modules/crypto/hmac-md5 (Files): Remove it.
52287         (configure.ac): Remove gl_HMAC_MD5 call.
52288         (Makefile.am): Augment lib_SOURCES.
52290 2011-05-23  Bruno Haible  <bruno@clisp.org>
52292         hash: Move AC_LIBOBJ invocations to module description.
52293         * m4/hash.m4: Remove file.
52294         * modules/hash (Files): Remove it.
52295         (configure.ac): Remove gl_HASH call.
52296         (Makefile.am): Augment lib_SOURCES.
52298 2011-05-23  Bruno Haible  <bruno@clisp.org>
52300         hard-locale: Move AC_LIBOBJ invocations to module description.
52301         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52302         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52304 2011-05-23  Bruno Haible  <bruno@clisp.org>
52306         getugroups: Move AC_LIBOBJ invocations to module description.
52307         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52308         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52310 2011-05-23  Bruno Haible  <bruno@clisp.org>
52312         gettime: Move AC_LIBOBJ invocations to module description.
52313         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52314         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52316 2011-05-23  Bruno Haible  <bruno@clisp.org>
52318         getndelim2: Move AC_LIBOBJ invocations to module description.
52319         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52320         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52322 2011-05-23  Bruno Haible  <bruno@clisp.org>
52324         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52325         * m4/gc-pbkdf2-sha1.m4: Remove file.
52326         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52327         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52328         (Makefile.am): Augment lib_SOURCES.
52330 2011-05-23  Bruno Haible  <bruno@clisp.org>
52332         fts: Move AC_LIBOBJ invocations to module description.
52333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52334         * modules/fts (configure.ac): ... to here.
52336 2011-05-23  Bruno Haible  <bruno@clisp.org>
52338         file-type: Move AC_LIBOBJ invocations to module description.
52339         * m4/file-type.m4: Remove file.
52340         * modules/file-type (Files): Remove it.
52341         (configure.ac): Remove gl_FILE_TYPE call.
52342         (Makefile.am): Augment lib_SOURCES.
52344 2011-05-23  Bruno Haible  <bruno@clisp.org>
52346         filenamecat*: Respect rules for use of AC_LIBOBJ.
52347         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52348         Remove AC_LIBOBJ invocation.
52349         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52350         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52352 2011-05-23  Bruno Haible  <bruno@clisp.org>
52354         filemode: Move AC_LIBOBJ invocations to module description.
52355         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52356         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52358 2011-05-23  Bruno Haible  <bruno@clisp.org>
52360         openat-safer: Move AC_LIBOBJ invocations to module description.
52361         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52362         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52364 2011-05-23  Bruno Haible  <bruno@clisp.org>
52366         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52367         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52368         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52370 2011-05-23  Bruno Haible  <bruno@clisp.org>
52372         exclude: Move AC_LIBOBJ invocations to module description.
52373         * m4/exclude.m4: Remove file.
52374         * modules/exclude (Files): Remove it.
52375         (configure.ac): Remove gl_EXCLUDE call.
52376         (Makefile.am): Augment lib_SOURCES.
52378 2011-05-23  Bruno Haible  <bruno@clisp.org>
52380         dirname*: Respect rules for use of AC_LIBOBJ.
52381         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52382         invocations.
52383         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52384         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52386 2011-05-23  Bruno Haible  <bruno@clisp.org>
52388         dirent-safer: Move AC_LIBOBJ invocations to module description.
52389         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52390         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52392 2011-05-23  Bruno Haible  <bruno@clisp.org>
52394         crypto/des: Move AC_LIBOBJ invocations to module description.
52395         * m4/des.m4: Remove file.
52396         * modules/crypto/des (Files): Remove it.
52397         (configure.ac): Remove gl_DES call.
52398         (Makefile.am): Augment lib_SOURCES.
52400 2011-05-23  Bruno Haible  <bruno@clisp.org>
52402         cycle-check: Move AC_LIBOBJ invocations to module description.
52403         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52404         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52406 2011-05-23  Bruno Haible  <bruno@clisp.org>
52408         c-strtold: Move AC_LIBOBJ invocations to module description.
52409         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52410         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52412 2011-05-23  Bruno Haible  <bruno@clisp.org>
52414         c-strtod: Move AC_LIBOBJ invocations to module description.
52415         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52416         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52418 2011-05-23  Bruno Haible  <bruno@clisp.org>
52420         crc: Move AC_LIBOBJ invocations to module description.
52421         * m4/crc.m4: Remove file.
52422         * modules/crc (Files): Remove it.
52423         (configure.ac): Remove gl_CRC call.
52424         (Makefile.am): Augment lib_SOURCES.
52426 2011-05-23  Bruno Haible  <bruno@clisp.org>
52428         close-stream: Move AC_LIBOBJ invocations to module description.
52429         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52430         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52432 2011-05-23  Bruno Haible  <bruno@clisp.org>
52434         closeout: Move AC_LIBOBJ invocations to module description.
52435         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52436         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52438 2011-05-23  Bruno Haible  <bruno@clisp.org>
52440         closein: Move AC_LIBOBJ invocations to module description.
52441         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52442         * modules/closein (Makefile.am): Augment lib_SOURCES.
52444 2011-05-23  Bruno Haible  <bruno@clisp.org>
52446         cloexec: Move AC_LIBOBJ invocations to module description.
52447         * m4/cloexec.m4: Remove file.
52448         * modules/cloexec (Files): Remove it.
52449         (configure.ac): Remove gl_CLOEXEC call.
52450         (Makefile.am): Augment lib_SOURCES.
52452 2011-05-23  Bruno Haible  <bruno@clisp.org>
52454         check-version: Move AC_LIBOBJ invocations to module description.
52455         * m4/check-version.m4: Remove file.
52456         * modules/check-version (Files): Remove it.
52457         (configure.ac): Remove gl_CHECK_VERSION call.
52458         (Makefile.am): Augment lib_SOURCES.
52460 2011-05-23  Bruno Haible  <bruno@clisp.org>
52462         chdir-safer: Move AC_LIBOBJ invocations to module description.
52463         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52464         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52466 2011-05-23  Bruno Haible  <bruno@clisp.org>
52468         canonicalize: Move AC_LIBOBJ invocations to module description.
52469         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52470         AC_LIBOBJ invocation.
52471         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52473 2011-05-23  Bruno Haible  <bruno@clisp.org>
52475         canon-host: Move AC_LIBOBJ invocations to module description.
52476         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52477         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52478         instead of gl_CANON_HOST.
52479         (Makefile.am): Augment lib_SOURCES.
52481 2011-05-23  Bruno Haible  <bruno@clisp.org>
52483         backupfile: Move AC_LIBOBJ invocations to module description.
52484         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52485         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52487 2011-05-23  Bruno Haible  <bruno@clisp.org>
52489         argmatch: Move AC_LIBOBJ invocations to module description.
52490         * m4/argmatch.m4: Remove file.
52491         * modules/argmatch (Files): Remove it.
52492         (configure.ac): Remove gl_ARGMATCH call.
52493         (Makefile.am): Augment lib_SOURCES.
52495 2011-05-23  Bruno Haible  <bruno@clisp.org>
52497         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52498         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52499         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52501 2011-05-23  Bruno Haible  <bruno@clisp.org>
52503         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52504         * m4/arcfour.m4: Remove file.
52505         * modules/crypto/arcfour (Files): Remove it.
52506         (configure.ac): Remove gl_ARCFOUR call.
52507         (Makefile.am): Augment lib_SOURCES.
52509 2011-05-22  Bruno Haible  <bruno@clisp.org>
52511         write: Move AC_LIBOBJ invocations to module description.
52512         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52513         * modules/write (configure.ac): ... to here.
52515 2011-05-22  Bruno Haible  <bruno@clisp.org>
52517         wmemset: Move AC_LIBOBJ invocations to module description.
52518         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52519         here...
52520         * modules/wmemset (configure.ac): ... to here.
52522 2011-05-22  Bruno Haible  <bruno@clisp.org>
52524         wmemmove: Move AC_LIBOBJ invocations to module description.
52525         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52526         here...
52527         * modules/wmemmove (configure.ac): ... to here.
52529 2011-05-22  Bruno Haible  <bruno@clisp.org>
52531         wmemcpy: Move AC_LIBOBJ invocations to module description.
52532         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52533         here...
52534         * modules/wmemcpy (configure.ac): ... to here.
52536 2011-05-22  Bruno Haible  <bruno@clisp.org>
52538         wmemcmp: Move AC_LIBOBJ invocations to module description.
52539         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52540         here...
52541         * modules/wmemcmp (configure.ac): ... to here.
52543 2011-05-22  Bruno Haible  <bruno@clisp.org>
52545         wmemchr: Move AC_LIBOBJ invocations to module description.
52546         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52547         here...
52548         * modules/wmemchr (configure.ac): ... to here.
52550 2011-05-22  Bruno Haible  <bruno@clisp.org>
52552         wcswidth: Move AC_LIBOBJ invocations to module description.
52553         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52554         here...
52555         * modules/wcswidth (configure.ac): ... to here.
52557 2011-05-22  Bruno Haible  <bruno@clisp.org>
52559         wcwidth: Respect rules for use of AC_LIBOBJ.
52560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52561         invocation from here...
52562         * modules/wcwidth (configure.ac): ... to here.
52563         (Depends-on): Update conditions.
52565 2011-05-22  Bruno Haible  <bruno@clisp.org>
52567         wctype: Move AC_LIBOBJ invocations to module description.
52568         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52569         invocation from here...
52570         * modules/wctype (configure.ac): ... to here.
52571         (Depends-on): Update conditions.
52573 2011-05-22  Bruno Haible  <bruno@clisp.org>
52575         wctrans: Move AC_LIBOBJ invocations to module description.
52576         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52577         invocation from here...
52578         * modules/wctrans (configure.ac): ... to here.
52580 2011-05-22  Bruno Haible  <bruno@clisp.org>
52582         wctomb: Move AC_LIBOBJ invocations to module description.
52583         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52584         invocations from here...
52585         * modules/wctomb (configure.ac): ... to here.
52587 2011-05-22  Bruno Haible  <bruno@clisp.org>
52589         wctob: Move AC_LIBOBJ invocations to module description.
52590         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52591         gl_PREREQ_WCTOB invocations from here...
52592         * modules/wctob (configure.ac): ... to here.
52593         (Depends-on): Update conditions.
52595 2011-05-22  Bruno Haible  <bruno@clisp.org>
52597         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52598         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52599         here...
52600         * modules/wcsxfrm (configure.ac): ... to here.
52602 2011-05-22  Bruno Haible  <bruno@clisp.org>
52604         wcstok: Move AC_LIBOBJ invocations to module description.
52605         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52606         * modules/wcstok (configure.ac): ... to here.
52608 2011-05-22  Bruno Haible  <bruno@clisp.org>
52610         wcsstr: Move AC_LIBOBJ invocations to module description.
52611         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52612         * modules/wcsstr (configure.ac): ... to here.
52614 2011-05-22  Bruno Haible  <bruno@clisp.org>
52616         wcsspn: Move AC_LIBOBJ invocations to module description.
52617         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52618         * modules/wcsspn (configure.ac): ... to here.
52620 2011-05-22  Bruno Haible  <bruno@clisp.org>
52622         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52623         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52624         gl_PREREQ_WCSRTOMBS invocations from here...
52625         * modules/wcsrtombs (configure.ac): ... to here.
52627 2011-05-22  Bruno Haible  <bruno@clisp.org>
52629         wcsrchr: Move AC_LIBOBJ invocations to module description.
52630         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52631         here...
52632         * modules/wcsrchr (configure.ac): ... to here.
52634 2011-05-22  Bruno Haible  <bruno@clisp.org>
52636         wcspbrk: Move AC_LIBOBJ invocations to module description.
52637         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52638         here...
52639         * modules/wcspbrk (configure.ac): ... to here.
52641 2011-05-22  Bruno Haible  <bruno@clisp.org>
52643         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52644         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52645         gl_PREREQ_WCSNRTOMBS invocations from here...
52646         * modules/wcsnrtombs (configure.ac): ... to here.
52648 2011-05-22  Bruno Haible  <bruno@clisp.org>
52650         wcsnlen: Move AC_LIBOBJ invocations to module description.
52651         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52652         here...
52653         * modules/wcsnlen (configure.ac): ... to here.
52655 2011-05-22  Bruno Haible  <bruno@clisp.org>
52657         wcsncpy: Move AC_LIBOBJ invocations to module description.
52658         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52659         here...
52660         * modules/wcsncpy (configure.ac): ... to here.
52662 2011-05-22  Bruno Haible  <bruno@clisp.org>
52664         wcsncmp: Move AC_LIBOBJ invocations to module description.
52665         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52666         here...
52667         * modules/wcsncmp (configure.ac): ... to here.
52669 2011-05-22  Bruno Haible  <bruno@clisp.org>
52671         wcsncat: Move AC_LIBOBJ invocations to module description.
52672         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52673         here...
52674         * modules/wcsncat (configure.ac): ... to here.
52676 2011-05-22  Bruno Haible  <bruno@clisp.org>
52678         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52679         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52680         from here...
52681         * modules/wcsncasecmp (configure.ac): ... to here.
52683 2011-05-22  Bruno Haible  <bruno@clisp.org>
52685         wcslen: Move AC_LIBOBJ invocations to module description.
52686         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52687         * modules/wcslen (configure.ac): ... to here.
52689 2011-05-22  Bruno Haible  <bruno@clisp.org>
52691         wcsdup: Move AC_LIBOBJ invocations to module description.
52692         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52693         * modules/wcsdup (configure.ac): ... to here.
52695 2011-05-22  Bruno Haible  <bruno@clisp.org>
52697         wcscspn: Move AC_LIBOBJ invocations to module description.
52698         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52699         here...
52700         * modules/wcscspn (configure.ac): ... to here.
52702 2011-05-22  Bruno Haible  <bruno@clisp.org>
52704         wcscpy: Move AC_LIBOBJ invocations to module description.
52705         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52706         * modules/wcscpy (configure.ac): ... to here.
52708 2011-05-22  Bruno Haible  <bruno@clisp.org>
52710         wcscoll: Move AC_LIBOBJ invocations to module description.
52711         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52712         here...
52713         * modules/wcscoll (configure.ac): ... to here.
52715 2011-05-22  Bruno Haible  <bruno@clisp.org>
52717         wcscmp: Move AC_LIBOBJ invocations to module description.
52718         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52719         * modules/wcscmp (configure.ac): ... to here.
52721 2011-05-22  Bruno Haible  <bruno@clisp.org>
52723         wcschr: Move AC_LIBOBJ invocations to module description.
52724         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52725         * modules/wcschr (configure.ac): ... to here.
52727 2011-05-22  Bruno Haible  <bruno@clisp.org>
52729         wcscat: Move AC_LIBOBJ invocations to module description.
52730         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52731         * modules/wcscat (configure.ac): ... to here.
52733 2011-05-22  Bruno Haible  <bruno@clisp.org>
52735         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52736         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52737         here...
52738         * modules/wcscasecmp (configure.ac): ... to here.
52740 2011-05-22  Bruno Haible  <bruno@clisp.org>
52742         wcrtomb: Move AC_LIBOBJ invocations to module description.
52743         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52744         invocations from here...
52745         * modules/wcrtomb (configure.ac): ... to here.
52747 2011-05-22  Bruno Haible  <bruno@clisp.org>
52749         wcpncpy: Move AC_LIBOBJ invocations to module description.
52750         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52751         here...
52752         * modules/wcpncpy (configure.ac): ... to here.
52754 2011-05-22  Bruno Haible  <bruno@clisp.org>
52756         wcpcpy: Move AC_LIBOBJ invocations to module description.
52757         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52758         * modules/wcpcpy (configure.ac): ... to here.
52760 2011-05-22  Bruno Haible  <bruno@clisp.org>
52762         waitpid: Move AC_LIBOBJ invocations to module description.
52763         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52764         invocation from here...
52765         * modules/waitpid (configure.ac): ... to here.
52767 2011-05-22  Bruno Haible  <bruno@clisp.org>
52769         utimensat: Move AC_LIBOBJ invocations to module description.
52770         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52771         here...
52772         * modules/utimensat (configure.ac): ... to here.
52774 2011-05-22  Bruno Haible  <bruno@clisp.org>
52776         usleep: Move AC_LIBOBJ invocations to module description.
52777         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52778         here...
52779         * modules/usleep (configure.ac): ... to here.
52781 2011-05-22  Bruno Haible  <bruno@clisp.org>
52783         unlockpt: Move AC_LIBOBJ invocations to module description.
52784         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52785         gl_PREREQ_UNLOCKPT invocations from here...
52786         * modules/unlockpt (configure.ac): ... to here.
52788 2011-05-22  Bruno Haible  <bruno@clisp.org>
52790         unlink: Respect rules for use of AC_LIBOBJ.
52791         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52792         * modules/unlink (configure.ac): ... to here.
52794 2011-05-22  Bruno Haible  <bruno@clisp.org>
52796         uname: Move AC_LIBOBJ invocations to module description.
52797         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52799         here...
52800         * modules/uname (configure.ac): ... to here.
52802 2011-05-22  Bruno Haible  <bruno@clisp.org>
52804         ttyname_r: Move AC_LIBOBJ invocations to module description.
52805         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52806         gl_PREREQ_TTYNAME_R invocations from here...
52807         * modules/ttyname_r (configure.ac): ... to here.
52809 2011-05-22  Bruno Haible  <bruno@clisp.org>
52811         tsearch: Move AC_LIBOBJ invocations to module description.
52812         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52813         invocations from here...
52814         * modules/tsearch (configure.ac): ... to here.
52816 2011-05-22  Bruno Haible  <bruno@clisp.org>
52818         towctrans: Move AC_LIBOBJ invocations to module description.
52819         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52820         AC_LIBOBJ invocation from here...
52821         * modules/towctrans (configure.ac): ... to here.
52823 2011-05-22  Bruno Haible  <bruno@clisp.org>
52825         tmpfile: Move AC_LIBOBJ invocations to module description.
52826         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52827         invocations from here...
52828         * modules/tmpfile (configure.ac): ... to here.
52830 2011-05-22  Bruno Haible  <bruno@clisp.org>
52832         times: Move AC_LIBOBJ invocations to module description.
52833         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52834         * modules/times (configure.ac): ... to here.
52836 2011-05-22  Bruno Haible  <bruno@clisp.org>
52838         time_r: Move AC_LIBOBJ invocations to module description.
52839         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52840         invocations from here...
52841         * modules/time_r (configure.ac): ... to here.
52843 2011-05-22  Bruno Haible  <bruno@clisp.org>
52845         timegm: Move AC_LIBOBJ invocations to module description.
52846         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52847         invocations from here...
52848         * modules/timegm (configure.ac): ... to here.
52850 2011-05-22  Bruno Haible  <bruno@clisp.org>
52852         tcgetsid: Move AC_LIBOBJ invocations to module description.
52853         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52854         and gl_PREREQ_TCGETSID invocations from here...
52855         * modules/tcgetsid (configure.ac): ... to here.
52856         (Depends-on): Update conditions.
52858 2011-05-22  Bruno Haible  <bruno@clisp.org>
52860         symlinkat: Move AC_LIBOBJ invocations to module description.
52861         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52862         here...
52863         * modules/symlinkat (configure.ac): ... to here.
52865 2011-05-22  Bruno Haible  <bruno@clisp.org>
52867         symlink: Move AC_LIBOBJ invocations to module description.
52868         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52869         here...
52870         * modules/symlink (configure.ac): ... to here.
52872 2011-05-22  Bruno Haible  <bruno@clisp.org>
52874         strverscmp: Move AC_LIBOBJ invocations to module description.
52875         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52877         from here...
52878         * modules/strverscmp (configure.ac): ... to here.
52880 2011-05-22  Bruno Haible  <bruno@clisp.org>
52882         strtok_r: Move AC_LIBOBJ invocations to module description.
52883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52884         and gl_PREREQ_STRTOK_R invocations from here...
52885         * modules/strtok_r (configure.ac): ... to here.
52886         (Depends-on): Update conditions.
52888 2011-05-22  Bruno Haible  <bruno@clisp.org>
52890         strtoumax: Move AC_LIBOBJ invocations to module description.
52891         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52892         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52893         from here...
52894         * modules/strtoumax (configure.ac): ... to here.
52896 2011-05-22  Bruno Haible  <bruno@clisp.org>
52898         strtoimax: Move AC_LIBOBJ invocations to module description.
52899         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52900         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52901         from here...
52902         * modules/strtoimax (configure.ac): ... to here.
52904 2011-05-22  Bruno Haible  <bruno@clisp.org>
52906         strtoull: Move AC_LIBOBJ invocations to module description.
52907         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52909         from here...
52910         * modules/strtoull (configure.ac): ... to here.
52912 2011-05-22  Bruno Haible  <bruno@clisp.org>
52914         strtoll: Move AC_LIBOBJ invocations to module description.
52915         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52916         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52917         here...
52918         * modules/strtoll (configure.ac): ... to here.
52920 2011-05-22  Bruno Haible  <bruno@clisp.org>
52922         strtoul: Move AC_LIBOBJ invocations to module description.
52923         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52924         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52925         * modules/strtoul (configure.ac): ... to here.
52927 2011-05-22  Bruno Haible  <bruno@clisp.org>
52929         strtol: Move AC_LIBOBJ invocations to module description.
52930         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52931         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52932         * modules/strtol (configure.ac): ... to here.
52934 2011-05-22  Bruno Haible  <bruno@clisp.org>
52936         strtod: Move AC_LIBOBJ invocations to module description.
52937         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52938         invocations from here...
52939         * modules/strtod (configure.ac): ... to here.
52941 2011-05-22  Bruno Haible  <bruno@clisp.org>
52943         strstr*: Move AC_LIBOBJ invocations to module description.
52944         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52945         invocations from here...
52946         * modules/strstr-simple (configure.ac): ... to here.
52947         * modules/strstr (configure.ac): ... and here.
52949 2011-05-22  Bruno Haible  <bruno@clisp.org>
52951         strsignal: Move AC_LIBOBJ invocations to module description.
52952         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52953         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52954         * modules/strsignal (configure.ac): ... to here.
52955         (Depends-on): Update conditions.
52957 2011-05-22  Bruno Haible  <bruno@clisp.org>
52959         strsep: Move AC_LIBOBJ invocations to module description.
52960         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52962         here...
52963         * modules/strsep (configure.ac): ... to here.
52965 2011-05-22  Bruno Haible  <bruno@clisp.org>
52967         strptime: Move AC_LIBOBJ invocations to module description.
52968         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52969         gl_PREREQ_STRPTIME invocations from here...
52970         * modules/strptime (configure.ac): ... to here.
52972 2011-05-22  Bruno Haible  <bruno@clisp.org>
52974         strpbrk: Move AC_LIBOBJ invocations to module description.
52975         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52977         here...
52978         * modules/strpbrk (configure.ac): ... to here.
52980 2011-05-22  Bruno Haible  <bruno@clisp.org>
52982         strnlen: Move AC_LIBOBJ invocations to module description.
52983         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52984         invocations from here...
52985         * modules/strnlen (configure.ac): ... to here.
52987 2011-05-22  Bruno Haible  <bruno@clisp.org>
52989         strndup: Move AC_LIBOBJ invocations to module description.
52990         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52991         invocations from here...
52992         * modules/strndup (configure.ac): ... to here.
52993         (Depends-on): Update conditions.
52995 2011-05-22  Bruno Haible  <bruno@clisp.org>
52997         strncat: Move AC_LIBOBJ invocations to module description.
52998         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52999         invocations from here...
53000         * modules/strncat (configure.ac): ... to here.
53002 2011-05-22  Bruno Haible  <bruno@clisp.org>
53004         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53005         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53006         invocations from here...
53007         * modules/strdup (configure.ac): ... to here.
53008         * modules/strdup-posix (configure.ac): ... and here.
53010 2011-05-22  Bruno Haible  <bruno@clisp.org>
53012         strcspn: Move AC_LIBOBJ invocations to module description.
53013         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53015         here...
53016         * modules/strcspn (configure.ac): ... to here.
53018 2011-05-22  Bruno Haible  <bruno@clisp.org>
53020         strchrnul: Move AC_LIBOBJ invocations to module description.
53021         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53022         gl_PREREQ_STRCHRNUL invocations from here...
53023         * modules/strchrnul (configure.ac): ... to here.
53025 2011-05-22  Bruno Haible  <bruno@clisp.org>
53027         strcasestr*: Move AC_LIBOBJ invocations to module description.
53028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53029         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53030         * modules/strcasestr-simple (configure.ac): ... to here.
53031         * modules/strcasestr (configure.ac): ... and here.
53033 2011-05-22  Bruno Haible  <bruno@clisp.org>
53035         strcase: Move AC_LIBOBJ invocations to module description.
53036         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53037         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53038         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53039         gl_PREREQ_STRNCASECMP invocations from here...
53040         * modules/strcase (configure.ac): ... to here.
53042 2011-05-22  Bruno Haible  <bruno@clisp.org>
53044         stpncpy: Move AC_LIBOBJ invocations to module description.
53045         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53046         here...
53047         * modules/stpncpy (configure.ac): ... to here.
53049 2011-05-22  Bruno Haible  <bruno@clisp.org>
53051         stpcpy: Move AC_LIBOBJ invocations to module description.
53052         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53054         here...
53055         * modules/stpcpy (configure.ac): ... to here.
53057 2011-05-21  Bruno Haible  <bruno@clisp.org>
53059         stat: Move AC_LIBOBJ invocations to module description.
53060         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53061         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53062         here...
53063         * modules/stat (configure.ac): ... to here.
53065 2011-05-21  Bruno Haible  <bruno@clisp.org>
53067         sleep: Move AC_LIBOBJ invocations to module description.
53068         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53069         * modules/sleep (configure.ac): ... to here.
53071 2011-05-21  Bruno Haible  <bruno@clisp.org>
53073         signbit: Move AC_LIBOBJ invocations to module description.
53074         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53075         * modules/signbit (configure.ac): ... to here.
53077 2011-05-21  Bruno Haible  <bruno@clisp.org>
53079         sigprocmask: Move AC_LIBOBJ invocations to module description.
53080         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53081         gl_PREREQ_SIGPROMASK invocations from here...
53082         * modules/sigprocmask (configure.ac): ... to here.
53084 2011-05-21  Bruno Haible  <bruno@clisp.org>
53086         sigaction: Move AC_LIBOBJ invocations to module description.
53087         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53088         gl_PREREQ_SIGACTION invocations from here...
53089         * modules/sigaction (configure.ac): ... to here.
53091 2011-05-21  Bruno Haible  <bruno@clisp.org>
53093         sig2str: Move AC_LIBOBJ invocations to module description.
53094         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53096         here...
53097         * modules/sig2str (configure.ac): ... to here.
53099 2011-05-21  Bruno Haible  <bruno@clisp.org>
53101         setlocale: Move AC_LIBOBJ invocations to module description.
53102         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53103         gl_PREREQ_SETLOCALE invocations from here...
53104         * modules/setlocale (configure.ac): ... to here.
53106 2011-05-21  Bruno Haible  <bruno@clisp.org>
53108         unsetenv: Move AC_LIBOBJ invocations to module description.
53109         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53110         and gl_PREREQ_UNSETENV invocations from here...
53111         * modules/unsetenv (configure.ac): ... to here.
53112         (Depends-on): Update.
53114 2011-05-21  Bruno Haible  <bruno@clisp.org>
53116         setenv: Move AC_LIBOBJ invocations to module description.
53117         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53118         here...
53119         * modules/setenv (configure.ac): ... to here.
53121 2011-05-21  Bruno Haible  <bruno@clisp.org>
53123         selinux-h: Move AC_LIBOBJ invocations to module description.
53124         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53125         AC_LIBOBJ invocation from here...
53126         * modules/selinux-h (configure.ac): ... to here.
53128 2011-05-21  Bruno Haible  <bruno@clisp.org>
53130         select: Respect rules for use of AC_LIBOBJ.
53131         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53132         here...
53133         * modules/select (configure.ac): ... to here.
53135 2011-05-21  Bruno Haible  <bruno@clisp.org>
53137         scandir: Move AC_LIBOBJ invocations to module description.
53138         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53139         invocations from here...
53140         * modules/scandir (configure.ac): ... to here.
53142 2011-05-21  Bruno Haible  <bruno@clisp.org>
53144         rpmatch: Move AC_LIBOBJ invocations to module description.
53145         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53147         here...
53148         * modules/rpmatch (configure.ac): ... to here.
53150 2011-05-21  Bruno Haible  <bruno@clisp.org>
53152         rmdir: Respect rules for use of AC_LIBOBJ.
53153         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53154         * modules/rmdir (configure.ac): ... to here.
53156 2011-05-21  Bruno Haible  <bruno@clisp.org>
53158         renameat: Move AC_LIBOBJ invocations to module description.
53159         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53160         here...
53161         * modules/renameat (configure.ac): ... to here.
53163 2011-05-21  Bruno Haible  <bruno@clisp.org>
53165         rename: Respect rules for use of AC_LIBOBJ.
53166         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53167         here...
53168         * modules/rename (configure.ac): ... to here.
53170 2011-05-21  Bruno Haible  <bruno@clisp.org>
53172         remove: Move AC_LIBOBJ invocations to module description.
53173         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53174         here...
53175         * modules/remove (configure.ac): ... to here.
53177 2011-05-21  Bruno Haible  <bruno@clisp.org>
53179         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53180         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53181         macro.
53182         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53183         * modules/relocatable-lib (configure.ac): ... to here.
53184         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53185         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53187 2011-05-21  Bruno Haible  <bruno@clisp.org>
53189         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53190         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53191         here...
53192         * modules/relocatable-prog (configure.ac): ... to here.
53194 2011-05-21  Bruno Haible  <bruno@clisp.org>
53196         regex: Move AC_LIBOBJ invocations to module description.
53197         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53198         invocations from here...
53199         * modules/regex (configure.ac): ... to here.
53201 2011-05-21  Bruno Haible  <bruno@clisp.org>
53203         realloc-*: Move AC_LIBOBJ invocations to module description.
53204         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53205         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53206         AC_LIBOBJ invocations from here...
53207         * modules/realloc-gnu (configure.ac): ... to here.
53208         * modules/realloc-posix (configure.ac): ... and here.
53210 2011-05-21  Bruno Haible  <bruno@clisp.org>
53212         readutmp: Move AC_LIBOBJ invocations to module description.
53213         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53214         * modules/readutmp (configure.ac): ... to here.
53216 2011-05-21  Bruno Haible  <bruno@clisp.org>
53218         readlinkat: Move AC_LIBOBJ invocations to module description.
53219         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53220         here...
53221         * modules/readlinkat (configure.ac): ... to here.
53223 2011-05-21  Bruno Haible  <bruno@clisp.org>
53225         readlink: Move AC_LIBOBJ invocations to module description.
53226         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53227         gl_PREREQ_READLINK invocations from here...
53228         * modules/readlink (configure.ac): ... to here.
53230 2011-05-21  Bruno Haible  <bruno@clisp.org>
53232         readline: Move AC_LIBOBJ invocations to module description.
53233         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53234         gl_PREREQ_READLINE invocations from here...
53235         * modules/readline (configure.ac): ... to here.
53237 2011-05-21  Bruno Haible  <bruno@clisp.org>
53239         read: Move AC_LIBOBJ invocations to module description.
53240         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53241         * modules/read (configure.ac): ... to here.
53243 2011-05-21  Bruno Haible  <bruno@clisp.org>
53245         rawmemchr: Move AC_LIBOBJ invocations to module description.
53246         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53248         from here...
53249         * modules/rawmemchr (configure.ac): ... to here.
53251 2011-05-21  Bruno Haible  <bruno@clisp.org>
53253         random_r: Move AC_LIBOBJ invocations to module description.
53254         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53255         gl_PREREQ_RANDOM_R invocations from here...
53256         * modules/random_r (configure.ac): ... to here.
53258 2011-05-21  Bruno Haible  <bruno@clisp.org>
53260         pwrite: Move AC_LIBOBJ invocations to module description.
53261         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53262         * modules/pwrite (configure.ac): ... to here.
53264 2011-05-21  Bruno Haible  <bruno@clisp.org>
53266         putenv: Move AC_LIBOBJ invocations to module description.
53267         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53268         * modules/putenv (configure.ac): ... to here.
53270 2011-05-21  Bruno Haible  <bruno@clisp.org>
53272         login_tty: Move AC_LIBOBJ invocations to module description.
53273         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53274         * modules/login_tty (configure.ac): ... to here.
53276 2011-05-21  Bruno Haible  <bruno@clisp.org>
53278         openpty: Move AC_LIBOBJ invocations to module description.
53279         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53280         * modules/openpty (configure.ac): ... to here.
53282 2011-05-21  Bruno Haible  <bruno@clisp.org>
53284         forkpty: Move AC_LIBOBJ invocations to module description.
53285         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53286         * modules/forkpty (configure.ac): ... to here.
53288 2011-05-21  Bruno Haible  <bruno@clisp.org>
53290         ptsname: Move AC_LIBOBJ invocations to module description.
53291         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53292         invocations from here...
53293         * modules/ptsname (configure.ac): ... to here.
53295 2011-05-21  Bruno Haible  <bruno@clisp.org>
53297         pread: Move AC_LIBOBJ invocations to module description.
53298         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53299         * modules/pread (configure.ac): ... to here.
53301 2011-05-21  Bruno Haible  <bruno@clisp.org>
53303         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53304         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53305         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53306         * modules/posix_spawn (configure.ac): ... to here.
53307         * modules/posix_spawnp (configure.ac): ... and here.
53309 2011-05-21  Bruno Haible  <bruno@clisp.org>
53311         popen: Move AC_LIBOBJ invocations to module description.
53312         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53313         invocations from here...
53314         * modules/popen (configure.ac): ... to here.
53316 2011-05-21  Bruno Haible  <bruno@clisp.org>
53318         poll: Move AC_LIBOBJ invocations to module description.
53319         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53320         invocations from here...
53321         * modules/poll (configure.ac): ... to here.
53323 2011-05-21  Bruno Haible  <bruno@clisp.org>
53325         pipe-posix: Move AC_LIBOBJ invocations to module description.
53326         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53327         * modules/pipe-posix (configure.ac): ... to here.
53329 2011-05-21  Bruno Haible  <bruno@clisp.org>
53331         openat: Respect rules for use of AC_LIBOBJ.
53332         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53333         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53334         * modules/openat (configure.ac): ... to here.
53336 2011-05-21  Bruno Haible  <bruno@clisp.org>
53338         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53339         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53340         invocation from here...
53341         * modules/obstack-printf (configure.ac): ... to here.
53342         * modules/obstack-printf-posix (configure.ac): ... and here.
53344 2011-05-21  Bruno Haible  <bruno@clisp.org>
53346         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53347         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53348         from here...
53349         * modules/nl_langinfo (configure.ac): ... to here.
53351 2011-05-21  Bruno Haible  <bruno@clisp.org>
53353         nanosleep: Move AC_LIBOBJ invocations to module description.
53354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53355         gl_PREREQ_NANOSLEEP invocations from here...
53356         * modules/nanosleep (configure.ac): ... to here.
53358 2011-05-21  Bruno Haible  <bruno@clisp.org>
53360         mountlist: Move AC_LIBOBJ invocations to module description.
53361         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53362         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53363         * modules/mountlist (configure.ac): ... to here.
53365 2011-05-21  Bruno Haible  <bruno@clisp.org>
53367         mktime: Respect rules for use of AC_LIBOBJ.
53368         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53369         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53370         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53371         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53372         * modules/mktime (configure.ac): ... to here.
53373         * modules/mktime-internal (configure.ac): ... and here.
53374         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53376 2011-05-21  Bruno Haible  <bruno@clisp.org>
53378         mkstemps: Move AC_LIBOBJ invocations to module description.
53379         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53380         here...
53381         * modules/mkstemps (configure.ac): ... to here.
53383 2011-05-21  Bruno Haible  <bruno@clisp.org>
53385         mkstemp: Move AC_LIBOBJ invocations to module description.
53386         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53387         gl_PREREQ_MKSTEMP invocations from here...
53388         * modules/mkstemp (configure.ac): ... to here.
53390 2011-05-21  Bruno Haible  <bruno@clisp.org>
53392         mkostemps: Move AC_LIBOBJ invocations to module description.
53393         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53394         here...
53395         * modules/mkostemps (configure.ac): ... to here.
53397 2011-05-21  Bruno Haible  <bruno@clisp.org>
53399         mkostemp: Move AC_LIBOBJ invocations to module description.
53400         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53401         gl_PREREQ_MKOSTEMP invocations from here...
53402         * modules/mkostemp (configure.ac): ... to here.
53404 2011-05-21  Bruno Haible  <bruno@clisp.org>
53406         mknod: Move AC_LIBOBJ invocations to module description.
53407         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53408         * modules/mknod (configure.ac): ... to here.
53410 2011-05-21  Bruno Haible  <bruno@clisp.org>
53412         mkfifoat: Move AC_LIBOBJ invocations to module description.
53413         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53414         here...
53415         * modules/mkfifoat (configure.ac): ... to here.
53417 2011-05-21  Bruno Haible  <bruno@clisp.org>
53419         mkfifo: Respect rules for use of AC_LIBOBJ.
53420         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53421         here...
53422         * modules/mkfifo (configure.ac): ... to here.
53424 2011-05-21  Bruno Haible  <bruno@clisp.org>
53426         mkdtemp: Move AC_LIBOBJ invocations to module description.
53427         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53428         invocations from here...
53429         * modules/mkdtemp (configure.ac): ... to here.
53431 2011-05-21  Bruno Haible  <bruno@clisp.org>
53433         mkdir: Move AC_LIBOBJ invocations to module description.
53434         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53435         * modules/mkdir (configure.ac): ... to here.
53437 2011-05-21  Bruno Haible  <bruno@clisp.org>
53439         memset: Move AC_LIBOBJ invocations to module description.
53440         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53442         here...
53443         * modules/memset (configure.ac): ... to here.
53445 2011-05-21  Bruno Haible  <bruno@clisp.org>
53447         memrchr: Move AC_LIBOBJ invocations to module description.
53448         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53450         here...
53451         * modules/memrchr (configure.ac): ... to here.
53453 2011-05-21  Bruno Haible  <bruno@clisp.org>
53455         mempcpy: Move AC_LIBOBJ invocations to module description.
53456         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53457         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53458         here...
53459         * modules/mempcpy (configure.ac): ... to here.
53461 2011-05-21  Bruno Haible  <bruno@clisp.org>
53463         memmove: Move AC_LIBOBJ invocations to module description.
53464         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53465         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53466         here...
53467         * modules/memmove (configure.ac): ... to here.
53469 2011-05-21  Bruno Haible  <bruno@clisp.org>
53471         memmem*: Move AC_LIBOBJ invocations to module description.
53472         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53473         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53474         here...
53475         (gl_FUNC_MEMMEM): ... and here...
53476         * modules/memmem-simple (configure.ac): ... to here.
53477         * modules/memmem (configure.ac): ... and here.
53479 2011-05-21  Bruno Haible  <bruno@clisp.org>
53481         memcpy: Move AC_LIBOBJ invocations to module description.
53482         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53483         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53484         here...
53485         * modules/memcpy (configure.ac): ... to here.
53487 2011-05-21  Bruno Haible  <bruno@clisp.org>
53489         memcmp: Simplify autoconf macro.
53490         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53491         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53492         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53494 2011-05-21  Bruno Haible  <bruno@clisp.org>
53496         memcmp: Move AC_LIBOBJ invocations to module description.
53497         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53498         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53499         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53500         * modules/memcmp (configure.ac): ... to here.
53501         (Depends-on): Update conditions.
53503 2011-05-21  Bruno Haible  <bruno@clisp.org>
53505         memchr: Respect rules for use of AC_LIBOBJ.
53506         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53507         invocations from here...
53508         * modules/memchr (configure.ac): ... to here.
53510 2011-05-21  Bruno Haible  <bruno@clisp.org>
53512         mbtowc: Move AC_LIBOBJ invocations to module description.
53513         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53514         invocations from here...
53515         * modules/mbtowc (configure.ac): ... to here.
53517 2011-05-21  Bruno Haible  <bruno@clisp.org>
53519         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53520         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53521         gl_PREREQ_MBSRTOWCS invocations from here...
53522         * modules/mbsrtowcs (configure.ac): ... to here.
53524 2011-05-21  Bruno Haible  <bruno@clisp.org>
53526         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53527         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53528         gl_PREREQ_MBSNRTOWCS invocations from here...
53529         * modules/mbsnrtowcs (configure.ac): ... to here.
53531 2011-05-21  Bruno Haible  <bruno@clisp.org>
53533         mbsinit: Move AC_LIBOBJ invocations to module description.
53534         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53535         invocations from here...
53536         * modules/mbsinit (configure.ac): ... to here.
53538 2011-05-21  Bruno Haible  <bruno@clisp.org>
53540         mbrlen: Move AC_LIBOBJ invocations to module description.
53541         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53542         invocations from here...
53543         * modules/mbrlen (configure.ac): ... to here.
53545 2011-05-21  Bruno Haible  <bruno@clisp.org>
53547         mbrtowc: Respect rules for use of AC_LIBOBJ.
53548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53549         invocations from here...
53550         * modules/mbrtowc (configure.ac): ... to here.
53552 2011-05-21  Bruno Haible  <bruno@clisp.org>
53554         malloc-*: Move AC_LIBOBJ invocations to module description.
53555         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53556         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53557         AC_LIBOBJ invocations from here...
53558         * modules/malloc-gnu (configure.ac): ... to here.
53559         * modules/malloc-posix (configure.ac): ... and here.
53561 2011-05-21  Bruno Haible  <bruno@clisp.org>
53563         lstat, openat: Respect rules for use of AC_LIBOBJ.
53564         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53566         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53567         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53568         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53569         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53570         here.
53571         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53573 2011-05-21  Bruno Haible  <bruno@clisp.org>
53575         lseek: Move AC_LIBOBJ invocations to module description.
53576         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53577         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53578         * modules/lseek (configure.ac): ... to here.
53580 2011-05-21  Bruno Haible  <bruno@clisp.org>
53582         linkat: Move AC_LIBOBJ invocations to module description.
53583         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53584         here...
53585         * modules/linkat (configure.ac): ... to here.
53587 2011-05-21  Bruno Haible  <bruno@clisp.org>
53589         link: Respect rules for use of AC_LIBOBJ.
53590         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53591         * modules/link (configure.ac): ... to here.
53593 2011-05-21  Bruno Haible  <bruno@clisp.org>
53595         lchown: Move AC_LIBOBJ invocations to module description.
53596         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53597         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53598         * modules/lchown (configure.ac): ... to here.
53600 2011-05-21  Bruno Haible  <bruno@clisp.org>
53602         iswctype: Move AC_LIBOBJ invocations to module description.
53603         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53604         here...
53605         * modules/iswctype (configure.ac): ... to here.
53607 2011-05-21  Bruno Haible  <bruno@clisp.org>
53609         iswblank: Move AC_LIBOBJ invocations to module description.
53610         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53611         here...
53612         * modules/iswblank (configure.ac): ... to here.
53614 2011-05-21  Bruno Haible  <bruno@clisp.org>
53616         atanl: Move AC_LIBOBJ invocations to module description.
53617         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53618         * modules/atanl (configure.ac): ... to here.
53620 2011-05-21  Bruno Haible  <bruno@clisp.org>
53622         acosl: Move AC_LIBOBJ invocations to module description.
53623         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53624         * modules/acosl (configure.ac): ... to here.
53626 2011-05-21  Bruno Haible  <bruno@clisp.org>
53628         asinl: Respect rules for use of AC_LIBOBJ.
53629         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53630         * modules/asinl (configure.ac): ... to here.
53632 2011-05-21  Bruno Haible  <bruno@clisp.org>
53634         tanl: Move AC_LIBOBJ invocations to module description.
53635         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53636         * modules/tanl (configure.ac): ... to here.
53638 2011-05-21  Bruno Haible  <bruno@clisp.org>
53640         cosl: Move AC_LIBOBJ invocations to module description.
53641         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53642         * modules/cosl (configure.ac): ... to here.
53644 2011-05-21  Bruno Haible  <bruno@clisp.org>
53646         sinl: Move AC_LIBOBJ invocations to module description.
53647         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53648         * modules/sinl (configure.ac): ... to here.
53650 2011-05-21  Bruno Haible  <bruno@clisp.org>
53652         logl: Move AC_LIBOBJ invocations to module description.
53653         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53654         * modules/logl (configure.ac): ... to here.
53656 2011-05-21  Bruno Haible  <bruno@clisp.org>
53658         expl: Move AC_LIBOBJ invocations to module description.
53659         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53660         * modules/expl (configure.ac): ... to here.
53662 2011-05-21  Bruno Haible  <bruno@clisp.org>
53664         roundl: Move AC_LIBOBJ invocations to module description.
53665         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53666         * modules/roundl (configure.ac): ... to here.
53668 2011-05-21  Bruno Haible  <bruno@clisp.org>
53670         round: Move AC_LIBOBJ invocations to module description.
53671         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53672         * modules/round (configure.ac): ... to here.
53674 2011-05-21  Bruno Haible  <bruno@clisp.org>
53676         roundf: Move AC_LIBOBJ invocations to module description.
53677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53678         * modules/roundf (configure.ac): ... to here.
53680 2011-05-21  Bruno Haible  <bruno@clisp.org>
53682         truncl: Move AC_LIBOBJ invocations to module description.
53683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53684         * modules/truncl (configure.ac): ... to here.
53686 2011-05-21  Bruno Haible  <bruno@clisp.org>
53688         trunc: Move AC_LIBOBJ invocations to module description.
53689         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53690         * modules/trunc (configure.ac): ... to here.
53692 2011-05-21  Bruno Haible  <bruno@clisp.org>
53694         truncf: Move AC_LIBOBJ invocations to module description.
53695         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53696         * modules/truncf (configure.ac): ... to here.
53698 2011-05-21  Bruno Haible  <bruno@clisp.org>
53700         ceill: Move AC_LIBOBJ invocations to module description.
53701         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53702         * modules/ceill (configure.ac): ... to here.
53704 2011-05-21  Bruno Haible  <bruno@clisp.org>
53706         ceil: Move AC_LIBOBJ invocations to module description.
53707         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53708         * modules/ceil (configure.ac): ... to here.
53710 2011-05-21  Bruno Haible  <bruno@clisp.org>
53712         ceilf: Move AC_LIBOBJ invocations to module description.
53713         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53714         * modules/ceilf (configure.ac): ... to here.
53716 2011-05-21  Bruno Haible  <bruno@clisp.org>
53718         floorl: Respect rules for use of AC_LIBOBJ.
53719         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53720         * modules/floorl (configure.ac): ... to here.
53722 2011-05-21  Bruno Haible  <bruno@clisp.org>
53724         floor: Respect rules for use of AC_LIBOBJ.
53725         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53726         * modules/floor (configure.ac): ... to here.
53728 2011-05-21  Bruno Haible  <bruno@clisp.org>
53730         floorf: Move AC_LIBOBJ invocations to module description.
53731         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53732         * modules/floorf (configure.ac): ... to here.
53734 2011-05-20  Bruno Haible  <bruno@clisp.org>
53736         sqrtl: Respect rules for use of AC_LIBOBJ.
53737         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53738         * modules/sqrtl (configure.ac): ... to here.
53740 2011-05-20  Bruno Haible  <bruno@clisp.org>
53742         ldexpl: Respect rules for use of AC_LIBOBJ.
53743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53744         * modules/ldexpl (configure.ac): ... to here.
53746 2011-05-20  Bruno Haible  <bruno@clisp.org>
53748         frexpl*: Respect rules for use of AC_LIBOBJ.
53749         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53750         invocation from here...
53751         * modules/frexpl (configure.ac): ... to here.
53752         * modules/frexpl-nolibm (configure.ac): ... and here.
53754 2011-05-20  Bruno Haible  <bruno@clisp.org>
53756         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53757         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53758         invocation from here...
53759         * modules/frexp (configure.ac): ... to here.
53760         * modules/frexp-nolibm (configure.ac): ... and here.
53762 2011-05-20  Bruno Haible  <bruno@clisp.org>
53764         isnan: Respect rules for use of AC_LIBOBJ.
53765         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53766         invocations here.
53767         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53768         REPLACE_ISNAN.
53769         * modules/isnand (configure.ac): Likewise.
53770         * modules/isnanl (configure.ac): Likewise.
53772 2011-05-20  Bruno Haible  <bruno@clisp.org>
53774         isnanl*: Respect rules for use of AC_LIBOBJ.
53775         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53776         invocation from here...
53777         * modules/isnanl (configure.ac): ... to here.
53778         * modules/isnanl-nolibm (configure.ac): ... and here.
53780 2011-05-20  Bruno Haible  <bruno@clisp.org>
53782         isnand*: Move AC_LIBOBJ invocations to module description.
53783         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53784         invocation from here...
53785         * modules/isnand (configure.ac): ... to here.
53786         * modules/isnand-nolibm (configure.ac): ... and here.
53788 2011-05-20  Bruno Haible  <bruno@clisp.org>
53790         isnanf*: Move AC_LIBOBJ invocations to module description.
53791         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53792         invocation from here...
53793         * modules/isnanf (configure.ac): ... to here.
53794         * modules/isnanf-nolibm (configure.ac): ... and here.
53796 2011-05-20  Bruno Haible  <bruno@clisp.org>
53798         isnan*: Separate the AC_LIBOBJ invocations.
53799         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53800         AC_LIBOBJ invocation.
53801         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53802         here.
53803         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53804         AC_LIBOBJ invocation.
53805         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53806         here.
53807         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53808         AC_LIBOBJ invocation.
53809         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53810         here.
53811         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53813 2011-05-08  Bruno Haible  <bruno@clisp.org>
53815         isinf: Move AC_LIBOBJ invocations to module description.
53816         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53817         * modules/isinf (configure.ac): ... to here.
53819 2011-05-08  Bruno Haible  <bruno@clisp.org>
53821         isfinite: Move AC_LIBOBJ invocations to module description.
53822         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53823         * modules/isfinite (configure.ac): ... to here.
53825 2011-05-08  Bruno Haible  <bruno@clisp.org>
53827         isblank: Move AC_LIBOBJ invocations to module description.
53828         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53829         here...
53830         * modules/isblank (configure.ac): ... to here.
53832 2011-05-08  Bruno Haible  <bruno@clisp.org>
53834         isapipe: Move AC_LIBOBJ invocations to module description.
53835         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53836         gl_PREREQ_ISAPIPE invocations from here...
53837         * modules/isapipe (configure.ac): ... to here.
53838         (Depends-on): Update condition.
53840 2011-05-08  Bruno Haible  <bruno@clisp.org>
53842         ioctl: Move AC_LIBOBJ invocations to module description.
53843         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53844         invocations from here...
53845         * modules/ioctl (configure.ac): ... to here.
53846         (Depends-on): Update condition.
53848 2011-05-08  Bruno Haible  <bruno@clisp.org>
53850         imaxdiv: Move AC_LIBOBJ invocations to module description.
53851         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53852         invocations from here...
53853         * modules/imaxdiv (configure.ac): ... to here.
53855 2011-05-08  Bruno Haible  <bruno@clisp.org>
53857         imaxabs: Move AC_LIBOBJ invocations to module description.
53858         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53859         invocations from here...
53860         * modules/imaxabs (configure.ac): ... to here.
53862 2011-05-08  Bruno Haible  <bruno@clisp.org>
53864         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53866         AC_LIBOBJ invocations from here...
53867         * modules/getaddrinfo (configure.ac): ... to here.
53868         (Depends-on): Add conditions.
53870 2011-05-08  Bruno Haible  <bruno@clisp.org>
53872         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53873         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53874         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53875         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53876         (gl_PREREQ_INET_PTON): ... from here.
53877         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53878         gl_PREREQ_INET_PTON here.
53879         (Depends-on): Update condition.
53881 2011-05-08  Bruno Haible  <bruno@clisp.org>
53883         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53884         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53885         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53886         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53887         (gl_PREREQ_INET_NTOP): ... from here.
53888         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53889         gl_PREREQ_INET_NTOP here.
53890         (Depends-on): Update condition.
53892 2011-05-08  Bruno Haible  <bruno@clisp.org>
53894         iconv_open: Move AC_LIBOBJ invocations to module description.
53895         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53896         AC_LIBOBJ invocations from here...
53897         * modules/iconv_open (configure.ac): ... to here.
53899 2011-05-08  Bruno Haible  <bruno@clisp.org>
53901         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53902         If module 'iconv_open' is among the main modules and module
53903         'iconv_open-utf' is among the tests dependencies, then
53904         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53905         return the special iconv_t values. Therefore iconv() and iconv_close()
53906         must support these special iconv_t values, already in lib, not only in
53907         tests.
53908         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53910         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53911         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53912         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53913         (Depends-on): Add the dependencies of iconv_open-utf.
53914         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53915         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53916         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53918 2011-05-08  Bruno Haible  <bruno@clisp.org>
53920         group-member: Move AC_LIBOBJ invocations to module description.
53921         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53922         gl_PREREQ_GROUP_MEMBER invocations from here...
53923         * modules/group-member (configure.ac): ... to here.
53925 2011-05-08  Bruno Haible  <bruno@clisp.org>
53927         grantpt: Move AC_LIBOBJ invocations to module description.
53928         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53929         invocations from here...
53930         * modules/grantpt (configure.ac): ... to here.
53932 2011-05-08  Bruno Haible  <bruno@clisp.org>
53934         glob: Move AC_LIBOBJ invocations to module description.
53935         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53936         from here...
53937         * modules/glob (configure.ac): ... to here.
53939 2011-05-08  Bruno Haible  <bruno@clisp.org>
53941         getusershell: Move AC_LIBOBJ invocations to module description.
53942         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53943         Move AC_LIBOBJ invocation from here...
53944         * modules/getusershell (configure.ac): ... to here.
53945         (Depends-on): Update condition.
53947 2011-05-08  Bruno Haible  <bruno@clisp.org>
53949         gettimeofday: Move AC_LIBOBJ invocations to module description.
53950         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53951         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53952         gl_PREREQ_GETTIMEOFDAY invocations from here...
53953         * modules/gettimeofday (configure.ac): ... to here.
53955 2011-05-08  Bruno Haible  <bruno@clisp.org>
53957         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53958         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53959         just gl_FUNC_TZSET.
53960         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53961         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53963         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53965 2011-05-08  Bruno Haible  <bruno@clisp.org>
53967         getsubopt: Move AC_LIBOBJ invocations to module description.
53968         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53969         gl_PREREQ_GETSUBOPT invocations from here...
53970         * modules/getsubopt (configure.ac): ... to here.
53972 2011-05-08  Bruno Haible  <bruno@clisp.org>
53974         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53975         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53976         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53977         * modules/getpass-gnu (configure.ac): ... to here.
53979 2011-05-08  Bruno Haible  <bruno@clisp.org>
53981         getpass: Move AC_LIBOBJ invocations to module description.
53982         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53983         gl_PREREQ_GETPASS invocations from here...
53984         * modules/getpass (configure.ac): ... to here.
53986 2011-05-08  Bruno Haible  <bruno@clisp.org>
53988         getpagesize: Move AC_LIBOBJ invocations to module description.
53989         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53990         from here...
53991         * modules/getpagesize (configure.ac): ... to here.
53993 2011-05-08  Bruno Haible  <bruno@clisp.org>
53995         getopt: Move AC_LIBOBJ invocations to module description.
53996         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53997         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53998         invocations from here...
53999         * modules/getopt-gnu (configure.ac): ... to here.
54000         * modules/getopt-posix (configure.ac): ... and here.
54001         (Depends-on): Update condition.
54003 2011-05-08  Bruno Haible  <bruno@clisp.org>
54005         getopt, argp: Respect rules for use of AC_LIBOBJ.
54006         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54007         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54008         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54009         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54011 2011-05-08  Bruno Haible  <bruno@clisp.org>
54013         getlogin_r: Move AC_LIBOBJ invocations to module description.
54014         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54015         gl_PREREQ_GETLOGIN_R invocations from here...
54016         * modules/getlogin_r (configure.ac): ... to here.
54018 2011-05-08  Bruno Haible  <bruno@clisp.org>
54020         getlogin: Move AC_LIBOBJ invocations to module description.
54021         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54022         here...
54023         * modules/getlogin (configure.ac): ... to here.
54025 2011-05-08  Bruno Haible  <bruno@clisp.org>
54027         getloadavg: Move AC_LIBOBJ invocations to module description.
54028         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54029         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54030         * modules/getloadavg (configure.ac): ... to here.
54032 2011-05-08  Bruno Haible  <bruno@clisp.org>
54034         gethrxtime: Move AC_LIBOBJ invocations to module description.
54035         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54036         LIB_GETHRXTIME from here...
54037         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54038         invocations from here...
54039         * modules/gethrxtime (configure.ac): ... to here.
54041 2011-05-08  Bruno Haible  <bruno@clisp.org>
54043         gethostname: Move AC_LIBOBJ invocations to module description.
54044         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54045         gl_PREREQ_GETHOSTNAME invocations from here...
54046         * modules/gethostname (configure.ac): ... to here.
54048 2011-05-08  Bruno Haible  <bruno@clisp.org>
54050         getgroups: Move AC_LIBOBJ invocations to module description.
54051         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54052         here...
54053         * modules/getgroups (configure.ac): ... to here.
54055 2011-05-08  Bruno Haible  <bruno@clisp.org>
54057         getdtablesize: Move AC_LIBOBJ invocations to module description.
54058         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54059         invocation from here...
54060         * modules/getdtablesize (configure.ac): ... to here.
54062 2011-05-08  Bruno Haible  <bruno@clisp.org>
54064         getdomainname: Move AC_LIBOBJ invocations to module description.
54065         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54066         gl_PREREQ_GETDOMAINNAME invocations from here...
54067         * modules/getdomainname (configure.ac): ... to here.
54069 2011-05-08  Bruno Haible  <bruno@clisp.org>
54071         getline: Move AC_LIBOBJ invocations to module description.
54072         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54073         invocations from here...
54074         * modules/getline (configure.ac): ... to here.
54076 2011-05-08  Bruno Haible  <bruno@clisp.org>
54078         getline: Simplify.
54079         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54080         It's already handled through the module dependency.
54082 2011-05-08  Bruno Haible  <bruno@clisp.org>
54084         getdelim: Move AC_LIBOBJ invocations to module description.
54085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54086         and gl_PREREQ_GETDELIM invocations from here...
54087         * modules/getdelim (configure.ac): ... to here.
54088         (Depends-on): Fix condition.
54090 2011-05-08  Bruno Haible  <bruno@clisp.org>
54092         getcwd: Move AC_LIBOBJ invocations to module description.
54093         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54094         invocations from here...
54095         * modules/getcwd (configure.ac): ... to here.
54097 2011-05-08  Bruno Haible  <bruno@clisp.org>
54099         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54100         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54101         here...
54102         * modules/getcwd-lgpl (configure.ac): ... to here.
54104 2011-05-07  Bruno Haible  <bruno@clisp.org>
54106         crypto/gc: Move AC_LIBOBJ invocations to module description.
54107         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54108         * modules/crypto/gc (configure.ac): ... to here.
54110 2011-05-07  Bruno Haible  <bruno@clisp.org>
54112         fwriting: Move AC_LIBOBJ invocations to module description.
54113         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54114         here...
54115         * modules/fwriting (configure.ac): ... to here.
54117 2011-05-07  Bruno Haible  <bruno@clisp.org>
54119         fwritable: Move AC_LIBOBJ invocations to module description.
54120         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54121         here...
54122         * modules/fwritable (configure.ac): ... to here.
54124 2011-05-07  Bruno Haible  <bruno@clisp.org>
54126         futimens: Move AC_LIBOBJ invocations to module description.
54127         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54128         here...
54129         * modules/futimens (configure.ac): ... to here.
54131 2011-05-07  Bruno Haible  <bruno@clisp.org>
54133         ftruncate: Move AC_LIBOBJ invocations to module description.
54134         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54135         gl_PREREQ_FTRUNCATE invocations from here...
54136         * modules/ftruncate (configure.ac): ... to here.
54138 2011-05-07  Bruno Haible  <bruno@clisp.org>
54140         fsync: Move AC_LIBOBJ invocations to module description.
54141         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54142         invocations from here...
54143         * modules/fsync (configure.ac): ... to here.
54145 2011-05-07  Bruno Haible  <bruno@clisp.org>
54147         fsusage: Move AC_LIBOBJ invocations to module description.
54148         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54149         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54150         * modules/fsusage (configure.ac): ... to here.
54152 2011-05-07  Bruno Haible  <bruno@clisp.org>
54154         freopen: Move AC_LIBOBJ invocations to module description.
54155         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54156         invocations from here...
54157         * modules/freopen (configure.ac): ... to here.
54159 2011-05-07  Bruno Haible  <bruno@clisp.org>
54161         free: Move AC_LIBOBJ invocations to module description.
54162         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54163         invocations from here...
54164         * modules/free (configure.ac): ... to here.
54166 2011-05-07  Bruno Haible  <bruno@clisp.org>
54168         freadable: Move AC_LIBOBJ invocations to module description.
54169         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54170         here...
54171         * modules/freadable (configure.ac): ... to here.
54173 2011-05-07  Bruno Haible  <bruno@clisp.org>
54175         fpurge: Move AC_LIBOBJ invocations to module description.
54176         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54177         invocations from here...
54178         * modules/fpurge (configure.ac): ... to here.
54180 2011-05-07  Bruno Haible  <bruno@clisp.org>
54182         fpending: Move AC_LIBOBJ invocations to module description.
54183         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54184         gl_FUNC_FPENDING.
54185         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54186         invocations from here...
54187         * modules/fpending (configure.ac): ... to here.
54189 2011-05-07  Bruno Haible  <bruno@clisp.org>
54191         fopen: Move AC_LIBOBJ invocations to module description.
54192         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54193         invocations from here...
54194         * modules/fopen (configure.ac): ... to here.
54196 2011-05-07  Bruno Haible  <bruno@clisp.org>
54198         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54199         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54200         gl_FUNC_FNMATCH_POSIX.
54201         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54202         invocations from here...
54203         * modules/fnmatch (configure.ac): ... to here.
54204         * modules/fnmatch-gnu (configure.ac): ... and here.
54206 2011-05-07  Bruno Haible  <bruno@clisp.org>
54208         flock: Move AC_LIBOBJ invocations to module description.
54209         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54210         invocations from here...
54211         * modules/flock (configure.ac): ... to here.
54213 2011-05-07  Bruno Haible  <bruno@clisp.org>
54215         fileblocks: Move AC_LIBOBJ invocations to module description.
54216         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54217         gl_PREREQ_FILEBLOCKS invocations from here...
54218         * modules/fileblocks (configure.ac): ... to here.
54220 2011-05-06  Bruno Haible  <bruno@clisp.org>
54222         fflush: Move AC_LIBOBJ invocations to module description.
54223         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54224         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54225         invocations from here...
54226         * modules/fflush (configure.ac): ... to here.
54228 2011-05-06  Bruno Haible  <bruno@clisp.org>
54230         fdopendir: Move AC_LIBOBJ invocations to module description.
54231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54232         here...
54233         * modules/fdopendir (configure.ac): ... to here.
54234         (Depends-on): Improve conditions.
54236 2011-05-06  Bruno Haible  <bruno@clisp.org>
54238         _Exit: Move AC_LIBOBJ invocations to module description.
54239         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54240         invocations from here...
54241         * modules/_Exit (configure.ac): ... to here.
54243 2011-05-21  Bruno Haible  <bruno@clisp.org>
54245         euidaccess: Respect rules for use of AC_LIBOBJ.
54246         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54247         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54248         from here...
54249         * modules/euidaccess (configure.ac): ... to here.
54251 2011-05-06  Bruno Haible  <bruno@clisp.org>
54253         error: Move AC_LIBOBJ invocations to module description.
54254         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54255         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54256         invocations from here...
54257         * modules/error (configure.ac): ... to here.
54259 2011-05-06  Bruno Haible  <bruno@clisp.org>
54261         duplocale: Move AC_LIBOBJ invocations to module description.
54262         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54263         gl_PREREQ_DUPLOCALE invocations from here...
54264         * modules/duplocale (configure.ac): ... to here.
54266 2011-05-05  Bruno Haible  <bruno@clisp.org>
54268         dirfd: Move AC_LIBOBJ invocations to module description.
54269         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54270         gl_FUNC_DIRFD.
54271         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54272         here...
54273         * modules/dirfd (configure.ac): ... to here.
54274         (Depends-on): Fix condition.
54276 2011-05-05  Bruno Haible  <bruno@clisp.org>
54278         chown: Respect rules for use of AC_LIBOBJ.
54279         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54280         * modules/chown (configure.ac): ... to here.
54282 2011-05-05  Bruno Haible  <bruno@clisp.org>
54284         chdir-long: Move AC_LIBOBJ invocations to module description.
54285         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54286         gl_PREREQ_CHDIR_LONG invocations from here...
54287         * modules/chdir-long (configure.ac): ... to here.
54289 2011-05-05  Bruno Haible  <bruno@clisp.org>
54291         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54292         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54293         from here...
54294         * modules/canonicalize-lgpl (configure.ac): ... to here.
54296 2011-05-05  Bruno Haible  <bruno@clisp.org>
54298         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54299         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54300         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54301         REPLACE_CALLOC.
54302         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54303         * modules/calloc-gnu (configure.ac): Likewise.
54305 2011-05-05  Bruno Haible  <bruno@clisp.org>
54307         btowc: Move AC_LIBOBJ invocations to module description.
54308         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54309         invocations from here...
54310         * modules/btowc (configure.ac): ... to here.
54312 2011-05-21  Bruno Haible  <bruno@clisp.org>
54314         atexit: Move AC_LIBOBJ invocations to module description.
54315         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54316         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54317         here...
54318         * modules/atexit (configure.ac): ... to here.
54320 2011-05-05  Bruno Haible  <bruno@clisp.org>
54322         atoll: Move AC_LIBOBJ invocations to module description.
54323         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54324         invocations from here...
54325         * modules/atoll (configure.ac): ... to here.
54327 2011-05-05  Bruno Haible  <bruno@clisp.org>
54329         argz: Move AC_LIBOBJ invocations to module description.
54330         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54331         * modules/argz (configure.ac): ... to here.
54333 2011-05-05  Bruno Haible  <bruno@clisp.org>
54335         alphasort: Move AC_LIBOBJ invocations to module description.
54336         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54337         gl_PREREQ_ALPHASORT invocations from here...
54338         * modules/alphasort (configure.ac): ... to here.
54340 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54342         verify: new macro verify_expr; verify_true deprecated
54343         * NEWS: Mention this.
54344         * doc/verify.texi (Compile-time Assertions): Document this.
54345         * lib/verify.h (verify_true): Deprecate.
54346         (verify_expr): New macro.
54347         * tests/test-verify.c (function): Test verify_expr.
54349 2011-06-14  Jim Meyering  <meyering@redhat.com>
54351         init.sh: give more portable redirection-related advice in a comment
54352         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54353         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54354         for lots of discussion.  Stefano Lattarini suggested the solution
54355         of putting "9>&2" after the command.  Reported by Bruno Haible.
54357 2011-06-13  Bruno Haible  <bruno@clisp.org>
54359         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54361         'none'.
54363 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54365         ftoastr: use strtof only if HAVE_STRTOF
54366         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54367         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54368         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54369         * modules/ftoastr (configure.ac): Check for strtof.
54371 2011-06-13  Bruno Haible  <bruno@clisp.org>
54373         gnulib-tool: Addendum to 2011-06-08 commit.
54374         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54375         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54377 2011-06-13  Bruno Haible  <bruno@clisp.org>
54379         fseeko: Provide a non-inline replacement of fseek().
54380         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54381         * modules/fseeko (Depends-on): Add fseek.
54382         * modules/fseek (License): Change to LGPLv2+.
54384 2011-06-13  Bruno Haible  <bruno@clisp.org>
54386         ftello: Provide a non-inline replacement of ftell().
54387         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54388         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54389         not have ftello() (such as on mingw).
54390         * modules/ftello (Depends-on): Add ftell.
54391         * modules/ftell (License): Change to LGPLv2+.
54393 2011-05-07  Bruno Haible  <bruno@clisp.org>
54395         ftell: Move AC_LIBOBJ invocations to module description.
54396         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54397         * modules/ftell (configure.ac): ... to here.
54399 2011-05-07  Bruno Haible  <bruno@clisp.org>
54401         ftello: Respect rules for use of AC_LIBOBJ.
54402         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54403         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54404         here...
54405         * modules/ftello (configure.ac): ... to here.
54407 2011-05-07  Bruno Haible  <bruno@clisp.org>
54409         fseeko: Simplify.
54410         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54411         (gl_FUNC_FSEEKO): Inline it here.
54413 2011-05-07  Bruno Haible  <bruno@clisp.org>
54415         fseek: Move AC_LIBOBJ invocations to module description.
54416         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54417         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54418         * modules/fseek (configure.ac): ... to here.
54420 2011-05-07  Bruno Haible  <bruno@clisp.org>
54422         fseek: Respect rules for use of AC_LIBOBJ.
54423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54424         here...
54425         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54427 2011-05-07  Bruno Haible  <bruno@clisp.org>
54429         fseeko: Respect rules for use of AC_LIBOBJ.
54430         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54431         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54432         here...
54433         * modules/fseeko (configure.ac): ... to here.
54435 2011-06-13  Bruno Haible  <bruno@clisp.org>
54437         gnulib-tool: Allow comments in the 'Depends-on' section.
54438         * doc/gnulib.texi (Module description): Mention comment syntax in the
54439         Depends-on section.
54440         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54442 2011-06-13  Bruno Haible  <bruno@clisp.org>
54444         file-set.h: guard __attibute__ use, now that it's not always defined
54445         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54446         versions that support it.  This fixes a coreutils build failure with
54447         the vendor cc on HP-UX 11.31.
54449 2011-06-12  Bruno Haible  <bruno@clisp.org>
54451         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54452         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54453         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54454         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54455         (acl, aclsort): New declarations.
54456         (aclv_nontrivial): New declaration.
54457         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54458         (file_has_acl): Read also the second kind of HP-UX ACLs.
54459         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54460         kind of HP-UX ACLs if the first kind fails.
54461         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54462         second kind of HP-UX ACLs.
54463         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54464         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54465         agree.
54466         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54467         hpuxjfs.
54468         Handle hpuxjfs.
54469         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54470         hpuxjfs.
54471         Handle hpuxjfs.
54472         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54473         (func_test_same_acls): Use both lsacl and getacl.
54474         Handle hpuxjfs.
54475         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54476         (func_test_same_acls): Use both lsacl and getacl.
54477         Handle hpuxjfs.
54479 2011-06-12  Bruno Haible  <bruno@clisp.org>
54481         acl: Complete the 2010-08-10 fix.
54482         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54483         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54484         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54485         explicitly.
54486         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54487         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54489 2011-06-12  Bruno Haible  <bruno@clisp.org>
54491         spawn-pipe tests: Comments.
54492         * tests/test-spawn-pipe-child.c (main): Update comment.
54493         Reported by James Youngman <jay@gnu.org>.
54495 2011-06-11  James Youngman  <jay@gnu.org>
54497         New module 'stat-size'.
54498         * modules/stat-size: New module.  Provides macros for accessing
54499         file size information in instances of struct stat.  Depends on the
54500         fileblocks module because it calls st_blocks.
54501         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54502         * doc/gnulib.texi: Include stat-size.texi.
54503         * doc/stat-size.texi: Documentation for this module.
54504         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54505         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54506         AC_STRUCT_ST_BLOCKS.
54508 2011-06-09  Bruno Haible  <bruno@clisp.org>
54510         thread: Support pthreads-win32.
54511         * lib/glthread/thread.h (gl_thread_self): Define differently on
54512         pthreads-win32.
54513         (gl_null_thread): New declaration.
54514         (gl_thread_self_pointer): New macro.
54515         * lib/glthread/thread.c (gl_null_thread): New constant.
54516         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54517         gl_thread_self.
54518         * tests/test-tls.c: Likewise.
54519         Suggested by Paul Eggert. Reported by Eric Blake.
54521 2011-06-09  Bruno Haible  <bruno@clisp.org>
54523         thread: Fix confusion between NULL and 0.
54524         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54525         Reported by Paul Eggert.
54527 2011-06-09  Bruno Haible  <bruno@clisp.org>
54529         spawn-pipe tests: Avoid test failure on HP-UX 11.
54530         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54531         is closed.
54533 2011-06-09  Bruno Haible  <bruno@clisp.org>
54535         acl tests: Fix compilation error on HP-UX 11.
54536         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54538 2011-06-09  Bruno Haible  <bruno@clisp.org>
54540         rmdir: Avoid test failure on HP-UX 10.20.
54541         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54542         EEXIST.
54544 2011-06-08  Eric Blake  <eblake@redhat.com>
54546         perror: fix test on mingw
54547         * modules/perror-tests (Depends-on): Add dup2.
54549         strerror_r-posix: fix on MacOS
54550         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54551         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54552         logic bug.
54553         * lib/strerror_r.c (strerror_r): Fix the bug.
54554         * lib/strerror.c (strerror): Likewise.
54555         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54556         problem.
54557         * doc/posix-functions/strerror.texi (strerror): Likewise.
54558         * doc/posix-functions/perror.texi (perror): Likewise.
54559         * tests/test-strerror.c (main): Enhance test.
54560         * tests/test-strerror_r.c (main): Likewise.
54562 2011-06-08  Bruno Haible  <bruno@clisp.org>
54564         gnulib-tool: Better isolation between different gnulib-tool invocations.
54565         * gnulib-tool: New option --witness-c-macro.
54566         (witness_c_macro): New variable.
54567         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54568         AM_CPPFLAGS define it as a C macro.
54569         (func_emit_tests_Makefile_am): Likewise.
54570         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54571         read it from there.
54572         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54573         m4_define, not AC_DEFUN.
54574         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54575         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54576         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54577         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54578         s|...|...|, to substitute the values of the GNULIB_* module indicator
54579         variables.
54580         * modules/dirent (Makefile.am): Likewise.
54581         * modules/fcntl-h (Makefile.am): Likewise.
54582         * modules/iconv-h (Makefile.am): Likewise.
54583         * modules/langinfo (Makefile.am): Likewise.
54584         * modules/locale (Makefile.am): Likewise.
54585         * modules/math (Makefile.am): Likewise.
54586         * modules/netdb (Makefile.am): Likewise.
54587         * modules/poll-h (Makefile.am): Likewise.
54588         * modules/pty (Makefile.am): Likewise.
54589         * modules/search (Makefile.am): Likewise.
54590         * modules/signal (Makefile.am): Likewise.
54591         * modules/spawn (Makefile.am): Likewise.
54592         * modules/stdio (Makefile.am): Likewise.
54593         * modules/stdlib (Makefile.am): Likewise.
54594         * modules/string (Makefile.am): Likewise.
54595         * modules/sys_ioctl (Makefile.am): Likewise.
54596         * modules/sys_select (Makefile.am): Likewise.
54597         * modules/sys_socket (Makefile.am): Likewise.
54598         * modules/sys_stat (Makefile.am): Likewise.
54599         * modules/sys_times (Makefile.am): Likewise.
54600         * modules/sys_utsname (Makefile.am): Likewise.
54601         * modules/sys_wait (Makefile.am): Likewise.
54602         * modules/termios (Makefile.am): Likewise.
54603         * modules/time (Makefile.am): Likewise.
54604         * modules/unistd (Makefile.am): Likewise.
54605         * modules/wchar (Makefile.am): Likewise.
54607 2011-06-08  Eric Blake  <eblake@redhat.com>
54609         strerror: simplify replacement
54610         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54611         * modules/strerror (configure.ac): No prereqs needed here...
54612         * modules/strerror-override (configure.ac): ...but this needs it.
54613         (Files): Add file for needed prereq macro.
54615 2011-06-08  Bruno Haible  <bruno@clisp.org>
54617         strerror_r-posix: Tweaks.
54618         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54619         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54621         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54622         (gl_FUNC_STRERROR_R): ... to here.
54623         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54625 2011-06-07  Eric Blake  <eblake@redhat.com>
54627         perror: document fixed bugs
54628         * doc/posix-functions/perror.texi (perror): Document recent
54629         patches.
54631 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54633         stat-time: get_stat_birthtime failure is better-defined
54634         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54635         return a timestamp whose tv_sec and tv_nsec values are both -1.
54636         Previously, the spec said only that the tv_nsec value was negative.
54637         This upward-compatible change simplifies GNU tar a bit.
54639 2011-06-07  Eric Blake  <eblake@redhat.com>
54641         strerror_r-posix: work around cygwin 1.7.9
54642         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54643         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54644         bug without replacing strerror_r.
54645         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54646         strerror_r is buggy, but without requiring strerror_r compilation.
54647         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54649         test-perror: relax test to ignore cygwin bug
54650         * tests/test-perror2.c (main): Relax test on requiring detection
54651         of stream errors, and use unbuffered stream.
54652         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54653         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54654         * doc/posix-functions/fputc.texi (fputc): Likewise.
54655         * doc/posix-functions/fputs.texi (fputs): Likewise.
54656         * doc/posix-functions/fputws.texi (fputws): Likewise.
54657         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54658         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54659         * doc/posix-functions/getopt.texi (getopt): Likewise.
54660         * doc/posix-functions/perror.texi (perror): Likewise.
54661         * doc/posix-functions/printf.texi (printf): Likewise.
54662         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54663         * doc/posix-functions/psignal.texi (psignal): Likewise.
54664         * doc/posix-functions/putc.texi (putc): Likewise.
54665         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54666         Likewise.
54667         * doc/posix-functions/putchar.texi (putchar): Likewise.
54668         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54669         Likewise.
54670         * doc/posix-functions/puts.texi (puts): Likewise.
54671         * doc/posix-functions/putwc.texi (putwc): Likewise.
54672         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54673         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54674         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54675         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54676         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54677         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54678         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54679         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54681 2011-05-22  Bruno Haible  <bruno@clisp.org>
54683         strerror: Move AC_LIBOBJ invocations to module description.
54684         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54685         gl_PREREQ_STRERROR invocations from here...
54686         * modules/strerror (configure.ac): ... to here.
54688 2011-05-21  Bruno Haible  <bruno@clisp.org>
54690         perror: Use common idiom.
54691         * modules/perror (configure.ac): Reorder statements.
54693 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54695         tests: fix usage message in 'mktempd_'
54696         * tests/init.sh (mktempd_): In the usage message, use literal
54697         'mktempd_', not '$ME' (which is even undefined), as the name of
54698         the subroutine.
54700 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54702         tests init: new function 'fatal_', for hard errors
54703         Before this patch, the only way offered by tests/init.sh to
54704         properly signal a hard error was the `framework_failure_'
54705         function.  But the error message issued by that function,
54706         as its name would suggest, refers to a set-up failure in the
54707         testsuite, while hard errors can obviously also be due to
54708         other reasons.  The best way to fix this inconsistency is to
54709         introduce a new function with a more general error message.
54710         * tests/init.sh (fatal_): New function.
54712 2011-06-06  Eric Blake  <eblake@redhat.com>
54714         canonicalize-lgpl: use common idiom
54715         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54716         over newer POSIX -Rf.
54717         Reported by Bruno Haible.
54719         canonicalize-lgpl: work around AIX realpath bug
54720         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54721         * doc/posix-functions/realpath.texi (realpath): Document it.
54722         Reported by Bruno Haible.
54724         strerror: work around FreeBSD bug
54725         * lib/strerror.c (strerror): Special case 0.
54726         Reported by Bruno Haible.
54728         strerror-override: avoid bloating errno module
54729         * modules/errno (Files, configure.ac): Move replacement strings...
54730         * modules/strerror-override: ...to new module.
54731         * modules/strerror (Depends-on): Add strerror-override.
54732         * modules/strerror_r-posix (Depends-on): Likewise.
54733         * MODULES.html.sh: Document new module.
54734         Reported by Bruno Haible.
54736 2011-06-06  Bruno Haible  <bruno@clisp.org>
54738         spawn-pipe tests: Rename program.
54739         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54740         * tests/test-spawn-pipe-child.c: Update comment.
54741         * tests/test-spawn-pipe.sh: Update.
54742         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54744         spawn-pipe tests: Link the child program only against libc.
54745         * tests/test-spawn-pipe-child.c: New file, extracted from
54746         tests/test-spawn-pipe.c.
54747         (main): Expect only one argument.
54748         (is_open): New function, copied from tests/test-pipe.c.
54749         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54750         (child_main): Remove function.
54751         (test_pipe): Pass only one argument to the child program.
54752         (main): Remove child process code. Expect the child program's name as
54753         first argument.
54754         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54755         argument.
54756         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54757         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54758         test-spawn-pipe-child against no libraries.
54760 2011-06-06  Bruno Haible  <bruno@clisp.org>
54762         careadlinkat: Avoid mismatch between ssize_t and int.
54763         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54764         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54766 2011-06-06  Jim Meyering  <meyering@redhat.com>
54768         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54769         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54770         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54772 2011-06-05  Bruno Haible  <bruno@clisp.org>
54774         ansi-c++-opt: Interoperability with libtool.
54775         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54776         set the variable to "no", not to ":".
54777         * NEWS: Mention the change.
54779 2011-06-05  Bruno Haible  <bruno@clisp.org>
54781         acl: Fix test failure on AIX 7.
54782         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54783         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54785 2011-06-05  Bruno Haible  <bruno@clisp.org>
54787         pipe-filter-ii: Fix test failure on AIX and IRIX.
54788         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54789         with EAGAIN, retry with a smaller buffer size.
54791 2011-06-05  Bruno Haible  <bruno@clisp.org>
54793         localename: Fix link dependencies.
54794         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54795         * modules/localename-tests (Makefile.am): Link test-localename with
54796         $(LIBTHREAD).
54798 2011-06-05  Bruno Haible  <bruno@clisp.org>
54800         error: Avoid gcc warning.
54801         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54803 2011-06-05  Bruno Haible  <bruno@clisp.org>
54805         unsetenv: Avoid gcc warning.
54806         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54808 2011-06-05  Bruno Haible  <bruno@clisp.org>
54810         setenv: Avoid gcc warning.
54811         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54813 2011-06-05  Bruno Haible  <bruno@clisp.org>
54815         sys_select: Ensure memset is declared also on AIX 7.
54816         * lib/sys_select.in.h: Include <string.h> also on AIX.
54817         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54818         self-contained also on AIX 7.1.
54820 2011-06-04  Jim Meyering  <meyering@redhat.com>
54822         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54823         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54824         function name, "error".
54825         (_gl_translatable_diag_func_re): New configurable variable.
54827 2011-06-04  Bruno Haible  <bruno@clisp.org>
54829         getopt: Avoid gcc warning.
54830         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54832 2011-06-04  Bruno Haible  <bruno@clisp.org>
54834         strerror_r: Fix comments.
54835         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54836         commit.
54838 2011-06-04  Bruno Haible  <bruno@clisp.org>
54840         perror: Fix compilation error.
54841         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54842         Undefine fprintf, not sprintf.
54843         * modules/perror (Depends-on): Remove intprops, verify.
54845 2011-06-04  Bruno Haible  <bruno@clisp.org>
54847         setlocale: Enable replacement on Cygwin 1.5.
54848         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54849         Cygwin 1.5.x.
54850         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54851         LC_CTYPE category also exists on Cygwin 1.5.x.
54853 2011-06-04  Bruno Haible  <bruno@clisp.org>
54855         strerror-override: Don't disable symbol renamings.
54856         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54857         * lib/strerror-override.c: Include config.h.
54858         (strerror_override): Don't undefine.
54860 2011-06-03  Bruno Haible  <bruno@clisp.org>
54862         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54863         * lib/localename.h: Update copyright header.
54864         * lib/localename.c: Likewise.
54865         * lib/relocatable.h: Likewise.
54866         * lib/relocatable.c: Likewise.
54868 2011-06-02  Bruno Haible  <bruno@clisp.org>
54870         doc: Fix a module name.
54871         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54873 2011-06-02  Bruno Haible  <bruno@clisp.org>
54875         pipe2: Remove dependency on 'nonblocking' module.
54876         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54877         O_NONBLOCK is defined by gnulib.
54878         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54879         is zero.
54880         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54881         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54882         defined by gnulib.
54883         (get_nonblocking_flag): New function.
54884         (main): Test O_NONBLOCK flag only if it is nonzero.
54885         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54887 2011-06-03  Jim Meyering  <meyering@redhat.com>
54889         maint: three new prohibit-header-without-use rules
54890         Prohibit use of cloexec.h, posixver.h, same.h without use.
54891         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54892         (sc_prohibit_posixver_without_use): Likewise.
54893         (sc_prohibit_same_without_use): Likewise.
54895 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54897         allocator: 'die' routine is now given requested size
54898         * lib/allocator.h (struct allocator.die): New size arg.
54899         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54900         If the actual problem is an ssize_t limitation, not a size_t or
54901         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54903 2011-06-01  Eric Blake  <eblake@redhat.com>
54905         strerror: drop strerror_r dependency
54906         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54907         * lib/strerror-override.c (strerror_override): ...to new file.
54908         * lib/strerror-override.h: Add prototype.
54909         * lib/strerror-impl.h: Delete.
54910         * lib/strerror.c (strerror): New implementation.
54911         * modules/errno (Files): Add new files.
54912         (configure.ac): Compile new file as appropriate.
54913         * modules/strerror (Files): Drop unused file.
54914         (Depends-on): Drop strerror_r-posix.
54915         * MODULES.html.sh: Document strerror_r-posix.
54916         Requested by Sam Steingold.
54918         perror: call strerror_r directly
54919         * modules/perror (Files): Drop strerror-impl.h.
54920         * lib/perror.c (perror): Use our own stack buffer, rather than
54921         calling a wrapper that uses static storage.
54922         * doc/posix-functions/perror.texi (perror): Document a limitation
54923         of our replacement.
54925         strerror_r: fix includes for FreeBSD
54926         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54927         since we use abort on some platforms.
54928         Reported by Matthias Bolte.
54930 2011-05-31  Bruno Haible  <bruno@clisp.org>
54932         Fix link errors in tests: openat-die uses gettext-h.
54933         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54934         against $(LIBINTL).
54935         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54936         against $(LIBINTL).
54937         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54938         $(LIBINTL).
54939         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54940         against $(LIBINTL).
54941         * modules/linkat-tests (Makefile.am): Link test-linkat against
54942         $(LIBINTL).
54943         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54944         $(LIBINTL).
54945         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54946         against $(LIBINTL).
54947         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54948         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54949         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54950         $(LIBINTL).
54951         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54952         $(LIBINTL).
54953         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54954         $(LIBINTL).
54955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54957 2011-05-31  Bruno Haible  <bruno@clisp.org>
54959         Fix link errors in tests: wait-process uses gettext-h.
54960         * modules/nonblocking-pipe-tests (Makefile.am): Set
54961         test_nonblocking_pipe_main_LDADD.
54962         * modules/nonblocking-socket-tests (Makefile.am): Link
54963         test-nonblocking-socket-main against $(LIBINTL).
54964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54966 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54968         assert-h: work around 'verify' incompatibility
54969         * lib/verify.h: Use @...@ directives, not ifdef.
54970         * modules/assert-h (assert.h): Implement the directives.
54971         (assert.h): Substitute the symbol-prefix more consistently.
54973 2011-05-29  Jim Meyering  <meyering@redhat.com>
54975         trim: remove three superfluous assignments
54976         * lib/trim.c (trim2): Remove three superfluous assignments
54977         and correct brace positioning.
54979 2011-05-29  Bruno Haible  <bruno@clisp.org>
54981         wctype-h: Avoid namespace pollution on Solaris 2.6.
54982         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54983         identifiers.
54984         * doc/posix-headers/wctype.texi: Mention the problem.
54985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54987 2011-05-28  Jim Meyering  <meyering@redhat.com>
54989         parse-datetime.y: accommodate -Wstrict-overflow
54990         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54991         placate -Wstrict-overflow.
54993         trim: avoid a warning from -O2 -Wstrict-overflow
54994         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54996 2011-05-29  Bruno Haible  <bruno@clisp.org>
54998         gnulib-tool: Fix bug in yesterday's commit.
54999         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55000         twice.
55002 2011-05-29  Bruno Haible  <bruno@clisp.org>
55004         Allow multiple gnulib generated include files to be combined.
55005         * gnulib-tool (func_compute_include_guard_prefix): New function.
55006         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55007         ${gl_include_guard_prefix} references.
55008         (func_import, func_create_testdir): Invoke
55009         func_compute_include_guard_prefix.
55010         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55011         * lib/ctype.in.h: Likewise.
55012         * lib/dirent.in.h: Likewise.
55013         * lib/errno.in.h: Likewise.
55014         * lib/fcntl.in.h: Likewise.
55015         * lib/float.in.h: Likewise.
55016         * lib/getopt.in.h: Likewise.
55017         * lib/iconv.in.h: Likewise.
55018         * lib/langinfo.in.h: Likewise.
55019         * lib/locale.in.h: Likewise.
55020         * lib/math.in.h: Likewise.
55021         * lib/netdb.in.h: Likewise.
55022         * lib/netinet_in.in.h: Likewise.
55023         * lib/poll.in.h: Likewise.
55024         * lib/pthread.in.h: Likewise.
55025         * lib/pty.in.h: Likewise.
55026         * lib/sched.in.h: Likewise.
55027         * lib/se-selinux.in.h: Likewise.
55028         * lib/search.in.h: Likewise.
55029         * lib/signal.in.h: Likewise.
55030         * lib/spawn.in.h: Likewise.
55031         * lib/stdarg.in.h: Likewise.
55032         * lib/stddef.in.h: Likewise.
55033         * lib/stdint.in.h: Likewise.
55034         * lib/stdio.in.h: Likewise.
55035         * lib/stdlib.in.h: Likewise.
55036         * lib/string.in.h: Likewise.
55037         * lib/strings.in.h: Likewise.
55038         * lib/sys_file.in.h: Likewise.
55039         * lib/sys_ioctl.in.h: Likewise.
55040         * lib/sys_select.in.h: Likewise.
55041         * lib/sys_socket.in.h: Likewise.
55042         * lib/sys_stat.in.h: Likewise.
55043         * lib/sys_time.in.h: Likewise.
55044         * lib/sys_times.in.h: Likewise.
55045         * lib/sys_uio.in.h: Likewise.
55046         * lib/sys_utsname.in.h: Likewise.
55047         * lib/sys_wait.in.h: Likewise.
55048         * lib/sysexits.in.h: Likewise.
55049         * lib/termios.in.h: Likewise.
55050         * lib/time.in.h: Likewise.
55051         * lib/unistd.in.h: Likewise.
55052         * lib/wchar.in.h: Likewise.
55053         * lib/wctype.in.h: Likewise.
55054         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55055         * modules/ctype (Makefile.am): Likewise.
55056         * modules/dirent (Makefile.am): Likewise.
55057         * modules/errno (Makefile.am): Likewise.
55058         * modules/fcntl-h (Makefile.am): Likewise.
55059         * modules/float (Makefile.am): Likewise.
55060         * modules/getopt-posix (Makefile.am): Likewise.
55061         * modules/iconv-h (Makefile.am): Likewise.
55062         * modules/langinfo (Makefile.am): Likewise.
55063         * modules/locale (Makefile.am): Likewise.
55064         * modules/math (Makefile.am): Likewise.
55065         * modules/netdb (Makefile.am): Likewise.
55066         * modules/netinet_in (Makefile.am): Likewise.
55067         * modules/poll-h (Makefile.am): Likewise.
55068         * modules/pthread (Makefile.am): Likewise.
55069         * modules/pty (Makefile.am): Likewise.
55070         * modules/sched (Makefile.am): Likewise.
55071         * modules/search (Makefile.am): Likewise.
55072         * modules/selinux-h (Makefile.am): Likewise.
55073         * modules/signal (Makefile.am): Likewise.
55074         * modules/spawn (Makefile.am): Likewise.
55075         * modules/stdarg (Makefile.am): Likewise.
55076         * modules/stddef (Makefile.am): Likewise.
55077         * modules/stdint (Makefile.am): Likewise.
55078         * modules/stdio (Makefile.am): Likewise.
55079         * modules/stdlib (Makefile.am): Likewise.
55080         * modules/string (Makefile.am): Likewise.
55081         * modules/strings (Makefile.am): Likewise.
55082         * modules/sys_file (Makefile.am): Likewise.
55083         * modules/sys_ioctl (Makefile.am): Likewise.
55084         * modules/sys_select (Makefile.am): Likewise.
55085         * modules/sys_socket (Makefile.am): Likewise.
55086         * modules/sys_stat (Makefile.am): Likewise.
55087         * modules/sys_time (Makefile.am): Likewise.
55088         * modules/sys_times (Makefile.am): Likewise.
55089         * modules/sys_uio (Makefile.am): Likewise.
55090         * modules/sys_utsname (Makefile.am): Likewise.
55091         * modules/sys_wait (Makefile.am): Likewise.
55092         * modules/sysexits (Makefile.am): Likewise.
55093         * modules/termios (Makefile.am): Likewise.
55094         * modules/time (Makefile.am): Likewise.
55095         * modules/unistd (Makefile.am): Likewise.
55096         * modules/wchar (Makefile.am): Likewise.
55097         * modules/wctype-h (Makefile.am): Likewise.
55098         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55100 2011-05-29  Bruno Haible  <bruno@clisp.org>
55102         assert-h: Allow multiple gnulib generated replacements to coexist.
55103         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55105 2011-05-29  Bruno Haible  <bruno@clisp.org>
55107         argp: Allow coexistence with strerror_r-posix module.
55108         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55109         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55110         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55111         not the glibc signature.
55113 2011-05-28  Bruno Haible  <bruno@clisp.org>
55115         gnulib-tool: Alternative structure of testdirs, similar to --import.
55116         * gnulib-tool: New option --single-configure.
55117         (func_usage): Document it.
55118         (single_configure): New variable.
55119         (func_modules_transitive_closure_separately,
55120         func_modules_transitive_closure_separately,
55121         func_determine_use_libtests, func_modules_add_dummy_separately,
55122         func_modules_to_filelist_separately): New functions, extracted from
55123         func_import.
55124         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55125         (func_import): Use the new functions.
55126         (func_create_testdir): Set final_modules. Handle $single_configure =
55127         true case.
55129 2011-05-28  Bruno Haible  <bruno@clisp.org>
55131         getloadavg: Remove an unreliable safety check.
55132         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55133         getloadavg.c is in place.
55134         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55135         Reported by Sam Steingold <sds@gnu.org>.
55137 2011-05-28  Bruno Haible  <bruno@clisp.org>
55139         doc: Cleanup yet another file produced by texinfo.tex.
55140         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55142 2011-05-28  Bruno Haible  <bruno@clisp.org>
55144         Finish the conditional dependencies mechanism.
55145         * gnulib-tool: New option --no-conditional-dependencies.
55146         (func_usage): Document it. Don't mark --conditional-dependencies as
55147         experimental.
55148         (cond_dependencies): The possible values can now be true, false, empty.
55149         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55150         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55151         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55153 2011-05-28  Bruno Haible  <bruno@clisp.org>
55155         doc: Use a recent texinfo.tex.
55156         * doc/Makefile (tex_opts): New variable.
55157         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55159 2011-05-28  Jim Meyering  <meyering@redhat.com>
55161         intprops.h: adjust comment to match code change
55162         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55163         only once, it *may* have side effects.  Also fix an unrelated typo.
55164         (_GL_INT_SIGNED): Likewise.
55166 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55168         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55170 2011-05-26  Bruno Haible  <bruno@clisp.org>
55172         mbsrchr: Avoid collision with system function on Interix.
55173         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55174         Reported by Markus Duft <mduft@gentoo.org>.
55176 2011-05-15  James Youngman  <jay@gnu.org>
55178         getopt: for ambiguous options, enumerate the possibilities.
55179         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55180         the ambiguous options when an ambiguous prefix is given. This was
55181         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55182         glibc change was
55183         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55185 2011-05-25  Eric Blake  <eblake@redhat.com>
55187         getcwd: work around mingw bug
55188         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55189         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55190         Reported by Matthias Bolte.
55192 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55194         test-intprops: disable -Wtype-limits diagnostics
55195         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55196         diagnostics.  Otherwise, the integer overflow macros generate many
55197         diagnostics.  Reported by Jim Meyering in
55198         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55200         intprops: shorten, to pacify gcc -Woverlength-strings
55201         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55202         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55203         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55204         likely to run afoul of C compiler limits for string constant lengths.
55205         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55207 2011-05-24  Eric Blake  <eblake@redhat.com>
55209         docs: document recently fixed glibc printf bug
55210         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55211         * doc/posix-functions/printf.texi (printf): Likewise.
55212         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55213         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55215         closein-tests: convert to init.sh
55216         * modules/closein-tests (Files): Add init.sh
55217         * tests/test-closein.sh Use it.
55219         yesno-tests: convert to init.sh
55220         * modules/yesno-tests (Files): Add init.sh.
55221         * tests/test-yesno.sh: Use it.
55223         atexit-tests: ensure reliable exit status
55224         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55225         Reported by Bruno Haible.
55227 2011-05-24  Bruno Haible  <bruno@clisp.org>
55229         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55230         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55231         gl_PREREQ_STRERROR_R invocations from here...
55232         * modules/strerror_r-posix (configure.ac): ... to here.
55234 2011-05-24  Eric Blake  <eblake@redhat.com>
55236         strerror_r: fix missing header
55237         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55239         strerror_r: fix AIX test failures
55240         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55241         ERANGE failure.
55243         strerror_r: fix Solaris test failures
55244         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55245         failures.
55246         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55248         strerror_r: enforce POSIX recommendations
55249         * lib/strerror_r.c (safe_copy): New helper method.
55250         (strerror_r): Guarantee a non-empty string.
55251         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55252         recent POSIX rulings and to match our strerror guarantees.
55253         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55255 2011-05-24  Jim Meyering  <meyering@redhat.com>
55257         test-perror2.c: avoid warning about unused variable
55258         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55260 2011-05-24  Eric Blake  <eblake@redhat.com>
55262         perror: avoid spurious test failure on HP-UX
55263         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55265         tests: fix logic bug in init.sh
55266         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55267         shell.
55269 2011-05-24  Jim Meyering  <meyering@redhat.com>
55271         utimensat: do not reference an out-of-scope buffer
55272         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55273         declared in an inner scope, yet "times" would be dereferenced outside
55274         the scope in which "ts" was valid.
55275         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55276         of ts[2] "out/up", so that the use of aliased "times" (via
55277         "times = ts;") does not end up referencing an out-of-scope "ts"
55279         opendir-safer.c: don't clobber errno; don't close negative FD
55280         * lib/opendir-safer.c (opendir_safer):
55281         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55282         file descriptor, and more importantly, don't clobber the
55283         offending errno value with EINVAL.  Before, upon failure
55284         of dup_safer, we would pass the negative file descriptor to
55285         fdopendir, which would clobber errno.
55287 2011-05-23  Bruno Haible  <bruno@clisp.org>
55289         idcache: Fix module description.
55290         * modules/idcache (Include): Set to "idcache.h".
55292 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55294         gnulib-tool: fix portability problem with MacOS sed
55295         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55296         before the "}".  Problem reported by Leo in
55297         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55298         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55299         sed_extract_condition1, sed_extract_condition2.
55301 2011-05-23  Bruno Haible  <bruno@clisp.org>
55303         hash: Simplify autoconf macro.
55304         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55306 2011-05-23  Bruno Haible  <bruno@clisp.org>
55308         getugroups: Fix module description.
55309         * modules/getugroups (Include): Set to "getugroups.h".
55311 2011-05-23  Bruno Haible  <bruno@clisp.org>
55313         linkat: Simplify autoconf macro.
55314         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55316 2011-05-23  Bruno Haible  <bruno@clisp.org>
55317             Eric Blake  <eblake@redhat.com>
55319         linkat, renameat: Update dependencies.
55320         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55321         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55322         symlinkat.
55324 2011-05-23  Jim Meyering  <meyering@redhat.com>
55326         maint.mk: more tight_scope improvements
55327         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55328         (_gl_TS_headers): Define only in if-0'd block.
55329         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55330         sometimes we must *not* use it.  Adjust uses accordingly.
55331         (sc_tight_scope): Use much simpler grep-based test to determine
55332         whether we skip this rule.
55334         maint.mk: generalize/improve the tight-scope rule
55335         * top/maint.mk: Emit a warning when the test is skipped.
55336         (_gl_TS_dir): Add $(srcdir)/ prefix.
55337         (_gl_TS_function_match): Simplify, rather than trying
55338         to enumerate common types.  Otherwise, it would fail to match an
55339         "extern unsigned char const *" declaration in idutils.
55340         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55341         a way to support use of that type of macro.
55342         (_gl_TS_var_match): Simplify regexp.
55343         (_gl_TS_obj_files): New configurable variable.
55344         (_gl_TS_headers): Likewise.
55346 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55348         verify: fix bug when gnulib <assert.h> is also included
55349         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55350         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55351         Perhaps there's a better way, but this fixes the immediate problem.
55352         Problem reported by Bruno Haible in
55353         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55355 2011-05-22  Bruno Haible  <bruno@clisp.org>
55357         xgetcwd: Simplify autoconf macro.
55358         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55360 2011-05-22  Bruno Haible  <bruno@clisp.org>
55362         New module 'mktime-internal'.
55363         * modules/mktime-internal: New file.
55364         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55365         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55366         mktime_internal as a C macro if libc has __mktime_internal.
55367         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55368         conditions.
55369         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55371 2011-05-22  Bruno Haible  <bruno@clisp.org>
55373         timegm: Correct mktime replacement statements.
55374         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55375         defining mktime as a C macro. This completes a 2009-07-28 commit.
55377 2011-05-22  Bruno Haible  <bruno@clisp.org>
55379         timegm: Simplify autoconf macro.
55380         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55382 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55384         clock-time: change to LGPLv2+.
55385         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55386         BSD-like but we have no mark for that; this is good enough for now.
55388 2011-05-21  Bruno Haible  <bruno@clisp.org>
55390         strerror_r: Fix comments.
55391         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55393 2011-05-21  Bruno Haible  <bruno@clisp.org>
55395         relocatable-prog-wrapper: Fix possible link error.
55396         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55397         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55398         (gl_FUNC_SETENV): ... to here.
55399         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55400         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55402 2011-05-21  Bruno Haible  <bruno@clisp.org>
55404         relocatable-prog-wrapper: Assume strerror() exists.
55405         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55406         m4/strerror.m4.
55407         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55408         * lib/relocwrapper.c: Remove mention of strerror module.
55409         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55410         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55411         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55412         C macro.
55414 2011-05-21  Bruno Haible  <bruno@clisp.org>
55416         select: Simplify replacement idiom.
55417         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55418         Win32 platforms.
55419         * lib/sys_select.in.h (select): Simplify accordingly.
55420         * modules/select (Depends-on): Likewise.
55422 2011-05-21  Bruno Haible  <bruno@clisp.org>
55424         mkdir-p: Simplify autoconf macro.
55425         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55426         gl_FUNC_LCHOWN.
55428 2011-05-21  Eric Blake  <eblake@redhat.com>
55430         strerror_r: avoid clobbering strerror on cygwin
55431         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55432         fall back instead to sys_errlist.
55433         * modules/strerror (configure.ac): Add witness.
55434         * tests/test-strerror_r.c (main): Enhance test.
55435         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55436         * tests/test-perror2.c (main): Free memory before exit.
55438 2011-05-21  Bruno Haible  <bruno@clisp.org>
55440         mkdtemp: Use gnulib naming conventions.
55441         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55442         * modules/mkdtemp (configure.ac): Update.
55444 2011-05-20  Eric Blake  <eblake@redhat.com>
55446         strerror_r: avoid corrupting errno on Solaris
55447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55448         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55450         strerror_r: avoid compiler warning
55451         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55453         strerror_r: simplify AIX code
55454         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55456         test-perror: avoid spurious failure on FreeBSD
55457         * modules/perror-tests (Depends-on): Add strerror, now that
55458         strerror_r no longer pulls it in.
55460 2011-05-20  Bruno Haible  <bruno@clisp.org>
55462         strerror_r-posix: Remove unused dependencies.
55463         * modules/strerror_r-posix (Depends-on): Remove strerror.
55464         Reported by Eric Blake.
55466 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55468         intprops: remove assumption about A|B representation
55469         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55470         is a valid integer if both A and B are.  Although this is true for
55471         all known practical hosts, the C standard doesn't guarantee it,
55472         and the code need not assume it.  Also, this change may work around
55473         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55474         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55476 2011-05-20  Eric Blake  <eblake@redhat.com>
55478         perror: work around FreeBSD bug
55479         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55480         is broken.  Move AC_LIBOBJ...
55481         * modules/perror (configure.ac): Here.
55482         * doc/posix-functions/perror.texi (perror): Document this.
55483         * tests/test-perror2.c (main): Enhance test.
55485         test-perror: check for strerror interactions
55486         * tests/macros.h (STREQ): Add macro.
55487         * modules/perror-tests (Files): Add second test.
55488         * tests/test-perror2.c (main): New file.
55489         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55491         test-perror: rewrite to use init script
55492         * modules/perror-tests (Files): Add init.sh.
55493         * tests/test-perror.sh: Use temporary directory.
55495 2011-05-20  Jim Meyering  <meyering@redhat.com>
55497         maint: replace misused "a" with "an"
55498         * doc/intprops.texi: "a integer"
55499         * doc/regex.texi: "a explanation"
55500         * lib/alignof.h: "a object"
55501         * lib/argmatch.h: "a explanation"
55502         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55503         * lib/stdint.in.h: "a integer"
55504         * lib/userspec.c: "a owner"
55505         * doc/gnulib.texi: Fix "a idea", and reword.
55507 2011-05-19  Jim Meyering  <meyering@redhat.com>
55509         maint: correct misuse of "a" and "an"
55510         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55511         * lib/argp-help.c: "an docum...": s/an/a/
55512         * lib/argp-parse.c: "An vector": s/An/A/
55513         * lib/execute.c: "an native": s/an/a/
55514         * lib/spawn-pipe.c: Likewise.
55515         * lib/gc.h: "an Gc_rc": s/an/a/
55516         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55517         * lib/fts.c: "an stat.st_dev": s/an/a/
55519 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55521         intprops-tests: work around HP-UX 11.23 cc bug with constants
55522         * tests/test-intprops.c (VERIFY): New macro.
55523         (main): Use it, instead of verify, to work around the compiler bug; see
55524         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55526         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55527         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55528         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55529         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55530         (_GL_REMAINDER_OVERFLOW): Use it.
55532         intprops-tests: revert unsigned part of previous change
55533         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55534         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55535         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55536         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55538 2011-05-19  Bruno Haible  <bruno@clisp.org>
55540         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55541         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55542         strerror_r() returned without filling the buffer.
55543         Reported by Eric Blake.
55545 2011-05-19  Eric Blake  <eblake@redhat.com>
55547         strerror_r: guarantee unchanged errno
55548         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55549         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55550         failure.
55551         * tests/test-strerror_r.c (main): Enhance test.
55553 2011-05-19  Bruno Haible  <bruno@clisp.org>
55555         strerror_r: Reorder #if blocks.
55556         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55557         for consistency with the previous commit.
55559 2011-05-19  Bruno Haible  <bruno@clisp.org>
55561         perror: Avoid clobbering the strerror buffer when possible.
55562         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55563         * lib/strerror.c: Include it.
55564         * modules/strerror (Files): Add lib/strerror-impl.h.
55565         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55566         (my_strerror): New function, defined through lib/strerror-impl.h.
55567         (perror): Use it instead of strerror.
55568         * modules/perror (Files): Add lib/strerror-impl.h.
55569         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55571 2011-05-19  Eric Blake  <eblake@redhat.com>
55573         strerror_r: fix on newer cygwin
55574         * lib/strerror_r.c (strerror_r): Cygwin now has
55575         __xpg_strerror_r, use it.
55577 2011-05-19  Bruno Haible  <bruno@clisp.org>
55579         strerror_r: Avoid clobbering the strerror buffer when possible.
55580         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55581         (sys_nerr, sys_errlist): New declarations.
55582         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55583         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55584         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55586 2011-05-19  Bruno Haible  <bruno@clisp.org>
55588         strerror_r: Fix test failure on mingw.
55589         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55590         EXTEND_STRERROR_R.
55591         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55592         macros from errno.in.h instead.
55594 2011-05-19  Eric Blake  <eblake@redhat.com>
55596         strerror: relax test for Solaris
55597         * tests/test-strerror.c (main): Permit Solaris behavior.
55598         * tests/test-strerror_r.c (main): Likewise.
55600         strerror: enforce POSIX ruling on strerror(0)
55601         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55602         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55603         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55604         * doc/posix-functions/strerror.texi (strerror): Document it.
55605         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55606         * tests/test-strerror.c (main): Strengthen test.
55607         * tests/test-strerror_r.c (main): Likewise.
55609 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55611         intprop-tests: port to older and more-pedantic compilers
55612         * modules/intprops-tests (Files): Add tests/macros.h.
55613         * tests/test-intprops.c: Include macros.h.
55614         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55615         it's no longer documented to expand to an integer constant expression.
55616         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55617         argument is floating point, as it's no longer documented to expand
55618         to an integer constant expression in that case.
55619         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55620         compiler bugs reported by Bruno Haible.  See
55621         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55622         (U0, U1): New constants, to work around the same bugs.  Also,
55623         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55625         intprops: work around C compiler bugs
55626         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55627         bug in Sun C 5.11 2010/08/13 and other compilers; see
55628         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55630         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55631         * doc/intprops.texi (Integer Type Determination): Fix
55632         documentation for TYPE_IS_INTEGER: it returns an constant
55633         expression, not an integer constant expression.  Fix doc for
55634         TYPE_SIGNED: it returns an integer constant expression only if its
55635         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55636         hardly worth documented that way....)
55638 2011-05-18  Bruno Haible  <bruno@clisp.org>
55640         strerror_r: Avoid clobbering the strerror buffer when possible.
55641         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55642         Handle gnulib defined errno values here. When strerror() returns NULL
55643         or an empty string, return EINVAL.
55644         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55645         gnulib defined errno values here.
55646         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55648 2011-05-18  Eric Blake  <eblake@redhat.com>
55650         fnmatch: avoid compiler warning
55651         * lib/fnmatch_loop.c (FCT): Use correct type.
55652         Reported by Matthias Bolte.
55654 2011-05-13  Jim Meyering  <meyering@redhat.com>
55656         maint.mk: three new prohibit_<HDR>_without_use rules
55657         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55658         (sc_prohibit_stdio-safer_without_use): Likewise.
55659         (sc_prohibit_xfreopen_without_use): Likewise.
55661 2011-05-17  Jim Meyering  <meyering@redhat.com>
55663         announce-gen: fail if the NEWS delta is empty
55664         If there's nothing noteworthy in NEWS, then either you forgot
55665         or you shouldn't be releasing.
55666         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55668 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55670         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55671         reserved symbols starting with double underscore from the check.
55673 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55675         intprops: add doc
55676         * doc/intprops.texi: New file, documenting intprops.
55677         * doc/gnulib.texi (Particular Modules): Include it.
55679         verify: add doc to gnulib manual and fix example
55680         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55681         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55682         (Compile-time Assertions): Fix example so it can't overflow.
55684 2011-05-17  Jim Meyering  <meyering@redhat.com>
55686         warnings.m4: don't usurp save_CPPFLAGS variable name
55687         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55689         doc: fix typo
55690         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55692 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55693             Bruno Haible  <bruno@clisp.org>
55695         doc: Tweak recent change.
55696         * README (Portability guidelines): Tweak new text.
55697         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55698         Interix 6.1.
55700 2011-05-16  Eric Blake  <eblake@redhat.com>
55702         inttypes: avoid autoconf warning
55703         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55704         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55706 2011-05-16  Sam Steingold  <sds@gnu.org>
55707         and Eric Blake  <eblake@redhat.com>
55709         vc-list-files: accept multiple directory operands
55710         * build-aux/vc-list-files: Iterate over all remaining operands.
55712 2011-05-16  Bruno Haible  <bruno@clisp.org>
55714         Fix confusion regarding deprecated modules.
55715         * modules/calloc (Status, Notice): Mark module as deprecated, not
55716         obsolete.
55717         * modules/fnmatch-posix (Status, Notice): Likewise.
55718         * modules/getdate (Status, Notice): Likewise.
55719         * modules/getopt (Status, Notice): Likewise.
55720         * modules/malloc (Status, Notice): Likewise.
55721         * modules/pipe (Status, Notice): Likewise.
55722         * modules/realloc (Status, Notice): Likewise.
55723         * modules/rename-dest-slash (Status, Notice): Likewise.
55724         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55725         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55726         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55727         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55728         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55730 2011-05-16  Bruno Haible  <bruno@clisp.org>
55732         doc: List the target platforms.
55733         * doc/gnulib-intro.texi (Target Platforms): New section.
55734         * doc/gnulib.texi (Introduction): Update menu.
55735         * README (Portability guidelines): Refer to the new section. Update
55736         statement about oldest supported environment. Remove rationale why
55737         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55738         unportable C89 function.
55739         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55740         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55742 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55744         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55746 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55748         intprops-tests: new module
55749         * modules/intprops-tests, tests/test-intprops.c: New files.
55751         intprops: add safe, portable integer overflow checking
55752         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55753         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55754         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55755         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55756         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55757         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55758         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55759         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55760         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55761         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55762         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55764 2011-05-12  James Youngman  <jay@gnu.org>
55766         Add a test for glibc's Bugzilla bug #12378.
55767         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55768         doesn't allow the literal matching of a lone "[" (which is
55769         required by POSIX).
55770         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55772 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55774         Sync glibc change fixing Bugzilla bug #12378.
55775         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55776         beginning and fall back to matching as normal character if the
55777         string ends before the matching ']' is found.  This is what POSIX
55778         requires.
55780 2011-05-13  Eric Blake  <eblake@redhat.com>
55782         getcwd-lgpl: relax test for FreeBSD
55783         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55784         issue.
55785         * tests/test-getcwd-lgpl.c (main): Relax test.
55786         Reported by Matthias Bolte.
55788 2011-05-11  Eric Blake  <eblake@redhat.com>
55790         test-fflush: silence compiler warning
55791         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55793 2011-05-11  Bruno Haible  <bruno@clisp.org>
55795         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55796         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55797         * modules/canonicalize (Depends-on): Add 'nocrash'.
55798         * modules/canonicalize-lgpl (Depends-on): Likewise.
55799         * doc/posix-functions/realpath.texi: Update platforms list.
55800         Reported by Ryan Schmidt <ryandesign@macports.org>.
55802 2011-05-11  Bruno Haible  <bruno@clisp.org>
55804         group-member: Declare function in <unistd.h>.
55805         * lib/unistd.in.h (group_member): New declaration.
55806         * lib/group-member.h: Remove file.
55807         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55808         * tests/test-unistd-c++.cc: Check signature of group_member.
55809         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55810         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55811         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55812         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55813         HAVE_GROUP_MEMBER.
55814         * modules/group-member (Files): Remove lib/group-member.h.
55815         (Depends-on): Add unistd. Specify conditions.
55816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55817         (Include): Change to <unistd.h>.
55818         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55819         HAVE_GROUP_MEMBER.
55820         * NEWS: Mention the change.
55821         * lib/euidaccess.c: Don't include group-member.h.
55823 2011-05-11  Bruno Haible  <bruno@clisp.org>
55825         group-member: Document module.
55826         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55827         module.
55829 2011-05-11  Bruno Haible  <bruno@clisp.org>
55831         fclose: Fix mistake earlier today.
55832         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55834 2011-05-11  Eric Blake  <eblake@redhat.com>
55836         fclose: preserve fflush errors
55837         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55838         Reported by Jim Meyering.
55840         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55841         * build-aux/bootstrap (check_versions): When no specific version
55842         is required, merely check that the app produces an exit status
55843         that indicates its existence.
55845         maint.mk: drop redundant check
55846         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55847         the same but better.
55849 2011-05-11  Bruno Haible  <bruno@clisp.org>
55851         fclose: Fix possible link error.
55852         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55853         unregister_shadow_fd. Improve comments.
55854         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55855         Eric Blake.
55857 2011-05-11  Jim Meyering  <meyering@redhat.com>
55859         maint.mk: improve "can not" detection and generalize rule name
55860         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55861         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55862         Use the same technique as in sc_prohibit_doubled_word, so that
55863         we recognize "can not" also when the words are separated by a newline.
55864         Suggested by Eric Blake.
55865         (perl_filename_lineno_text_): Define.  Factored out of...
55866         (prohibit_doubled_word_): ...here.  Use the new definition.
55867         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55868         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55869         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55871 2011-05-10  Eric Blake  <eblake@redhat.com>
55873         fclose: avoid double close race when possible
55874         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55875         all but WINDOWS_SOCKETS.
55877 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55879         openat: correct new comment
55880         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55882 2011-05-10  Jim Meyering  <meyering@redhat.com>
55884         openat: add comments
55885         * lib/openat-proc.c (openat_proc_name): Add comments,
55886         mostly from Eric Blake.
55888 2011-05-09  Eric Blake  <eblake@redhat.com>
55890         openat: reduce syscalls in first probe of /proc
55891         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55892         be a directory.  Simplify the probe for .. bugs.
55893         * modules/openat (Depends-on): Drop same-inode.
55894         Reported by Bastien ROUCARIES.
55896 2011-05-09  Jim Meyering  <meyering@redhat.com>
55898         maint.mk: change semantics/name of tight_scope variables
55899         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55900         Rename variables to align with semantics that make them more useful.
55902         maint.mk: tweak new rule's name not to impinge
55903         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55904         (sc_tight_scope): Use new rule name rather than $@-0.
55906         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55907         * top/maint.mk (sc_tight_scope): New rule.
55908         (sc_tight_scope-0): New rule, ifdef'd out.
55909         (_gl_TS_dir): Default.
55910         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55911         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55913 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55915         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55916         Haible <bruno@clisp.org>.
55918 2011-05-08  Bruno Haible  <bruno@clisp.org>
55920         Comments.
55921         * m4/isnanf.m4: Add comment.
55922         * m4/isnanl.m4: Likewise.
55924 2011-05-08  Bruno Haible  <bruno@clisp.org>
55926         glob: Remove obsolete macro.
55927         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55929 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55931         intprops: Sun C 5.11 supports __typeof__
55932         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55933         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55934         which is new.
55935         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55937         intprops: switch to usual gnulib indenting and naming
55938         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55939         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55941         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55943 2011-05-08  Jim Meyering  <meyering@redhat.com>
55945         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55946         * top/maint.mk (release-prep): Use make's --no-print-directory
55947         option when generating the announcement.  This eliminates the
55948         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55949         generated announcement template.
55951 2011-05-08  Bruno Haible  <bruno@clisp.org>
55953         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55954         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55955         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55957 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55959         ignore-value, verify: Omit include files from lib_SOURCES.
55960         * modules/ignore-value, modules/verify (Makefile.am):
55961         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55962         that leads Automake to duplicate use of am__objects_... variables
55963         in Makefile.in.  See
55964         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55966 2011-05-07  Bruno Haible  <bruno@clisp.org>
55968         fclose: Simplify autoconf macro.
55969         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55970         defined.
55972 2011-05-07  Bruno Haible  <bruno@clisp.org>
55974         canonicalize-lgpl: Fix autoconf macro ordering bug.
55975         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55976         gl_STDLIB_H_DEFAULTS.
55978 2011-05-06  Eric Blake  <eblake@redhat.com>
55980         maintainer-makefile: make sc_po_check easier to tune
55981         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55982         to probe for strings, such as an alternate location for gnulib.
55984         fclose: guarantee behavior on seekable stdin
55985         * modules/fclose (Depends-on): Add fflush.
55986         * doc/posix-functions/fclose.texi (fclose): Document this.
55987         * tests/test-fclose.c (main): Make test for this unconditional.
55989 2011-05-06  Bruno Haible  <bruno@clisp.org>
55991         fflush, fpurge: Relicense under LGPLv2+.
55992         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55993         * modules/fpurge (License): Likewise.
55994         With permission from Eric Blake and Jim Meyering.
55995         Suggested by Eric Blake.
55997 2011-05-06  Karl Berry  <karl@gnu.org>
55999         * MODULES.html.sh (func_all_modules): remove exit.
56001 2011-05-06  Jim Meyering  <meyering@redhat.com>
56003         maint.mk: use info-gnu@ as the default only for a stable release
56004         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56005         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56006         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56007         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56009 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56011         assert-h: new module, which supports C1X-style static_assert
56012         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56013         * lib/verify.h: Revamp so that this can be copied into assert.h,
56014         while retaining the ability to use it standalone as before.
56015         Rename private identifiers so as not to encroach on the
56016         standard C namespace, since this is now used by assert.h.
56017         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56018         the old verify_true.
56019         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56020         the old verify_true.  Use _GL_VERIFY_TYPE.
56021         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56022         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56023         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56024         defined when this file is copied into the replacement assert.h.
56025         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56026         and _Static_assert is not built in.
56027         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56028         defined, and use the new macros mentioned above.
56029         * doc/posix-headers/assert.texi: Document this.
56031 2011-05-05  Bruno Haible  <bruno@clisp.org>
56033         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56034         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56035         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56036         gl_REPLACE_FCLOSE here.
56037         * modules/fflush (Depends-on): Remove fclose.
56038         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56039         combination with module 'fclose'.
56041 2011-05-05  Bruno Haible  <bruno@clisp.org>
56043         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56044         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56045         gl_FUNC_FFLUSH.
56046         (gl_FUNC_FFLUSH): Use it.
56047         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56049         gl_REPLACE_FSEEKO here.
56051 2011-05-05  Bruno Haible  <bruno@clisp.org>
56053         tzset: Relicense under LGPL.
56054         * modules/tzset (License): Change to LGPL.
56055         No agreement needed; it's a no-op.
56057         strtoimax, strtoumax: Relicense under LGPL.
56058         * modules/strtoimax (License): Change to LGPL.
56059         * modules/strtoumax (License): Likewise.
56060         With permission from Jim Meyering, Paul Eggert:
56061         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56062         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56064         getgroups: Relicense under LGPL.
56065         * modules/getgroups (License): Change to LGPL.
56066         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56067         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56068         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56069         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56071         nanosleep: Relicense under LGPL.
56072         * modules/nanosleep (License): Change to LGPL.
56073         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56074         Haible:
56075         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56076         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56077         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56078         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56080         futimens: Relicense under LGPL.
56081         * modules/futimens (License): Change to LGPL.
56082         With permission from Eric Blake:
56083         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56085         fflush: Relicense under LGPL.
56086         * modules/fflush (License): Change to LGPL.
56087         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56088         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56089         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56090         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56092         tmpfile: Relicense under LGPL.
56093         * modules/tmpfile (License): Change to LGPL.
56094         With permission from Ben Pfaff:
56095         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56097         isfinite: Relicense under LGPL.
56098         * modules/isfinite (License): Change to LGPL.
56099         With permission from Ben Pfaff, Bruno Haible:
56100         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56101         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56103         acosl..tanl: Relicense under LGPL.
56104         * modules/acosl (License): Change to LGPL.
56105         * modules/asinl (License): Likewise.
56106         * modules/atanl (License): Likewise.
56107         * modules/cosl (License): Likewise.
56108         * modules/expl (License): Likewise.
56109         * modules/logl (License): Likewise.
56110         * modules/sinl (License): Likewise.
56111         * modules/sqrtl (License): Likewise.
56112         * modules/tanl (License): Likewise.
56113         Source code originally from glibc and Paolo Bonzini. Agreements:
56114         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56115         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56117 2011-05-05  Bruno Haible  <bruno@clisp.org>
56119         signal: Define sighandler_t.
56120         * lib/signal.in.h (sighandler_t): New type.
56121         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56122         whether sighandler_t is defined.
56123         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56124         * modules/signal (Depends-on): Add extensions.
56125         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56126         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56127         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56129 2011-05-05  Eric Blake  <eblake@redhat.com>
56131         maint: remove useless REPLACE_*_H macros
56132         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56133         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56134         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56135         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56136         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56137         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56138         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56139         * m4/btowc.m4: Update callers.
56140         * m4/dirfd.m4: Likewise.
56141         * m4/duplocale.m4: Likewise.
56142         * m4/fchdir.m4: Likewise.
56143         * m4/fdopendir.m4: Likewise.
56144         * m4/inet_ntop.m4: Likewise.
56145         * m4/inet_pton.m4: Likewise.
56146         * m4/ioctl.m4: Likewise.
56147         * m4/mbrlen.m4: Likewise.
56148         * m4/mbrtowc.m4: Likewise.
56149         * m4/mbsinit.m4: Likewise.
56150         * m4/mbsnrtowcs.m4: Likewise.
56151         * m4/mbsrtowcs.m4: Likewise.
56152         * m4/poll.m4: Likewise.
56153         * m4/setlocale.m4: Likewise.
56154         * m4/wcrtomb.m4: Likewise.
56155         * m4/wcsnrtombs.m4: Likewise.
56156         * m4/wcsrtombs.m4: Likewise.
56157         * m4/wctob.m4: Likewise.
56158         * m4/wcwidth.m4: Likewise.
56159         * modules/posix_spawn: Likewise.
56160         * modules/posix_spawn_file_actions_addclose: Likewise.
56161         * modules/posix_spawn_file_actions_adddup2: Likewise.
56162         * modules/posix_spawn_file_actions_addopen: Likewise.
56163         * modules/posix_spawn_file_actions_destroy: Likewise.
56164         * modules/posix_spawn_file_actions_init: Likewise.
56165         * modules/posix_spawnattr_destroy: Likewise.
56166         * modules/posix_spawnattr_getflags: Likewise.
56167         * modules/posix_spawnattr_getpgroup: Likewise.
56168         * modules/posix_spawnattr_getschedparam: Likewise.
56169         * modules/posix_spawnattr_getschedpolicy: Likewise.
56170         * modules/posix_spawnattr_getsigdefault: Likewise.
56171         * modules/posix_spawnattr_getsigmask: Likewise.
56172         * modules/posix_spawnattr_init: Likewise.
56173         * modules/posix_spawnattr_setflags: Likewise.
56174         * modules/posix_spawnattr_setpgroup: Likewise.
56175         * modules/posix_spawnattr_setschedparam: Likewise.
56176         * modules/posix_spawnattr_setschedpolicy: Likewise.
56177         * modules/posix_spawnattr_setsigdefault: Likewise.
56178         * modules/posix_spawnattr_setsigmask: Likewise.
56179         * modules/posix_spawnp: Likewise.
56181 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56183         Add option to do-release-commit-and-tag to specify branch.
56184         * build-aux/do-release-commit-and-tag: Add --branch.
56186 2011-05-03  Bruno Haible  <bruno@clisp.org>
56188         Avoid unnecessary compilation units, through conditional dependencies.
56189         * modules/accept (Depends-on): Add conditions to the dependencies.
56190         * modules/acosl (Depends-on): Likewise.
56191         * modules/argz (Depends-on): Likewise.
56192         * modules/asinl (Depends-on): Likewise.
56193         * modules/atanl (Depends-on): Likewise.
56194         * modules/atoll (Depends-on): Likewise.
56195         * modules/bind (Depends-on): Likewise.
56196         * modules/btowc (Depends-on): Likewise.
56197         * modules/canonicalize-lgpl (Depends-on): Likewise.
56198         * modules/ceil (Depends-on): Likewise.
56199         * modules/ceilf (Depends-on): Likewise.
56200         * modules/ceill (Depends-on): Likewise.
56201         * modules/chdir-long (Depends-on): Likewise.
56202         * modules/chown (Depends-on): Likewise.
56203         * modules/close (Depends-on): Likewise.
56204         * modules/connect (Depends-on): Likewise.
56205         * modules/cosl (Depends-on): Likewise.
56206         * modules/dirfd (Depends-on): Likewise.
56207         * modules/dprintf (Depends-on): Likewise.
56208         * modules/dprintf-posix (Depends-on): Likewise.
56209         * modules/error (Depends-on): Likewise.
56210         * modules/euidaccess (Depends-on): Likewise.
56211         * modules/expl (Depends-on): Likewise.
56212         * modules/faccessat (Depends-on): Likewise.
56213         * modules/fchdir (Depends-on): Likewise.
56214         * modules/fclose (Depends-on): Likewise.
56215         * modules/fcntl (Depends-on): Likewise.
56216         * modules/fdopendir (Depends-on): Likewise.
56217         * modules/fflush (Depends-on): Likewise.
56218         * modules/floor (Depends-on): Likewise.
56219         * modules/floorf (Depends-on): Likewise.
56220         * modules/floorl (Depends-on): Likewise.
56221         * modules/fnmatch (Depends-on): Likewise.
56222         * modules/fopen (Depends-on): Likewise.
56223         * modules/fprintf-posix (Depends-on): Likewise.
56224         * modules/frexp (Depends-on): Likewise.
56225         * modules/frexp-nolibm (Depends-on): Likewise.
56226         * modules/frexpl (Depends-on): Likewise.
56227         * modules/frexpl-nolibm (Depends-on): Likewise.
56228         * modules/fseek (Depends-on): Likewise.
56229         * modules/fsusage (Depends-on): Likewise.
56230         * modules/ftell (Depends-on): Likewise.
56231         * modules/ftello (Depends-on): Likewise.
56232         * modules/futimens (Depends-on): Likewise.
56233         * modules/getcwd (Depends-on): Likewise.
56234         * modules/getcwd-lgpl (Depends-on): Likewise.
56235         * modules/getdelim (Depends-on): Likewise.
56236         * modules/getdomainname (Depends-on): Likewise.
56237         * modules/getgroups (Depends-on): Likewise.
56238         * modules/gethostname (Depends-on): Likewise.
56239         * modules/getline (Depends-on): Likewise.
56240         * modules/getlogin_r (Depends-on): Likewise.
56241         * modules/getopt-posix (Depends-on): Likewise.
56242         * modules/getpeername (Depends-on): Likewise.
56243         * modules/getsockname (Depends-on): Likewise.
56244         * modules/getsockopt (Depends-on): Likewise.
56245         * modules/getsubopt (Depends-on): Likewise.
56246         * modules/getusershell (Depends-on): Likewise.
56247         * modules/glob (Depends-on): Likewise.
56248         * modules/grantpt (Depends-on): Likewise.
56249         * modules/iconv_open (Depends-on): Likewise.
56250         * modules/iconv_open-utf (Depends-on): Likewise.
56251         * modules/inet_ntop (Depends-on): Likewise.
56252         * modules/inet_pton (Depends-on): Likewise.
56253         * modules/ioctl (Depends-on): Likewise.
56254         * modules/isapipe (Depends-on): Likewise.
56255         * modules/isfinite (Depends-on): Likewise.
56256         * modules/isinf (Depends-on): Likewise.
56257         * modules/lchown (Depends-on): Likewise.
56258         * modules/ldexpl (Depends-on): Likewise.
56259         * modules/link (Depends-on): Likewise.
56260         * modules/linkat (Depends-on): Likewise.
56261         * modules/listen (Depends-on): Likewise.
56262         * modules/logl (Depends-on): Likewise.
56263         * modules/lstat (Depends-on): Likewise.
56264         * modules/mbrlen (Depends-on): Likewise.
56265         * modules/mbrtowc (Depends-on): Likewise.
56266         * modules/mbsinit (Depends-on): Likewise.
56267         * modules/mbsnrtowcs (Depends-on): Likewise.
56268         * modules/mbsrtowcs (Depends-on): Likewise.
56269         * modules/mbtowc (Depends-on): Likewise.
56270         * modules/memcmp (Depends-on): Likewise.
56271         * modules/mkdir (Depends-on): Likewise.
56272         * modules/mkdtemp (Depends-on): Likewise.
56273         * modules/mkfifo (Depends-on): Likewise.
56274         * modules/mkfifoat (Depends-on): Likewise.
56275         * modules/mknod (Depends-on): Likewise.
56276         * modules/mkostemp (Depends-on): Likewise.
56277         * modules/mkostemps (Depends-on): Likewise.
56278         * modules/mkstemp (Depends-on): Likewise.
56279         * modules/mkstemps (Depends-on): Likewise.
56280         * modules/mktime (Depends-on): Likewise.
56281         * modules/nanosleep (Depends-on): Likewise.
56282         * modules/open (Depends-on): Likewise.
56283         * modules/openat (Depends-on): Likewise.
56284         * modules/perror (Depends-on): Likewise.
56285         * modules/poll (Depends-on): Likewise.
56286         * modules/popen (Depends-on): Likewise.
56287         * modules/posix_spawn (Depends-on): Likewise.
56288         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56289         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56290         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56291         * modules/posix_spawnp (Depends-on): Likewise.
56292         * modules/pread (Depends-on): Likewise.
56293         * modules/printf-posix (Depends-on): Likewise.
56294         * modules/ptsname (Depends-on): Likewise.
56295         * modules/putenv (Depends-on): Likewise.
56296         * modules/pwrite (Depends-on): Likewise.
56297         * modules/readline (Depends-on): Likewise.
56298         * modules/readlink (Depends-on): Likewise.
56299         * modules/readlinkat (Depends-on): Likewise.
56300         * modules/recv (Depends-on): Likewise.
56301         * modules/recvfrom (Depends-on): Likewise.
56302         * modules/regex (Depends-on): Likewise.
56303         * modules/remove (Depends-on): Likewise.
56304         * modules/rename (Depends-on): Likewise.
56305         * modules/renameat (Depends-on): Likewise.
56306         * modules/rmdir (Depends-on): Likewise.
56307         * modules/round (Depends-on): Likewise.
56308         * modules/roundf (Depends-on): Likewise.
56309         * modules/roundl (Depends-on): Likewise.
56310         * modules/rpmatch (Depends-on): Likewise.
56311         * modules/select (Depends-on): Likewise.
56312         * modules/send (Depends-on): Likewise.
56313         * modules/sendto (Depends-on): Likewise.
56314         * modules/setenv (Depends-on): Likewise.
56315         * modules/setlocale (Depends-on): Likewise.
56316         * modules/setsockopt (Depends-on): Likewise.
56317         * modules/shutdown (Depends-on): Likewise.
56318         * modules/sigaction (Depends-on): Likewise.
56319         * modules/signbit (Depends-on): Likewise.
56320         * modules/sigprocmask (Depends-on): Likewise.
56321         * modules/sinl (Depends-on): Likewise.
56322         * modules/sleep (Depends-on): Likewise.
56323         * modules/snprintf (Depends-on): Likewise.
56324         * modules/snprintf-posix (Depends-on): Likewise.
56325         * modules/socket (Depends-on): Likewise.
56326         * modules/sprintf-posix (Depends-on): Likewise.
56327         * modules/sqrtl (Depends-on): Likewise.
56328         * modules/stat (Depends-on): Likewise.
56329         * modules/strchrnul (Depends-on): Likewise.
56330         * modules/strdup-posix (Depends-on): Likewise.
56331         * modules/strerror (Depends-on): Likewise.
56332         * modules/strerror_r-posix (Depends-on): Likewise.
56333         * modules/strndup (Depends-on): Likewise.
56334         * modules/strnlen (Depends-on): Likewise.
56335         * modules/strptime (Depends-on): Likewise.
56336         * modules/strsep (Depends-on): Likewise.
56337         * modules/strsignal (Depends-on): Likewise.
56338         * modules/strstr-simple (Depends-on): Likewise.
56339         * modules/strtod (Depends-on): Likewise.
56340         * modules/strtoimax (Depends-on): Likewise.
56341         * modules/strtok_r (Depends-on): Likewise.
56342         * modules/strtoumax (Depends-on): Likewise.
56343         * modules/symlink (Depends-on): Likewise.
56344         * modules/symlinkat (Depends-on): Likewise.
56345         * modules/tanl (Depends-on): Likewise.
56346         * modules/tcgetsid (Depends-on): Likewise.
56347         * modules/tmpfile (Depends-on): Likewise.
56348         * modules/trunc (Depends-on): Likewise.
56349         * modules/truncf (Depends-on): Likewise.
56350         * modules/truncl (Depends-on): Likewise.
56351         * modules/uname (Depends-on): Likewise.
56352         * modules/unlink (Depends-on): Likewise.
56353         * modules/unlockpt (Depends-on): Likewise.
56354         * modules/unsetenv (Depends-on): Likewise.
56355         * modules/usleep (Depends-on): Likewise.
56356         * modules/utimensat (Depends-on): Likewise.
56357         * modules/vasprintf (Depends-on): Likewise.
56358         * modules/vdprintf (Depends-on): Likewise.
56359         * modules/vdprintf-posix (Depends-on): Likewise.
56360         * modules/vfprintf-posix (Depends-on): Likewise.
56361         * modules/vprintf-posix (Depends-on): Likewise.
56362         * modules/vsnprintf (Depends-on): Likewise.
56363         * modules/vsnprintf-posix (Depends-on): Likewise.
56364         * modules/vsprintf-posix (Depends-on): Likewise.
56365         * modules/wcrtomb (Depends-on): Likewise.
56366         * modules/wcscasecmp (Depends-on): Likewise.
56367         * modules/wcscspn (Depends-on): Likewise.
56368         * modules/wcsdup (Depends-on): Likewise.
56369         * modules/wcsncasecmp (Depends-on): Likewise.
56370         * modules/wcsnrtombs (Depends-on): Likewise.
56371         * modules/wcspbrk (Depends-on): Likewise.
56372         * modules/wcsrtombs (Depends-on): Likewise.
56373         * modules/wcsspn (Depends-on): Likewise.
56374         * modules/wcsstr (Depends-on): Likewise.
56375         * modules/wcstok (Depends-on): Likewise.
56376         * modules/wcswidth (Depends-on): Likewise.
56377         * modules/wctob (Depends-on): Likewise.
56378         * modules/wctomb (Depends-on): Likewise.
56379         * modules/wctype (Depends-on): Likewise.
56380         * modules/wcwidth (Depends-on): Likewise.
56381         * modules/write (Depends-on): Likewise.
56383 2011-05-03  Bruno Haible  <bruno@clisp.org>
56385         Support for conditional dependencies.
56386         * doc/gnulib.texi (Module description): Document the syntax of
56387         conditional dependencies.
56388         * gnulib-tool: New option --conditional-dependencies.
56389         (func_usage): Document it.
56390         (cond_dependencies): New variable.
56391         (func_get_automake_snippet_conditional,
56392         func_get_automake_snippet_unconditional): New functions, extracted from
56393         func_get_automake_snippet.
56394         (func_get_automake_snippet): Use them.
56395         (sed_first_32_chars): New variable.
56396         (func_module_shellfunc_name): New function.
56397         (func_module_shellvar_name): New function.
56398         (func_module_conditional_name): New function.
56399         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56400         func_cond_module_condition): New functions.
56401         (func_modules_transitive_closure): Add support for conditional
56402         dependencies.
56403         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56404         conditional automake snippet in an automake conditional.
56405         (func_emit_autoconf_snippets): Emit shell functions that contain the
56406         code for conditional modules.
56407         (func_import, func_create_testdir): Update specification.
56409 2011-05-03  Eric Blake  <eblake@redhat.com>
56411         test-getaddrinfo: report error information
56412         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56414 2011-05-03  Jim Meyering  <meyering@redhat.com>
56416         bootstrap: avoid build failure when $GZIP is set
56417         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56418         program name.  If defined at all, it is supposed to list gzip options.
56419         Reported by Alan Curry in http://debbugs.gnu.org/8609
56421 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56423         readme-release: new module with release instructions
56424         * modules/readme-release: New module.
56425         * top/README-release: New file, from coreutils, grep, diffutils.
56426         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56428 2011-05-02  Eric Blake  <eblake@redhat.com>
56430         fflush: also replace fclose when fixing fflush
56431         * modules/fflush (Depends-on): Add fclose.
56432         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56433         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56434         memstreams with no backing fd.
56435         * doc/posix-functions/fclose.texi (fclose): Document the use of
56436         fflush module to fix the bug.
56437         * tests/test-fclose.c (main): Relax test when fclose is used in
56438         isolation.
56440         fclose: add some tests
56441         * modules/fclose-tests: New test module.
56442         * tests/test-fclose.c: New file.
56443         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56445         fclose: reduced dependencies
56446         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56447         simpler lseek.
56448         * lib/fclose.c (rpl_fclose): Likewise.
56449         Reported by Simon Josefsson.
56451         exit: drop remaining clients
56452         * modules/argmatch (Depends-on): Replace exit with stdlib.
56453         * modules/copy-file (Depends-on): Likewise.
56454         * modules/execute (Depends-on): Likewise.
56455         * modules/exitfail (Depends-on): Likewise.
56456         * modules/obstack (Depends-on): Likewise.
56457         * modules/pagealign_alloc (Depends-on): Likewise.
56458         * modules/pipe-filter-gi (Depends-on): Likewise.
56459         * modules/pipe-filter-ii (Depends-on): Likewise.
56460         * modules/savewd (Depends-on): Likewise.
56461         * modules/spawn-pipe (Depends-on): Likewise.
56462         * modules/wait-process (Depends-on): Likewise.
56463         * modules/xsetenv (Depends-on): Likewise.
56464         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56465         * modules/git-merge-changelog (Depends-on): Likewise.
56466         * modules/long-options (Depends-on): Likewise.
56467         * modules/pt_chown (Depends-on): Likewise.
56468         * modules/sysexits (Depends-on): Likewise.
56470         freading: relax license from LGPLv3+ to LGPLv2+
56471         * modules/freading (License): Relax LGPL version.
56473 2011-05-02  Bruno Haible  <bruno@clisp.org>
56475         fchdir: Remove unused dependencies.
56476         * modules/fchdir (Depends-on): Remove include_next.
56478 2011-05-02  Bruno Haible  <bruno@clisp.org>
56480         gnulib-tool: Refactor.
56481         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56482         from func_emit_autoconf_snippets.
56483         (func_emit_autoconf_snippets): Use it.
56485 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56487         * NEWS: Document removal of 'exit'.
56488         * modules/exit: Remove file.
56490 2011-05-01  Bruno Haible  <bruno@clisp.org>
56492         Update DEPENDENCIES.
56493         * DEPENDENCIES (gettext): Recommend the newest release.
56494         Reported by Simon Josefsson.
56496 2011-05-01  Bruno Haible  <bruno@clisp.org>
56498         gnulib-tool: Reduce code duplication.
56499         * gnulib-tool (func_emit_autoconf_snippets): New function.
56500         (func_import, func_create_testdir): Use it.
56502 2011-04-30  Eric Blake  <eblake@redhat.com>
56504         fclose: don't fail on non-seekable input stream
56505         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56506         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56507         since fflush is allowed to fail in that case.
56509 2011-04-30  Bruno Haible  <bruno@clisp.org>
56511         dup3: cleanup
56512         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56514 2011-04-30  Bruno Haible  <bruno@clisp.org>
56516         netdb: Make it work in C++ mode.
56517         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56518         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56519         module.
56520         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56521         gl_MODULE_INDICATOR_FOR_TESTS.
56522         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56523         * modules/netdb-c++-tests: New file.
56524         * tests/test-netdb-c++.cc: New file.
56526 2011-04-30  Bruno Haible  <bruno@clisp.org>
56528         New modules 'vfscanf', 'vscanf'.
56529         * modules/vfscanf: New file.
56530         * modules/vscanf: New file.
56531         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56532         here.
56533         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56534         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56536 2011-04-30  Bruno Haible  <bruno@clisp.org>
56538         passfd: Add comments.
56539         * lib/passfd.c: Add comments about platforms.
56541 2011-04-30  Bruno Haible  <bruno@clisp.org>
56543         sys_uio: Make <sys/uio.h> self-contained.
56544         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56545         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56547 2011-04-30  Bruno Haible  <bruno@clisp.org>
56549         sys_socket: Ensure 'struct iovec' definition.
56550         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56551         <sys/socket.h>.
56552         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56554 2011-04-30  Bruno Haible  <bruno@clisp.org>
56556         sys_uio: Protect definition of 'struct iovec'.
56557         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56558         it as a C struct.
56560 2011-04-30  Bruno Haible  <bruno@clisp.org>
56562         manywarnings: fix indentation
56563         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56565 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56567         manywarnings: add -Wno-missing-field-initializers if needed.
56568         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56569         option if it's needed to allow initialization with { 0, }
56571 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56573         announce-gen: cosmetic improvement
56574         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56576 2011-04-29  Jim Meyering  <meyering@redhat.com>
56578         vc-list-files: indent with spaces, not TABs
56579         * build-aux/vc-list-files: Convert leading TABs to spaces,
56580         to match the style of most other files in gnulib.
56582         announce-gen: indent with spaces, not TABs
56583         * build-aux/announce-gen: Convert all TABs to spaces, to match
56584         the style of most other files in gnulib.
56586 2011-04-29  Eric Blake  <eblake@redhat.com>
56588         quotearg: avoid uninitialized variable use
56589         * lib/quotearg.c (quoting_options_from_style): Initialize
56590         remaining fields, and ensure that custom styles are only used via
56591         quoting_options rather than quoting_style.
56593 2011-04-29  Jim Meyering  <meyering@redhat.com>
56595         maint.mk: remove unused VC-tag variable
56596         * top/maint.mk (VC-tag): Remove unused variable.
56598 2011-04-29  Bruno Haible  <bruno@clisp.org>
56600         netdb: fix gai_strerror replacements
56601         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56602         * modules/netdb: Substitute it.
56604 2011-04-29  Jim Meyering  <meyering@redhat.com>
56606         test-getcwd.c: avoid new set-but-not-used warning
56607         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56608         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56609         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56610         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56612         test-hash.c: avoid a new shadowing warning
56613         * tests/test-hash.c (main): Don't shadow "dup".
56615 2011-04-28  Eric Blake  <eblake@redhat.com>
56617         getaddrinfo: fix gai_strerror signature
56618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56619         and work around mingw with UNICODE defined.
56620         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56621         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56622         * modules/netdb (Makefile.am): Substitute it.
56623         * lib/netdb.in.h (gai_strerror): Declare replacement.
56624         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56625         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56626         the fix.
56628         getsockopt: avoid compiler warning
56629         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56630         Reported by Matthias Bolte.
56632         tests: drop unused link dependency
56633         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56634         * modules/dirent-safer-tests (Makefile.am): Likewise.
56635         * modules/fdopendir-tests (Makefile.am): Likewise.
56636         * modules/mkfifoat-tests (Makefile.am): Likewise.
56637         * modules/openat-safer-tests (Makefile.am): Likewise.
56638         * modules/openat-tests (Makefile.am): Likewise.
56639         * modules/readlinkat-tests (Makefile.am): Likewise.
56640         * modules/symlinkat-tests (Makefile.am): Likewise.
56641         * modules/linkat-tests (Makefile.am): Likewise.
56642         (Depends-on): Switch to filenamecat-lgpl.
56643         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56644         LIBINTL.
56645         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56646         * tests/test-linkat.c (main): Don't require xalloc.
56648         hash, mgetgroups: drop xalloc dependency
56649         * lib/hash.c (includes): Adjust includes.
56650         * lib/mgetgroups.c (includes): Likewise.
56651         (xgetgroups): Move...
56652         * lib/xgetgroups.c: ...to new file.
56653         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56654         * modules/xgetgroups: New file, split from...
56655         * modules/mgetgroups: ...here.
56656         (Depends-on): Add xalloc-oversized.
56657         * modules/hash (Depends-on): Likewise.
56658         * modules/hash-tests (Depends-on): Drop xalloc.
56659         (test_hash_LDADD): Drop unused library.
56660         * tests/test-hash.c (main): Break xalloc dependency.
56661         (includes): Drop unused include.
56663         xalloc-oversized: new module
56664         * modules/xalloc-oversized: New module.
56665         * modules/xalloc (Depends-on): Add it.
56666         * lib/xalloc.h (xalloc_oversized): Move...
56667         * lib/xalloc-oversized.h: ...into new file.
56669         utimecmp: drop dependency on xmalloc
56670         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56671         due to memory pressure.
56672         * modules/utimecmp (Depends-on): Drop xalloc.
56674 2011-04-27  Eric Blake  <eblake@redhat.com>
56676         getcwd: fix mingw bugs
56677         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56678         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56679         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56681 2011-04-27  Bruno Haible  <bruno@clisp.org>
56683         mkstemps: Ensure declaration on MacOS X 10.5.
56684         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56685         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56686         MacOS X.
56688 2011-04-27  Bruno Haible  <bruno@clisp.org>
56690         mkstemp: More documentation.
56691         * doc/posix-functions/mkstemp.texi: Document header file problem on
56692         MacOS X.
56694 2011-04-27  Bruno Haible  <bruno@clisp.org>
56696         mkstemp: Tweak configure message when cross-compiling.
56697         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56698         result as a guess.
56700 2011-04-27  Bruno Haible  <bruno@clisp.org>
56702         clean-temp: Clarify what it does.
56703         * lib/clean-temp.h: Add more comments.
56704         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56705         module.
56706         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56707         * doc/glibc-functions/mkstemps.texi: Likewise.
56708         * doc/glibc-functions/mkostemps.texi: Likewise.
56710 2011-04-27  Eric Blake  <eblake@redhat.com>
56712         fchdir: avoid extra chdir and fix test
56713         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56714         getcwd-lgpl.
56715         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56716         have to be canonical.
56717         (canonicalize_file_name): Drop unused macro.
56718         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56720         filenamecat-lgpl: fix licence
56721         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56722         when it was first created.
56724         linkat, renameat: add missing dependency
56725         * modules/linkat (Depends-on): Require getcwd-lgpl.
56726         * modules/renameat (Depends-on): Likewise.
56728         tests: reduce dependencies
56729         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56730         * tests/test-renameat.c (main): Likewise.
56731         * modules/linkat-tests (Depends-on): Relax dependency.
56732         * modules/renameat-tests (Depends-on): Likewise.
56733         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56734         dependency explicit.
56736         save-cwd: reduce default dependency
56737         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56738         * lib/save-cwd.c: Update comments.
56739         * NEWS: Document the semantic change.
56741         getcwd: enhance tests
56742         * tests/test-getcwd-lgpl.c: New file, taken from...
56743         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56744         repeat long path stress tests from m4 probe.
56745         * modules/getcwd-lgpl-tests: New module.
56746         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56747         * m4/getcwd-abort-bug.m4: Update comment.
56748         * m4/getcwd-path-max.m4: Likewise.
56750         getcwd-lgpl: new module
56751         * modules/getcwd-lgpl: New module.
56752         * lib/getcwd-lgpl.c: New file.
56753         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56754         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56755         * modules/getcwd (configure.ac): Set C witness.
56756         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56758         getcwd: tweak comments
56759         * m4/getcwd-abort-bug.m4: Fix comments.
56760         * m4/getcwd-path-max.m4: Likewise.
56761         * m4/getcwd.m4: Likewise.
56763 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56764         and Eric Blake  <eblake@redhat.com>
56766         mkstemp: replace if system version uses wrong permissions
56767         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56768         read/write mode bits set in file created by mkstemp.
56769         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56771 2011-04-27  Eric Blake  <eblake@redhat.com>
56773         passfd: avoid compiler warning
56774         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56775         Reported by Laine Stump.
56777 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56779         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56780         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56782 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56783         and Eric Blake  <eblake@redhat.com>
56785         mkstemp: mention clean-temp module
56786         * lib/mkstemp.c: Add comment.
56787         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56789 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56791         inttypes: also provide default values for 32-bit tests
56792         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56793         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56795 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56797         strtoumax: remove dependency on strtoimax
56798         This is like the strtoull change of yesterday.
56799         * modules/strtoumax (Files): Add lib/strtoimax.c.
56800         (Depends-on): Remove strtoimax and add verify.
56802         inttypes-incomplete: new module
56803         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56804         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56805         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56806         of gl_INTTYPES_H.
56807         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56808         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56809         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56810         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56811         * modules/strtoumax, modules/xstrtol (Depends-on):
56812         Depend on inttypes-incomplete, not inttypes.
56813         * modules/inttypes-incomplete: New module, containing the contents
56814         of the old modules/inttypes module, except that the Files: section
56815         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56816         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56817         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56818         (Depends-on): Depend only on inttypes-incomplete.
56819         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56821         inttypes: omit now-redundant strtoimax and strtoumax work
56822         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56823         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56825         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56826         This supports apps that need pointers to strtoimax and strtoumax,
56827         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56828         nonexistent functions.  See
56829         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56830         et seq.
56831         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56832         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56833         a macro.
56834         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56836 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56838         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56840 2011-04-25  Bruno Haible  <bruno@clisp.org>
56842         strtol, strtoul: Mark modules as obsolete.
56843         * modules/strtol (Status, Notice): New sections.
56844         * modules/strtoul (Status, Notice): New sections.
56846 2011-04-25  Bruno Haible  <bruno@clisp.org>
56848         strtod: Remove check for strtod, unless supporting old platforms.
56849         * modules/strtod-obsolete: New file.
56850         * m4/strtod-obsolete.m4: New file.
56851         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56852         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56853         * modules/strtod (Depends-on): Add strtod-obsolete.
56854         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56856 2011-04-25  Bruno Haible  <bruno@clisp.org>
56858         strcase: Make module obsolete.
56859         * modules/strcase (Status, Notice): New sections.
56861 2011-04-25  Bruno Haible  <bruno@clisp.org>
56863         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56864         * modules/dup2-obsolete: New file.
56865         * m4/dup2-obsolete.m4: New file.
56866         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56867         gl_FUNC_DUP2_OBSOLETE is not also defined.
56868         * modules/dup2 (Depends-on): Add dup2-obsolete.
56869         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56871 2011-04-25  Bruno Haible  <bruno@clisp.org>
56873         strnlen: Avoid memchr related link error on old obsolete platforms.
56874         * modules/memchr-obsolete: New file.
56875         * m4/memchr-obsolete.m4: New file.
56876         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56877         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56878         * modules/memchr (Depends-on): Add memchr-obsolete.
56879         * modules/strnlen (Depends-on): Likewise.
56880         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56882 2011-04-25  Jim Meyering  <meyering@redhat.com>
56884         maint.mk: makefile_at_at_check extend and clean up
56885         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56886         in addition to */Makefile.am.
56887         Exempt legitimate uses of @VAR@ notation, e.g.,
56888         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56889         Remove obsolete coreutils-specific comment.
56890         Prompted by discussion here:
56891         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56893 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56895         strtoul: remove dependency on strtol
56896         This is so that 'configure' need not check for strtol merely because
56897         the application needs strtoul.
56898         * modules/strtoul (Files): Add lib/strtol.c.
56899         (Depends-on): Remove strtol.
56901         strtoull: remove dependency on strtoul
56902         This is like the strtoll change.
56903         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56904         (Depends-on): Remove strtoul.
56906         strtoll: remove dependency on strtol
56907         This is so that 'configure' need not check for strtol merely because
56908         the application needs strtoll.
56909         * modules/strtoll (Files): Add lib/strtol.c.
56910         (Depends-on): Remove strtol.
56912 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56914         inttypes: Move some configure check to module 'imaxdiv'.
56915         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56916         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56917         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56919 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56921         inttypes: Move some configure check to module 'imaxabs'.
56922         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56923         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56924         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56926 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56928         inttypes: Remove configure tests that are not needed since 2009-12-31.
56929         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56930         gl_cv_header_working_inttypes_h.
56932 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56934         * modules/strnlen (Depends-on): Remove memchr.
56935         The strnlen implementation doesn't need the memchr module's fixes; see
56936         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56938         strtol: remove dependency on wchar
56939         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56940         * modules/strtol (Depends-on): Remove wchar.
56942 2011-04-21  Eric Blake  <eblake@redhat.com>
56944         passfd: fix test regression on Linux
56945         * modules/passfd-tests (configure.ac): Correct socketpair check.
56947         passfd: speed up configure and drop unused code
56948         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56949         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56950         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56951         Instead of probing at configure for unix_scm_rights_bsd44_way,
56952         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56953         check to a struct member probe.
56954         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56955         (sendfd, recvfd): Update preprocessor checks.
56956         * modules/passfd (Files): Reflect rename, and drop unused file.
56957         (Depends-on): Drop unused dependency.
56959         passfd: allow compilation on mingw
56960         * modules/sys_socket (Depends-on): Add sys_uio.
56961         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56962         iovec and a minimal struct msghdr.
56963         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56964         * tests/test-sys_socket.c (main): Enhance test.
56965         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56966         guaranteed to provide what we need.
56967         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56968         * modules/passfd-tests (Depends-on): Add sys_wait.
56969         * tests/test-passfd.c (main): Skip test on mingw, for now.
56970         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56971         partial 'struct msghdr' implementation.
56973         sys_uio: new module
56974         * modules/sys_uio: New module.
56975         * modules/sys_uio-tests: Likewise.
56976         * lib/sys_uio.in.h: New file.
56977         * m4/sys_uio_h.m4: Likewise.
56978         * tests/test-sys_uio.c: Likewise.
56979         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56980         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56982 2011-04-20  Jim Meyering  <meyering@redhat.com>
56984         useless-if-before-free: avoid false-positive
56985         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56986         disjunct so that it too requires a terminating ";".  Without that,
56987         this script would identify as useless one statement from gcc that
56988         was not:
56989           if (aligned_ptr)
56990             free (((void **) aligned_ptr) [-1]);
56992 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56994         doc: update users.txt.
56995         * users.txt: Add barcode.
56997 2011-04-19  Bruno Haible  <bruno@clisp.org>
56999         ioctl: Remove link dependency on native Windows.
57000         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57001         (gl_close_fn, gl_ioctl_fn): New types.
57002         (struct fd_hook): Renamed from struct close_hook. Change type of
57003         private_close_fn field. Add private_ioctl_fn field.
57004         (close_hook_fn): Add parameter for primary close method.
57005         (execute_close_hooks, execute_all_close_hooks): Likewise.
57006         (ioctl_hook_fn): New type.
57007         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57008         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57009         argument.
57010         (unregister_fd_hook): Renamed from unregister_close_hook.
57011         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57012         Don't include <unistd.h>.
57013         (close): Remove undef.
57014         (anchor): Update.
57015         (execute_close_hooks): Add argument for primary close method.
57016         (execute_all_close_hooks): Likewise.
57017         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57018         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57019         argument. Allow each argument to be NULL.
57020         (unregister_fd_hook): Renamed from unregister_close_hook.
57021         * lib/close.c (rpl_close): Pass 'close' function pointer to
57022         execute_all_close_hooks.
57023         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57024         (primary_ioctl): New function.
57025         (ioctl): Don't call ioctlsocket here. Instead, call
57026         execute_all_ioctl_hooks.
57027         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57028         close method.
57029         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57030         (fd_sockets_hook): Renamed from close_sockets_hook.
57031         (gl_sockets_startup, gl_sockets_cleanup): Update.
57032         * modules/fd-hook: Renamed from modules/close-hook. Update.
57033         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57034         * modules/sockets (Depends-on): Likewise.
57035         * modules/ioctl (Depends-on): Add fd-hook.
57036         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57037         GNULIB_SOCKET.
57039 2011-04-19  Bruno Haible  <bruno@clisp.org>
57041         Move the support of O_NONBLOCK in open() to the 'open' module.
57042         * modules/nonblocking (Depends-on): Remove 'open'.
57043         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57044         gl_cv_have_open_O_NONBLOCK.
57045         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57046         O_NONBLOCK support.
57047         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57049 2011-04-17  Bruno Haible  <bruno@clisp.org>
57051         pipe2: Simplify code.
57052         * lib/pipe2.c (pipe2): Reduce code duplication.
57054 2011-04-17  Bruno Haible  <bruno@clisp.org>
57056         nonblocking: Add comment.
57057         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57059 2011-04-17  Bruno Haible  <bruno@clisp.org>
57061         nonblocking: Add tests for sockets.
57062         * tests/test-nonblocking-socket.sh: New file.
57063         * tests/test-nonblocking-socket-main.c: New file.
57064         * tests/test-nonblocking-socket-child.c: New file.
57065         * tests/test-nonblocking-socket.h: New file.
57066         * tests/socket-server.h: New file.
57067         * tests/socket-client.h: New file.
57068         * modules/nonblocking-socket-tests: New file.
57069         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57071 2011-04-17  Bruno Haible  <bruno@clisp.org>
57073         nonblocking: Add tests for pipes.
57074         * tests/test-nonblocking-pipe.sh: New file.
57075         * tests/test-nonblocking-pipe-main.c: New file.
57076         * tests/test-nonblocking-pipe-child.c: New file.
57077         * tests/test-nonblocking-pipe.h: New file.
57078         * tests/test-nonblocking-writer.h: New file.
57079         * tests/test-nonblocking-reader.h: New file.
57080         * tests/test-nonblocking-misc.h: New file.
57081         * modules/nonblocking-pipe-tests: New file.
57082         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57084 2011-04-16  Bruno Haible  <bruno@clisp.org>
57086         gettext: Clarify the needed programmer actions.
57087         * modules/gettext (Notice): New field.
57088         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57090 2011-04-16  Bruno Haible  <bruno@clisp.org>
57092         strchrnul: Tweak last commit.
57093         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57094         bug.
57095         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57096         as in _GL_FUNCDECL_SYS.
57097         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57098         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57100 2011-04-15  Eric Blake  <eblake@redhat.com>
57102         strchrnul: work around cygwin bug
57103         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57104         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57106         * modules/string (Makefile.am): Substitute it.
57107         * lib/string.in.h (strchrnul): Use it.
57109 2011-04-15  Bruno Haible  <bruno@clisp.org>
57111         Don't require lib/stdio-write.c when only module 'stdio' is used.
57112         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57113         invocation.
57114         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57116 2011-04-14  Bruno Haible  <bruno@clisp.org>
57118         Support non-blocking pipe I/O in read() on native Windows.
57119         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57120         (read): New declaration.
57121         * lib/read.c: New file.
57122         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57123         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57124         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57125         vscanf): New declarations.
57126         * lib/stdio-read.c: New file.
57127         * m4/read.m4: New file.
57128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57129         REPLACE_READ.
57130         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57131         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57132         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57133         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57134         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57135         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57136         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57137         * modules/read: New file.
57138         * modules/nonblocking (Files): Add lib/stdio-read.c.
57139         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57140         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57141         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57142         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57143         * modules/pread (Depends-on): Add read.
57144         * modules/safe-read (Depends-on): Likewise.
57145         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57146         gets, scanf, vfscanf, vscanf): Verify signatures.
57147         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57148         problem with non-blocking pipes.
57149         * doc/posix-functions/fgetc.texi: Likewise.
57150         * doc/posix-functions/fgets.texi: Likewise.
57151         * doc/posix-functions/fread.texi: Likewise.
57152         * doc/posix-functions/fscanf.texi: Likewise.
57153         * doc/posix-functions/getc.texi: Likewise.
57154         * doc/posix-functions/getchar.texi: Likewise.
57155         * doc/posix-functions/gets.texi: Likewise.
57156         * doc/posix-functions/scanf.texi: Likewise.
57157         * doc/posix-functions/vfscanf.texi: Likewise.
57158         * doc/posix-functions/vscanf.texi: Likewise.
57160 2011-04-14  Bruno Haible  <bruno@clisp.org>
57162         Support non-blocking pipe I/O in write() on native Windows.
57163         * lib/write.c (rpl_write): Split a write request that failed merely
57164         because the byte count was larger than the pipe buffer's size.
57165         * doc/posix-functions/write.texi: Mention the problem with large byte
57166         counts.
57168 2011-04-14  Bruno Haible  <bruno@clisp.org>
57170         wchar: Ensure that wchar_t gets defined on uClibc.
57171         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57172         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57174 2011-04-13  Bruno Haible  <bruno@clisp.org>
57176         safe-write, full-read: Avoid unnecessary compilation units.
57177         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57178         (Depends-on): Remove safe-read. Add ssize_t.
57179         * modules/full-read (Files): Add lib/full-write.c.
57180         (Depends-on): Add full-write.
57182 2011-04-13  Bruno Haible  <bruno@clisp.org>
57184         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57185         * modules/pwrite (Depends-on): Add 'write'.
57187 2011-04-13  Bruno Haible  <bruno@clisp.org>
57189         Support non-blocking pipe I/O in write() on native Windows.
57190         * lib/unistd.in.h (write): Enable replacement also if
57191         GNULIB_UNISTD_H_NONBLOCKING is 1.
57192         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57193         (rpl_write): When failing to write on a non-blocking pipe, change
57194         errno from ENOSPC to EAGAIN.
57195         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57196         putchar, puts, vfprintf, vprintf): Enable replacement also if
57197         GNULIB_STDIO_H_NONBLOCKING is 1.
57198         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57199         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57200         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57201         CALL_WITH_SIGPIPE_EMULATION.
57202         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57203         * m4/nonblocking.m4: New file.
57204         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57205         for non-blocking I/O support.
57206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57207         GNULIB_UNISTD_H_NONBLOCKING.
57208         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57209         required for non-blocking I/O support.
57210         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57211         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57212         lib/stdio-write.c, m4/asm-underscore.m4.
57213         (Depends-on): Add stdio, unistd.
57214         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57215         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57216         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57217         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57218         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57219         problem with non-blocking pipes.
57220         * doc/posix-functions/fputc.texi: Likewise.
57221         * doc/posix-functions/fputs.texi: Likewise.
57222         * doc/posix-functions/fwrite.texi: Likewise.
57223         * doc/posix-functions/printf.texi: Likewise.
57224         * doc/posix-functions/putc.texi: Likewise.
57225         * doc/posix-functions/putchar.texi: Likewise.
57226         * doc/posix-functions/puts.texi: Likewise.
57227         * doc/posix-functions/vfprintf.texi: Likewise.
57228         * doc/posix-functions/vprintf.texi: Likewise.
57229         * doc/posix-functions/write.texi: Likewise.
57231 2011-04-10  Jim Meyering  <meyering@redhat.com>
57233         maint.mk: prohibit doubled words
57234         Detect them also when they're separated by a newline.
57235         There are 3 ways to customize it:
57236           - disable the test on a per file basis, as usual with rules using
57237             $(VC_LIST_EXCEPT)
57238           - replace the default doubled-word-selecting regexp (affects all files)
57239           - ignore a particular file-vs-doubled-word match
57240         I nearly used that last one to ignore the "is is" match in
57241         coreutils' NEWS file, since the text was "ls -is is ..."
57242         To do that, I would have added this line to cfg.mk:
57243           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57244         but it would have ignored any "is is" match in NEWS.
57245         Low probability, but still...
57246         Instead, I changed the text, slightly:
57247           -  ls -is is now consistent with ls -lis in ignoring values returned
57248           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57249         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57250         (prohibit_doubled_word_): Define.
57251         (sc_prohibit_doubled_word): New rule.
57252         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57254 2011-04-10  Jim Meyering  <meyering@redhat.com>
57256         maint: fix doubled-word typo in comment
57257         * m4/gethostname.m4: s/is is/it is/
57258         * m4/getdomainname.m4: Likewise.
57260 2011-04-10  Jim Meyering  <meyering@redhat.com>
57262         maint: remove doubled word: s/it it/it/
57263         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57265 2011-04-10  Jim Meyering  <meyering@redhat.com>
57267         maint.mk: remove useless semicolon and backslash
57268         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57269         semicolon and backslash.
57271 2011-04-10  Bruno Haible  <bruno@clisp.org>
57273         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57274         * modules/stdint-tests (Depends-on): Add wchar.
57276 2011-04-10  Jim Meyering  <meyering@redhat.com>
57278         maint: remove doubled words in comments, e.g., s/a a/a/
57279         * lib/strptime.c (day_of_the_week): s/the the/the/
57280         * tests/test-chown.h (test_chown): s/a a/a/
57282         test-chown.h: correct a cast
57283         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57284         when the destination is a stat.st_gid.
57286 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57288         getaddrinfo: Fix test for sa_len member.
57289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57290         include <sys/types.h> before <sys/socket.h>.
57292 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57294         maint: change "can not" to "cannot"
57295         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57296         boundaries.
57298 2011-04-09  Jim Meyering  <meyering@redhat.com>
57300         maint: change "a a" to "a"
57301         * tests/test-lchown.h (test_lchown): s/a a/a/
57303         maint.mk: prohibit \<the the\>
57304         * top/maint.mk (sc_prohibit_the_the): New rule.
57306         maint: fix "the the" in comment
57307         * lib/count-one-bits.h: s/the the/the/
57309         maint: change "can not" to "cannot"
57310         But do not change the occurrences in maintain.texi or in
57311         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57312         * doc/gnulib-tool.texi: s/can not/cannot/
57313         * doc/posix-functions/accept.texi (accept): Likewise.
57314         * doc/posix-functions/socket.texi (socket): Likewise.
57315         * lib/mbrtowc.c: Likewise.
57317         maint.mk: prohibit use of "can not"
57318         * top/maint.mk (sc_prohibit_can_not): New rule.
57319         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57321 2011-04-09  Bruno Haible  <bruno@clisp.org>
57323         careadlinkat: Guard against misuse of careadlinkatcwd.
57324         * lib/careadlinkat.c: Include <stdlib.h>.
57325         (careadlinkatcwd): Check that the fd argument is as expected.
57327 2011-04-09  Bruno Haible  <bruno@clisp.org>
57329         careadlinkat: Use common coding style.
57330         * lib/careadlinkat.c: Move gnulib includes after system includes.
57332 2011-04-09  Bruno Haible  <bruno@clisp.org>
57334         careadlinkat: Clarify specification.
57335         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57336         (careadlinkatcwd): Add comment.
57337         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57339 2011-04-09  Bruno Haible  <bruno@clisp.org>
57341         areadlinkat: Avoid link error on many platforms.
57342         * modules/areadlinkat (Depends-on): Add areadlink.
57344 2011-04-09  Bruno Haible  <bruno@clisp.org>
57346         allocator, careadlinkat: Fix double-inclusion guard.
57347         * lib/allocator.h: Fix double-inclusion guard.
57348         * lib/careadlinkat.h: Likewise.
57350 2011-04-09  Bruno Haible  <bruno@clisp.org>
57352         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57353         * lib/relocwrapper.c: Update dependencies hierarchy.
57354         * build-aux/install-reloc: Update list of files to be compiled.
57355         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57356         lib/allocator.[hc].
57358 2011-04-08  Eric Blake  <eblake@redhat.com>
57360         strftime: silence gnulib-tool warning
57361         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57363 2011-04-08  Bruno Haible  <bruno@clisp.org>
57365         verify: Fix syntax error with GCC 4.6 in C++ mode.
57366         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57367         (HAVE_STATIC_ASSERT): New macro.
57368         (verify_true, verify): Use 'static_assert' if it is supported and
57369         '_Static_assert' is not supported.
57371 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57373         allocator: New module.
57374         * modules/allocator, lib/allocator.c: New files.
57375         * lib/allocator.h (stdlib_allocator): New decl.
57376         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57377         Remove.  Do not include <stdlib.h>.
57378         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57379         * modules/careadlinkat (Files): Remove lib/allocator.h.
57380         (Depends-on): Add allocator.
57382         stdlib: let modules use system malloc, realloc
57383         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57384         if !_GL_USE_STDLIB_ALLOC.
57385         (malloc, realloc): Limit this change to a smaller scope.
57387         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57388         (malloc, realloc): Don't #undef; no longer needed.
57389         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57390         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57391         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57392         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57393         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57394         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57395         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57396         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57398         careadlinkat: rename members to avoid problem
57399         * lib/allocator.h (struct allocator): Rename members from
57400         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57401         and realloc are #define'd.  Reported by Eric Blake in
57402         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57403         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57405 2011-04-08  Eric Blake  <eblake@redhat.com>
57407         nonblocking: reduce dependency
57408         * tests/test-nonblocking.c: Only test sockets when in use.
57409         * modules/nonblocking-tests (Depends-on): Drop socket.
57410         (Makefile.am): Link even if sockets are not present.
57411         * modules/pipe2-tests (Makefile.am): Likewise.
57412         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57414         pipe2: fix O_NONBLOCK support on mingw
57415         * modules/pipe2 (Depends-on): Add nonblocking.
57416         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57417         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57418         * tests/test-nonblocking.c (main): Likewise.
57419         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57421         fcntl-h: fix O_ACCMODE on cygwin
57422         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57423         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57425         pipe-filter: drop O_NONBLOCK workarounds
57426         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57427         * modules/pipe-filter-ii (Depends-on): Likewise.
57428         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57430         nonblocking: provide O_NONBLOCK for mingw
57431         * modules/nonblocking (Depends-on): Add open.
57432         (configure.ac): Set new witness macro.
57433         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57434         * modules/fcntl-h (Makefile.am): Substitute it.
57435         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57436         nonblocking module is in use.
57437         * lib/nonblocking.c: Adjust portability test.
57438         * lib/open.c (open): Don't let native open see gnulib flag.
57439         * tests/test-fcntl-h.c (main): Enhance test.
57440         * tests/test-open.h (test_open): Likewise.
57441         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57443         careadlinkat: fix compilation error on mingw
57444         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57445         within struct allocator.
57447 2011-04-06  Eric Blake  <eblake@redhat.com>
57449         binary-io: relicense under LGPLv2+
57450         * modules/binary-io (License): Relax to LGPLv2+.
57451         Requested for libvirt, and required by pipe2.
57453 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57455         verify: use _Static_assert if available
57456         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57457         (verify_true, verify): Use it if available.  This generates better
57458         diagnostics with GCC 4.6.0 and later.
57460 2011-04-05  Bruno Haible  <bruno@clisp.org>
57462         Remove leftover generated .h files after config.status changed.
57464         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57465         GL_GENERATE_ALLOCA_H.
57466         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57467         GL_GENERATE_ALLOCA_H evaluates to false.
57469         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57470         GL_GENERATE_ARGZ_H.
57471         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57472         evaluates to false.
57474         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57475         GL_GENERATE_BYTESWAP_H.
57476         * modules/byteswap (Makefile.am): Remove byteswap.h if
57477         GL_GENERATE_BYTESWAP_H evaluates to false.
57479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57480         GL_GENERATE_ERRNO_H.
57481         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57482         evaluates to false.
57484         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57485         GL_GENERATE_FLOAT_H.
57486         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57487         evaluates to false.
57489         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57490         GL_GENERATE_FNMATCH_H.
57491         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57492         GL_GENERATE_FNMATCH_H evaluates to false.
57494         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57495         GL_GENERATE_GLOB_H.
57496         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57497         evaluates to false.
57499         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57500         automake conditional GL_GENERATE_ICONV_H.
57501         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57502         evaluates to false.
57504         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57505         GL_GENERATE_NETINET_IN_H.
57506         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57507         GL_GENERATE_NETINET_IN_H evaluates to false.
57509         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57510         conditional GL_GENERATE_PTHREAD_H.
57511         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57512         * modules/pthread (Makefile.am): Remove pthread.h if
57513         GL_GENERATE_PTHREAD_H evaluates to false.
57515         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57516         GL_GENERATE_SCHED_H.
57517         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57518         evaluates to false.
57520         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57521         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57522         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57523         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57525         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57526         GL_GENERATE_STDARG_H.
57527         * modules/stdarg (Makefile.am): Remove stdarg.h if
57528         GL_GENERATE_STDARG_H evaluates to false.
57530         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57531         GL_GENERATE_STDBOOL_H.
57532         * modules/stdbool (Makefile.am): Remove stdbool.h if
57533         GL_GENERATE_STDBOOL_H evaluates to false.
57535         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57536         conditional GL_GENERATE_STDDEF_H.
57537         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57538         * modules/stddef (Makefile.am): Remove stddef.h if
57539         GL_GENERATE_STDDEF_H evaluates to false.
57541         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57542         GL_GENERATE_STDINT_H.
57543         * modules/stdint (Makefile.am): Remove stdint.h if
57544         GL_GENERATE_STDINT_H evaluates to false.
57546         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57547         GL_GENERATE_SYSEXITS_H.
57548         * modules/sysexits (Makefile.am): Remove sysexits.h if
57549         GL_GENERATE_SYSEXITS_H evaluates to false.
57551         Reported by Karl Berry and Ralf Wildenhues.
57553 2011-04-05  Bruno Haible  <bruno@clisp.org>
57555         Ensure to rebuild generated .h files when config.status has changed.
57556         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57557         config.status.
57558         * modules/ctype (Makefile.am): Likewise.
57559         * modules/dirent (Makefile.am): Likewise.
57560         * modules/errno (Makefile.am): Likewise.
57561         * modules/fcntl-h (Makefile.am): Likewise.
57562         * modules/float (Makefile.am): Likewise.
57563         * modules/getopt-posix (Makefile.am): Likewise.
57564         * modules/glob (Makefile.am): Likewise.
57565         * modules/iconv-h (Makefile.am): Likewise.
57566         * modules/inttypes (Makefile.am): Likewise.
57567         * modules/langinfo (Makefile.am): Likewise.
57568         * modules/locale (Makefile.am): Likewise.
57569         * modules/math (Makefile.am): Likewise.
57570         * modules/netdb (Makefile.am): Likewise.
57571         * modules/netinet_in (Makefile.am): Likewise.
57572         * modules/poll-h (Makefile.am): Likewise.
57573         * modules/pthread (Makefile.am): Likewise.
57574         * modules/pty (Makefile.am): Likewise.
57575         * modules/sched (Makefile.am): Likewise.
57576         * modules/search (Makefile.am): Likewise.
57577         * modules/selinux-h (Makefile.am): Likewise.
57578         * modules/signal (Makefile.am): Likewise.
57579         * modules/spawn (Makefile.am): Likewise.
57580         * modules/stdarg (Makefile.am): Likewise.
57581         * modules/stdbool (Makefile.am): Likewise.
57582         * modules/stddef (Makefile.am): Likewise.
57583         * modules/stdint (Makefile.am): Likewise.
57584         * modules/stdio (Makefile.am): Likewise.
57585         * modules/stdlib (Makefile.am): Likewise.
57586         * modules/string (Makefile.am): Likewise.
57587         * modules/strings (Makefile.am): Likewise.
57588         * modules/sys_file (Makefile.am): Likewise.
57589         * modules/sys_ioctl (Makefile.am): Likewise.
57590         * modules/sys_select (Makefile.am): Likewise.
57591         * modules/sys_socket (Makefile.am): Likewise.
57592         * modules/sys_stat (Makefile.am): Likewise.
57593         * modules/sys_time (Makefile.am): Likewise.
57594         * modules/sys_times (Makefile.am): Likewise.
57595         * modules/sys_utsname (Makefile.am): Likewise.
57596         * modules/sys_wait (Makefile.am): Likewise.
57597         * modules/sysexits (Makefile.am): Likewise.
57598         * modules/termios (Makefile.am): Likewise.
57599         * modules/time (Makefile.am): Likewise.
57600         * modules/unistd (Makefile.am): Likewise.
57601         * modules/wchar (Makefile.am): Likewise.
57602         * modules/wctype-h (Makefile.am): Likewise.
57603         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57605 2011-04-05  Bruno Haible  <bruno@clisp.org>
57607         pipe2: Relicense under LGPLv2+.
57608         * modules/pipe2 (License): Change to LGPLv2+.
57609         Requested by Eric Blake, for libvirt.
57611 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57613         bootstrap: compute gnulib_extra_files after updating build_aux
57614         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57615         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57617 2011-04-05  Eric Blake  <eblake@redhat.com>
57619         bootstrap: preserve git whitelist item sorting
57620         * build-aux/bootstrap (sort_patterns): New function.
57621         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57623 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57625         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57626         sc_space_tab check.
57628 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57630         areadlink, areadlinkat: rewrite in terms of careadlinkat
57631         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57632         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57633         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57634         (malloc, realloc): Remove #undefs.
57635         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57636         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57637         readlink, ssize_t, stdint, unistd.
57638         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57639         areadlink, stdint.
57641         careadlinkat: new module
57642         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57643         * modules/careadlinkat: New files, written by me with
57644         a review and feedback from Ben Pfaff in
57645         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57647 2011-04-01  Bruno Haible  <bruno@clisp.org>
57649         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57650         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57651         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57652         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57653         Reported by Bruce Korb <bruce.korb@gmail.com>.
57655 2011-04-01  Bruno Haible  <bruno@clisp.org>
57657         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57658         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57659         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57660         * modules/wcpcpy (Depends-on): Add extensions.
57661         * modules/wcpncpy (Depends-on): Likewise.
57662         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57663         systems.
57664         * doc/posix-functions/wcpncpy.texi: Likewise.
57665         * doc/posix-functions/wcwidth.texi: Likewise.
57667 2011-03-31  Eric Blake  <eblake@redhat.com>
57669         nonblocking: fix mingw test failures
57670         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57671         non-blocking flag on regular file.
57672         (get_nonblocking_flag): Set errno on invalid fd.
57673         * tests/test-nonblocking.c (main): Avoid test failure on
57674         directories if fchdir is not active.
57675         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57677 2011-03-31  Bruno Haible  <bruno@clisp.org>
57679         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57680         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57681         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57682         Reported by Simon Josefsson <simon@josefsson.org>.
57684 2011-03-31  Bruno Haible  <bruno@clisp.org>
57685         and Eric Blake  <eblake@redhat.com>
57687         nonblocking: new module
57688         * modules/nonblocking: New module.
57689         * modules/nonblocking-tests: Likewise.
57690         * lib/nonblocking.h: New file.
57691         * lib/nonblocking.c: Likewise.
57692         * tests/test-nonblocking.c: New test.
57693         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57695 2011-03-30  Bruno Haible  <bruno@clisp.org>
57697         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57698         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57699         instead of 'printf' format for GCC >= 4.4.
57700         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57701         (fprintf, printf, vfprintf, vprintf): Declare with
57702         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57703         the system's vfprintf() function.
57704         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57706 2011-03-30  Eric Blake  <eblake@redhat.com>
57708         passfd: fix scoping bug
57709         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57710         before sendmsg/recvmsg.
57712         passfd: standardize coding conventions
57713         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57714         can be learned at compile time.
57715         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57716         ifdefs.
57717         (sendfd, recvfd): Follow gnulib code conventions.
57719         passfd: fix incorrect sendmsg arguments
57720         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57721         incorrect msg_controllen value.
57722         * modules/passfd-tests (Depends-on): Check for alarm.
57723         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57724         Reported by Bastien ROUCARIES.
57726 2011-03-30  Bruno Haible  <bruno@clisp.org>
57728         c-strcasestr: Relicense under LGPLv2+.
57729         * modules/c-strcasestr (License): Change to LGPLv2+.
57730         Requested by Eric Blake, for libvirt.
57732 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57734         * users.txt: Add libidn2.  Fix libtasn1 link.
57736 2011-03-30  Jim Meyering  <meyering@redhat.com>
57738         tests: readlink* ("",... fails with EINVAL on newer kernels
57739         readlink and readlinkat have typically failed with ENOENT for
57740         the invalid, empty file name,  "".  However, with the advent
57741         of linux-2.6.39, they fail with EINVAL.
57742         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57743         when operating on the empty file name.
57744         * tests/test-readlink.h (test_readlink): Likewise.
57746 2011-03-29  Bruno Haible  <bruno@clisp.org>
57748         Relicense some modules under LGPLv2+, for libidn2.
57749         * modules/array-mergesort (License): Change to LGPLv2+.
57750         * modules/c-strcaseeq (License): Likewise.
57751         * modules/striconveh (License): Likewise.
57752         * modules/striconveha (License): Likewise.
57753         * modules/uniconv/base (License): Likewise.
57754         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57755         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57756         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57757         * modules/unictype/base (License): Likewise.
57758         * modules/unictype/bidiclass-of (License): Likewise.
57759         * modules/unictype/category-M (License): Likewise.
57760         * modules/unictype/category-none (License): Likewise.
57761         * modules/unictype/category-of (License): Likewise.
57762         * modules/unictype/category-test (License): Likewise.
57763         * modules/unictype/category-test-withtable (License): Likewise.
57764         * modules/unictype/combining-class (License): Likewise.
57765         * modules/unictype/joiningtype-of (License): Likewise.
57766         * modules/unictype/scripts (License): Likewise.
57767         * modules/uninorm/base (License): Likewise.
57768         * modules/uninorm/canonical-decomposition (License): Likewise.
57769         * modules/uninorm/composition (License): Likewise.
57770         * modules/uninorm/decompose-internal (License): Likewise.
57771         * modules/uninorm/decomposition-table (License): Likewise.
57772         * modules/uninorm/nfc (License): Likewise.
57773         * modules/uninorm/nfd (License): Likewise.
57774         * modules/uninorm/u32-normalize (License): Likewise.
57775         * modules/unistr/base (License): Likewise.
57776         * modules/unistr/u32-cpy (License): Likewise.
57777         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57778         * modules/unistr/u32-to-u8 (License): Likewise.
57779         * modules/unistr/u32-uctomb (License): Likewise.
57780         * modules/unistr/u8-check (License): Likewise.
57781         * modules/unistr/u8-mblen (License): Likewise.
57782         * modules/unistr/u8-mbtouc (License): Likewise.
57783         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57784         * modules/unistr/u8-mbtoucr (License): Likewise.
57785         * modules/unistr/u8-prev (License): Likewise.
57786         * modules/unistr/u8-strlen (License): Likewise.
57787         * modules/unistr/u8-to-u32 (License): Likewise.
57788         * modules/unistr/u8-uctomb (License): Likewise.
57789         * modules/unitypes (License): Likewise.
57790         Requested by Simon Josefsson.
57792 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57794         lib-symbol-visibility: Add a notice.
57795         * modules/lib-symbol-visibility (Notice): New field.
57797 2011-03-29  Bruno Haible  <bruno@clisp.org>
57799         getaddrinfo: Doc fix.
57800         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57801         section "fixed in Gnulib".
57803 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57805         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57806         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57808 2011-03-26  Bruno Haible  <bruno@clisp.org>
57810         unictype/property-byname: Reduce the number of load-time relocations.
57811         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57812         (UC_PROPERTY_INDEX_*): New enumeration values.
57813         (uc_property_byname): Convert an index from the lookup table to an
57814         uc_property_t.
57815         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57816         values.
57818 2011-03-26  Bruno Haible  <bruno@clisp.org>
57820         unictype/property-byname: Allow omitted word separators and aliases.
57821         * lib/unictype/pr_byname.gperf: Add property names without word
57822         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57823         for 'space'.
57825 2011-03-26  Bruno Haible  <bruno@clisp.org>
57827         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57828         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57829         also hyphens to space.
57830         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57831         without spaces.
57832         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57834 2011-03-26  Bruno Haible  <bruno@clisp.org>
57836         unictype/joiningtype-byname: Recognize long names as well.
57837         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57838         a long name.
57839         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57840         unictype/joiningtype_byname.h.
57841         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57842         * lib/unictype/joiningtype_byname.gperf: New file.
57843         * modules/unictype/joiningtype-byname (Files): Add
57844         lib/unictype/joiningtype_byname.gperf.
57845         (Depends-on): Add gperf.
57846         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57847         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57848         long names.
57850         Tests for module 'unictype/joiningtype-longname'.
57851         * modules/unictype/joiningtype-longname-tests: New file.
57852         * tests/unictype/test-joiningtype_longname.c: New file.
57854         New module 'unictype/joiningtype-longname'.
57855         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57856         * lib/unictype/joiningtype_longname.c: New file.
57857         * modules/unictype/joiningtype-longname: New file.
57858         * modules/unictype/joiningtype-all (Depends-on): Add
57859         unictype/joiningtype-longname.
57861 2011-03-26  Bruno Haible  <bruno@clisp.org>
57863         unictype/bidiclass-byname: Recognize long names as well.
57864         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57865         name.
57866         * lib/unictype/bidi_byname.c: Include <string.h>,
57867         unictype/bidi_byname.h.
57868         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57869         * lib/unictype/bidi_byname.gperf: New file.
57870         * modules/unictype/bidiclass-byname (Files): Add
57871         lib/unictype/bidi_byname.gperf.
57872         (Depends-on): Add gperf.
57873         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57874         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57875         long names.
57877         Tests for module 'unictype/bidiclass-longname'.
57878         * modules/unictype/bidiclass-longname-tests: New file.
57879         * tests/unictype/test-bidi_longname.c: New file.
57881         New module 'unictype/bidiclass-longname'.
57882         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57883         * lib/unictype/bidi_longname.c: New file.
57884         * modules/unictype/bidiclass-longname: New file.
57885         * modules/unictype/bidiclass-all (Depends-on): Add
57886         unictype/bidiclass-longname.
57888 2011-03-26  Bruno Haible  <bruno@clisp.org>
57890         unictype/bidi*: Rename modules.
57891         * modules/unictype/bidiclass-all: Renamed from
57892         modules/unictype/bidicategory-all.
57893         * modules/unictype/bidiclass-name: Renamed from
57894         modules/unictype/bidiclass-name.
57895         (Description): Update.
57896         * modules/unictype/bidiclass-name-tests: Renamed from
57897         modules/unictype/bidicategory-name-tests.
57898         * modules/unictype/bidiclass-byname: Renamed from
57899         modules/unictype/bidicategory-byname.
57900         (Description): Update.
57901         * modules/unictype/bidiclass-byname-tests: Renamed from
57902         modules/unictype/bidicategory-byname-tests.
57903         * modules/unictype/bidiclass-of: Renamed from
57904         modules/unictype/bidicategory-of.
57905         (Description): Update.
57906         * modules/unictype/bidiclass-of-tests: Renamed from
57907         modules/unictype/bidicategory-of-tests.
57908         * modules/unictype/bidiclass-test: Renamed from
57909         modules/unictype/bidicategory-test.
57910         (Description): Update.
57911         * modules/unictype/bidiclass-test-tests: Renamed from
57912         modules/unictype/bidicategory-test-tests.
57913         * modules/unictype/bidicategory-all: New file, a simple redirection.
57914         * modules/unictype/bidicategory-name: Likewise.
57915         * modules/unictype/bidicategory-byname: Likewise.
57916         * modules/unictype/bidicategory-of: Likewise.
57917         * modules/unictype/bidicategory-test: Likewise.
57918         * modules/unictype/property-bidi-* (Dependencies): Update.
57919         * lib/unictype/bidi_*.c: Update comment.
57921 2011-03-26  Bruno Haible  <bruno@clisp.org>
57923         unictype/bidi*: Rename functions, part 2.
57924         * modules/unictype/bidicategory-name (configure.ac): Update required
57925         libunistring version.
57926         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57928 2011-03-25  Bruno Haible  <bruno@clisp.org>
57930         New module 'unictype/combining-class-all'.
57931         * modules/unictype/combining-class-all: New file.
57933         Tests for module 'unictype/combining-class-byname'.
57934         * modules/unictype/combining-class-byname-tests: New file.
57935         * tests/unictype/test-combiningclass_byname.c: New file.
57937         New module 'unictype/combining-class-byname'.
57938         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57939         * lib/unictype/combiningclass_byname.c: New file.
57940         * lib/unictype/combiningclass_byname.gperf: New file.
57941         * modules/unictype/combining-class-byname: New file.
57943         Tests for module 'unictype/combining-class-longname'.
57944         * modules/unictype/combining-class-longname-tests: New file.
57945         * tests/unictype/test-combiningclass_longname.c: New file.
57947         New module 'unictype/combining-class-longname'.
57948         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57949         * lib/unictype/combiningclass_longname.c: New file.
57950         * modules/unictype/combining-class-longname: New file.
57952         Tests for module 'unictype/combining-class-name'.
57953         * modules/unictype/combining-class-name-tests: New file.
57954         * tests/unictype/test-combiningclass_name.c: New file.
57956         New module 'unictype/combining-class-name'.
57957         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57958         * lib/unictype/combiningclass_name.c: New file.
57959         * modules/unictype/combining-class-name: New file.
57961 2011-03-25  Bruno Haible  <bruno@clisp.org>
57963         unictype/combining-class: Rename source files.
57964         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57965         of unictype/combining.h.
57966         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57967         Update.
57968         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57969         * modules/unictype/combining-class (Description): Fix.
57970         (Files, Makefile.am): Update.
57971         * tests/unictype/test-combiningclass.c: Renamed from
57972         tests/unictype/test-combining.c.
57973         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57975 2011-03-25  Bruno Haible  <bruno@clisp.org>
57977         unictype: Update list of canonical combining classes.
57978         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57980 2011-03-25  Bruno Haible  <bruno@clisp.org>
57982         unictype/category-byname: Recognize long names as well.
57983         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57984         a long name.
57985         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57986         unictype/categ_byname.h.
57987         (UC_CATEGORY_INDEX_*): New enumeration values.
57988         (uc_general_category_byname): Use uc_general_category_lookup and
57989         convert from index to value.
57990         * lib/unictype/categ_byname.gperf: New file.
57991         * modules/unictype/category-byname (Files): Add
57992         lib/unictype/categ_byname.gperf.
57993         (Depends-on): Add gperf.
57994         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57995         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57996         long names.
57998         Tests for module 'unictype/category-longname'.
57999         * modules/unictype/category-longname-tests: New file.
58000         * tests/unictype/test-categ_longname.c: New file.
58002         New module 'unictype/category-longname'.
58003         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58004         * lib/unictype/categ_longname.c: New file.
58005         * modules/unictype/category-longname: New file.
58006         * modules/unictype/category-all (Depends-on): Add it.
58008 2011-03-25  Bruno Haible  <bruno@clisp.org>
58010         Tests for module 'unictype/category-LC'.
58011         * modules/unictype/category-LC-tests: New file.
58012         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58014         New module 'unictype/category-LC'.
58015         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58016         (UC_CATEGORY_LC): New declaration.
58017         (UC_CASED_LETTER): New macro.
58018         * lib/gen-uni-tables.c (is_category_LC): New function.
58019         (output_categories): Also handle category LC.
58020         (UC_CATEGORY_MASK_LC): New enumeration value.
58021         (general_category_byname): Also handle category LC.
58022         * lib/unictype/categ_LC.c: New file.
58023         * lib/unictype/categ_LC.h: New file, automatically generated.
58024         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58025         category LC.
58026         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58027         * modules/unictype/category-LC: New file.
58028         * modules/unictype/category-byname (Depends-on): Add
58029         unictype/category-LC.
58030         * modules/unictype/category-all (Depends-on): Likewise.
58032 2011-03-25  Eric Blake  <eblake@redhat.com>
58034         xmalloc: revert yesterday's regression
58035         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58036         realloc's underlying behavior (allowing allocation of zero-size
58037         objects, especially if malloc-gnu is also in use).
58039 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58041         maint.mk: add missing version to VC-tag
58042         * top/maint.mk: git tag was missing actual tag name; add it.
58044         valgrind: do leak checking, and exit with code 1 on error (not 0)
58045         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58046         to VALGRIND.
58048 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58050         posix-modules: say what it does.
58051         * posix-modules: Add a line to the --help output saying what it does.
58053 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58055         xmalloc: Do not leak if underlying realloc is C99 compatible.
58056         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58057         This avoids a leak on C99-based systems.  See
58058         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58060 2011-03-24  Eric Blake  <eblake@redhat.com>
58062         realloc: document portability problem
58063         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58064         passing 0 size to realloc.
58066 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58068         doc: update users.txt
58069         * users.txt: Add cvsps, tmpwatch
58071 2011-03-23  Matt Rice  <ratmice@gmail.com>
58073         doc: update users.txt
58074         * users.txt: Add gdb.
58076 2011-03-23  Jim Meyering  <meyering@redhat.com>
58078         doc: update users.txt
58079         Looking through matches up to the following URL (there are still
58080         several more pages), I found several projects that use gnulib:
58081         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58082         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58083         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58085 2011-03-22  Bruno Haible  <bruno@clisp.org>
58087         unictype/bidi*: Rename functions.
58088         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58089         uc_bidi_class, uc_is_bidi_class): New declarations.
58090         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58091         uc_bidi_category_byname.
58092         (uc_bidi_category_byname): New function.
58093         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58094         u_bidi_category_name.
58095         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58096         (uc_bidi_category_name): New function.
58097         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58098         uc_bidi_category.
58099         (uc_bidi_category): New function.
58100         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58101         uc_is_bidi_category. Invoke uc_bidi_class.
58102         (uc_is_bidi_category): New function.
58103         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58104         instead of uc_bidi_category_byname.
58105         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58106         instead of uc_bidi_category_name.
58107         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58108         uc_bidi_category.
58109         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58110         instead of uc_is_bidi_category.
58112 2011-03-21  Bruno Haible  <bruno@clisp.org>
58114         New module 'unictype/joininggroup-all'.
58115         * modules/unictype/joininggroup-all: New file.
58117         Tests for module 'unictype/joininggroup-of'.
58118         * modules/unictype/joininggroup-of-tests: New file.
58119         * tests/unictype/test-joininggroup_of.c: New file.
58120         * tests/unictype/test-joininggroup_of.h: New file, automatically
58121         generated by gen-uni-tables.
58123         New module 'unictype/joininggroup-of'.
58124         * modules/unictype/joininggroup-of: New file.
58125         * lib/unictype/joininggroup_of.c: New file.
58126         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58127         gen-uni-tables.
58129         Tests for module 'unictype/joininggroup-byname'.
58130         * modules/unictype/joininggroup-byname-tests: New file.
58131         * tests/unictype/test-joininggroup_byname.c: New file.
58133         New module 'unictype/joininggroup-byname'.
58134         * modules/unictype/joininggroup-byname: New file.
58135         * lib/unictype/joininggroup_byname.c: New file.
58136         * lib/unictype/joininggroup_byname.gperf: New file.
58138         Tests for module 'unictype/joininggroup-name'.
58139         * modules/unictype/joininggroup-name-tests: New file.
58140         * tests/unictype/test-joininggroup_name.c: New file.
58142         New module 'unictype/joininggroup-name'.
58143         * modules/unictype/joininggroup-name: New file.
58144         * lib/unictype/joininggroup_name.c: New file.
58145         * lib/unictype/joininggroup_name.h: New file.
58147         New module 'unictype/joiningtype-all'.
58148         * modules/unictype/joiningtype-all: New file.
58150         Tests for module 'unictype/joiningtype-of'.
58151         * modules/unictype/joiningtype-of-tests: New file.
58152         * tests/unictype/test-joiningtype_of.c: New file.
58153         * tests/unictype/test-joiningtype_of.h: New file, automatically
58154         generated by gen-uni-tables.
58156         New module 'unictype/joiningtype-of'.
58157         * modules/unictype/joiningtype-of: New file.
58158         * lib/unictype/joiningtype_of.c: New file.
58159         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58160         gen-uni-tables.
58162         Tests for module 'unictype/joiningtype-byname'.
58163         * modules/unictype/joiningtype-byname-tests: New file.
58164         * tests/unictype/test-joiningtype_byname.c: New file.
58166         New module 'unictype/joiningtype-byname'.
58167         * modules/unictype/joiningtype-byname: New file.
58168         * lib/unictype/joiningtype_byname.c: New file.
58170         Tests for module 'unictype/joiningtype-name'.
58171         * modules/unictype/joiningtype-name-tests: New file.
58172         * tests/unictype/test-joiningtype_name.c: New file.
58174         New module 'unictype/joiningtype-name'.
58175         * modules/unictype/joiningtype-name: New file.
58176         * lib/unictype/joiningtype_name.c: New file.
58178         unictype: Add support for Arabic shaping properties.
58179         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58180         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58181         declarations.
58182         (UC_JOINING_GROUP_*): New enumeration values.
58183         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58184         declarations.
58185         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58186         (unicode_joining_type): New variable.
58187         (UC_JOINING_GROUP_*): New enumeration values.
58188         (unicode_joining_group): New variable.
58189         (fill_arabicshaping, joining_type_as_c_identifier,
58190         output_joining_type_test, output_joining_type,
58191         joining_group_as_c_identifier, output_joining_group_test,
58192         output_joining_group): New functions.
58193         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58194         fill_arabicshaping and output_joining_type_test, output_joining_type,
58195         output_joining_group_test, output_joining_group.
58196         Reported by Simon Josefsson.
58198 2011-03-21  Jim Meyering  <meyering@redhat.com>
58200         strftime: fix a bug in yesterday's change
58201         * lib/strftime.c (add): Accommodate width's initial value of -1.
58202         Otherwise, nstrftime would copy uninitialized data into
58203         the result buffer.
58205 2011-03-21  Jim Meyering  <meyering@redhat.com>
58207         tests: add strftime-tests module
58208         * tests/test-strftime.c: New file.
58209         * modules/strftime-tests: New module.
58211 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58213         strftime: don't assume a byte count fits in 'int'
58214         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58215         found this problem by static analysis, using gcc -Wstrict-overflow
58216         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58217         on an integer overflow having undefined behavior, but it turns out
58218         that the argument is a size, which might not fit in 'int' anyway,
58220 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58222         stdio: don't require ignore_value around fwrite
58224         This patch works around libc bug 11959
58225         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58226         Without this patch, applications must often write
58227         ignore_value (fwrite (...)) even though the ignore_value is
58228         not helpful here.  It's common to write many objects, using
58229         fwrite/printf/etc., and then use ferror to detect output error.
58231         I considered making this patch optional, but decided against it,
58232         because libc is obviously being inconsistent here: there is no
58233         reason libc should insist that user code must inspect fwrite
58234         return's value without also insisting that it inspect printf's,
58235         putchar's, etc.  If user code wants to have a strict style where
58236         all these functions' values are checked (so that ferror need not
58237         be checked), we could add support for that style in a new gnulib
58238         module, but in the meantime it's better to be consistent and to
58239         support common usage.
58241         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58242         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58243         that we are compiling in checking mode, and if not C++, and
58244         if not already wrapping fwrite for some other reason.
58245         (fwrite): #define to rpl_fwrite if the latter is defined.
58247 2011-03-20  Bruno Haible  <bruno@clisp.org>
58249         verror: Fix compilation error introduced on 2011-02-13.
58250         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58251         instead of __attribute__.
58252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58254 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58255             Bruno Haible  <bruno@clisp.org>
58257         socklen: do not depend on sys_socket
58258         While trying to modify Emacs to use gnulib's socklen module,
58259         I discovered a circular dependency: socklen depends on sys_socket
58260         and vice versa.  Emacs can use socklen, but it does not need
58261         sys_socket because it has its own substitute for sys/socket.h.
58262         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58263         gl_TYPE_SOCKLEN_T.
58264         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58265         gl_PREREQ_SYS_H_SOCKET.
58266         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58267         gl_PREREQ_SYS_H_SOCKET.
58268         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58269         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58270         * modules/socklen (Depends-on): Do not depend on sys_socket.
58271         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58273 2011-03-20  Jim Meyering  <meyering@redhat.com>
58275         maint.mk: sort file names *after* new transformation
58276         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58277         prefix would have led to an unwarranted failure in GNU parted.
58278         Sort after that transformation.
58280 2011-03-19  Jim Meyering  <meyering@redhat.com>
58282         maint.mk: fix po-file syntax-check rule
58283         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58284         Patch by Bruno Haible.
58286 2011-03-19  Bruno Haible  <bruno@clisp.org>
58288         socklen: Update comment.
58289         * m4/socklen.m4: Update comment about platforms.
58291 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58292             Bruno Haible  <bruno@clisp.org>
58294         inet_ntop, inet_pton: Simplify.
58295         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58296         documented to provide socklen_t and we already depend on sys_socket.
58297         * modules/inet_pton (Depends-on): Likewise.
58298         * lib/arpa_inet.in.h: Adjust comment.
58300 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58301             Bruno Haible  <bruno@clisp.org>
58303         netdb: Simplify.
58304         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58305         documented to provide socklen_t and we already depend on sys_socket.
58306         * lib/netdb.in.h: Adjust comment.
58308 2011-03-19  Bruno Haible  <bruno@clisp.org>
58310         sys_socket, netdb: Document problem with socklen_t.
58311         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58312         platforms.
58313         * doc/posix-headers/netdb.texi: Likewise.
58315 2011-03-18  Eric Blake  <eblake@redhat.com>
58317         maint.mk: let po check work in VPATH build
58318         * top/maint.mk (po_file): Allow cfg.mk override.
58319         (sc_po_check): Allow VPATH use.
58320         Reported by Jiri Denemark.
58322 2011-03-16  Jim Meyering  <meyering@redhat.com>
58324         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58325         Before, you would have had to create one .x-sc_ file per rule in order
58326         to exempt offending files.  Now, you may instead use a Make variable --
58327         usually defined in cfg.mk -- whose name identifies the affected rule.
58328         * top/maint.mk (_sc_excl): Define.
58329         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58330         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58332 2011-03-13  Bruno Haible  <bruno@clisp.org>
58334         ignore-value tests: Avoid warnings.
58335         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58336         empty for gcc < 3.4.
58338 2011-03-13  Bruno Haible  <bruno@clisp.org>
58340         passfd: Fix link error on Solaris.
58341         * modules/passfd (Description): Correct.
58342         (Depends-on): Add socketlib.
58343         (Link): New section.
58344         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58346 2011-03-13  Bruno Haible  <bruno@clisp.org>
58348         passfd: Fix link error on AIX 5.2.
58349         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58351 2011-03-13  Bruno Haible  <bruno@clisp.org>
58353         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58354         * lib/sys_socket.in.h: Include <stddef.h>.
58355         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58356         CMSG_FIRSTHDR. Remove unused variable.
58358 2011-03-13  Bruno Haible  <bruno@clisp.org>
58360         passfd: Fix compilation error on OpenBSD.
58361         * lib/passfd.c: Include <sys/uio.h>.
58363 2011-03-13  Bruno Haible  <bruno@clisp.org>
58365         passfd test: Fix warnings.
58366         * tests/test-passfd.c: Include <sys/wait.h>.
58367         (main): Fix typo.
58369 2011-03-13  Bruno Haible  <bruno@clisp.org>
58371         passfd module, part 4, tweaks.
58372         * tests/test-passfd.c: Reorder includes.
58373         (main): Fix perror and printf calls.
58375 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58377         passfd module, part 4.
58378         * modules/passfd-tests: New file.
58379         * tests/test-passfd.c: New file.
58381 2011-03-13  Jim Meyering  <meyering@redhat.com>
58383         Makefile: rely on GNU make; derive syntax-check rule names
58384         Rather than requiring that each sc_ rule be listed as a dependent
58385         of "check", use features of GNU make to derive the list.
58386         * Makefile (syntax-check-rules): Define.
58387         (check): Depend on the new variable, not the hard-coded list.
58389 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58390             Bruno Haible  <bruno@clisp.org>
58392         passfd module, part 3.
58393         * lib/passfd.h (recvfd): Add a flags argument.
58394         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58395         (recvfd): Add a flags argument.
58396         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58397         exists.
58398         * modules/passfd (Depends-on): Add cloexec.
58399         Suggested by Eric Blake.
58401 2011-03-13  Bruno Haible  <bruno@clisp.org>
58403         passfd module, part 2, tweaks.
58404         * modules/passfd (Files): Reorder.
58405         (Depends-on): Remove errno.
58406         (Include): Remove <sys/socket.h>, <sys/un.h>.
58407         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58408         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58409         specification header. Include <sys/socket.h> always. Don't include
58410         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58411         (sendfd): Clarify that it sets errno when it fails.
58412         (recvfd): Fix specification.
58414 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58416         passfd module, part 2.
58417         * modules/passfd: New file.
58418         * lib/passfd.h: New file.
58419         * lib/passfd.c: New file.
58421 2011-03-12  Bruno Haible  <bruno@clisp.org>
58423         wcswidth, mbswidth: Avoid integer overflow.
58424         * lib/wcswidth.c: Include <limits.h>.
58425         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58426         * lib/mbswidth.c: Include <limits.h>.
58427         (mbsnwidth): Avoid 'int' overflow.
58428         Reported by Jim Meyering.
58430 2011-03-12  Bruno Haible  <bruno@clisp.org>
58432         futimens, utimensat: Avoid endless recursion on Solaris 10.
58433         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58434         Solaris.
58435         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58436         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58438 2011-03-11  Jim Meyering  <meyering@redhat.com>
58440         maint.mk: relax a regexp to accommodate other formatting styles
58441         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58442         between "ngettext" and the following "(".
58444 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58446         maint.mk: suppress a false positive warning
58447         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58448         diagnostics are marked with ngettext.
58450 2011-03-10  Eric Blake  <eblake@redhat.com>
58452         wchar: add explicit dependencies, for Tru64
58453         * modules/mbmemcasecoll (Depends-on): Add wchar.
58454         * modules/mbtowc (Depends-on): Likewise.
58455         * modules/vasnprintf (Depends-on): Likewise.
58456         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58457         * modules/wctomb (Depends-on): Likewise.
58458         Reported by Peter O'Gorman.
58460 2011-03-08  Bruno Haible  <bruno@clisp.org>
58462         passfd module, part 1, tweaks.
58463         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58464         Improve indentation. Improve AC_MSG_CHECKING messages.
58465         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58466         gl_SOCKET_FAMILIES.
58468 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58470         passfd module, part 1.
58471         * m4/afunix.m4: New file.
58472         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58473         sockets.
58475 2011-03-08  Bruno Haible  <bruno@clisp.org>
58477         regex-quote: New API.
58478         * lib/regex-quote.h: Include <stdbool.h>.
58479         (struct regex_quote_spec): New type.
58480         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58481         New declarations.
58482         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58483         'const struct regex_quote_spec *' argument.
58484         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58485         (pcre_special): New constant.
58486         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58487         New functions.
58488         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58489         'const struct regex_quote_spec *' argument.
58490         * modules/regex-quote (Depends-on): Add stdbool.
58491         * tests/test-regex-quote.c (check): Update for new API. Add test for
58492         anchored results.
58493         * NEWS: Mention the API change.
58494         Reported by Reuben Thomas and Eric Blake.
58496 2011-03-06  Bruno Haible  <bruno@clisp.org>
58498         regex-quote: Fix creation of POSIX extended regular expressions.
58499         * lib/regex-quote.c (ere_special): Add grouping and alternation
58500         operators.
58502 2011-03-05  Bruno Haible  <bruno@clisp.org>
58504         doc: Improve doc regarding autopoint vs. gnulib.
58505         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58506         disable autopoint while running autoreconf.
58507         Suggested by Ralf Wildenhues.
58509 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58511         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58512         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58514 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58516         parse-duration: remove xalloc.h dependency
58517         * lib/parse-duration.c (parse_period): handle NULL return from
58518         strdup instead of calling xstrdup().
58519         * modules/parse-duration: remove "xalloc" dependency
58521 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58523         bootstrap: honor m4_base when running aclocal
58524         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58526 2011-03-02  Jim Meyering  <meyering@redhat.com>
58528         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58529         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58530         on request from Matt Booth.
58532 2011-03-01  Eric Blake  <eblake@redhat.com>
58534         test-link: work on Hurd
58535         * tests/test-link.h (test_link): Hurd rejects linking directories
58536         with EISDIR instead of the POSIX-mandated EPERM.
58538 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58540         stdio: simplify by moving files to printf-posix, sigpipe
58541         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58542         since this symbol is needed only if printf is replaced.
58543         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58544         Require gl_ASM_SYMBOL_PREFIX.
58545         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58546         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58547         (Depends-on): Add 'raise'.
58548         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58549         * modules/stdio (Files): Remove lib/stdio-write.c,
58550         m4/asm-underscore.m4.
58551         (Depends-on): Remove 'raise'.
58553         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58554         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58555         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58556         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58558 2011-02-28  Bruno Haible  <bruno@clisp.org>
58560         localcharset: Assume ANSI C behaviour of free().
58561         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58562         calling free().
58563         Suggested by Simon Josefsson <simon@josefsson.org>.
58565 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58566             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58567             Bruno Haible  <bruno@clisp.org>  (tiny change)
58569         On Cygwin, use /proc file system instead of win32 API.
58570         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58571         Win32 file names.
58572         (DllMain): Simplify by removing Cygwin specific code.
58573         (find_shared_library_fullname): Use Linux specific implementation also
58574         for Cygwin.
58575         (get_shared_library_fullname): Update accordingly.
58576         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58577         Win32 file names.
58578         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58579         Cygwin specific code.
58581 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58582             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58584         Fix OpenMP flag detection for various Fortran compilers.
58585         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58586         OpenMP-conditional compilation construct, to force compile
58587         failure with missing OpenMP flag.
58588         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58590 2011-02-25  Eric Blake  <eblake@redhat.com>
58592         strstr: expand test coverage
58593         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58594         compilation.
58595         * tests/test-memmem.c (main): Duplicate tests.
58596         * tests/test-strcasestr.c (main): Likewise.
58597         * tests/test-c-strcasestr.c (main): Likewise.
58599 2011-02-25  Jim Meyering  <meyering@redhat.com>
58601         maint.mk: detect missing-NL-at-EOF, too
58602         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58603         it also detects when a file lacks a newline at EOF.
58604         (require_exactly_one_NL_at_EOF_): Renamed from
58605         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58606         since people may well have .x-sc_... file names tied to the
58607         existing name.  Suggested by Eric Blake.
58609 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58611         dirname: move m4/dos.m4 functionality into lib/dosname.h
58613         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58614         extracts symbols from it, puts them into config.h; but it's much
58615         easier to use the symbols directly.  filename.h already does this,
58616         but it disagrees with dos.m4 in some respects.  This patch
58617         introduces a different include file dosname.h that packages up
58618         dos.m4, and then later we can work on merging filename.h and
58619         dosname.h.  Applications that need only the easy-to-configure
58620         symbols should consider including dosname.h rather than dirname.h.
58621         * NEWS: Mention incompatible changes.
58622         * m4/dos.m4: Remove.
58623         * lib/dosname.h, modules/dosname: New files.
58624         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58625         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58626         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58627         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58628         Include dosname.h, not dirname.h.
58629         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58630         Include dosname.h, for definitions of symbols like ISSLASH
58631         that used to be in config.h.
58632         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58633         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58634         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58635         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58636         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58637         * modules/rmdir (Files): Likewise.
58638         * modules/stat (Files): Likewise.
58639         * modules/unlink (Files): Likewise.
58640         * modules/dirname-lgpl (Depends-on): Add dosname.
58641         * modules/lstat (Depends-on): Likewise.
58642         * modules/openat (Depends-on): Likewise.
58643         * modules/rmdir (Depends-on): Likewise.
58644         * modules/savewd (Depends-on): Likewise.
58645         * modules/stat (Depends-on): Likewise.
58646         * modules/unlink (Depends-on): Likewise.
58647         * modules/openat (Depends-on): Remove dirname-lgpl.
58648         * modules/savewd (Depends-on): Likewise.
58649         * tests/test-dirname.c: Do not use removed symbols like
58650         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58651         the remaining symbols, e.g., ISSLASH ('\\').
58653 2011-02-25  Eric Blake  <eblake@redhat.com>
58655         strstr: revert patches that introduced bug and pessimization
58656         * lib/str-two-way.h: Add another reference.
58657         (two_way_short_needle, two_way_long_needle): Revert changes from
58658         2011-02-24; they pessimize search speed.
58659         (critical_factorization): Partially revert changes from
58660         2010-06-22; they violate the requirement that the left half of the
58661         needle be smaller than the period of the needle.
58663 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58665         filenamecat: remove unnecessary dependency on dirname-lgpl
58666         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58667         is no direct dependency, just an indirect one via filenamecat-lgpl.
58669         remove: remove unnecessary use of m4/dos.m4
58670         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58671         * modules/remove (FILES): Remove m4/dos.m4.
58673         * lib/openat-proc.c: Don't include dirname.h; not needed.
58675         backupfile: remove unnecessary use of m4/dos.m4
58676         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58677         of its symbols are used by the backupfile code.  backupfile.c does
58678         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58679         for the rare case of programs that want all their backup file
58680         names to live within 8+3 limits, and dos.m4 doesn't address that.
58681         * modules/backupfile (Files): Remove m4/dos.m4.
58683 2011-02-24  Jim Meyering  <meyering@redhat.com>
58685         strstr: fix a bug whereby strstr would mistakenly return NULL
58686         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58687         in period calculation.
58688         (two_way_long_needle): Likewise.
58689         The original problem was reported by Mike Stump in
58690         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58691         Ralf Wildenhues provided the short needle and haystack.
58692         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58693         Add a more involved test to trigger the bug in two_way_long_needle.
58695 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58697         gnulib-tool: remove use of bold display in help screen
58698         * gnulib-tool (func_usage): Do not use bold display anymore in the
58699         help screen.  That was just meant to be a temporary emphasis for a
58700         backward-incompatible change.
58702 2011-02-23  Bruno Haible  <bruno@clisp.org>
58704         Fix misindentation of preprocessor directives.
58705         * lib/argp-namefrob.h: Reindent preprocessor directives.
58706         * lib/getopt_int.h (struct _getopt_data): Likewise.
58707         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58708         * lib/vasnprintf.c (decode_long_double): Likewise.
58709         * tests/test-argmatch.c: Insert blank lines, for clarity.
58710         * tests/test-exclude.c: Likewise.
58712 2011-02-22  Bruno Haible  <bruno@clisp.org>
58714         ioctl: Fix for MacOS X in 64-bit mode.
58715         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58716         value.
58717         Suggested by Eric Blake.
58718         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58720 2011-02-22  Jim Meyering  <meyering@redhat.com>
58722         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58723         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58724         in lib/.
58726 2011-02-22  Eric Blake  <eblake@redhat.com>
58728         maint: avoid any CDPATH issue
58729         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58731         maint: adjust cpp indentation for my modules, as well
58732         * Makefile (sc_cpp_indent_check): Add my name.
58733         * lib/fbufmode.c: Filter through cppi.
58734         * lib/fpurge.c: Likewise.
58735         * lib/freadable.c: Likewise.
58736         * lib/freading.c: Likewise.
58737         * lib/fwritable.c: Likewise.
58738         * lib/fwriting.c: Likewise.
58739         * lib/sigaction.c: Likewise.
58741 2011-02-22  Jim Meyering  <meyering@redhat.com>
58743         maint: adjust cpp indentation to reflect nesting depth
58744         I.e., in a block of code that begins with an unnested "#if",
58745         put one space between the "#" in column 1 and following token.
58746         For example,
58747         -#include <sys/vfs.h>
58748         +# include <sys/vfs.h>
58749         Do this only in .c files that are part of a module I maintain.
58750         * lib/linkat.c: Filter through cppi.
58751         * lib/nanosleep.c: Likewise.
58752         * lib/openat.c: Likewise.
58753         * lib/openat-die.c: Likewise.
58754         * lib/dup3.c: Likewise.
58755         * lib/fchownat.c: Likewise.
58756         * lib/flock.c: Likewise.
58757         * lib/fsync.c: Likewise.
58758         * lib/fts.c: Likewise.
58759         * lib/getpass.c: Likewise.
58760         * lib/gettimeofday.c: Likewise.
58761         * lib/userspec.c: Likewise.
58762         * Makefile (sc_cpp_indent_check): New rule, to check this.
58764 2011-02-22  Bruno Haible  <bruno@clisp.org>
58766         New module 'wctomb'.
58767         * lib/stdlib.in.h (wctomb): New declaration.
58768         * lib/wctomb.c: New file.
58769         * lib/wctomb-impl.h: New file.
58770         * m4/wctomb.m4: New file.
58771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58772         REPLACE_WCTOMB.
58773         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58774         REPLACE_WCTOMB.
58775         * modules/wctomb: New file.
58776         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58777         * doc/posix-functions/wctomb.texi: Mention the new module.
58778         * modules/wctob (Depends-on): Add wctomb.
58780 2011-02-22  Bruno Haible  <bruno@clisp.org>
58782         New module 'mbtowc'.
58783         * lib/stdlib.in.h (mbtowc): New declaration.
58784         * lib/mbtowc.c: New file.
58785         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58786         * m4/mbtowc.m4: New file.
58787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58788         REPLACE_MBTOWC.
58789         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58790         REPLACE_MBTOWC.
58791         * modules/mbtowc: New file.
58792         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58793         * doc/posix-functions/mbtowc.texi: Mention the new module.
58794         * modules/btowc (Depends-on): Add mbtowc.
58796 2011-02-22  Bruno Haible  <bruno@clisp.org>
58798         wcrtomb: Add more tests for native Windows platforms.
58799         * tests/test-wcrtomb-w32-1.sh: New file.
58800         * tests/test-wcrtomb-w32-2.sh: New file.
58801         * tests/test-wcrtomb-w32-3.sh: New file.
58802         * tests/test-wcrtomb-w32-4.sh: New file.
58803         * tests/test-wcrtomb-w32-5.sh: New file.
58804         * tests/test-wcrtomb-w32.c: New file.
58805         * modules/wcrtomb-tests (Files): Add them.
58806         (Makefile.am): Arrange to run these tests.
58807         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58808         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58810 2011-02-20  Bruno Haible  <bruno@clisp.org>
58812         wcrtomb: Enhance test.
58813         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58815 2011-02-20  Bruno Haible  <bruno@clisp.org>
58817         mbrtowc: Tiny optimization.
58818         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58820 2011-02-20  Jim Meyering  <meyering@redhat.com>
58822         test-exclude.c: remove unmatched #endif
58823         * tests/test-exclude.c: Remove stray #endif, left over from
58824         the change of a week ago.
58826 2011-02-19  Jim Meyering  <meyering@redhat.com>
58828         git-version-gen: skip "-dirty" check when appropriate
58829         * build-aux/git-version-gen: Don't run any git commands when the
58830         version string comes from .tarball-version.  Prior to this, we
58831         would run git update-index --refresh even from a just-unpacked
58832         tarball directory, and that could affect a .git/ directory in a
58833         parent of the build directory.  Reported by Mike Frysinger.
58835 2011-02-19  Bruno Haible  <bruno@clisp.org>
58837         unictype/property-byname: Reduce the size of the 'data' segment.
58838         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58840 2011-02-19  Bruno Haible  <bruno@clisp.org>
58842         unictype/scripts: Reduce the size of the 'data' segment.
58843         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58844         '%pic'.
58845         * lib/unictype/scripts_byname.gperf: Regenerated.
58847 2011-02-19  Bruno Haible  <bruno@clisp.org>
58849         stdint: Update documentation.
58850         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58852 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58854         stdint: omit redundant check for wchar.h
58855         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58856         always tests whether wchar.h exists, so remove the now-redundant test.
58858 2011-02-18  Bruno Haible  <bruno@clisp.org>
58860         stdint: Cut dependency to module 'wchar'.
58861         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58862         include the necessary prerequisites.
58863         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58864         * modules/stdint (Depends-on): Remove wchar.
58865         (Makefile.am): Substitute HAVE_WCHAR_H.
58866         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58868 2011-02-18  Eric Blake  <eblake@redhat.com>
58870         longlong: skip, rather than fail, on cross-compilation
58871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58872         when cross-compiling; regression from 2011-02-16.
58874 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58876         * NEWS: Mention 2011-02-08 change to stdlib.
58878 2011-02-17  Bruno Haible  <bruno@clisp.org>
58880         getloadavg: Add comments about platforms.
58881         * m4/getloadavg.m4: Add comment.
58882         * lib/getloadavg.c: Likewise.
58884 2011-02-17  Bruno Haible  <bruno@clisp.org>
58886         getloadavg: Fix link error on Solaris 2.6.
58887         * modules/getloadavg (Link): New section.
58888         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58889         linking test-getloadavg.
58890         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58891         getloadavg.
58893 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58895         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58896         It was 'int', but this doesn't match the IRIX 6.5 manual.
58897         Suggested by Bruno Haible in
58898         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58900 2011-02-17  Bruno Haible  <bruno@clisp.org>
58902         havelib: Fix comments.
58903         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58904         change.
58906 2011-02-17  Bruno Haible  <bruno@clisp.org>
58908         havelib: Update config.rpath.
58909         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58911 2011-02-17  Bruno Haible  <bruno@clisp.org>
58913         getloadavg test: Add some plausibility checks.
58914         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58915         is improbable.
58917 2011-02-16  Eric Blake  <eblake@redhat.com>
58919         maintainer-makefile: make syntax-check a no-op from tarballs
58920         * top/maint.mk (no-vc-detected): New rule.
58921         (local-checks-available): Use it to avoid hanging if someone tries
58922         'make syntax-check' from a tarball.  Also append to any non-syntax
58923         checks already defined in cfg.mk.
58925 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58927         longlong: tune, particularly for common case of c99
58929         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58930         or running anything if c99, or if unsigned long long int does not
58931         work.  In either case, we know the answer without further tests.
58932         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58933         it at most once, and use its results for both long long int and
58934         unsigned long long int.  This is more likely to be efficient in
58935         the common case where the program wants to check for both long
58936         long int and unsigned long long int.
58937         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58938         since the answer is already known.
58940 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58942         getloadavg: set errno
58943         * lib/getloadavg.c: Set errno when returning -1.  If no other
58944         error number looks appropriate, set it to ENOSYS if the getloadavg
58945         looks like it can't possibly ever work, ENOTSUP otherwise.
58946         Suggested by Bruno Haible in
58947         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58949         getloadavg: trim unused parts and speed up 'configure'
58950         * NEWS: Document this.
58951         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58952         always compiled if getloadavg is absent.
58953         Move test code to ...
58954         * tests/test-getloadavg.c: New file, containing previous
58955         contents of test from lib/getloadavg.c.  It also contains
58956         suggestions by Bruno Haible in
58957         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58958         * modules/getloadavg-tests: New file.
58959         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58960         Do tests in the same order as they're needed for getloadavg.c.
58961         Omit setgid-related tests that generate symbols KMEM_GROUP,
58962         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58963         Do only the tests that are needed to see whether the system has
58964         getloadavg, moving the other tests into ...
58965         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58966         NLIST_NAME_UNION; nobody should be using it.  Do not define
58967         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58968         relevant, as the user of this module shouldn't care how getloadavg
58969         is implemented.
58971         getloadavg: omit unused var
58972         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58974 2011-02-15  Jim Meyering  <meyering@redhat.com>
58976         doc: update users.txt
58977         * users.txt: Update iwhd's URL.
58979 2011-02-13  Bruno Haible  <bruno@clisp.org>
58981         Consistent macro naming for macros that use GCC __attribute__.
58982         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58983         _ATTRIBUTE_NONNULL_.
58984         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58985         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58986         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58987         ATTRIBUTE_DEPRECATED.
58988         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58989         ATTRIBUTE_NORETURN.
58990         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58991         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58992         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58993         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58994         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58995         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58996         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58997         ATTRIBUTE_SENTINEL.
58998         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58999         ATTRIBUTE_RETURN_CHECK.
59000         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59001         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59002         ATTRIBUTE_NORETURN.
59003         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59004         Reported by Paul Eggert.
59006 2011-02-13  Bruno Haible  <bruno@clisp.org>
59008         Don't interfere with a program's definition of __attribute__.
59009         * lib/argp.h (__attribute__): Remove definition.
59010         (_GL_ATTRIBUTE_FORMAT): New macro.
59011         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59012         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59013         (_GL_ATTRIBUTE_FORMAT): New macro.
59014         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59015         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59016         GCC 3 or newer.
59017         * lib/error.h (__attribute__): Remove definition.
59018         (_GL_ATTRIBUTE_FORMAT): New macro.
59019         (error, error_at_line): Use it.
59020         * lib/hash.h (__attribute__): Remove definition.
59021         (ATTRIBUTE_WUR): Update definition. Define always.
59022         * lib/openat.h (__attribute__): Remove definition.
59023         (ATTRIBUTE_NORETURN): Update definition. Define always.
59024         * lib/sigpipe-die.h (__attribute__): Remove definition.
59025         (ATTRIBUTE_NORETURN): Update definition. Define always.
59026         * lib/vasnprintf.h (__attribute__): Remove definition.
59027         (_GL_ATTRIBUTE_FORMAT): New macro.
59028         (asnprintf, vasnprintf): Use it.
59029         * lib/xalloc.h (__attribute__): Remove definition.
59030         (ATTRIBUTE_NORETURN): Update definition. Define always.
59031         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59032         * lib/xmemdup0.h (__attribute__): Remove definition.
59033         (ATTRIBUTE_NORETURN): Update definition. Define always.
59034         * lib/xprintf.h (__attribute__): Remove definition.
59035         (_GL_ATTRIBUTE_FORMAT): New macro.
59036         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59037         * lib/xstrtol.h (__attribute__): Remove definition.
59038         (ATTRIBUTE_NORETURN): Update definition. Define always.
59039         * lib/xvasprintf.h (__attribute__): Remove definition.
59040         (_GL_ATTRIBUTE_FORMAT): New macro.
59041         (xasprintf, xvasprintf): Use it.
59042         * tests/test-argmatch.c (__attribute__): Remove definition.
59043         (ATTRIBUTE_NORETURN): Update definition. Define always.
59044         * tests/test-exclude.c (__attribute__): Remove definition.
59045         (ATTRIBUTE_NORETURN): Update definition. Define always.
59046         Reported by Paul Eggert.
59048 2011-02-13  Bruno Haible  <bruno@clisp.org>
59050         mbrtowc: Add more tests for native Windows platforms.
59051         * tests/test-mbrtowc-w32-1.sh: New file.
59052         * tests/test-mbrtowc-w32-2.sh: New file.
59053         * tests/test-mbrtowc-w32-3.sh: New file.
59054         * tests/test-mbrtowc-w32-4.sh: New file.
59055         * tests/test-mbrtowc-w32-5.sh: New file.
59056         * tests/test-mbrtowc-w32.c: New file.
59057         * modules/mbrtowc-tests (Files): Add them.
59058         (Makefile.am): Arrange to run these tests.
59059         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59060         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59062 2011-02-13  Bruno Haible  <bruno@clisp.org>
59064         mbrtowc: Work around native Windows bug.
59065         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59066         guess when no suitable locale for testing was found.
59067         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59069 2011-02-13  Bruno Haible  <bruno@clisp.org>
59071         mbsinit: Work around mingw bug.
59072         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59073         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59074         Windows.
59075         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59077 2011-02-13  Bruno Haible  <bruno@clisp.org>
59079         mbsinit: Don't crash for a NULL argument.
59080         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59081         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59083 2011-02-13  Bruno Haible  <bruno@clisp.org>
59085         Don't interfere with a program's definition of __attribute__.
59086         * lib/stdio.in.h (__attribute__): Remove definition.
59087         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59088         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59089         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59090         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59091         * lib/string.in.h (__attribute__): Remove definition.
59092         Reported by Paul Eggert.
59094 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59096         stdlib: don't get in the way of non-GCC __attribute__
59097         See thread starting at
59098         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59099         Revert previous stdlib change, installing the following instead:
59100         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59101         to get in the way of a non-GCC compiler that supports __attribute__.
59102         (_GL_ATTRIBUTE_RETURN): New macro.
59103         (_Exit): Use it instead of __attribute__.
59105 2011-02-12  Bruno Haible  <bruno@clisp.org>
59107         quotearg test: Avoid test failure on mingw.
59108         * tests/test-quotearg.sh: Convert the locale identifier from native
59109         Windows syntax to Unix syntax.
59111 2011-02-12  Bruno Haible  <bruno@clisp.org>
59113         setlocale: Prefer gnulib's override over libintl's override.
59114         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59115         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59116         GNULIB_defined_setlocale is set.
59118 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59120         stdlib: support non-GCC __attribute__
59122         Fix a serious and tricky problem encountered when attempting to
59123         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59124         5.5, but it crashed due to memory corruption on Solaris 10 with
59125         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59126         bits that are otherwise zero.  This tagging is optional inside
59127         Emacs but is preferred and is used when __attribute__ ((__aligned
59128         (8))) works, as it does with both recent-enough GCC and with Sun C
59129         5.11.  However, Sun C 5.11 is not GCC and does not #define
59130         __GNUC__ and __GNUC_MINOR__.
59132         When I added the getloadavg module to Emacs, it brought in
59133         stdlib.in.h, which contained this fragment:
59135            #ifndef __attribute__
59136            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59137            #  define __attribute__(Spec)   /* empty */
59138            # endif
59139            #endif
59141         When files that include <stdlib.h> were compiled with Sun C 5.11,
59142         the above code disabled __attribute__ ((__aligned (8))), which
59143         caused variables to not be properly aligned, which eventually led
59144         to the pointer corruption mentioned above.  (This was a bit hard
59145         to diagnose, unfortunately.)
59147         Several "#define __attribute__(X) /* empty */" code snippets need
59148         to be eradicated from Gnulib to work with non-GCC compilers that
59149         support __attribute__.  The Autoconf way to do this is to test for
59150         each kind of attribute that we want support for, and selectively
59151         enable that in source code.
59153         Fix this problem just for stdlib.h, by adding a test for the
59154         __noreturn__ attribute, and change stdlib.in.h to use that test
59155         when needed.  This technique can be easily generalized to the
59156         other *.in.h files and attributes, and a similar technique can be
59157         used for *.h and *.c files.  This patch is enough to solve the
59158         problem for Emacs + getloadavg, and I thought I'd publish it for
59159         feedback before undertaking further, similar fixes in other
59160         modules.
59162         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59163         because it's not needed for stdlib.h.  It merely substitutes the
59164         value directly into stdlib.h.  We may well need to #define it, or
59165         similar symbols, for other modules, but it's nice to also have an
59166         option to not #define it for applications like Emacs that do not
59167         need it.
59169         * lib/stdlib.in.h (__attribute__): Do not #define.
59170         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59171         be defined only if the _Exit module is also used.
59172         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59174         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59175         platforms.
59176         * modules/_Exit (Files): Add m4/attribute.m4.
59177         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59178         * m4/attribute.m4: New file.
59180 2011-02-12  Bruno Haible  <bruno@clisp.org>
59182         wcsrtombs: Work around bug on native Windows.
59183         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59184         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59185         instead of len.
59186         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59188 2011-02-12  Bruno Haible  <bruno@clisp.org>
59190         mbsrtowcs: Work around bug on native Windows.
59191         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59192         against mingw bug.
59193         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59195 2011-02-12  Bruno Haible  <bruno@clisp.org>
59197         Avoid setlocale bugs in tests.
59198         * modules/btowc (Dependencies): Add setlocale.
59199         * modules/c-strcase (Dependencies): Likewise.
59200         * modules/mbmemcasecmp (Dependencies): Likewise.
59201         * modules/mbmemcasecoll (Dependencies): Likewise.
59202         * modules/mbrtowc (Dependencies): Likewise.
59203         * modules/mbscasecmp (Dependencies): Likewise.
59204         * modules/mbscasestr (Dependencies): Likewise.
59205         * modules/mbschr (Dependencies): Likewise.
59206         * modules/mbscspn (Dependencies): Likewise.
59207         * modules/mbsinit (Dependencies): Likewise.
59208         * modules/mbsncasecmp (Dependencies): Likewise.
59209         * modules/mbsnrtowcs (Dependencies): Likewise.
59210         * modules/mbspbrk (Dependencies): Likewise.
59211         * modules/mbspcasecmp (Dependencies): Likewise.
59212         * modules/mbsrchr (Dependencies): Likewise.
59213         * modules/mbsrtowcs (Dependencies): Likewise.
59214         * modules/mbsspn (Dependencies): Likewise.
59215         * modules/mbsstr (Dependencies): Likewise.
59216         * modules/nl_langinfo (Dependencies): Likewise.
59217         * modules/quotearg (Dependencies): Likewise.
59218         * modules/unicase/locale-language (Dependencies): Likewise.
59219         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59220         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59221         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59222         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59223         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59224         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59225         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59226         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59227         * modules/vasnprintf-posix (Dependencies): Likewise.
59228         * modules/wcrtomb (Dependencies): Likewise.
59229         * modules/wcsnrtombs (Dependencies): Likewise.
59230         * modules/wcsrtombs (Dependencies): Likewise.
59232 2011-02-12  Bruno Haible  <bruno@clisp.org>
59234         setlocale: Workaround native Windows bug.
59235         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59236         succeeds but sets LC_CTYPE to "C", report a failure.
59237         * tests/test-setlocale2.sh: New file.
59238         * tests/test-setlocale2.c: New file.
59239         * modules/setlocale-tests (Files): Add the new files.
59240         (Makefile.am): Enable test-setlocale2.sh test.
59241         * doc/posix-functions/setlocale.texi: Mention workaround.
59243 2011-02-11  Bruno Haible  <bruno@clisp.org>
59245         Tests for module 'setlocale'.
59246         * modules/setlocale-tests: New file.
59247         * tests/test-setlocale1.sh: New file.
59248         * tests/test-setlocale1.c: New file.
59250         New module 'setlocale'.
59251         * lib/locale.in.h (setlocale): New declaration.
59252         * lib/setlocale.c: New file, based on
59253         gettext/gettext-runtime/intl/setlocale.c.
59254         * m4/setlocale.m4: New file.
59255         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59256         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59257         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59258         REPLACE_SETLOCALE.
59259         * modules/setlocale: New file.
59260         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59261         * doc/posix-functions/setlocale.texi: Mention the new module.
59263 2011-02-11  Bruno Haible  <bruno@clisp.org>
59265         Prepare for locale dependent tests on mingw.
59266         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59267         because it has the wrong locale encoding.
59268         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59269         French_France.1252 instead of "fr".
59270         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59271         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59272         because it has the wrong locale encoding.
59273         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59274         native Windows, try Turkish_Turkey.65001.
59275         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59276         Chinese_China.54936.
59278         Prepare for locale dependent tests on mingw.
59279         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59280         differently.
59281         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59282         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59283         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59284         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59286 2011-02-11  Eric Blake  <eblake@redhat.com>
59288         strptime: avoid compiler warnings
59289         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59290         compiler warnings about dead code.
59291         Reported by Daniel P. Berrange.
59293 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59295         doc: update users.txt
59296         * users.txt: Add rcs.
59298 2011-02-10  John W. Eaton  <jwe@gnu.org>
59300         doc: update users.txt
59301         * users.txt: Add octave.
59303 2011-02-10  Jim Meyering  <meyering@redhat.com>
59305         doc: update users.txt
59306         * users.txt: Add iwhd.
59308 2011-02-09  Bruno Haible  <bruno@clisp.org>
59310         gnulib-tool: Make copyright notice adjustment more robust.
59311         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59312         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59313         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59314         License".
59315         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59317 2011-02-06  Bruno Haible  <bruno@clisp.org>
59319         New module 'towctrans'.
59320         * modules/towctrans: New file.
59321         * lib/wctype.in.h (towctrans): New declaration.
59322         * lib/towctrans.c: New file.
59323         * lib/towctrans-impl.h: New file.
59324         * m4/towctrans.m4: New file.
59325         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59326         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59327         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59328         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59329         * doc/posix-functions/towctrans.texi: Mention the new module.
59331 2011-02-06  Bruno Haible  <bruno@clisp.org>
59333         New module 'wctrans'.
59334         * modules/wctrans: New file.
59335         * lib/wctype.in.h (wctrans): New declaration.
59336         * lib/wctrans.c: New file.
59337         * lib/wctrans-impl.h: New file.
59338         * m4/wctrans.m4: New file.
59339         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59340         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59341         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59342         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59343         * doc/posix-functions/wctrans.texi: Mention the new module.
59345 2011-02-06  Bruno Haible  <bruno@clisp.org>
59347         New module 'iswctype'.
59348         * modules/iswctype: New file.
59349         * lib/wctype.in.h (iswctype): New declaration.
59350         * lib/iswctype.c: New file.
59351         * lib/iswctype-impl.h: New file.
59352         * m4/iswctype.m4: New file.
59353         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59354         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59355         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59356         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59357         * doc/posix-functions/iswctype.texi: Mention the new module and the
59358         HP-UX 11.00 problem.
59360 2011-02-06  Bruno Haible  <bruno@clisp.org>
59362         New module 'wctype'.
59363         * modules/wctype: Change to represent the wctype() substitute.
59364         * lib/wctype.in.h (wctype): New declaration.
59365         * lib/wctype.c: New file.
59366         * lib/wctype-impl.h: New file.
59367         * m4/wctype.m4: New file.
59368         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59369         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59370         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59371         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59372         * doc/posix-functions/wctype.texi: Mention the new module and the
59373         HP-UX 11.00 problem.
59375 2011-02-06  Bruno Haible  <bruno@clisp.org>
59377         wctype-h: Ensure wctype_t and wctrans_t are defined.
59378         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59379         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59380         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59381         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59382         HAVE_WCTRANS_T.
59383         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59385 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59387         flock: fix license typo
59389         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59390         omitted.
59392 2011-02-08  Bruno Haible  <bruno@clisp.org>
59394         Split large sed scripts, for HP-UX sed.
59395         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59396         to avoid HP-UX limit of 99 commands, in the near future.
59397         * modules/stdlib (Makefile.am): Likewise.
59398         * modules/unistd (Makefile.am): Likewise.
59399         * modules/wchar (Makefile.am): Likewise.
59400         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59401         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59402         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59404 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59405             Bruno Haible  <bruno@clisp.org>
59407         stdlib: improve random_r modularization
59408         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59409         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59410         you also need the random_r module to get this material right.
59411         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59412         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59413         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59415 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59417         stdlib: don't depend on stdint
59418         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59419         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59420         be independent of whether stdint.h is needed.
59421         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59422         here, instead of ...
59423         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59424         struct random_data should be using the random_r module, not just
59425         the stdlib module (which wouldn't make sense: what package needs
59426         just struct random_data without also needing random_r?).
59427         * modules/stdlib (Depends-on): Remove stdint.
59429         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59430         See the thread rooted at
59431         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59432         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59433         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59434         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59435         __VMS)); previously it was always included (via fcntl--.h).
59436         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59437         hand; this is good enough for load averages.  Also, do not use
59438         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59439         flags directly if available and don't bother otherwise.  (Packages
59440         that need the extra reliability should use the modules that define
59441         these flags on older platforms that lack them.)
59442         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59443         fcntl-safer.
59445 2011-02-08  Jim Meyering  <meyering@redhat.com>
59447         di-set.h, ino-map.h: add multiple-inclusion guard
59448         Technically, the guard is required only for ino-map.h, due to its
59449         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59450         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59451         * lib/ino-map.h: Likewise.
59453 2011-02-06  Bruno Haible  <bruno@clisp.org>
59455         iswblank: Ensure declaration on glibc systems.
59456         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59457         * modules/iswblank (Dependencies): Add 'extensions'.
59458         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59460 2011-02-06  Bruno Haible  <bruno@clisp.org>
59462         New module 'iswblank'.
59463         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59464         * modules/iswblank: New file.
59465         * modules/wctype-h (Files): Remove lib/iswblank.c.
59466         (Makefile.am): Substitute GNULIB_ISWBLANK.
59467         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59468         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59469         (gl_WCTYPE_H_DEFAULTS): New macro.
59470         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59471         * modules/iswblank-tests: New file.
59472         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59473         * tests/test-wctype-h.c (main): Remove iswblank tests.
59474         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59475         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59476         of 'wctype-h'.
59477         * NEWS: Mention the change.
59478         * modules/mbchar (Depends-on): Add iswblank.
59480 2011-02-08  Bruno Haible  <bruno@clisp.org>
59482         di-set tests: Refactor.
59483         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59484         unnecessary includes.
59485         (ASSERT): Remove macro.
59486         (main): Make C90 compliant by avoiding variable declaration after
59487         statement.
59488         * modules/di-set-tests (Files): Add tests/macros.h.
59490 2011-02-08  Bruno Haible  <bruno@clisp.org>
59492         ino-map tests: Refactor.
59493         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59494         unnecessary includes.
59495         (ASSERT): Remove macro.
59496         (main): Make C90 compliant by avoiding variable declaration after
59497         statement.
59498         * modules/ino-map-tests (Files): Add tests/macros.h.
59500 2011-02-08  Jim Meyering  <meyering@redhat.com>
59502         di-set: add "const" to a cast
59503         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59504         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59506 2011-02-06  Bruno Haible  <bruno@clisp.org>
59508         Rename module 'wctype' to 'wctype-h'.
59509         * modules/wctype-h: Renamed from modules/wctype.
59510         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59511         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59512         (Files, Depends-on, Makefile.am): Update.
59513         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59514         (Files, Makefile.am): Update.
59515         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59516         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59517         * doc/posix-headers/wctype.texi: Update.
59518         * doc/posix-functions/iswalnum.texi: Update.
59519         * doc/posix-functions/iswalpha.texi: Update.
59520         * doc/posix-functions/iswblank.texi: Update.
59521         * doc/posix-functions/iswcntrl.texi: Update.
59522         * doc/posix-functions/iswdigit.texi: Update.
59523         * doc/posix-functions/iswgraph.texi: Update.
59524         * doc/posix-functions/iswlower.texi: Update.
59525         * doc/posix-functions/iswprint.texi: Update.
59526         * doc/posix-functions/iswpunct.texi: Update.
59527         * doc/posix-functions/iswspace.texi: Update.
59528         * doc/posix-functions/iswupper.texi: Update.
59529         * doc/posix-functions/iswxdigit.texi: Update.
59530         * doc/posix-functions/towlower.texi: Update.
59531         * doc/posix-functions/towupper.texi: Update.
59532         * NEWS: Mention the change.
59533         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59534         * modules/mbchar (Dependencies): Likewise.
59535         * modules/mbswidth (Dependencies): Likewise.
59536         * modules/quotearg (Dependencies): Likewise.
59537         * modules/regex (Dependencies): Likewise.
59538         * modules/wcscasecmp (Dependencies): Likewise.
59539         * modules/wcsncasecmp (Dependencies): Likewise.
59540         * modules/wcwidth (Dependencies): Likewise.
59542 2011-02-06  Bruno Haible  <bruno@clisp.org>
59544         New module 'wcswidth'.
59545         * modules/wcswidth: New file.
59546         * lib/wchar.in.h (wcswidth): New declaration.
59547         * lib/wcswidth.c: New file.
59548         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59549         * m4/wcswidth.m4: New file.
59550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59552         REPLACE_WCSWIDTH.
59553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59554         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59555         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59556         * doc/posix-functions/wcswidth.texi: Mention the new module.
59558 2011-02-06  Bruno Haible  <bruno@clisp.org>
59560         New module 'wcstok'.
59561         * modules/wcstok: New file.
59562         * lib/wchar.in.h (wcstok): New declaration.
59563         * lib/wcstok.c: New file.
59564         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59565         * m4/wcstok.m4: New file.
59566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59569         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59570         * doc/posix-functions/wcstok.texi: Mention the new module.
59572 2011-02-06  Bruno Haible  <bruno@clisp.org>
59574         New module 'wcsstr'.
59575         * modules/wcsstr: New file.
59576         * lib/wchar.in.h (wcsstr): New declaration.
59577         * lib/wcsstr.c: New file.
59578         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59579         * m4/wcsstr.m4: New file.
59580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59583         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59584         * doc/posix-functions/wcsstr.texi: Mention the new module.
59586 2011-02-06  Bruno Haible  <bruno@clisp.org>
59588         New module 'wcspbrk'.
59589         * modules/wcspbrk: New file.
59590         * lib/wchar.in.h (wcspbrk): New declaration.
59591         * lib/wcspbrk.c: New file.
59592         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59593         * m4/wcspbrk.m4: New file.
59594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59597         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59598         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59600 2011-02-06  Bruno Haible  <bruno@clisp.org>
59602         New module 'wcsspn'.
59603         * modules/wcsspn: New file.
59604         * lib/wchar.in.h (wcsspn): New declaration.
59605         * lib/wcsspn.c: New file.
59606         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59607         * m4/wcsspn.m4: New file.
59608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59611         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59612         * doc/posix-functions/wcsspn.texi: Mention the new module.
59614 2011-02-06  Bruno Haible  <bruno@clisp.org>
59616         New module 'wcscspn'.
59617         * modules/wcscspn: New file.
59618         * lib/wchar.in.h (wcscspn): New declaration.
59619         * lib/wcscspn.c: New file.
59620         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59621         * m4/wcscspn.m4: New file.
59622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59625         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59626         * doc/posix-functions/wcscspn.texi: Mention the new module.
59628 2011-02-06  Bruno Haible  <bruno@clisp.org>
59630         New module 'wcsrchr'.
59631         * modules/wcsrchr: New file.
59632         * lib/wchar.in.h (wcsrchr): New declaration.
59633         * lib/wcsrchr.c: New file.
59634         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59635         * m4/wcsrchr.m4: New file.
59636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59639         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59640         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59642 2011-02-06  Bruno Haible  <bruno@clisp.org>
59644         New module 'wcschr'.
59645         * modules/wcschr: New file.
59646         * lib/wchar.in.h (wcschr): New declaration.
59647         * lib/wcschr.c: New file.
59648         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59649         * m4/wcschr.m4: New file.
59650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59653         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59654         * doc/posix-functions/wcschr.texi: Mention the new module.
59656 2011-02-06  Bruno Haible  <bruno@clisp.org>
59658         New module 'wcsdup'.
59659         * modules/wcsdup: New file.
59660         * lib/wchar.in.h (wcsdup): New declaration.
59661         * lib/wcsdup.c: New file.
59662         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59663         * m4/wcsdup.m4: New file.
59664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59667         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59668         * doc/posix-functions/wcsdup.texi: Mention the new module.
59670 2011-02-06  Bruno Haible  <bruno@clisp.org>
59672         New module 'wcsxfrm'.
59673         * modules/wcsxfrm: New file.
59674         * lib/wchar.in.h (wcsxfrm): New declaration.
59675         * lib/wcsxfrm.c: New file.
59676         * lib/wcsxfrm-impl.h: New file.
59677         * m4/wcsxfrm.m4: New file.
59678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59681         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59682         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59684 2011-02-06  Bruno Haible  <bruno@clisp.org>
59686         New module 'wcscoll'.
59687         * modules/wcscoll: New file.
59688         * lib/wchar.in.h (wcscoll): New declaration.
59689         * lib/wcscoll.c: New file.
59690         * lib/wcscoll-impl.h: New file.
59691         * m4/wcscoll.m4: New file.
59692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59695         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59696         * doc/posix-functions/wcscoll.texi: Mention the new module.
59698 2011-02-06  Bruno Haible  <bruno@clisp.org>
59700         New module 'wcsncasecmp'.
59701         * modules/wcsncasecmp: New file.
59702         * lib/wchar.in.h (wcsncasecmp): New declaration.
59703         * lib/wcsncasecmp.c: New file.
59704         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59705         * m4/wcsncasecmp.m4: New file.
59706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59709         HAVE_WCSNCASECMP.
59710         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59711         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59713 2011-02-06  Bruno Haible  <bruno@clisp.org>
59715         New module 'wcscasecmp'.
59716         * modules/wcscasecmp: New file.
59717         * lib/wchar.in.h (wcscasecmp): New declaration.
59718         * lib/wcscasecmp.c: New file.
59719         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59720         * m4/wcscasecmp.m4: New file.
59721         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59722         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59723         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59724         HAVE_WCSCASECMP.
59725         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59726         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59728 2011-02-05  Bruno Haible  <bruno@clisp.org>
59730         New module 'wcsncmp'.
59731         * modules/wcsncmp: New file.
59732         * lib/wchar.in.h (wcsncmp): New declaration.
59733         * lib/wcsncmp.c: New file.
59734         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59735         * m4/wcsncmp.m4: New file.
59736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59739         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59740         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59742 2011-02-05  Bruno Haible  <bruno@clisp.org>
59744         New module 'wcscmp'.
59745         * modules/wcscmp: New file.
59746         * lib/wchar.in.h (wcscmp): New declaration.
59747         * lib/wcscmp.c: New file.
59748         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59749         * m4/wcscmp.m4: New file.
59750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59753         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59754         * doc/posix-functions/wcscmp.texi: Mention the new module.
59756 2011-02-05  Bruno Haible  <bruno@clisp.org>
59758         New module 'wcsncat'.
59759         * modules/wcsncat: New file.
59760         * lib/wchar.in.h (wcsncat): New declaration.
59761         * lib/wcsncat.c: New file.
59762         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59763         * m4/wcsncat.m4: New file.
59764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59767         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59768         * doc/posix-functions/wcsncat.texi: Mention the new module.
59770 2011-02-05  Bruno Haible  <bruno@clisp.org>
59772         New module 'wcscat'.
59773         * modules/wcscat: New file.
59774         * lib/wchar.in.h (wcscat): New declaration.
59775         * lib/wcscat.c: New file.
59776         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59777         * m4/wcscat.m4: New file.
59778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59781         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59782         * doc/posix-functions/wcscat.texi: Mention the new module.
59784 2011-02-05  Bruno Haible  <bruno@clisp.org>
59786         New module 'wcpncpy'.
59787         * modules/wcpncpy: New file.
59788         * lib/wchar.in.h (wcpncpy): New declaration.
59789         * lib/wcpncpy.c: New file.
59790         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59791         * m4/wcpncpy.m4: New file.
59792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59794         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59795         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59796         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59798 2011-02-05  Bruno Haible  <bruno@clisp.org>
59800         New module 'wcsncpy'.
59801         * modules/wcsncpy: New file.
59802         * lib/wchar.in.h (wcsncpy): New declaration.
59803         * lib/wcsncpy.c: New file.
59804         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59805         * m4/wcsncpy.m4: New file.
59806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59809         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59810         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59812 2011-02-05  Bruno Haible  <bruno@clisp.org>
59814         New module 'wcpcpy'.
59815         * modules/wcpcpy: New file.
59816         * lib/wchar.in.h (wcpcpy): New declaration.
59817         * lib/wcpcpy.c: New file.
59818         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59819         * m4/wcpcpy.m4: New file.
59820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59822         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59823         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59824         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59826 2011-02-05  Bruno Haible  <bruno@clisp.org>
59828         New module 'wcscpy'.
59829         * modules/wcscpy: New file.
59830         * lib/wchar.in.h (wcscpy): New declaration.
59831         * lib/wcscpy.c: New file.
59832         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59833         * m4/wcscpy.m4: New file.
59834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59837         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59838         * doc/posix-functions/wcscpy.texi: Mention the new module.
59840 2011-02-05  Bruno Haible  <bruno@clisp.org>
59842         New module 'wcsnlen'.
59843         * modules/wcsnlen: New file.
59844         * lib/wchar.in.h (wcsnlen): New declaration.
59845         * lib/wcsnlen.c: New file.
59846         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59847         * m4/wcsnlen.m4: New file.
59848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59851         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59852         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59854 2011-02-05  Bruno Haible  <bruno@clisp.org>
59856         New module 'wcslen'.
59857         * modules/wcslen: New file.
59858         * lib/wchar.in.h (wcslen): New declaration.
59859         * lib/wcslen.c: New file.
59860         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59861         * m4/wcslen.m4: New file.
59862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59865         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59866         * doc/posix-functions/wcslen.texi: Mention the new module.
59868 2011-02-05  Bruno Haible  <bruno@clisp.org>
59870         New module 'wmemset'.
59871         * modules/wmemset: New file.
59872         * lib/wchar.in.h (wmemset): New declaration.
59873         * lib/wmemset.c: New file.
59874         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59875         * m4/wmemset.m4: New file.
59876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59878         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59879         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59880         * doc/posix-functions/wmemset.texi: Mention the new module.
59882 2011-02-05  Bruno Haible  <bruno@clisp.org>
59884         New module 'wmemmove'.
59885         * modules/wmemmove: New file.
59886         * lib/wchar.in.h (wmemmove): New declaration.
59887         * lib/wmemmove.c: New file.
59888         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59889         * m4/wmemmove.m4: New file.
59890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59892         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59893         HAVE_WMEMMOVE.
59894         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59895         * doc/posix-functions/wmemmove.texi: Mention the new module.
59897 2011-02-05  Bruno Haible  <bruno@clisp.org>
59899         New module 'wmemcpy'.
59900         * modules/wmemcpy: New file.
59901         * lib/wchar.in.h (wmemcpy): New declaration.
59902         * lib/wmemcpy.c: New file.
59903         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59904         * m4/wmemcpy.m4: New file.
59905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59907         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59908         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59909         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59911 2011-02-05  Bruno Haible  <bruno@clisp.org>
59913         New module 'wmemcmp'.
59914         * modules/wmemcmp: New file.
59915         * lib/wchar.in.h (wmemcmp): New declaration.
59916         * lib/wmemcmp.c: New file.
59917         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59918         * m4/wmemcmp.m4: New file.
59919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59921         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59922         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59923         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59925 2011-02-07  Jim Meyering  <meyering@redhat.com>
59927         di-set, ino-map: new modules, from coreutils
59928         * lib/di-set.c: New file.
59929         * lib/di-set.h: Likewise.
59930         * lib/ino-map.c: Likewise.
59931         * lib/ino-map.h: Likewise.
59932         * modules/di-set: Likewise.
59933         * modules/di-set-tests: Likewise.
59934         * modules/ino-map: Likewise.
59935         * modules/ino-map-tests: Likewise.
59936         * tests/test-di-set.c: Likewise.
59937         * tests/test-ino-map.c: Likewise.
59939 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59941         getloadavg: merge minor changes from Emacs
59943         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59944         (getloadavg): Use memset, not bzero.
59946         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59947         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59948         clash (bug#86).
59950 2010-11-14  Bruno Haible  <bruno@clisp.org>
59952         Allow multiple gnulib generated replacements to coexist.
59953         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59954         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59955         * lib/langinfo.in.h (nl_item): Likewise.
59956         * lib/math.in.h (_NaN, NAN): Likewise.
59957         * lib/netdb.in.h (struct addrinfo): Likewise.
59958         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59959         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59960         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59961         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59962         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59963         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59964         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59965         pthread_mutexattr_init, pthread_mutexattr_settype,
59966         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59967         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59968         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59969         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59970         * lib/sched.in.h (struct sched_param): Likewise.
59971         * lib/se-selinux.in.h (security_class_t, security_context_t,
59972         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59973         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59974         lsetfilecon, fsetfilecon, security_check_context,
59975         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59976         Likewise.
59977         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59978         Likewise.
59979         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59980         _gl_function_taking_int_returning_void_t, union sigval,
59981         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59982         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59983         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59984         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59985         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59986         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59987         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59988         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59989         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59990         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59991         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59992         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59993         socklen_t, rpl_fd_isset): Likewise.
59994         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59995         * lib/sys_time.in.h (struct timeval): Likewise.
59996         * lib/sys_times.in.h (struct tms): Likewise.
59997         * lib/sys_utsname.in.h (struct utsname):
59998         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59999         * lib/unistd.in.h (getpagesize): Likewise.
60000         * lib/wchar.in.h (mbstate_t): Likewise.
60001         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60002         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60003         towlower, towupper): Likewise.
60004         Reported by Sam Steingold <sds@gnu.org>.
60006 2011-02-05  Eric Blake  <eblake@redhat.com>
60008         unsetenv: work around Haiku issues
60009         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60010         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60012 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60014         libposix: avoid calling error() within libposix
60015         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60016         is defined.
60018 2011-02-05  Eric Blake  <eblake@redhat.com>
60020         strerror_r-posix: port to cygwin
60021         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60022         implementation.
60023         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60024         * tests/test-strerror_r.c (main): Fix test.
60025         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60026         issue.
60028 2011-02-05  Bruno Haible  <bruno@clisp.org>
60030         New module 'wmemchr'.
60031         * modules/wmemchr: New file.
60032         * lib/wchar.in.h (wmemchr): New declaration.
60033         * lib/wmemchr.c: New file.
60034         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60035         * m4/wmemchr.m4: New file.
60036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60038         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60039         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60040         * doc/posix-functions/wmemchr.texi: Mention the new module.
60042 2011-02-04  Eric Blake  <eblake@redhat.com>
60044         fdopendir: detect FreeBSD bug
60045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60046         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60048 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60050         stdbool: do not define HAVE_STDBOOL_H
60051         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60052         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60053         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60054         imported from the latest Autoconf git.  It was motivated by Emacs,
60055         which uses gnulib but does not need HAVE_STDBOOL_H.
60057 2011-02-04  Bruno Haible  <bruno@clisp.org>
60059         wcsnrtombs: Prepare for new module wwcsnrtombs.
60060         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60061         * lib/wcsnrtombs.c: Include it.
60062         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60064         wcsrtombs: Prepare for new module wwcsrtombs.
60065         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60066         * lib/wcsrtombs.c: Include it.
60067         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60069         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60070         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60071         * lib/mbsnrtowcs.c: Include it.
60072         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60074         mbsrtowcs: Prepare for new module mbsrtowwcs.
60075         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60076         * lib/mbsrtowcs.c: Include it.
60077         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60079 2011-02-04  Bruno Haible  <bruno@clisp.org>
60081         vasnprintf: Reduce use of malloc for small format strings.
60082         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60083         (arguments): Add room for the first 7 arguments.
60084         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60085         (char_directives, u8_directives, u16_directives, u32_directives): Add
60086         room for the first 7 directives.
60087         * lib/printf-parse.c: Include <string.h>.
60088         (PRINTF_PARSE): Change memory handling code so that it uses the first
60089         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60090         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60091         Reported by Pádraig Brady <P@draigbrady.com>.
60093 2011-01-31  Eric Blake  <eblake@redhat.com>
60095         dup2: work around Haiku bug
60096         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60097         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60098         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60099         * tests/test-dup2.c (main): Enhance test.
60101 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60103         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60104         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60105         declared by eglibc 2.11.2.
60106         * lib/stdio.in.h: Likewise.
60108 2011-01-31  Eric Blake  <eblake@redhat.com>
60110         ignore-value: add missing test dependency
60111         * tests/test-ignore-value.c: Revert previous change; stdio.h
60112         provides off_t.
60113         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60115 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60117         mktime: clarify long_int width checking
60118         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60119         the top level, to make it clearer that the assumption about
60120         long_int width is being checked.  See
60121         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60123 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60125         ignore-value: Fix self-test.
60126         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60128 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60130         TYPE_MAXIMUM: avoid theoretically undefined behavior
60131         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60132         negative number, which the C Standard says has undefined behavior.
60133         In practice this is not a problem, but might as well do it by the book.
60134         Reported by Rich Felker and Eric Blake; see
60135         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60136         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60137         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60139         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60140         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60141         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60143         mktime: #undef mktime before #defining it
60144         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60146         mktime: systematically normalize tm_isdst comparisons
60147         * lib/mktime.c (isdst_differ): New function.
60148         (__mktime_internal): Use it systematically for all isdst comparisons.
60149         This completes the fix for libc BZ #6723, and removes the need for
60150         normalizing tm_isdst.  See
60151         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60152         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60154         mktime: fix some integer overflow issues and sidestep the rest
60156         This was prompted by a bug report by Benjamin Lindner for MinGW
60157         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60158         His bug is due to signed integer overflow (0 - INT_MIN), and I
60159         I scanned through mktime.c looking for other integer overflow
60160         problems, fixing all the bugs I found.
60162         Although the C Standard says the resulting code is still not safe
60163         in the presence of integer overflow, in practice it should be good
60164         enough for all real-world two's-complement implementations, except
60165         for debugging environments that deliberately trap on integer
60166         overflow (e.g., gcc -ftrapv).
60168         * lib/mktime.c (WRAPV): New macro.
60169         (SHR): Also check that long_int and time_t shift right in the
60170         usual way, before using the fast-but-unportable method.
60171         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60172         used.  The code already assumed two's complement, so there's
60173         no need to test for alternatives.  All uses removed.
60174         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60175         the C standard.  Problem reported by Rich Felker in
60176         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60177         (twos_complement_arithmetic): Also check long_int and time_t.
60178         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60179         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60180         (__mktime_internal): Avoid integer overflow with unary subtraction
60181         in two instances where -1 - X is an adequate replacement for -X,
60182         since the calculations are approximate.
60184 2011-01-29  Eric Blake  <eblake@redhat.com>
60186         mktime: avoid infinite loop
60187         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60188         type; behavior is still undefined but portable to all known targets.
60189         Reported by Rich Felker.
60191 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60193         rename, unlink, same-inode: Relicense.
60194         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60195         * modules/unlink (License): Likewise.
60196         * modules/same-inode (License): Likewise.
60198 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60200         mktime: avoid problems on NetBSD 5 / i386
60201         * lib/mktime.c (long_int): New type.  This works around a problem
60202         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60203         but time_t is 64 bits, and where I expect the existing code is
60204         wrong in some cases.
60205         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60206         (ydhms_diff): Bring back the compile-time check for wide-enough
60207         year and yday.
60209         mktime: fix misspelling in comment
60210         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60211         This merges all recent glibc changes of importance.
60213 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60215         move-if-change: cope with concurrent mv of identical file.
60216         * build-aux/move-if-change (CMPPROG): Accept environment
60217         variable as an override for `cmp'.
60218         (usage): Document CMPPROG.
60219         Adjust comparison to drop stdout.  Cope with failure of mv if
60220         the target file exists and is identical to the source, for
60221         parallel builds.
60222         Report from H.J. Lu against binutils in PR binutils/12283.
60224 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60226         * users.txt: Mention sharutils.
60228 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60230         * users.txt: Mention OATH Toolkit.
60232 2011-01-27  Bruno Haible  <bruno@clisp.org>
60234         Prepare for supporting FreeBSD 10.
60235         * build-aux/config.libpath: Remove handling of freebsd1*.
60237 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60239         Prepare for supporting FreeBSD 10.
60240         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60241         match FreeBSD 10.0.
60243 2011-01-27  Bruno Haible  <bruno@clisp.org>
60245         vma-iter, get-rusage-as: Add OpenBSD support.
60246         * modules/vma-iter (configure.ac): Test for mquery.
60247         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60248         * lib/vma-iter.c: Include <sys/mman.h>.
60249         (vma_iterate): Add an implementation based on mquery().
60250         * lib/resource-ext.h (get_rusage_as): Update comments.
60251         * lib/get-rusage-as.c: Likewise.
60252         * lib/get-rusage-data.c: Likewise.
60254 2011-01-26  Karl Berry  <karl@gnu.org>
60256         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60257         variables to make it easier to override the makeinfo program used.
60259 2011-01-26  Eric Blake  <eblake@redhat.com>
60261         fcntl: work around Haiku F_DUPFD bugs
60262         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60263         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60264         cloexec bit on duplication.
60265         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60267 2011-01-26  Bruno Haible  <bruno@clisp.org>
60269         Enable memory leak tests on AIX.
60270         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60271         * tests/test-fprintf-posix3.c (main): Likewise.
60273 2011-01-26  Bruno Haible  <bruno@clisp.org>
60275         Tests for module 'get-rusage-data'.
60276         * modules/get-rusage-data-tests: New file.
60277         * tests/test-get-rusage-data.c: New file.
60279         New module 'get-rusage-data'.
60280         * lib/resource-ext.h (get_rusage_data): New declaration.
60281         * lib/get-rusage-data.c: New file.
60282         * modules/get-rusage-data: New file.
60284 2011-01-25  Bruno Haible  <bruno@clisp.org>
60286         get-rusage-as: Allow for easier testing.
60287         * lib/resource-ext.h (get_rusage_as): Add comment.
60288         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60289         (main): New function for interactive testing.
60291 2011-01-25  Bruno Haible  <bruno@clisp.org>
60293         vma-iter: Treat Haiku like BeOS.
60294         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60295         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60297 2011-01-25  Eric Blake  <eblake@redhat.com>
60299         c-stack: fix regression on cygwin when libsigsegv is present
60300         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60302 2011-01-24  Bruno Haible  <bruno@clisp.org>
60304         vma-iter: Avoid empty intervals.
60305         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60306         on an empty interval.
60308 2011-01-24  Jim Meyering  <meyering@redhat.com>
60310         u64: remove unnecessary #include
60311         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60313 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60315         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60316         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60318 2011-01-23  Bruno Haible  <bruno@clisp.org>
60320         New module 'vma-iter'.
60321         * lib/vma-iter.h: New file.
60322         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60323         * modules/vma-iter: New file.
60324         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60325         for get_rusage_as_via_iterator.
60326         (vma_iterate_callback): New function.
60327         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60328         * modules/get-rusage-as (Depends-on): Add vma-iter.
60330 2011-01-23  Bruno Haible  <bruno@clisp.org>
60332         uninorm: Tweak includes.
60333         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60334         Reported by Jim Meyering.
60336 2011-01-23  Bruno Haible  <bruno@clisp.org>
60338         get-rusage-as: Improve on NetBSD.
60339         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60340         /proc, like on FreeBSD.
60342 2011-01-23  Jim Meyering  <meyering@redhat.com>
60344         xreadlink.h: remove unnecessary #include
60345         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60347         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60348         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60350 2011-01-23  Bruno Haible  <bruno@clisp.org>
60352         get-rusage-as: Fix bug.
60353         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60354         original limit when aborting the first loop.
60356 2011-01-23  Bruno Haible  <bruno@clisp.org>
60358         wctype: Ensure valid C syntax.
60359         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60360         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60362 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60364         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60366         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60367         as they are needed only for configure's test case.
60368         This removes two unnecessary symbols from config.h.
60370         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60371         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60373         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60374         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60375         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60376         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60377         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60378         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60379         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60380         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60384         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60385         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60386         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60387         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60389 2011-01-21  Eric Blake  <eblake@redhat.com>
60391         maintainer-makefile: work with older git for submodule check
60392         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60393         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60394         Reported by Matthias Bolte.
60396         bootstrap: minor portability fixes
60397         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60398         (usage): Omit leading capital and trailing . on help phrases, per
60399         GNU Coding Standards.
60400         (check_versions, top level): Prefix messages with script name.
60402 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60404         bootstrap: support --no-git option
60405         * build-aux/bootstrap: Add --no-git option, to be used when
60406         --gnulib-srcdir points to the exact desired checkout.
60408 2011-01-21  Eric Blake  <eblake@redhat.com>
60410         strerror_r-posix: work with glibc 2.13
60411         * lib/strerror_r.c (strerror_r): Fix return type.
60413 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60414             Bruno Haible  <bruno@clisp.org>
60416         uN_strstr: New unit tests.
60417         * modules/unistr/u8-strstr-tests: New file.
60418         * modules/unistr/u16-strstr-tests: New file.
60419         * modules/unistr/u32-strstr-tests: New file.
60420         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60421         * tests/unistr/test-u8-strstr.c: New file.
60422         * tests/unistr/test-u16-strstr.c: New file.
60423         * tests/unistr/test-u32-strstr.c: New file.
60425 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60426             Bruno Haible  <bruno@clisp.org>
60428         Make uN_strstr functions O(n) worst-case.
60429         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60430         16-bit and 32-bit unit cases, use the unibyte algorithm from
60431         lib/mbsstr.c.
60432         * lib/unistr/u8-strstr.c: Include <string.h>.
60433         (UNIT_IS_UINT8_T): New macro.
60434         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60435         (U_STRLEN, U_STRNLEN): New macros.
60436         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60437         (U_STRLEN, U_STRNLEN): New macros.
60438         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60439         (configure.ac): Update required libunistring version.
60440         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60441         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60442         malloca.
60443         (configure.ac): Update required libunistring version.
60444         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60445         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60446         malloca.
60447         (configure.ac): Update required libunistring version.
60449 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60450             Bruno Haible  <bruno@clisp.org>
60452         Prepare for faster uN_strstr functions.
60453         * lib/str-kmp.h: Support definable UNITs.
60454         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60455         needle_len argument.
60456         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60457         * lib/mbscasestr.c (mbscasestr): Likewise.
60459 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60461         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60462         * tests/test-malloca.c (main): Unset the environment variable
60463         to greatly speed up the test.
60464         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60465         * modules/malloca-tests: Depend on unsetenv.
60467 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60469         ignore-value: remove stdint dependency
60470         * lib/ignore-value.h: Remove <stdint.h>
60471         * modules/ignore-value: Remove stdint dependency.
60473 2011-01-21  Jim Meyering  <meyering@redhat.com>
60475         maint.mk: adjust variable name to be consistent with other gl_ vars
60476         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60477         to be lower case.
60479 2011-01-20  Jim Meyering  <meyering@redhat.com>
60481         maint.mk: make "check" depend on public-submodule-commit by default
60482         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60484 2011-01-20  Bruno Haible  <bruno@clisp.org>
60486         mbfile, mbiter: Complete change from 2008-12-21.
60487         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60488         * m4/mbiter.m4 (gl_MBITER): Likewise.
60490 2011-01-20  Jim Meyering  <meyering@redhat.com>
60492         init.sh: insert space between each function name and "()"
60493         * tests/init.sh: Make it a little easier to see that a function's
60494         name is "warn_", and not "warn" when looking at the first part of
60495         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60497 2011-01-20  Jim Meyering  <meyering@redhat.com>
60499         mountlist: clean up code formatting
60500         * lib/mountlist.c (read_file_system_list): Split a long line,
60501         correct bracing style, use NULL in place of "(struct statfs *)0",
60502         don't parenthesize return value, add spaces around "=" and after
60503         ";-in-for-stmt".
60505 2011-01-14  Markus Duft  <mduft@gentoo.org>
60507         mountlist: add support for Interix
60508         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60509         Apply statvfs to all entries of /dev/fs.
60510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60511         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60513 2011-01-20  Jim Meyering  <meyering@redhat.com>
60515         maint.mk: improve the public-submodule-commit rule
60516         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60517         to suppress printing of its commands... unless V=1.
60518         Add git submodule's --quiet option to suppress printing of e.g.,
60519         "Entering gnulib" output.
60520         "cd" into $(srcdir) before running git submodule.
60522 2011-01-20  Bruno Haible  <bruno@clisp.org>
60524         include_next: Fix bug introduced on 2011-01-18.
60525         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60526         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60527         ac_cv_header_... variable if the second argument is not 'check'.
60528         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60529         gl_NEXT_HEADERS_INTERNAL.
60531 2011-01-20  Bruno Haible  <bruno@clisp.org>
60533         Allow the user to avoid the GNULIB_TEST_* macros.
60534         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60535         Suggested by Paul Eggert.
60537 2011-01-14  Jim Meyering  <meyering@redhat.com>
60539         bootstrap: avoid failure when there is no .gitmodules file
60540         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60541         has been assigned to, even when its value is the empty string.
60542         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60543         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60544         Reported by John W. Eaton <jwe@gnu.org>.
60546 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60548         assume <ctype.h>, ..., <time.h> exist
60549         For years gnulib has been assuming the existence of the headers
60550         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60551         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60552         them, since they don't appear to be needed.
60553         * README (Portability guidelines): Document this.
60554         * lib/flock.c: Assume <fcntl.h> exists.
60555         * lib/regex_internal.h: Assume <locale.h> exists.
60556         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60558         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60559         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60560         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60561         * m4/regex.m4 (gl_REGEX): Likewise.
60562         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60563         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60564         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60565         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60566         * tests/test-argp.c: Likewise.
60567         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60569         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60570         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60571         AA_APPLE_UNIVERSAL_BUILD.  See
60572         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60573         * NEWS: Document this.
60575 2011-01-19  Eric Blake  <eblake@redhat.com>
60577         c-stack: assume stack overflow if SA_SIGINFO unsupported
60578         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60579         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60580         sigaction will work.
60581         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60582         behavior match Linux.
60583         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60585         stdbool-tests: accommodate Haiku
60586         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60588         binary-io: fix O_TEXT on Haiku
60589         * modules/binary-io (Depends-on): Add fcntl-h.
60590         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60591         than blindly undefining O_TEXT.
60592         Reported by Scott McCreary.
60594 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60596         include_next: do not check for standard headers like stddef.h
60598         I found this problem when modifying Emacs to use gnulib.
60599         I noticed that it added HAVE_STDDEF_H to config.h, even though
60600         gnulib always assumes <stddef.h> exists as per README and this
60601         symbol is unnecessary.
60602         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60603         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60604         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60605         faster for headers like stddef.h that are known to exist.
60606         (gl_CHECK_NEXT_HEADERS): Use it.
60607         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60608         rather than gl_CHECK_NEXT_HEADERS.
60609         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60610         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60612 2011-01-18  Eric Blake  <eblake@redhat.com>
60614         ansi-c++-opt: skip C++ dependency style if C++ is unused
60615         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60616         tests when we know C++ compilation is not desired.
60617         Reported by Scott McCreary.
60619 2011-01-18  Bruno Haible  <bruno@clisp.org>
60621         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60622         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60623         (main): Perform test also when getrlimit and setrlimit don't exist or
60624         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60625         limiting the address space size using setrlimit, compare the address
60626         space size before and after the test.
60627         * tests/test-dprintf-posix2.c: Likewise.
60628         * tests/test-fprintf-posix3.sh: Update skip messages.
60629         * tests/test-dprintf-posix2.sh: Likewise.
60630         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60631         * modules/dprintf-posix-tests (Depends-on): Likewise.
60632         Reported by Bruce Korb <bkorb@gnu.org> and
60633         Gary V. Vaughan <gary@gnu.org>.
60635 2011-01-18  Bruno Haible  <bruno@clisp.org>
60637         get-rusage-as: Improvement for Cygwin.
60638         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60639         areas that are merely reserved.
60641 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60643         strftime: remove dependencies on multibyte modules
60645         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60646         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60647         only if __osf__ is defined, and I suspect OSF doesn't need these
60648         other modules.  If my guess is wrong, we'll need to come up with a
60649         variant of strftime that doesn't need the multibyte modules.
60651         I discovered this problem when attempting modify Emacs to use the
60652         strftime module.  With the previous gnulib, this caused Emacs to
60653         need 31 new files, ranging from lib/config.charset to
60654         m4/wint_t.m4.  This was overkill and I expect would be offputting
60655         to the Emacs maintainers.  After this change, only 6 new files are
60656         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60657         stdbool.m4, and tm_gmtoff.m4.
60659         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60660         Suggested by Bruno Haible in
60661         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60663         and do not check for wchar.h.
60664         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60665         (Depends-on): Remove mbrlen, mbsinit, wchar.
60667 2011-01-18  Bruno Haible  <bruno@clisp.org>
60669         Tests for module 'get-rusage-as'.
60670         * modules/get-rusage-as-tests: New file.
60671         * tests/test-get-rusage-as.c: New file.
60673         New module 'get-rusage-as'.
60674         * modules/get-rusage-as: New file.
60675         * lib/resource-ext.h: New file.
60676         * lib/get-rusage-as.c: New file.
60678 2011-01-17  Eric Blake  <eblake@redhat.com>
60680         sigaction: relax license from LGPLv3+ to LGPLv2+
60681         * modules/sigaction (License): Relax to LGPLv2+.
60683 2011-01-14  Bruno Haible  <bruno@clisp.org>
60685         filemode: Make function declarations usable in C++ mode.
60686         * lib/filemode.h: Enclose function declarations in extern "C" block.
60687         Reported by John W. Eaton <jwe@gnu.org>.
60689 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60691         save-cwd: no longer include "xgetcwd.h"
60692         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60693         This avoids a compilation failure in projects that use save-cwd
60694         without also using the xgetcwd module.
60696 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60698         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60699         This is so that a program like Emacs, which needs only dtoastr,
60700         does not have to bother with distributing and compiling ftoastr
60701         and ldtoastr.
60702         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60703         * modules/dtoastr, modules/ldtoastr: New files.
60704         * modules/ftoastr: Now works just for 'float'.
60705         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60706         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60707         dtoastr.c, ldtoastr.c.
60709 2011-01-11  Jim Meyering  <meyering@redhat.com>
60711         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60712         There is no need to work around the lack of the fchdir function,
60713         since gnulib can now provide a replacement when required.
60714         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60715         * modules/save-cwd (Depends-on): Add fchdir.
60717 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60719         openat, save-cwd: avoid xmalloc
60721         This removes a direct (but undocumented) dependency of openat on
60722         xalloc, along with an indirect dependency via save-cwd.  It also
60723         removes a dependency of save-cwd on xgetcwd, and thereby
60724         indirectly on xalloc.  This change causes the openat substitute
60725         to fall back on save_cwd when memory is tight, and for save_cwd to
60726         fail instead of dying when memory is tight, but that's good enough.
60727         Problem and initial idea for fix reported by Bastien Roucaries in
60728         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60730         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60731         xalloc.h (for xmalloc).
60732         (openat_proc_name): Use malloc, not xmalloc.
60733         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60734         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60736         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60737         This avoids heap allocation for file names whose lengths are in
60738         the range 512..1023, with the upper bound increasing to at most
60739         4031 depending on the platform's PATH_MAX.  (We do not want
60740         pathmax.h here as it might supply a non-constant PATH_MAX.)
60741         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60742         Perhaps they should be moved to malloca.h?
60743         (OPENAT_BUFFER_SIZE): Use them.
60745 2011-01-10  Bruno Haible  <bruno@clisp.org>
60747         doc: Update users.txt.
60748         * users.txt: Add recutils.
60750 2011-01-09  Karl Berry  <karl@gnu.org>
60752         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60754         * doc/configmake.texi: New file.
60755         * doc/gnulib.texi: Include it.
60756         * modules/configmake: Move documentation from here.
60758 2011-01-09  Bruno Haible  <bruno@clisp.org>
60760         Update to Unicode 6.0.0.
60761         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60762         (get_lbp): Update for Unicode 6.0.0.
60763         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60764         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60765         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60766         U+11001, U+11038..U+11046. Remove U+06DE.
60767         (uc_width): Fix bounds of planes.
60768         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60769         lib/uniwidth/width.c.
60770         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60771         trailing whitespace removed.
60772         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60773         without comments, but with the original copyright notice.
60774         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60775         * lib/unicase/ignorable.h: Likewise.
60776         * lib/unicase/tocasefold.h: Likewise.
60777         * lib/unicase/tolower.h: Likewise.
60778         * lib/unicase/totitle.h: Likewise.
60779         * lib/unicase/toupper.h: Likewise.
60780         * lib/unictype/bidi_of.h: Likewise.
60781         * lib/unictype/blocks.h: Likewise.
60782         * lib/unictype/categ_C.h: Likewise.
60783         * lib/unictype/categ_Cn.h: Likewise.
60784         * lib/unictype/categ_L.h: Likewise.
60785         * lib/unictype/categ_Ll.h: Likewise.
60786         * lib/unictype/categ_Lm.h: Likewise.
60787         * lib/unictype/categ_Lo.h: Likewise.
60788         * lib/unictype/categ_Lu.h: Likewise.
60789         * lib/unictype/categ_M.h: Likewise.
60790         * lib/unictype/categ_Mc.h: Likewise.
60791         * lib/unictype/categ_Me.h: Likewise.
60792         * lib/unictype/categ_Mn.h: Likewise.
60793         * lib/unictype/categ_N.h: Likewise.
60794         * lib/unictype/categ_Nd.h: Likewise.
60795         * lib/unictype/categ_No.h: Likewise.
60796         * lib/unictype/categ_P.h: Likewise.
60797         * lib/unictype/categ_Po.h: Likewise.
60798         * lib/unictype/categ_S.h: Likewise.
60799         * lib/unictype/categ_Sc.h: Likewise.
60800         * lib/unictype/categ_Sk.h: Likewise.
60801         * lib/unictype/categ_Sm.h: Likewise.
60802         * lib/unictype/categ_So.h: Likewise.
60803         * lib/unictype/categ_of.h: Likewise.
60804         * lib/unictype/combining.h: Likewise.
60805         * lib/unictype/ctype_alnum.h: Likewise.
60806         * lib/unictype/ctype_alpha.h: Likewise.
60807         * lib/unictype/ctype_graph.h: Likewise.
60808         * lib/unictype/ctype_lower.h: Likewise.
60809         * lib/unictype/ctype_print.h: Likewise.
60810         * lib/unictype/ctype_punct.h: Likewise.
60811         * lib/unictype/ctype_upper.h: Likewise.
60812         * lib/unictype/decdigit.h: Likewise.
60813         * lib/unictype/digit.h: Likewise.
60814         * lib/unictype/numeric.h: Likewise.
60815         * lib/unictype/pr_alphabetic.h: Likewise.
60816         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60817         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60818         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60819         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60820         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60821         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60822         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60823         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60824         * lib/unictype/pr_case_ignorable.h: Likewise.
60825         * lib/unictype/pr_cased.h: Likewise.
60826         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60827         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60828         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60829         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60830         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60831         * lib/unictype/pr_combining.h: Likewise.
60832         * lib/unictype/pr_composite.h: Likewise.
60833         * lib/unictype/pr_currency_symbol.h: Likewise.
60834         * lib/unictype/pr_decimal_digit.h: Likewise.
60835         * lib/unictype/pr_deprecated.h: Likewise.
60836         * lib/unictype/pr_format_control.h: Likewise.
60837         * lib/unictype/pr_grapheme_base.h: Likewise.
60838         * lib/unictype/pr_grapheme_extend.h: Likewise.
60839         * lib/unictype/pr_grapheme_link.h: Likewise.
60840         * lib/unictype/pr_id_continue.h: Likewise.
60841         * lib/unictype/pr_id_start.h: Likewise.
60842         * lib/unictype/pr_ideographic.h: Likewise.
60843         * lib/unictype/pr_lowercase.h: Likewise.
60844         * lib/unictype/pr_math.h: Likewise.
60845         * lib/unictype/pr_numeric.h: Likewise.
60846         * lib/unictype/pr_other_alphabetic.h: Likewise.
60847         * lib/unictype/pr_other_id_continue.h: Likewise.
60848         * lib/unictype/pr_other_math.h: Likewise.
60849         * lib/unictype/pr_punctuation.h: Likewise.
60850         * lib/unictype/pr_sentence_terminal.h: Likewise.
60851         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60852         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60853         * lib/unictype/pr_unified_ideograph.h: Likewise.
60854         * lib/unictype/pr_uppercase.h: Likewise.
60855         * lib/unictype/pr_xid_continue.h: Likewise.
60856         * lib/unictype/pr_xid_start.h: Likewise.
60857         * lib/unictype/scripts.h: Likewise.
60858         * lib/unictype/scripts_byname.gperf: Likewise.
60859         * lib/unictype/sy_java_ident.h: Likewise.
60860         * lib/unigbrk/gbrkprop.h: Likewise.
60861         * lib/unilbrk/lbrkprop1.h: Likewise.
60862         * lib/unilbrk/lbrkprop2.h: Likewise.
60863         * lib/uninorm/decomposition-table2.h: Likewise.
60864         * lib/uniwbrk/wbrkprop.h: Likewise.
60865         * tests/unicase/test-cased.c: Likewise.
60866         * tests/unicase/test-ignorable.c: Likewise.
60867         * tests/unicase/test-uc_tolower.c: Likewise.
60868         * tests/unicase/test-uc_totitle.c: Likewise.
60869         * tests/unicase/test-uc_toupper.c: Likewise.
60870         * tests/unictype/test-categ_C.c: Likewise.
60871         * tests/unictype/test-categ_Cn.c: Likewise.
60872         * tests/unictype/test-categ_L.c: Likewise.
60873         * tests/unictype/test-categ_Ll.c: Likewise.
60874         * tests/unictype/test-categ_Lm.c: Likewise.
60875         * tests/unictype/test-categ_Lo.c: Likewise.
60876         * tests/unictype/test-categ_Lu.c: Likewise.
60877         * tests/unictype/test-categ_M.c: Likewise.
60878         * tests/unictype/test-categ_Mc.c: Likewise.
60879         * tests/unictype/test-categ_Me.c: Likewise.
60880         * tests/unictype/test-categ_Mn.c: Likewise.
60881         * tests/unictype/test-categ_N.c: Likewise.
60882         * tests/unictype/test-categ_Nd.c: Likewise.
60883         * tests/unictype/test-categ_No.c: Likewise.
60884         * tests/unictype/test-categ_P.c: Likewise.
60885         * tests/unictype/test-categ_Po.c: Likewise.
60886         * tests/unictype/test-categ_S.c: Likewise.
60887         * tests/unictype/test-categ_Sc.c: Likewise.
60888         * tests/unictype/test-categ_Sk.c: Likewise.
60889         * tests/unictype/test-categ_Sm.c: Likewise.
60890         * tests/unictype/test-categ_So.c: Likewise.
60891         * tests/unictype/test-ctype_alnum.c: Likewise.
60892         * tests/unictype/test-ctype_alpha.c: Likewise.
60893         * tests/unictype/test-ctype_graph.c: Likewise.
60894         * tests/unictype/test-ctype_lower.c: Likewise.
60895         * tests/unictype/test-ctype_print.c: Likewise.
60896         * tests/unictype/test-ctype_punct.c: Likewise.
60897         * tests/unictype/test-ctype_upper.c: Likewise.
60898         * tests/unictype/test-decdigit.h: Likewise.
60899         * tests/unictype/test-digit.h: Likewise.
60900         * tests/unictype/test-numeric.h: Likewise.
60901         * tests/unictype/test-pr_alphabetic.c: Likewise.
60902         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60903         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60904         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60905         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60906         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60907         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60908         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60909         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60910         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60911         * tests/unictype/test-pr_cased.c: Likewise.
60912         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60913         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60914         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60915         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60916         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60917         * tests/unictype/test-pr_combining.c: Likewise.
60918         * tests/unictype/test-pr_composite.c: Likewise.
60919         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60920         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60921         * tests/unictype/test-pr_deprecated.c: Likewise.
60922         * tests/unictype/test-pr_format_control.c: Likewise.
60923         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60924         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60925         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60926         * tests/unictype/test-pr_id_continue.c: Likewise.
60927         * tests/unictype/test-pr_id_start.c: Likewise.
60928         * tests/unictype/test-pr_ideographic.c: Likewise.
60929         * tests/unictype/test-pr_lowercase.c: Likewise.
60930         * tests/unictype/test-pr_math.c: Likewise.
60931         * tests/unictype/test-pr_numeric.c: Likewise.
60932         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60933         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60934         * tests/unictype/test-pr_other_math.c: Likewise.
60935         * tests/unictype/test-pr_punctuation.c: Likewise.
60936         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60937         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60938         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60939         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60940         * tests/unictype/test-pr_uppercase.c: Likewise.
60941         * tests/unictype/test-pr_xid_continue.c: Likewise.
60942         * tests/unictype/test-pr_xid_start.c: Likewise.
60943         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60944         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60945         changes.
60946         * lib/unictype/categ_Cc.h: Likewise.
60947         * lib/unictype/categ_Cf.h: Likewise.
60948         * lib/unictype/categ_Co.h: Likewise.
60949         * lib/unictype/categ_Cs.h: Likewise.
60950         * lib/unictype/categ_Lt.h: Likewise.
60951         * lib/unictype/categ_Nl.h: Likewise.
60952         * lib/unictype/categ_Pc.h: Likewise.
60953         * lib/unictype/categ_Pd.h: Likewise.
60954         * lib/unictype/categ_Pe.h: Likewise.
60955         * lib/unictype/categ_Pf.h: Likewise.
60956         * lib/unictype/categ_Pi.h: Likewise.
60957         * lib/unictype/categ_Ps.h: Likewise.
60958         * lib/unictype/categ_Z.h: Likewise.
60959         * lib/unictype/categ_Zl.h: Likewise.
60960         * lib/unictype/categ_Zp.h: Likewise.
60961         * lib/unictype/categ_Zs.h: Likewise.
60962         * lib/unictype/ctype_blank.h: Likewise.
60963         * lib/unictype/ctype_cntrl.h: Likewise.
60964         * lib/unictype/ctype_digit.h: Likewise.
60965         * lib/unictype/ctype_space.h: Likewise.
60966         * lib/unictype/ctype_xdigit.h: Likewise.
60967         * lib/unictype/mirror.h: Likewise.
60968         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60969         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60970         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60971         * lib/unictype/pr_bidi_control.h: Likewise.
60972         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60973         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60974         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60975         * lib/unictype/pr_bidi_pdf.h: Likewise.
60976         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60977         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60978         * lib/unictype/pr_dash.h: Likewise.
60979         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60980         * lib/unictype/pr_diacritic.h: Likewise.
60981         * lib/unictype/pr_extender.h: Likewise.
60982         * lib/unictype/pr_hex_digit.h: Likewise.
60983         * lib/unictype/pr_hyphen.h: Likewise.
60984         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60985         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60986         * lib/unictype/pr_ignorable_control.h: Likewise.
60987         * lib/unictype/pr_iso_control.h: Likewise.
60988         * lib/unictype/pr_join_control.h: Likewise.
60989         * lib/unictype/pr_left_of_pair.h: Likewise.
60990         * lib/unictype/pr_line_separator.h: Likewise.
60991         * lib/unictype/pr_logical_order_exception.h: Likewise.
60992         * lib/unictype/pr_non_break.h: Likewise.
60993         * lib/unictype/pr_not_a_character.h: Likewise.
60994         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60995         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60996         * lib/unictype/pr_other_id_start.h: Likewise.
60997         * lib/unictype/pr_other_lowercase.h: Likewise.
60998         * lib/unictype/pr_other_uppercase.h: Likewise.
60999         * lib/unictype/pr_paired_punctuation.h: Likewise.
61000         * lib/unictype/pr_paragraph_separator.h: Likewise.
61001         * lib/unictype/pr_pattern_syntax.h: Likewise.
61002         * lib/unictype/pr_pattern_white_space.h: Likewise.
61003         * lib/unictype/pr_private_use.h: Likewise.
61004         * lib/unictype/pr_quotation_mark.h: Likewise.
61005         * lib/unictype/pr_radical.h: Likewise.
61006         * lib/unictype/pr_soft_dotted.h: Likewise.
61007         * lib/unictype/pr_space.h: Likewise.
61008         * lib/unictype/pr_titlecase.h: Likewise.
61009         * lib/unictype/pr_variation_selector.h: Likewise.
61010         * lib/unictype/pr_white_space.h: Likewise.
61011         * lib/unictype/pr_zero_width.h: Likewise.
61012         * lib/unictype/sy_c_ident.h: Likewise.
61013         * lib/unictype/sy_c_whitespace.h: Likewise.
61014         * lib/unictype/sy_java_whitespace.h: Likewise.
61015         * lib/uninorm/composition-table.gperf: Likewise.
61016         * lib/uninorm/decomposition-table1.h: Likewise.
61017         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61018         LB8.
61019         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61020         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61021         * modules/unictype/*: Bump version number of expected libunistring
61022         version.
61024 2011-01-09  Bruno Haible  <bruno@clisp.org>
61026         Update to Unicode 5.2.0.
61027         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61028         trailing whitespace removed.
61030 2011-01-09  Bruno Haible  <bruno@clisp.org>
61032         New Unicode character properties, from Unicode 5.2.0.
61033         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61034         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61035         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61036         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61037         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61038         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61039         uc_is_property_cased, uc_is_property_case_ignorable,
61040         uc_is_property_changes_when_lowercased,
61041         uc_is_property_changes_when_uppercased,
61042         uc_is_property_changes_when_titlecased,
61043         uc_is_property_changes_when_casefolded,
61044         uc_is_property_changes_when_casemapped): New declarations.
61045         * lib/unictype/pr_byname.gperf: Add the new properties.
61046         * modules/unictype/property-byname (Depends-on): Depend on the new
61047         properties modules.
61048         * modules/unictype/property-all (Depends-on): Likewise.
61049         * MODULES.html.sh (Unicode string functions): Add
61050         unictype/property-case-ignorable, unictype/property-cased,
61051         unictype/property-changes-when-casefolded,
61052         unictype/property-changes-when-casemapped,
61053         unictype/property-changes-when-lowercased,
61054         unictype/property-changes-when-titlecased,
61055         unictype/property-changes-when-uppercased.
61057         New module 'unictype/property-changes-when-casemapped'.
61058         * modules/unictype/property-changes-when-casemapped: New file.
61059         * lib/unictype/pr_changes_when_casemapped.c: New file.
61060         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61061         generated by gen-uni-tables.
61062         * modules/unictype/property-changes-when-casemapped-tests: New file.
61063         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61064         automatically generated by gen-uni-tables.
61066         New module 'unictype/property-changes-when-casefolded'.
61067         * modules/unictype/property-changes-when-casefolded: New file.
61068         * lib/unictype/pr_changes_when_casefolded.c: New file.
61069         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61070         generated by gen-uni-tables.
61071         * modules/unictype/property-changes-when-casefolded-tests: New file.
61072         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61073         automatically generated by gen-uni-tables.
61075         New module 'unictype/property-changes-when-titlecased'.
61076         * modules/unictype/property-changes-when-titlecased: New file.
61077         * lib/unictype/pr_changes_when_titlecased.c: New file.
61078         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61079         generated by gen-uni-tables.
61080         * modules/unictype/property-changes-when-titlecased-tests: New file.
61081         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61082         automatically generated by gen-uni-tables.
61084         New module 'unictype/property-changes-when-uppercased'.
61085         * modules/unictype/property-changes-when-uppercased: New file.
61086         * lib/unictype/pr_changes_when_uppercased.c: New file.
61087         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61088         generated by gen-uni-tables.
61089         * modules/unictype/property-changes-when-uppercased-tests: New file.
61090         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61091         automatically generated by gen-uni-tables.
61093         New module 'unictype/property-changes-when-lowercased'.
61094         * modules/unictype/property-changes-when-lowercased: New file.
61095         * lib/unictype/pr_changes_when_lowercased.c: New file.
61096         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61097         generated by gen-uni-tables.
61098         * modules/unictype/property-changes-when-lowercased-tests: New file.
61099         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61100         automatically generated by gen-uni-tables.
61102         New module 'unictype/property-case-ignorable'.
61103         * modules/unictype/property-case-ignorable: New file.
61104         * lib/unictype/pr_case_ignorable.c: New file.
61105         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61106         by gen-uni-tables.
61107         * modules/unictype/property-case-ignorable-tests: New file.
61108         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61109         generated by gen-uni-tables.
61111         New module 'unictype/property-cased'.
61112         * modules/unictype/property-cased: New file.
61113         * lib/unictype/pr_cased.c: New file.
61114         * lib/unictype/pr_cased.h: New file, automatically generated by
61115         gen-uni-tables.
61116         * modules/unictype/property-cased-tests: New file.
61117         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61118         gen-uni-tables.
61120 2011-01-09  Bruno Haible  <bruno@clisp.org>
61122         Update to Unicode 5.2.0.
61123         * lib/gen-uni-tables.c (output_predicate, output_category,
61124         output_combclass, output_bidi_category, output_decimal_digit_test,
61125         output_decimal_digit, output_digit_test, output_digit,
61126         output_numeric_test, output_numeric, output_mirror, output_scripts,
61127         output_scripts_byname, output_blocks, output_ident_category): Fix
61128         comment header.
61129         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61130         get_wbp.
61131         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61132         items.
61133         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61134         Changes_When_Lowercased, Changes_When_Uppercased,
61135         Changes_When_Titlecased, Changes_When_Casefolded,
61136         Changes_When_Casemapped.
61137         (is_property_alphabetic, is_property_default_ignorable_code_point):
61138         Update for Unicode 5.2.0.
61139         (is_property_cased, is_property_case_ignorable,
61140         is_property_changes_when_lowercased,
61141         is_property_changes_when_uppercased,
61142         is_property_changes_when_titlecased,
61143         is_property_changes_when_casefolded,
61144         is_property_changes_when_casemapped): New functions.
61145         (output_properties): Output also the properties cased, case_ignorable,
61146         changes_when_lowercased, changes_when_uppercased,
61147         changes_when_titlecased, changes_when_casefolded,
61148         changes_when_casemapped.
61149         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61150         Unicode TR#11 revision 17 -> 19.
61151         (LBP_CP): New enumeration value.
61152         (LBP_*): Adjust values accordingly.
61153         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61154         TR#14 revision 22 -> 24.
61155         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61156         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61157         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61158         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61159         is_WBP_MIDLETTER.
61160         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61161         the code1 and code2 of each composition rule.
61162         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61163         * lib/unicase/ignorable.h: Likewise.
61164         * lib/unicase/tocasefold.h: Likewise.
61165         * lib/unicase/tolower.h: Likewise.
61166         * lib/unicase/totitle.h: Likewise.
61167         * lib/unicase/toupper.h: Likewise.
61168         * lib/unictype/bidi_of.h: Likewise.
61169         * lib/unictype/blocks.h: Likewise.
61170         * lib/unictype/categ_C.h: Likewise.
61171         * lib/unictype/categ_Cf.h: Likewise.
61172         * lib/unictype/categ_Cn.h: Likewise.
61173         * lib/unictype/categ_L.h: Likewise.
61174         * lib/unictype/categ_Ll.h: Likewise.
61175         * lib/unictype/categ_Lm.h: Likewise.
61176         * lib/unictype/categ_Lo.h: Likewise.
61177         * lib/unictype/categ_Lu.h: Likewise.
61178         * lib/unictype/categ_M.h: Likewise.
61179         * lib/unictype/categ_Mc.h: Likewise.
61180         * lib/unictype/categ_Mn.h: Likewise.
61181         * lib/unictype/categ_N.h: Likewise.
61182         * lib/unictype/categ_Nd.h: Likewise.
61183         * lib/unictype/categ_Nl.h: Likewise.
61184         * lib/unictype/categ_No.h: Likewise.
61185         * lib/unictype/categ_P.h: Likewise.
61186         * lib/unictype/categ_Pd.h: Likewise.
61187         * lib/unictype/categ_Po.h: Likewise.
61188         * lib/unictype/categ_S.h: Likewise.
61189         * lib/unictype/categ_Sc.h: Likewise.
61190         * lib/unictype/categ_So.h: Likewise.
61191         * lib/unictype/categ_of.h: Likewise.
61192         * lib/unictype/combining.h: Likewise.
61193         * lib/unictype/ctype_alnum.h: Likewise.
61194         * lib/unictype/ctype_alpha.h: Likewise.
61195         * lib/unictype/ctype_graph.h: Likewise.
61196         * lib/unictype/ctype_lower.h: Likewise.
61197         * lib/unictype/ctype_print.h: Likewise.
61198         * lib/unictype/ctype_punct.h: Likewise.
61199         * lib/unictype/ctype_upper.h: Likewise.
61200         * lib/unictype/decdigit.h: Likewise.
61201         * lib/unictype/digit.h: Likewise.
61202         * lib/unictype/numeric.h: Likewise.
61203         * lib/unictype/pr_alphabetic.h: Likewise.
61204         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61205         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61206         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61207         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61208         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61209         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61210         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61211         * lib/unictype/pr_combining.h: Likewise.
61212         * lib/unictype/pr_composite.h: Likewise.
61213         * lib/unictype/pr_currency_symbol.h: Likewise.
61214         * lib/unictype/pr_dash.h: Likewise.
61215         * lib/unictype/pr_decimal_digit.h: Likewise.
61216         * lib/unictype/pr_deprecated.h: Likewise.
61217         * lib/unictype/pr_diacritic.h: Likewise.
61218         * lib/unictype/pr_extender.h: Likewise.
61219         * lib/unictype/pr_grapheme_base.h: Likewise.
61220         * lib/unictype/pr_grapheme_extend.h: Likewise.
61221         * lib/unictype/pr_grapheme_link.h: Likewise.
61222         * lib/unictype/pr_id_continue.h: Likewise.
61223         * lib/unictype/pr_id_start.h: Likewise.
61224         * lib/unictype/pr_ideographic.h: Likewise.
61225         * lib/unictype/pr_ignorable_control.h: Likewise.
61226         * lib/unictype/pr_logical_order_exception.h: Likewise.
61227         * lib/unictype/pr_lowercase.h: Likewise.
61228         * lib/unictype/pr_numeric.h: Likewise.
61229         * lib/unictype/pr_other_alphabetic.h: Likewise.
61230         * lib/unictype/pr_punctuation.h: Likewise.
61231         * lib/unictype/pr_sentence_terminal.h: Likewise.
61232         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61233         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61234         * lib/unictype/pr_unified_ideograph.h: Likewise.
61235         * lib/unictype/pr_uppercase.h: Likewise.
61236         * lib/unictype/pr_xid_continue.h: Likewise.
61237         * lib/unictype/pr_xid_start.h: Likewise.
61238         * lib/unictype/pr_zero_width.h: Likewise.
61239         * lib/unictype/scripts.h: Likewise.
61240         * lib/unictype/scripts_byname.gperf: Likewise.
61241         * lib/unictype/sy_java_ident.h: Likewise.
61242         * lib/unigbrk/gbrkprop.h: Likewise.
61243         * lib/unilbrk/lbrkprop1.h: Likewise.
61244         * lib/unilbrk/lbrkprop2.h: Likewise.
61245         * lib/unilbrk/lbrktables.h: Likewise.
61246         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61247         LBP_CP. Implement rule LB30.
61248         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61249         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61250         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61251         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61252         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61253         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61254         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61255         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61256         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61257         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61258         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61259         bits instead of 16 bits in the code1 and code2 of each composition
61260         rule.
61261         (uc_composition): Update for Unicode 5.2.0.
61262         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61263         * lib/uninorm/decomposition-table2.h: Likewise.
61264         * lib/uniwbrk/wbrkprop.h: Likewise.
61265         * tests/unicase/test-cased.c: Likewise.
61266         * tests/unicase/test-ignorable.c: Likewise.
61267         * tests/unicase/test-uc_tolower.c: Likewise.
61268         * tests/unicase/test-uc_totitle.c: Likewise.
61269         * tests/unicase/test-uc_toupper.c: Likewise.
61270         * tests/unictype/test-categ_C.c: Likewise.
61271         * tests/unictype/test-categ_Cf.c: Likewise.
61272         * tests/unictype/test-categ_Cn.c: Likewise.
61273         * tests/unictype/test-categ_L.c: Likewise.
61274         * tests/unictype/test-categ_Ll.c: Likewise.
61275         * tests/unictype/test-categ_Lm.c: Likewise.
61276         * tests/unictype/test-categ_Lo.c: Likewise.
61277         * tests/unictype/test-categ_Lu.c: Likewise.
61278         * tests/unictype/test-categ_M.c: Likewise.
61279         * tests/unictype/test-categ_Mc.c: Likewise.
61280         * tests/unictype/test-categ_Mn.c: Likewise.
61281         * tests/unictype/test-categ_N.c: Likewise.
61282         * tests/unictype/test-categ_Nd.c: Likewise.
61283         * tests/unictype/test-categ_Nl.c: Likewise.
61284         * tests/unictype/test-categ_No.c: Likewise.
61285         * tests/unictype/test-categ_P.c: Likewise.
61286         * tests/unictype/test-categ_Pd.c: Likewise.
61287         * tests/unictype/test-categ_Po.c: Likewise.
61288         * tests/unictype/test-categ_S.c: Likewise.
61289         * tests/unictype/test-categ_Sc.c: Likewise.
61290         * tests/unictype/test-categ_So.c: Likewise.
61291         * tests/unictype/test-ctype_alnum.c: Likewise.
61292         * tests/unictype/test-ctype_alpha.c: Likewise.
61293         * tests/unictype/test-ctype_graph.c: Likewise.
61294         * tests/unictype/test-ctype_lower.c: Likewise.
61295         * tests/unictype/test-ctype_print.c: Likewise.
61296         * tests/unictype/test-ctype_punct.c: Likewise.
61297         * tests/unictype/test-ctype_upper.c: Likewise.
61298         * tests/unictype/test-decdigit.h: Likewise.
61299         * tests/unictype/test-digit.h: Likewise.
61300         * tests/unictype/test-numeric.h: Likewise.
61301         * tests/unictype/test-pr_alphabetic.c: Likewise.
61302         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61303         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61304         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61305         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61306         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61307         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61308         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61309         * tests/unictype/test-pr_combining.c: Likewise.
61310         * tests/unictype/test-pr_composite.c: Likewise.
61311         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61312         * tests/unictype/test-pr_dash.c: Likewise.
61313         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61314         * tests/unictype/test-pr_deprecated.c: Likewise.
61315         * tests/unictype/test-pr_diacritic.c: Likewise.
61316         * tests/unictype/test-pr_extender.c: Likewise.
61317         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61318         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61319         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61320         * tests/unictype/test-pr_id_continue.c: Likewise.
61321         * tests/unictype/test-pr_id_start.c: Likewise.
61322         * tests/unictype/test-pr_ideographic.c: Likewise.
61323         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61324         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61325         * tests/unictype/test-pr_lowercase.c: Likewise.
61326         * tests/unictype/test-pr_numeric.c: Likewise.
61327         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61328         * tests/unictype/test-pr_punctuation.c: Likewise.
61329         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61330         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61331         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61332         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61333         * tests/unictype/test-pr_uppercase.c: Likewise.
61334         * tests/unictype/test-pr_xid_continue.c: Likewise.
61335         * tests/unictype/test-pr_xid_start.c: Likewise.
61336         * tests/unictype/test-pr_zero_width.c: Likewise.
61337         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61338         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61339         changed behaviour: line breaking is now disallowed between a letter
61340         or '=' and '('.
61341         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61342         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61343         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61344         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61345         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61346         lib/uniwidth/width.c.
61347         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61348         without comments, but with the original copyright notice.
61349         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61350         changes.
61351         * lib/unictype/categ_Cc.h: Likewise.
61352         * lib/unictype/categ_Co.h: Likewise.
61353         * lib/unictype/categ_Cs.h: Likewise.
61354         * lib/unictype/categ_Lt.h: Likewise.
61355         * lib/unictype/categ_Me.h: Likewise.
61356         * lib/unictype/categ_Pc.h: Likewise.
61357         * lib/unictype/categ_Pe.h: Likewise.
61358         * lib/unictype/categ_Pf.h: Likewise.
61359         * lib/unictype/categ_Pi.h: Likewise.
61360         * lib/unictype/categ_Ps.h: Likewise.
61361         * lib/unictype/categ_Sk.h: Likewise.
61362         * lib/unictype/categ_Sm.h: Likewise.
61363         * lib/unictype/categ_Z.h: Likewise.
61364         * lib/unictype/categ_Zl.h: Likewise.
61365         * lib/unictype/categ_Zp.h: Likewise.
61366         * lib/unictype/categ_Zs.h: Likewise.
61367         * lib/unictype/ctype_blank.h: Likewise.
61368         * lib/unictype/ctype_cntrl.h: Likewise.
61369         * lib/unictype/ctype_digit.h: Likewise.
61370         * lib/unictype/ctype_space.h: Likewise.
61371         * lib/unictype/ctype_xdigit.h: Likewise.
61372         * lib/unictype/mirror.h: Likewise.
61373         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61374         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61375         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61376         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61377         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61378         * lib/unictype/pr_bidi_control.h: Likewise.
61379         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61380         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61381         * lib/unictype/pr_bidi_pdf.h: Likewise.
61382         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61383         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61384         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61385         * lib/unictype/pr_format_control.h: Likewise.
61386         * lib/unictype/pr_hex_digit.h: Likewise.
61387         * lib/unictype/pr_hyphen.h: Likewise.
61388         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61389         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61390         * lib/unictype/pr_iso_control.h: Likewise.
61391         * lib/unictype/pr_join_control.h: Likewise.
61392         * lib/unictype/pr_left_of_pair.h: Likewise.
61393         * lib/unictype/pr_line_separator.h: Likewise.
61394         * lib/unictype/pr_math.h: Likewise.
61395         * lib/unictype/pr_non_break.h: Likewise.
61396         * lib/unictype/pr_not_a_character.h: Likewise.
61397         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61398         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61399         * lib/unictype/pr_other_id_continue.h: Likewise.
61400         * lib/unictype/pr_other_id_start.h: Likewise.
61401         * lib/unictype/pr_other_lowercase.h: Likewise.
61402         * lib/unictype/pr_other_math.h: Likewise.
61403         * lib/unictype/pr_other_uppercase.h: Likewise.
61404         * lib/unictype/pr_paired_punctuation.h: Likewise.
61405         * lib/unictype/pr_paragraph_separator.h: Likewise.
61406         * lib/unictype/pr_pattern_syntax.h: Likewise.
61407         * lib/unictype/pr_pattern_white_space.h: Likewise.
61408         * lib/unictype/pr_private_use.h: Likewise.
61409         * lib/unictype/pr_quotation_mark.h: Likewise.
61410         * lib/unictype/pr_radical.h: Likewise.
61411         * lib/unictype/pr_soft_dotted.h: Likewise.
61412         * lib/unictype/pr_space.h: Likewise.
61413         * lib/unictype/pr_titlecase.h: Likewise.
61414         * lib/unictype/pr_variation_selector.h: Likewise.
61415         * lib/unictype/pr_white_space.h: Likewise.
61416         * lib/unictype/sy_c_ident.h: Likewise.
61417         * lib/unictype/sy_c_whitespace.h: Likewise.
61418         * lib/unictype/sy_java_whitespace.h: Likewise.
61419         * modules/uni*/*: Bump version number of expected libunistring version.
61420         Reported by Simon Josefsson.
61422 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61424         useless-if-before-free: fix typo in --help and make the internal,
61425         automatic version date update process work once again.
61426         --help output contained a NUL character instead of the
61427         backslash-zero that was intended.  Also, the "must lie within
61428         the first 8 lines" line is on line 9, and hence not getting
61429         automatically updated.
61430         * build-aux/useless-if-before-free: Fix the former by adding a
61431         backslash, and the latter by condensing the three lines of what-it-does
61432         to a single line, leaving one line of slack for the future.
61434 2011-01-09  Bruno Haible  <bruno@clisp.org>
61436         uniwidth/width: Fix width of U+1D173..U+1D17A.
61437         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61438         symbolic_width, output_width_property_test): New functions.
61439         (main): Invoke output_nonspacing_property, output_width_property_test.
61440         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61441         U+1D173..U+1D17A.
61442         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61443         1.
61444         * modules/uniwidth/*: Bump version number of expected libunistring
61445         version.
61446         * modules/unilbrk/*: Likewise.
61448 2011-01-08  Bruno Haible  <bruno@clisp.org>
61450         uninorm tests: Preserve copyright of Unicode data file.
61451         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61452         Mention modifications.
61454 2011-01-08  Bruno Haible  <bruno@clisp.org>
61456         gen-uni-tables: Prepare for Unicode 5.2.0.
61457         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61458         (debug_output_lbp, output_lbp): Update.
61460 2011-01-08  Bruno Haible  <bruno@clisp.org>
61462         unilbrk: Clarify gen-uni-tables.c code.
61463         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61464         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61465         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61467 2011-01-07  Bruno Haible  <bruno@clisp.org>
61469         strtod: Restore errno when successfully parsing Infinity or NaN.
61470         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61471         restore the original errno.
61473 2011-01-07  Bruno Haible  <bruno@clisp.org>
61475         remove test: Avoid failure on HP-UX 11.
61476         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61478 2011-01-07  Bruno Haible  <bruno@clisp.org>
61480         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61481         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61482         error code.
61484 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61486         ignore-value: fixup comments, and add Eric Blake
61487         as an author since he rewrote the macros.
61488         * lib/ignore-value.h (ignore_value):  State that
61489         we now support aggregates.  Also specify exactly
61490         when the GCC warn_unused_result feature was added.
61492 2011-01-06  Eric Blake  <eblake@redhat.com>
61494         ignore-value: support aggregate types
61495         * lib/ignore-value.h (ignore_value): Provide separate gcc
61496         definition.
61497         * modules/ignore-value-tests: New test module.
61498         * tests/test-ignore-value.c: New test.
61500         maint.mk: improve sc_prohibit_strcmp regex
61501         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61502         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61503         definition of STRNEQ.
61505         signal: work around Haiku issue with SIGBUS
61506         * lib/siglist.h: Add comment.
61507         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61508         strsignal's favoring of SIGSEGV.
61509         * tests/test-signal.c (main): Avoid test failure.
61510         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61511         Reported by Scott McCreary.
61513         maint.mk: add pre-release check to ensure submodule commits are public
61514         * top/maint.mk (public-submodule-commit): New rule.
61515         (submodule-checks): New variable.
61516         (alpha beta stable): Depend on the variable.
61518 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61519         and Jim Meyering  <meyering@redhat.com>
61521         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61522         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61523         (ATTRIBUTE_DEPRECATED): Define.
61524         (_ignore_case): New function.
61525         (ignore_value): New macro, to replace the old function.
61526         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61527         * modules/ignore-value (Depends-on): Add stdint.
61529 2011-01-04  Eric Blake  <eblake@redhat.com>
61531         doc: regenerate INSTALL
61532         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61533         @firstparagraphindent support, now that autoconf dropped it.
61534         (INSTALL_PRELUDE): Reinstate old macro.
61535         * doc/install.texi: Resync from autoconf.
61536         * doc/INSTALL: Reflect recent autoconf update.
61537         * doc/INSTALL.ISO: Likewise.
61538         * doc/INSTALL.UTF-8: Likewise.
61539         Reported by Karl Berry.
61541 2011-01-04  Bruce Korb  <address@hidden>
61543         git-version-gen: avoid a sub-shell
61544         * build-aux/git-version-gen: Redirect stderr in `...` via
61545         "exec 2>...", rather than via an added sub-shell.
61547 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61549         git-version-gen: use (...) rather than sh -c '...'
61550         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61551         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61553 2011-01-03  Jim Meyering  <meyering@redhat.com>
61555         git-version-gen: convert leading TABs to spaces
61556         * build-aux/git-version-gen: Expand leading TABs.
61558         git-version-gen: handle failed "git rev-list"
61559         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61560         from git and proceeding as if it had succeeded but printed no SHA1
61561         checksums, suppress the diagnostic and handle the failure.
61562         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61564         git-version-gen: include command name in one more diagnostic
61565         * build-aux/git-version-gen: When the required .tarball-version file
61566         was missing or unreadable, you might see the diagnostic from "cat",
61567         but no trace of the name of the invoking script.  Now, you still see
61568         the diagnostic from cat, but also get one from "git-version-gen: ".
61569         Inspired by a patch from Bruce Korb.
61571         update-copyright: adjust test to match changed code
61572         * tests/test-update-copyright.sh: Change test's expected output
61573         to match new actual output.
61575 2011-01-02  Bruno Haible  <bruno@clisp.org>
61577         getlogin_r: Avoid test failure on HP-UX 11.
61578         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61579         ERANGE when the second argument is zero.
61580         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61581         portability problem.
61583 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61585         * build-aux/update-copyright: doc Simon's changes
61587 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61589         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61590         environment variable.
61592 2011-01-02  Bruno Haible  <bruno@clisp.org>
61594         unigbrk: Avoid gcc warnings.
61595         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61596         unused variable.
61597         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61598         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61599         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61600         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61601         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61602         Change type of first argument to 'const char *'.
61603         (main): Remove unused variable.
61604         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61605         type of first argument to 'const char *'.
61606         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61607         Likewise.
61608         (main): Change type of variable 's'.
61609         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61610         to 'int'.
61612 2011-01-02  Bruno Haible  <bruno@clisp.org>
61614         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61615         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61616         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61617         bug.
61618         * lib/pwrite.c: Undo 2010-12-31 patch.
61619         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61621 2011-01-02  Bruno Haible  <bruno@clisp.org>
61623         pread: Fix test whether it works.
61624         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61626 2011-01-02  Bruno Haible  <bruno@clisp.org>
61628         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61629         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61630         ends in "6". Don't require a specific month name. Try also the locale
61631         names found on HP-UX 11 and Solaris 7.
61633 2011-01-02  Bruno Haible  <bruno@clisp.org>
61635         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61636         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61637         C linkage.
61638         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61640 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61642         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61643         for consistency, since the "cluster" term is not used elsewhere.
61644         * lib/unigbrk.in.h: Update name.
61645         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61646         * lib/unigbrk/u16-grapheme-next.c: Update name.
61647         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61648         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61649         * lib/unigbrk/u32-grapheme-next.c: Update name.
61650         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61651         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61652         * lib/unigbrk/u8-grapheme-next.c: Update name.
61653         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61654         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61655         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61656         Suggested by Bruno Haible.
61658 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61660         Remove module 'u8-grapheme-len' as too redundant with
61661         'u8-grapheme-next'.
61662         * modules/unigbrk/u8-grapheme-len: Delete file.
61663         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61664         * lib/unigbrk.in.h: Remove prototype for deleted function.
61665         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61666         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61668         Remove module 'u16-grapheme-len' as too redundant with
61669         'u16-grapheme-next'.
61670         * modules/unigbrk/u16-grapheme-len: Delete file.
61671         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61672         * lib/unigbrk.in.h: Remove prototype for deleted function.
61673         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61674         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61676         Remove module 'u32-grapheme-len' as too redundant with
61677         'u32-grapheme-next'.
61678         * modules/unigbrk/u32-grapheme-len: Delete file.
61679         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61680         * lib/unigbrk.in.h: Remove prototype for deleted function.
61681         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61682         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61684         Suggested by Bruno Haible.
61686 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61688         * unigbrk.in.h: Fix typo: "ben" => "been".
61689         Reported by Bruno Haible.
61691 2011-01-01  Jim Meyering  <meyering@redhat.com>
61693         maint: update almost all copyright ranges to include 2011
61694         Run the new "make update-copyright" rule.
61696 2011-01-01  Jim Meyering  <meyering@redhat.com>
61698         maint: update-copyright: exempt doc/INSTALL*
61699         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61700         since they are generated.  Suggested by Bruno Haible.
61702 2011-01-01  Jim Meyering  <meyering@redhat.com>
61704         maint: refine the update-copyright rule
61705         * Makefile (update-copyright): Also exclude any file that includes
61706         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61707         code that merely generates the comment.
61709 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61711         New module 'u8-grapheme-len'.
61712         * modules/unigbrk/u8-grapheme-len: New file.
61713         * modules/unigbrk/u8-grapheme-len-tests: New file.
61714         * lib/unigbrk.in.h: Add prototype for new function.
61715         * lib/unigbrk/u8-grapheme-len.c: New file.
61716         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61718         New module 'u16-grapheme-len'.
61719         * modules/unigbrk/u16-grapheme-len: New file.
61720         * modules/unigbrk/u16-grapheme-len-tests: New file.
61721         * lib/unigbrk.in.h: Add prototype for new function.
61722         * lib/unigbrk/u16-grapheme-len.c: New file.
61723         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61725         New module 'u32-grapheme-len'.
61726         * modules/unigbrk/u32-grapheme-len: New file.
61727         * modules/unigbrk/u32-grapheme-len-tests: New file.
61728         * lib/unigbrk.in.h: Add prototype for new function.
61729         * lib/unigbrk/u32-grapheme-len.c: New file.
61730         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61732         New module 'u8-grapheme-next'.
61733         * modules/unigbrk/u8-grapheme-next: New file.
61734         * modules/unigbrk/u8-grapheme-next-tests: New file.
61735         * lib/unigbrk.in.h: Add prototype for new function.
61736         * lib/unigbrk/u8-grapheme-next.c: New file.
61737         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61739         New module 'u16-grapheme-next'.
61740         * modules/unigbrk/u16-grapheme-next: New file.
61741         * modules/unigbrk/u16-grapheme-next-tests: New file.
61742         * lib/unigbrk.in.h: Add prototype for new function.
61743         * lib/unigbrk/u16-grapheme-next.c: New file.
61744         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61746         New module 'u32-grapheme-next'.
61747         * modules/unigbrk/u32-grapheme-next: New file.
61748         * modules/unigbrk/u32-grapheme-next-tests: New file.
61749         * lib/unigbrk.in.h: Add prototype for new function.
61750         * lib/unigbrk/u32-grapheme-next.c: New file.
61751         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61753         New module 'u8-grapheme-prev'.
61754         * modules/unigbrk/u8-grapheme-prev: New file.
61755         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61756         * lib/unigbrk.in.h: Add prototype for new function.
61757         * lib/unigbrk/u8-grapheme-prev.c: New file.
61758         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61760         New module 'u16-grapheme-prev'.
61761         * modules/unigbrk/u16-grapheme-prev: New file.
61762         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61763         * lib/unigbrk.in.h: Add prototype for new function.
61764         * lib/unigbrk/u16-grapheme-prev.c: New file.
61765         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61767         New module 'u32-grapheme-prev'.
61768         * modules/unigbrk/u32-grapheme-prev: New file.
61769         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61770         * lib/unigbrk.in.h: Add prototype for new function.
61771         * lib/unigbrk/u32-grapheme-prev.c: New file.
61772         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61774         New module 'u8-grapheme-breaks'.
61775         * modules/unigbrk/u8-grapheme-breaks: New file.
61776         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61777         * lib/unigbrk.in.h: Add prototype for new function.
61778         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61779         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61781         New module 'u16-grapheme-breaks'.
61782         * modules/unigbrk/u16-grapheme-breaks: New file.
61783         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61784         * lib/unigbrk.in.h: Add prototype for new function.
61785         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61786         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61788         New module 'u32-grapheme-breaks'.
61789         * modules/unigbrk/u32-grapheme-breaks: New file.
61790         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61791         * lib/unigbrk.in.h: Add prototype for new function.
61792         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61793         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61795         New module 'ulc-grapheme-breaks'.
61796         * modules/unigbrk/ulc-grapheme-breaks: New file.
61797         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61798         * m4/locale-ar.m4: New file.
61799         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61800         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61801         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61803 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61805         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61806         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61807         modified how this file was generated before I initially submitted
61808         the module, but failed to regenerate it.  This meant that several
61809         of the level2 entries were wrong.
61810         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61811         Remove the division-by-2 that is folded into the table now that
61812         gbrkprop.h has been regenerated properly.  Now -1 entries are
61813         handled correctly.
61815         New module 'unigbrk/uc-gbrk-prop-tests'.
61816         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61817         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61818         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61819         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61821 2011-01-01  Bruno Haible  <bruno@clisp.org>
61823         Avoid use of hexadecimal escapes.
61824         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61825         instead of hexadecimal escapes.
61827 2011-01-01  Jim Meyering  <meyering@redhat.com>
61829         maint: new rule to update copyright year ranges
61830         * Makefile (update-copyright): New rule.
61832         maint: indent with TABs in Makefile
61833         * Makefile: Expand leading sequences of spaces to TABs
61835         version-etc: update the copyright year it reports
61836         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61838 2010-12-31  Bruno Haible  <bruno@clisp.org>
61840         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61841         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61842         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61843         zero.
61845 2010-12-31  Bruno Haible  <bruno@clisp.org>
61847         pwrite: Work around HP-UX 11.11 bug.
61848         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61849         works and set REPLACE_PWRITE if not.
61850         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61851         function.
61852         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61854 2010-12-31  Bruno Haible  <bruno@clisp.org>
61856         pread: Work around HP-UX 11 bugs.
61857         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61858         and set REPLACE_PREAD if not.
61859         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61861 2010-12-31  Eric Blake  <eblake@redhat.com>
61863         nl_langinfo: fix YESEXPR on Irix 6.5
61864         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61865         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61866         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61867         it.
61869 2010-12-31  Bruno Haible  <bruno@clisp.org>
61871         iconv: Document HP-UX 11 bug.
61872         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61874 2010-12-31  Bruno Haible  <bruno@clisp.org>
61876         ldexpl: Fix link error on HP-UX 11.
61877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61878         LDEXPL_LIBM, using $ISNANL_LIBM.
61880 2010-12-31  Eric Blake  <eblake@redhat.com>
61882         ftello: avoid compilation failure with SunStudio c89
61883         * lib/ftello.c (ftello): Use lseek, not llseek.
61885         tests: avoid failing coreutils tests on cygwin
61886         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61887         (create_exe_shims_): Return 0 when skipping.
61889 2010-12-31  Bruno Haible  <bruno@clisp.org>
61891         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61892         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61894 2010-12-31  Bruno Haible  <bruno@clisp.org>
61896         waitpid: Fix link error in C++ mode.
61897         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61899 2010-12-31  Bruno Haible  <bruno@clisp.org>
61901         isnan: Use GCC built-ins when possible.
61902         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61903         __builtin_isnan.
61904         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61905         (isnan): Define using GCC built-ins for GCC >= 4.0.
61907 2010-12-31  Bruno Haible  <bruno@clisp.org>
61909         isnand: Fix mistake.
61910         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61911         __builtin_isnand.
61913 2010-12-31  Bruno Haible  <bruno@clisp.org>
61915         open: Avoid C++ error on HP-UX 11.
61916         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61918 2010-12-31  Bruno Haible  <bruno@clisp.org>
61920         time_r: Add missing declarations on HP-UX 11.
61921         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61922         instead of HAVE_LOCALTIME_R.
61923         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61924         HAVE_LOCALTIME_R always.
61925         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61926         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61927         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61928         HAVE_LOCALTIME_R.
61929         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61930         * doc/posix-functions/localtime_r.texi: Likewise.
61932 2010-12-29  Eric Blake  <eblake@redhat.com>
61934         mountlist: tweak previous commit
61935         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61936         Reported by Paul Eggert.
61938         mountlist: fix local drive detection on cygwin
61939         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61940         that works for cygwin.
61942 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61944         ftoastr, snprintf: ftoastr + snprintf module
61945         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61946         since the snprintf module now should be good enough here.
61947         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61948         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61949         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61950         GNULIB_SNPRINTF only for the test directory, and the latter
61951         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61952         seems to suffice by itself.
61954 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61956         alloca: one step towards thread-safety
61957         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61958         need for a static variable.  All callers changed.  This does not
61959         make the alloca replacement thread-safe, but it's one step.
61961         tests: minor indenting change
61962         * tests/init.sh: Sync from coreutils housekeeping patch
61963         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61964         to keep lines within 80 columns.
61966 2010-12-28  Jim Meyering  <meyering@redhat.com>
61968         regex: don't infloop on persistent failing calloc
61969         * lib/regexec.c (build_trtable): Return failure indication upon
61970         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61971         In glibc, this was fixed for version 2.13:
61972         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61974 2010-12-28  Bruno Haible  <bruno@clisp.org>
61975             Paul Eggert <eggert@cs.ucla.edu>
61977         linkat: Make implementation robust against system behaviour variations.
61978         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61979         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61980         way, and to -2 if it needs a generic runtime test.
61981         * lib/linkat.c (solaris_optimized_link_immediate,
61982         solaris_optimized_link_follow): New functions.
61983         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61984         (check_same_link): Use it.
61986 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61988         New module 'unigbrk/base'.
61989         * modules/unigbrk/base: New file.
61990         * lib/unigbrk.in.h: New file.
61992         New module 'unigbrk/uc-gbrk-prop'.
61993         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61994         * modules/unigbrk/uc-gbrk-prop: New file.
61995         * lib/unigbrk/gbrkprop.h: New file.
61996         * lib/unigbrk/uc-gbrk-prop.c: New file.
61998         New module 'unigbrk/uc-is-grapheme-break'.
61999         * modules/unigbrk/uc-is-grapheme-break: New file.
62000         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62001         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62002         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62003         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62004         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62006         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62008 2010-12-27  Bruno Haible  <bruno@clisp.org>
62010         linkat test: Avoid failure on Solaris 11 2010-11.
62011         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62013 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62015         utimens: work around glibc rounding bug on more platforms
62016         * lib/utimens.c (fdutimens): Work around rounding bug even if
62017         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62018         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62020 2010-12-27  Bruno Haible  <bruno@clisp.org>
62022         select tests: Improve comments.
62023         * tests/test-select.c (do_select): Add comments.
62025 2010-12-27  Bruno Haible  <bruno@clisp.org>
62027         select tests: Safer way of handling timeout.
62028         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62029         at every invocation.
62031 2010-12-27  Bruno Haible  <bruno@clisp.org>
62033         select tests: Use 'bool' where appropriate.
62034         * tests/test-select.c (connect_to_socket): Change argument type to
62035         'bool'.
62037 2010-12-27  Bruno Haible  <bruno@clisp.org>
62039         select tests: Use existing modules.
62040         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62041         (configure.ac): Don't test for unistd.h.
62042         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62043         declared in <unistd.h>.
62045 2010-12-27  Bruno Haible  <bruno@clisp.org>
62047         mbrtowc: Work around a Solaris 7 bug.
62048         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62049         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62050         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62051         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62052         MBRTOWC_NULL_ARG1_BUG.
62053         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62054         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62055         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62056         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62058 2010-12-27  Jim Meyering  <meyering@redhat.com>
62060         read-file.c: tweak syntax
62061         * lib/read-file.c (fread_file): Remove space after "*" in function
62062         definitions.
62064 2010-12-27  Bruno Haible  <bruno@clisp.org>
62066         times test: Avoid gcc warnings on OSF/1.
62067         * tests/test-times.c (main): Cast printf arguments from clock_t to
62068         'long int'.
62070 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62072         utimens: work around glibc rounding bug on older Linux kernels
62073         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62074         on Linux with a glibc whose utimes might not work, then work
62075         around a longstanding glibc bug involving rounding rather than
62076         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62077         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62079 2010-12-26  Bruno Haible  <bruno@clisp.org>
62081         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62082         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62083         _GL_CXXALIAS_SYS.
62084         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62086 2010-12-26  Bruno Haible  <bruno@clisp.org>
62088         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62089         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62090         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62091         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62092         looking for the declaration.
62093         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62094         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62095         problem.
62096         * doc/posix-functions/inet_pton.texi: Likewise.
62098 2010-12-26  Bruno Haible  <bruno@clisp.org>
62100         arpa_inet: Use the common idioms with C++ support.
62101         * lib/arpa_inet.in.h: Include c++defs.h.
62102         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62103         support.
62104         * modules/arpa_inet (Depends-on): Add c++defs.
62105         (Makefile.am): Substitute the contents of c++defs.h.
62106         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62107         * modules/arpa_inet-c++-tests: New file.
62108         * tests/test-arpa_inet-c++.cc: New file.
62110 2010-12-25  Bruno Haible  <bruno@clisp.org>
62112         Fix more C++ link errors on Solaris 8.
62113         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62114         $(LIB_EACCESS).
62115         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62116         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62117         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62118         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62119         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62121 2010-12-25  Bruno Haible  <bruno@clisp.org>
62123         printf-posix: Fix link error when a non-GCC compiler is used.
62124         * lib/stdio.in.h (printf): When not using GCC, override printf
62125         correctly.
62126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62128 2010-12-25  Bruno Haible  <bruno@clisp.org>
62130         strerror_r-posix: Update doc.
62131         * doc/posix-functions/strerror_r.texi: Update doc about the return
62132         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62134 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62136         utimens: simplify the logic of the previous change
62137         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62138         This should not affect whether the test succeeds or fails.
62140         utimens: configure better on hosts with NFS clock skew
62141         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62142         uses the clock of the local host.  It might use the clock of the
62143         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62144         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62146 2010-12-25  Bruno Haible  <bruno@clisp.org>
62148         ptsname test: Avoid failure on Solaris.
62149         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62150         open a pseudo-terminal; don't use BSD-style ptys.
62151         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62153 2010-12-25  Bruno Haible  <bruno@clisp.org>
62155         ptsname: Avoid ERANGE failure on some systems.
62156         * lib/ptsname.c (buffer): Increase size.
62158 2010-12-25  Bruno Haible  <bruno@clisp.org>
62160         rename, renameat: Avoid test failures at NFS mounted locations.
62161         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62162         so that subsequent mkdir calls succeed.
62164 2010-12-25  Bruno Haible  <bruno@clisp.org>
62166         iswblank: Fix C++ link error on Solaris 8.
62167         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62168         _GL_FUNCDECL_SYS.
62170 2010-12-25  Bruno Haible  <bruno@clisp.org>
62172         unistd: Fix C++ link error on Solaris 8.
62173         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62175 2010-12-25  Bruno Haible  <bruno@clisp.org>
62177         readlink doc: Mention an old glibc bug.
62178         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62180 2010-12-25  Bruno Haible  <bruno@clisp.org>
62182         fcntl-h: Fix for use of C++ on glibc systems.
62183         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62184         also on glibc systems in C++ mode.
62185         Reported by Gary V. Vaughan <gary@gnu.org>.
62187 2010-12-25  Bruno Haible  <bruno@clisp.org>
62189         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62190         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62192 2010-12-25  Bruno Haible  <bruno@clisp.org>
62194         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62195         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62196         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62197         test whether truncl works according to ISO C 99 with IEC 60559.
62198         * m4/truncl-ieee.m4: New file.
62199         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62200         m4/signbit.m4.
62201         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62203 2010-12-25  Bruno Haible  <bruno@clisp.org>
62205         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62206         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62207         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62208         test whether ceill works according to ISO C 99 with IEC 60559.
62209         * m4/ceill-ieee.m4: New file.
62210         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62211         m4/signbit.m4.
62212         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62214 2010-12-25  Bruno Haible  <bruno@clisp.org>
62216         Ensure all prerequisites of <wchar.h> are included.
62217         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62218         before <wchar.h>.
62219         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62220         gl_MBRLEN_NUL_RETVAL): Likewise.
62221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62223         AC_FUNC_MBRTOWC): Likewise.
62224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62225         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62226         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62227         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62228         Likewise.
62229         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62230         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62231         (gl_WCHAR_H): Improve comments.
62232         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62234 2010-12-25  Bruno Haible  <bruno@clisp.org>
62236         strtok_r: Fix C syntax error in autoconf macro.
62237         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62238         characters in test program.
62240 2010-12-24  Bruno Haible  <bruno@clisp.org>
62242         ceil, trunc, round: Fix gcc warnings.
62243         * lib/ceil.c (MIN): Undefine before redefining.
62244         * lib/trunc.c (MIN): Likewise.
62245         * lib/round.c (MIN): Likewise.
62246         Include <math.h> first.
62248 2010-12-24  Bruno Haible  <bruno@clisp.org>
62250         select tests: Avoid failures on OSF/1 5.1.
62251         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62252         failure of closing the last socket; it may fail with ECONNRESET.
62254 2010-12-24  Eric Blake  <eblake@redhat.com>
62256         stdint: avoid HP-UX 10.20 preprocessor bug
62257         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62258         than #if.
62259         * tests/test-floor2.c (main): Likewise.
62260         Reported by Peter O'Gorman.
62262         pipe: make obsoletion transition easier
62263         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62264         * modules/pipe (Files): Include revived file.
62265         (Include): Drop reference, to mirror getdate's behavior.
62267 2010-12-24  Bruno Haible  <bruno@clisp.org>
62269         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62270         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62271         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62274 2010-12-24  Bruno Haible  <bruno@clisp.org>
62276         gethostname: Ensure declaration on NonStop Kernel.
62277         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62278         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62280 2010-12-24  Bruno Haible  <bruno@clisp.org>
62282         sys_select: Ensure all necessary types on NonStop Kernel.
62283         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62284         include <sys/time.h>.
62285         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62286         NonStop Kernel.
62287         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62289 2010-12-24  Bruno Haible  <bruno@clisp.org>
62291         sys_select: Remove unneeded include.
62292         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62293         have <sys/select.h>.
62295 2010-12-24  Bruno Haible  <bruno@clisp.org>
62297         gethostname: Provide a fallback for HOST_NAME_MAX.
62298         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62299         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62300         instead.
62301         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62303 2010-12-24  Bruno Haible  <bruno@clisp.org>
62305         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62306         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62307         (SA_RESTART): Likewise.
62308         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62310 2010-12-24  Bruno Haible  <bruno@clisp.org>
62312         signal: Define NSIG.
62313         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62314         * tests/test-signal.c (nsig): New variable.
62315         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62317 2010-12-24  Bruno Haible  <bruno@clisp.org>
62319         rename, renameat: Avoid test failures on OSF/1 5.1.
62320         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62321         alternative error codes.
62322         * tests/test-renameat.c (main): Likewise.
62324 2010-12-24  Bruno Haible  <bruno@clisp.org>
62326         *printf: Detect large precisions bug on Solaris 10/SPARC.
62327         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62328         by Paul Eggert.
62329         * tests/test-snprintf-posix.h (test_function): Add this test code here
62330         too.
62331         * tests/test-sprintf-posix.h (test_function): Likewise.
62332         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62333         * tests/test-vasprintf-posix.c (test_function): Likewise.
62334         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62335         around by gnulib.
62336         * doc/posix-functions/printf.texi: Likewise.
62337         * doc/posix-functions/snprintf.texi: Likewise.
62338         * doc/posix-functions/sprintf.texi: Likewise.
62339         * doc/posix-functions/vfprintf.texi: Likewise.
62340         * doc/posix-functions/vprintf.texi: Likewise.
62341         * doc/posix-functions/vsnprintf.texi: Likewise.
62342         * doc/posix-functions/vsprintf.texi: Likewise.
62343         * doc/posix-functions/dprintf.texi: Undo last commit.
62344         * doc/posix-functions/vdprintf.texi: Likewise.
62346 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62348         tests: port test-fdutimensat.c to Solaris 8
62349         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62350         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62351         On Solaris 8, it fails with errno == ENOSYS, because there is no
62352         futimens (so it can't use the fd), and there is no lutimens (so it
62353         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62355         vsnprintf: make more consistent with snprintf; doc fixes
62357         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62358         the byte count return problem was promoted from the snprintf-posix
62359         to the snprintf module.
62360         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62361         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62362         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62363         * tests/test-snprintf.c (main): Check the byte count returned.
62364         * tests/test-vsnprintf.c (main): Likewise.
62366 2010-12-23  Eric Blake  <eblake@redhat.com>
62368         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62369         * modules/sigpipe (License): Relax license.
62371 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62373         doc: document Solaris printf bug with large float precisions
62374         * doc/posix-functions/dprintf.texi (dprintf):
62375         * doc/posix-functions/fprintf.texi (fprintf):
62376         * doc/posix-functions/printf.texi (printf):
62377         * doc/posix-functions/snprintf.texi (snprintf):
62378         * doc/posix-functions/sprintf.texi (sprintf):
62379         * doc/posix-functions/vdprintf.texi (vdprintf):
62380         * doc/posix-functions/vfprintf.texi (vfprintf):
62381         * doc/posix-functions/vprintf.texi (vprintf):
62382         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62383         * doc/posix-functions/vsprintf.texi (vsprintf):
62384         Mention that these functions mishandle large floating point
62385         precisions on Solaris 10.  The same bug is also present in Solaris
62386         8, and I assume earlier.  This causes "cd gnulib-tests; make
62387         check" to fail on Solaris 8 (and I assume, later) when building
62388         the latest coreutils, in test-vasprintf-posix's call to
62389         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62390         the wide flavors (e.g., wprintf) so this patch just updates the
62391         documentation for the narrow ones.
62393         test-posixtm.c: add two tests
62394         * tests/test-posixtm.c: Add two tests, to highlight the
62395         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62396         around this bug; this is merely to document it.
62398 2010-12-22  Bruno Haible  <bruno@clisp.org>
62400         getlogin_r: Work around portability problem on OSF/1.
62401         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62402         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62403         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62404         test for a truncated result.
62405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62406         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62407         * modules/getlogin_r (Depends-on): Add memchr.
62408         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62410 2010-12-22  Bruno Haible  <bruno@clisp.org>
62412         ptsname: Avoid test failure on OSF/1 5.1.
62413         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62414         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62415         (same_slave): New function.
62416         (main): Use it to compare ptsname's result with the expected file name.
62418 2010-12-22  Bruno Haible  <bruno@clisp.org>
62420         Port extended stdio modules to HP NonStop Kernel.
62421         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62422         macros.
62423         * lib/fbufmode.c: Update comments.
62424         * lib/fflush.c: Likewise.
62425         * lib/fpurge.c: Likewise.
62426         * lib/freadable.c: Likewise.
62427         * lib/freadahead.c: Likewise.
62428         * lib/freading.c: Likewise.
62429         * lib/freadptr.c: Likewise.
62430         * lib/freadseek.c: Likewise.
62431         * lib/fseeko.c: Likewise.
62432         * lib/fseterr.c: Likewise.
62433         * lib/fwritable.c: Likewise.
62434         * lib/fwriting.c: Likewise.
62435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62437 2010-12-22  Bruno Haible  <bruno@clisp.org>
62439         ttyname_r: Work around bug on OSF/1 5.1.
62440         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62441         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62442         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62443         present.
62444         * lib/ttyname_r.c (ttyname_r): Update comments.
62446 2010-12-22  Bruno Haible  <bruno@clisp.org>
62448         round: Implement result sign according to IEEE 754.
62449         * lib/round.c (MIN, MINUS_ZERO): New macros.
62450         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62451         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62452         * tests/test-round-ieee.c (main): Likewise.
62453         * tests/test-roundl-ieee.c (main): Likewise.
62455         trunc: Implement result sign according to IEEE 754.
62456         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62457         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62458         * tests/test-trunc2.c: Include minus-zero.h.
62459         (MINUS_ZERO): New macro.
62460         (trunc_reference): Keep in sync with lib/trunc.c.
62461         * tests/test-truncf2.c: Include minus-zero.h.
62462         (MINUS_ZERO): New macro.
62463         (truncf_reference): Keep in sync with lib/trunc.c.
62464         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62465         * tests/test-trunc-ieee.c (main): Likewise.
62466         * tests/test-truncl-ieee.c (main): Likewise.
62468         ceil: Implement result sign according to IEEE 754.
62469         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62470         (FUNC): Return -0.0 for -1 < x < 0.
62471         * tests/test-ceil2.c: Include minus-zero.h.
62472         (MINUS_ZERO): New macro.
62473         (ceil_reference): Keep in sync with lib/ceil.c.
62474         * tests/test-ceilf2.c: Include minus-zero.h.
62475         (MINUS_ZERO): New macro.
62476         (ceilf_reference): Keep in sync with lib/ceil.c.
62477         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62478         * tests/test-ceil-ieee.c (main): Likewise.
62479         * tests/test-ceill-ieee.c (main): Likewise.
62481         floor: Implement result sign according to IEEE 754.
62482         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62483         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62484         * tests/test-floorf2.c (floorf_reference): Likewise.
62485         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62486         * tests/test-floor-ieee.c (main): Likewise.
62487         * tests/test-floorl-ieee.c (main): Likewise.
62489 2010-12-22  Bruno Haible  <bruno@clisp.org>
62491         getaddrinfo: Update doc.
62492         * doc/posix-functions/gai_strerror.texi: Return type is also different
62493         on AIX and HP-UX.
62495 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62497         getaddrinfo, inet_ntop: Update doc for Solaris.
62498         * doc/posix-functions/gai_strerror.texi: Return type is also an
62499         issue on Solaris 9 and earlier.
62500         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62501         on Solaris 10 and earlier.
62503 2010-12-21  Bruno Haible  <bruno@clisp.org>
62505         New module 'roundl-ieee'.
62506         * modules/roundl-ieee: New file.
62507         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62508         test whether roundl works according to ISO C 99 with IEC 60559.
62509         * m4/roundl-ieee.m4: New file.
62510         * modules/roundl-ieee-tests: New file.
62511         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62512         * tests/test-roundl.c (main): Remove signbit tests.
62513         * modules/roundl-tests (Depends-on): Remove signbit.
62514         * doc/posix-functions/roundl.texi: Mention the new module.
62516 2010-12-21  Bruno Haible  <bruno@clisp.org>
62518         New module 'truncl-ieee'.
62519         * modules/truncl-ieee: New file.
62520         * modules/truncl-ieee-tests: New file.
62521         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62522         * tests/test-truncl.c (main): Remove signbit tests.
62523         * modules/truncl-tests (Depends-on): Remove signbit.
62524         * doc/posix-functions/truncl.texi: Mention the new module.
62526 2010-12-21  Bruno Haible  <bruno@clisp.org>
62528         New module 'ceill-ieee'.
62529         * modules/ceill-ieee: New file.
62530         * modules/ceill-ieee-tests: New file.
62531         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62532         * tests/test-ceill.c (main): Remove signbit tests.
62533         * modules/ceill-tests (Depends-on): Remove signbit.
62534         * doc/posix-functions/ceill.texi: Mention the new module.
62536 2010-12-21  Bruno Haible  <bruno@clisp.org>
62538         New module 'floorl-ieee'.
62539         * modules/floorl-ieee: New file.
62540         * modules/floorl-ieee-tests: New file.
62541         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62542         * tests/test-floorl.c (main): Remove signbit tests.
62543         * modules/floorl-tests (Depends-on): Remove signbit.
62544         * doc/posix-functions/floorl.texi: Mention the new module.
62546 2010-12-21  Bruno Haible  <bruno@clisp.org>
62548         New module 'round-ieee'.
62549         * modules/round-ieee: New file.
62550         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62551         whether round works according to ISO C 99 with IEC 60559.
62552         * m4/round-ieee.m4: New file.
62553         * modules/round-ieee-tests: New file.
62554         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62555         * tests/test-round1.c (main): Remove signbit tests.
62556         * modules/round-tests (Depends-on): Remove 'signbit'.
62557         * doc/posix-functions/round.texi: Mention the new module.
62559 2010-12-21  Bruno Haible  <bruno@clisp.org>
62561         New module 'trunc-ieee'.
62562         * modules/trunc-ieee: New file.
62563         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62564         whether trunc works according to ISO C 99 with IEC 60559.
62565         * m4/trunc-ieee.m4: New file.
62566         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62568         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62569         * modules/trunc-ieee-tests: New file.
62570         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62571         * tests/test-trunc1.c (main): Remove signbit tests.
62572         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62573         * doc/posix-functions/trunc.texi: Mention the new module.
62575 2010-12-21  Bruno Haible  <bruno@clisp.org>
62577         New module 'ceil-ieee'.
62578         * modules/ceil-ieee: New file.
62579         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62580         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62581         ISO C 99 with IEC 60559.
62582         * m4/ceil-ieee.m4: New file.
62583         * modules/ceil (Files): Add lib/ceil.c.
62584         (Depends-on): Add 'float'.
62585         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62586         * lib/math.in.h (ceil): New declaration.
62587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62588         REPLACE_CEIL.
62589         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62590         * modules/ceil-ieee-tests: New file.
62591         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62592         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62593         * doc/posix-functions/ceil.texi: Mention the new module.
62595 2010-12-21  Bruno Haible  <bruno@clisp.org>
62597         New module 'floor-ieee'.
62598         * modules/floor-ieee: New file.
62599         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62600         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62601         ISO C 99 with IEC 60559.
62602         * m4/floor-ieee.m4: New file.
62603         * modules/floor (Files): Add lib/floor.c.
62604         (Depends-on): Add 'float'.
62605         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62606         * lib/math.in.h (floor): New declaration.
62607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62608         REPLACE_FLOOR.
62609         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62610         * modules/floor-ieee-tests: New file.
62611         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62612         * tests/test-math-c++.cc: Check the signature of 'floor'.
62613         * doc/posix-functions/floor.texi: Mention the new module.
62615 2010-12-21  Bruno Haible  <bruno@clisp.org>
62617         New module 'roundf-ieee'.
62618         * modules/roundf-ieee: New file.
62619         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62620         test whether roundf works according to ISO C 99 with IEC 60559.
62621         * m4/roundf-ieee.m4: New file.
62622         * modules/roundf-ieee-tests: New file.
62623         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62624         * tests/test-roundf1.c (main): Remove signbit tests.
62625         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62626         * doc/posix-functions/roundf.texi: Mention the new module.
62628 2010-12-21  Bruno Haible  <bruno@clisp.org>
62630         New module 'truncf-ieee'.
62631         * modules/truncf-ieee: New file.
62632         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62633         test whether truncf works according to ISO C 99 with IEC 60559.
62634         * m4/truncf-ieee.m4: New file.
62635         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62637         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62638         * modules/truncf-ieee-tests: New file.
62639         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62640         * tests/test-truncf1.c (main): Remove signbit tests.
62641         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62642         * doc/posix-functions/truncf.texi: Mention the new module.
62644 2010-12-21  Bruno Haible  <bruno@clisp.org>
62646         New module 'ceilf-ieee'.
62647         * modules/ceilf-ieee: New file.
62648         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62649         test whether ceilf works according to ISO C 99 with IEC 60559.
62650         * m4/ceilf-ieee.m4: New file.
62651         * modules/ceilf-ieee-tests: New file.
62652         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62653         * tests/test-ceilf1.c (main): Remove signbit tests.
62654         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62655         * doc/posix-functions/ceilf.texi: Mention the new module.
62657 2010-12-21  Bruno Haible  <bruno@clisp.org>
62659         New module 'floorf-ieee'.
62660         * modules/floorf-ieee: New file.
62661         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62662         test whether floorf works according to ISO C 99 with IEC 60559.
62663         * m4/floorf-ieee.m4: New file.
62664         * modules/floorf-ieee-tests: New file.
62665         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62666         * tests/test-floorf1.c (main): Remove signbit tests.
62667         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62668         * doc/posix-functions/floorf.texi: Mention the new module.
62670 2010-12-21  Bruno Haible  <bruno@clisp.org>
62672         Support for minus zero in autoconf macros.
62673         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62674         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62675         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62676         * tests/minus-zero.h: Update comments.
62678 2010-12-21  Bruno Haible  <bruno@clisp.org>
62680         Tests for module 'ceil'.
62681         * modules/ceil-tests: New file.
62682         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62683         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62685 2010-12-21  Bruno Haible  <bruno@clisp.org>
62687         Tests for module 'floor'.
62688         * modules/floor-tests: New file.
62689         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62690         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62692 2010-12-21  Bruno Haible  <bruno@clisp.org>
62694         math: Fix indentation.
62695         * lib/math.in.h (floorf): Fix indentation.
62697 2010-12-21  Bruno Haible  <bruno@clisp.org>
62699         Fix cross-compilation guesses on Solaris.
62700         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62701         not match "solaris2.10".
62702         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62703         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62704         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62706 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62708         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62709         This fixes a problem observed with the latest coreutils snapshot
62710         that caused a test to fail on Solaris 8.  src/csplit.c's call
62711         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62712         earlier, instead of returning the number of bytes that would have
62713         been generated; this causes csplit to incorrectly report memory
62714         exhaustion.
62715         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62716         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62717         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62718         comments to match.
62719         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62720         Fix typo in matching older versions of Solaris: "solaris2.10"
62721         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62722         only for guessing while cross-compiling.
62723         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62725 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62727         ftoastr: fix comment again
62728         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62729         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62730         Also, simplify example a bit by using flags = 0.
62732 2010-12-20  Bruno Haible  <bruno@clisp.org>
62734         round*, trunc*: Update documentation regarding glibc.
62735         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62736         * doc/posix-functions/round.texi: Likewise.
62737         * doc/posix-functions/roundl.texi: Likewise.
62738         * doc/posix-functions/truncf.texi: Likewise.
62739         * doc/posix-functions/trunc.texi: Likewise.
62740         * doc/posix-functions/truncl.texi: Likewise.
62742 2010-12-20  Bruno Haible  <bruno@clisp.org>
62744         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62745         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62746         * doc/posix-functions/round.texi: Likewise.
62747         * doc/posix-functions/roundl.texi: Likewise.
62749 2010-12-20  Bruno Haible  <bruno@clisp.org>
62751         ttyname_r: Add missing declaration on HP-UX 11.
62752         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62753         HAVE_TTYNAME_R.
62754         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62755         declared. Set HAVE_TTYNAME_R always.
62756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62757         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62759         HAVE_TTYNAME_R.
62760         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62762 2010-12-20  Bruno Haible  <bruno@clisp.org>
62764         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62765         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62766         * doc/posix-functions/getlogin_r.texi: Likewise.
62767         * tests/test-getlogin.c: Include <errno.h>.
62768         (main): Avoid test failure on HP-UX 11.11.
62769         * tests/test-getlogin_r.c (main): Likewise.
62771 2010-12-20  Bruno Haible  <bruno@clisp.org>
62773         getlogin_r: Add missing declaration on HP-UX 11.
62774         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62775         declared also when it exists as a function.
62776         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62778 2010-12-20  Bruno Haible  <bruno@clisp.org>
62780         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62781         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62782         through wcrtomb.
62784 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62786         ftoastr: fix comment
62787         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62788         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62790 2010-12-19  Bruno Haible  <bruno@clisp.org>
62792         isnan: Ensure it is a macro.
62793         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62794         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62795         Solaris.
62797 2010-12-19  Bruno Haible  <bruno@clisp.org>
62799         ldexpl test: Fix link error on OSF/1 5.1.
62800         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62802 2010-12-19  Bruno Haible  <bruno@clisp.org>
62804         wctype: Make it work in C++ mode on OSF/1 5.1.
62805         * lib/wctype.in.h (iswblank): Declare but not define here.
62806         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62807         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62808         * modules/wctype (Files): Add lib/iswblank.c.
62810 2010-12-19  Bruno Haible  <bruno@clisp.org>
62812         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62813         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62814         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62816 2010-12-19  Bruno Haible  <bruno@clisp.org>
62818         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62820         _POSIX_PII_SOCKET.
62821         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62822         * doc/posix-functions/recvfrom.texi: Likewise.
62823         * doc/posix-functions/send.texi: Likewise.
62824         * doc/posix-functions/sendto.texi: Likewise.
62826 2010-12-19  Bruno Haible  <bruno@clisp.org>
62828         tcgetsid: Add missing declaration on OSF/1 5.1.
62829         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62830         HAVE_TCGETSID.
62831         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62832         Don't set HAVE_TCGETSID.
62833         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62834         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62835         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62836         HAVE_TCGETSID.
62837         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62839 2010-12-19  Bruno Haible  <bruno@clisp.org>
62841         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62842         * lib/stdio.in.h: During the include_next statement, let recursive
62843         includes of this file include only the system header file.
62845 2010-12-19  Bruno Haible  <bruno@clisp.org>
62847         iconv_open: Fix regression from 2010-12-04.
62848         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62849         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62851 2010-12-19  Bruno Haible  <bruno@clisp.org>
62853         stdbool test: Avoid a gcc warning.
62854         * tests/test-stdbool.c (main): Fail if e1 is false.
62855         Reported by Jim Meyering.
62857 2010-12-19  Jim Meyering  <meyering@redhat.com>
62859         setenv: restore to working order
62860         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62861         mistakenly removed.
62862         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62863         HAVE_SETENV.
62864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62865         HAVE_SETENV.
62867 2010-12-19  Bruno Haible  <bruno@clisp.org>
62869         Document some different function declarations on OSF/1 5.1.
62870         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62871         * doc/posix-functions/inet_ntop.texi: Likewise.
62872         * doc/posix-functions/gethostname.texi: Likewise.
62873         * lib/unistd.in.h (gethostname): Update comment.
62875 2010-12-19  Bruno Haible  <bruno@clisp.org>
62877         doc: Mention vasprintf-posix module.
62878         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62879         the 'vasprintf-posix' module.
62880         * doc/glibc-functions/vasprintf.texi: Likewise.
62882 2010-12-19  Bruno Haible  <bruno@clisp.org>
62884         unsetenv: Add missing declaration on OSF/1 5.1.
62885         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62887         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62889         not HAVE_UNSETENV.
62890         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62891         HAVE_UNSETENV.
62892         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62894 2010-12-19  Bruno Haible  <bruno@clisp.org>
62896         setenv: Add missing declaration on OSF/1 5.1.
62897         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62898         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62899         declared. Don't set HAVE_SETENV.
62900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62901         not HAVE_SETENV.
62902         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62903         HAVE_SETENV.
62904         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62906 2010-12-19  Bruno Haible  <bruno@clisp.org>
62908         nl_langinfo tests: Avoid gcc warning.
62909         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62911 2010-12-19  Bruno Haible  <bruno@clisp.org>
62913         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62914         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62915         _GL_CXXALIAS_SYS.
62917 2010-12-19  Bruno Haible  <bruno@clisp.org>
62919         stdbool: Relax test.
62920         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62921         address to 'bool' work in static initializer, for compilers other than
62922         GCC.
62924 2010-12-19  Bruno Haible  <bruno@clisp.org>
62926         ftello: Add missing declaration on OSF/1 5.1.
62927         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62928         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62930         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62931         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62933 2010-12-19  Bruno Haible  <bruno@clisp.org>
62935         fseeko: Add missing declaration on OSF/1 5.1.
62936         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62937         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62939         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62940         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62942 2010-12-19  Bruno Haible  <bruno@clisp.org>
62944         fchdir: Add missing declaration on OSF/1 5.1.
62945         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62949         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62951 2010-12-19  Bruno Haible  <bruno@clisp.org>
62953         relocatable-prog-wrapper: Separate from relocatable-prog.
62954         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62955         uninstall-relocwrapper rule here.
62956         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62957         Reported by Ian Beckwith <ianb@erislabs.net>.
62959 2010-12-19  Bruno Haible  <bruno@clisp.org>
62961         unistr/u8-mbsnlen: Add missing dependency.
62962         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62963         Reported by Ian Beckwith <ianb@erislabs.net>.
62965 2010-12-19  Bruno Haible  <bruno@clisp.org>
62967         iconv: Make it possible again to use this module without 'iconv-h'.
62968         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62969         if it is not defined.
62970         Reported by Ian Beckwith <ianb@erislabs.net>.
62972 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62974         acl: port to Solaris 8 when copying from tmpfs to ufs
62975         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62976         error number.  Problem observed on Solaris 8 with latest
62977         coreutils, with "mv A B", where A is on a tmpfs file system and B
62978         is on a ufs file system.  This caused coreutils' mv/part-symlink
62979         test to fail.
62981         tests: set fail=0 at start
62982         * tests/init.sh (setup_): Move fail=0 initialization here ...
62983         (mktempd_): ... from here, so that tests can rely on fail being
62984         set to 0 initially.  This fixes a problem in coreutils; see:
62985         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62987 2010-12-18  Bruno Haible  <bruno@clisp.org>
62989         memmem-simple: Stylistic changes.
62990         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62991         Fix preprocessor directive indentation.
62993 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62995         memmem, memmem-simple: reorganize and expand empty needle check
62996         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62997         functional checks to memmem-simple so that one has a fully functional
62998         memmem by using just this module.
62999         Restrict the performance only check to the memmem module.
63000         Also expand the empty needle check to ensure the correct
63001         pointer is returned, not just a non NULL pointer.
63002         * doc/glibc-functions/memmem.texi: Rearrange the portability
63003         documentation to correlate with the rearranged checks.
63004         Clarify exactly how the memmem and memmem-simple modules
63005         relate to each other.
63007 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63008             Bruno Haible  <bruno@clisp.org>
63010         Improve cross-compilation guesses for uClibc.
63011         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63012         that uClibc does not have the glibc bug.
63013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63014         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63016 2010-12-14  Eric Blake  <eblake@redhat.com>
63018         configmake: provide fallbacks for oldest supported autotools
63019         * m4/configmake.m4: New file.
63020         * modules/configmake (Files): Ship it.
63021         (configure.ac): Use it to guarantee fallbacks.
63023 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63025         read-file: Improve handling of large files
63026         * lib/read-file.c (fread_file): Minimize realloc()s
63027         for regular files, and better manage sizes around SIZE_MAX.
63029 2010-12-13  Eric Blake  <eblake@redhat.com>
63031         cloexec, fcntl: relax license
63032         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63033         consent from all contributors.
63034         * modules/fcntl (License): Likewise.
63036 2010-12-10  Bruno Haible  <bruno@clisp.org>
63038         Tests for module 'pipe-posix'.
63039         * modules/pipe-posix-tests: New file.
63040         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63042 2010-12-10  Bruno Haible  <bruno@clisp.org>
63044         pipe-posix: Make it work in C++ mode.
63045         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63046         (pipe): Use common idiom, not a macro definition.
63047         * lib/pipe.c: New file.
63048         * m4/pipe.m4: New file.
63049         * modules/pipe-posix (Description): Enhance.
63050         (Files): Add lib/pipe.c, m4/pipe.m4.
63051         (configure.ac): Invoke gl_FUNC_PIPE.
63052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63053         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63054         * tests/test-unistd-c++.cc: Check the signature of pipe.
63056 2010-12-10  Bruno Haible  <bruno@clisp.org>
63058         Rename module 'pipe' to 'spawn-pipe'.
63059         * modules/spawn-pipe: New file, renamed from modules/pipe.
63060         (Files, configure.ac, Makefile.am): Update.
63061         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63062         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63063         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63064         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63065         "spawn-pipe.h" instead of "pipe.h".
63066         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63067         to gl_SPAWN_PIPE.
63068         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63069         (Files, Makefile.am): Update.
63070         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63071         Update.
63072         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63073         Include "spawn-pipe.h" instead of "pipe.h".
63074         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63075         * lib/javacomp.c: Likewise.
63076         * lib/javaversion.c: Likewise.
63077         * lib/pipe-filter-gi.c: Likewise.
63078         * lib/pipe-filter-ii.c: Likewise.
63079         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63080         * modules/javacomp (Depends-on): Likewise.
63081         * modules/javaversion (Depends-on): Likewise.
63082         * modules/pipe-filter-gi (Depends-on): Likewise.
63083         * modules/pipe-filter-ii (Depends-on): Likewise.
63084         * MODULES.html.sh (Executing programs): Update.
63085         * NEWS: Mention the change.
63087 2010-12-10  Eric Blake  <eblake@redhat.com>
63089         pipe-posix: new module
63090         * modules/pipe-posix: New file.
63091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63092         (gl_UNISTD_H): Check for declaration.
63093         * modules/unistd (Makefile.am): Substitute it.
63094         * lib/unistd.in.h (pipe): Provide it for mingw.
63095         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63096         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63098 2010-12-07  Bruno Haible  <bruno@clisp.org>
63100         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63101         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63102         u8_strcmp_gnu.
63103         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63105 2010-12-06  Bruno Haible  <bruno@clisp.org>
63107         Update internal documentation.
63108         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63110 2010-12-04  Bruno Haible  <bruno@clisp.org>
63112         Put more information about failed tests into the test return codes.
63113         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63114         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63115         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63116         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63117         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63120         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63121         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63124         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63125         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63126         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63127         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63128         returns a bit mask.
63129         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63130         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63131         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63132         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63133         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63134         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63137         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63138         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63139         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63140         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63141         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63142         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63143         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63144         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63145         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63146         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63147         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63149         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63150         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63151         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63152         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63153         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63154         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63155         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63156         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63157         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63158         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63159         gl_PRINTF_PRECISION): Likewise.
63160         * m4/regex.m4 (gl_REGEX): Likewise.
63161         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63164         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63167         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63168         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63169         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63170         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63171         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63172         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63173         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63174         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63175         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63176         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63177         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63178         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63180         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63181         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63182         enumerated value.
63183         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63185 2010-12-04  Bruno Haible  <bruno@clisp.org>
63187         Update for Solaris 11 2010-11.
63188         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63189         Express, released in November 2010.
63191 2010-12-04  Bruno Haible  <bruno@clisp.org>
63193         nproc: Relax license.
63194         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63195         and Paul Eggert.
63196         Requested by Ludovic Courtès <ludo@gnu.org>.
63198 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63200         utimecmp: fine-grained src to nearby coarse-grained dest
63202         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63203         and the source is on a file system with higher-resolution time
63204         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63205         not work, and the time stamps are close together, the algorithm to
63206         determine the exact resolution from the read-back mtime was buggy:
63207         it had a "!=" where it should have had an "==".  This bug has been
63208         in the code ever since it was introduced to gnulib.
63209         Problem reported by Dan Jacobson in
63210         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63212 2010-11-30  Bruno Haible  <bruno@clisp.org>
63214         strerror_r-posix: Fix autoconf test.
63215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63217 2010-11-28  Bruno Haible  <bruno@clisp.org>
63218             Paul Eggert  <eggert@cs.ucla.edu>
63220         Tests for module 'getdomainname'.
63221         * modules/getdomainname-tests: New file.
63222         * tests/test-getdomainname.c: New file, based on
63223         tests/test-gethostname.c.
63225 2010-11-28  Bruno Haible  <bruno@clisp.org>
63226             Paul Eggert  <eggert@cs.ucla.edu>
63228         getdomainname: Use the system function when possible.
63229         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63230         (getdomainname): Replace if needed. Provide the declaration if it is
63231         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63232         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63233         (getdomainname): When the system has getdomainname, call the system
63234         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63235         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63236         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63237         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63238         the function if its second argument is of type 'int' or if it is found
63239         in libnsl.
63240         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63241         <sys/systeminfo.h> and sysinfo().
63242         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63244         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63245         HAVE_GETDOMAINNAME.
63246         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63247         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63248         * doc/glibc-functions/getdomainname.texi: Document the problems with
63249         the getdomainname declaration.
63251 2010-11-28  Bruno Haible  <bruno@clisp.org>
63253         sys_socket: Ensure ss_family field on AIX.
63254         * lib/sys_socket.in.h (ss_family): New macro definition.
63255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63256         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63257         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63258         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63259         * modules/sys_socket (Makefile.am): Substitute
63260         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63261         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63263 2010-11-27  Bruno Haible  <bruno@clisp.org>
63265         readline: Improve configure output.
63266         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63267         "checking for readline..." result understandable.
63269 2010-11-27  Bruno Haible  <bruno@clisp.org>
63271         *printf-posix: Detect a bug on Solaris 10/x86.
63272         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63273         for floating-point output.
63274         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63275         directive.
63276         * tests/test-snprintf-posix.h (test_function): Likewise.
63277         * tests/test-sprintf-posix.h (test_function): Likewise.
63278         * tests/test-vasprintf-posix.c (test_function): Likewise.
63279         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63280         * doc/posix-functions/printf.texi: Likewise.
63281         * doc/posix-functions/snprintf.texi: Likewise.
63282         * doc/posix-functions/sprintf.texi: Likewise.
63283         * doc/posix-functions/vfprintf.texi: Likewise.
63284         * doc/posix-functions/vprintf.texi: Likewise.
63285         * doc/posix-functions/vsnprintf.texi: Likewise.
63286         * doc/posix-functions/vsprintf.texi: Likewise.
63287         * doc/glibc-functions/obstack_printf.texi: Likewise.
63288         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63290 2010-11-27  Bruno Haible  <bruno@clisp.org>
63292         Fix link error when module libunistring-optional is in use.
63293         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63294         * modules/striconveha-tests (Makefile.am): Likewise.
63296 2010-11-27  Bruno Haible  <bruno@clisp.org>
63298         regex: Mention link dependencies.
63299         * modules/regex (Link): New section.
63300         * modules/rpmatch (Link): Likewise.
63301         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63303 2010-11-27  Bruno Haible  <bruno@clisp.org>
63305         ftoastr: Fix compilation error on Solaris.
63306         * lib/ftoastr.c: Include <config.h>.
63308 2010-11-27  Bruno Haible  <bruno@clisp.org>
63310         getloadavg: Update documentation.
63311         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63313 2010-11-27  Bruno Haible  <bruno@clisp.org>
63315         sys_socket: Fix test whether the functions are declared.
63316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63317         not <sys/select.h>.
63319 2010-11-27  Bruno Haible  <bruno@clisp.org>
63321         getpass: Make sure to get system declaration on some platforms.
63322         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63323         gl_USE_SYSTEM_EXTENSIONS.
63324         * modules/getpass (Depends-on): Add extensions.
63326 2010-11-26  Bruno Haible  <bruno@clisp.org>
63328         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63329         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63330         'iconv' module is present.
63331         (ICONV_CONST): New macro.
63332         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63333         ICONV_CONST.
63334         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63335         set ICONV_CONST.
63336         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63337         here.
63338         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63339         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63340         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63341         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63342         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63343         present.
63345 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63347         ftoastr: comment fix
63348         * lib/ftoastr.c: "little" -> "little or no" in comment
63350 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63352         stdint: port to GCC 4.3 + OSX + Octave
63353         On this platform, stdint.h is buggy and defines int64_t to long
63354         long int.  The replacement defined it to long int, causing
63355         problems with C++ style name mangling.  Instead, trust the system
63356         definition if INT64_MAX is defined, and likewise for the unsigned
63357         variant.   Problem reported by Jarno Rajahalme in
63358         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63359         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63360         and don't mess with int64_t and INT64_MAX in this case.
63361         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63363 2010-11-24  Bruno Haible  <bruno@clisp.org>
63365         doc: Corrections regarding MacOS X 10.4 and 10.5.
63366         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63367         MacOS X.
63368         Reported by Simon Josefsson.
63370 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63372         Uninstall ".bin" files installed by relocwrapper.
63373         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63374         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63375         unless it is already there.
63377 2010-11-21  Bruno Haible  <bruno@clisp.org>
63379         Update for NetBSD 5.0.
63380         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63381         NetBSD; the test fails on NetBSD 5.0.
63382         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63383         about NetBSD.
63385 2010-11-21  Bruno Haible  <bruno@clisp.org>
63387         Update for HP-UX 11.23 and HP-UX 11.31.
63388         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63389         HP-UX.
63391 2010-11-21  Bruno Haible  <bruno@clisp.org>
63393         Update for MacOS X 10.5.
63394         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63395         MacOS X; the test fails on MacOS X 10.5.8.
63396         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63397         about MacOS X.
63399 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63401         bootstrap: add bootstrap_sync option.
63402         See discussion at
63403         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63404         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63405         * build-aux/bootstrap: Accept --bootstrap-sync to update
63406         bootstrap if it is not identical to the local gnulib's
63407         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63408         enable this by default.  Accept --no-bootstrap-sync to disable
63409         it.
63411 2010-11-20  Bruno Haible  <bruno@clisp.org>
63413         Ensure that <features.h> is included before __GLIBC__ is tested.
63414         * lib/printf-parse.h: Include <features.h>.
63415         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63416         Reported by Mike Frysinger <vapier@gentoo.org>.
63418         Ensure that <features.h> is included before __GLIBC__ is tested.
63419         * lib/wchar.in.h: Include <features.h>.
63420         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63421         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63422         Reported by Mike Frysinger <vapier@gentoo.org>.
63424         Ensure that <features.h> is included before __GLIBC__ is tested.
63425         * lib/arpa_inet.in.h: Include <features.h>.
63426         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63427         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63428         Reported by Mike Frysinger <vapier@gentoo.org>.
63430         Ensure that <features.h> is included before __GLIBC__ is tested.
63431         * build-aux/link-warning.h: Include <features.h>.
63432         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63433         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63434         Reported by Mike Frysinger <vapier@gentoo.org>.
63436         Ensure that <features.h> is included before __GLIBC__ is tested.
63437         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63438         Reported by Mike Frysinger <vapier@gentoo.org>.
63440 2010-11-20  Bruno Haible  <bruno@clisp.org>
63442         memmem: Fix autoconf test.
63443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63445 2010-11-20  Bruno Haible  <bruno@clisp.org>
63447         Port to uClibc.
63448         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63449         * lib/fcntl.in.h: Likewise.
63450         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63451         * lib/mbrtowc.c (mbrtowc): Likewise.
63452         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63453         * lib/strerror_r.c: Likewise.
63454         * lib/unistr/u8-strnlen.c: Likewise.
63455         * lib/vasnprintf.c (decimal_point_char): Likewise.
63456         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63457         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63458         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63459         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63460         * tests/test-sigaction.c (handler, main): Likewise.
63461         * lib/freading.h: Treat uClibc like a non-glibc platform.
63462         * lib/freading.c: Likewise.
63463         * lib/gettext.h: Likewise.
63464         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63465         Likewise.
63466         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63467         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63468         * lib/propername.c (proper_name_utf8): Likewise.
63469         * lib/spawn.in.h: Likewise.
63470         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63471         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63472         mem_cd_iconveh_internal): Likewise.
63473         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63474         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63475         strstr, strcasestr): Likewise.
63476         * lib/unicodeio.c (unicode_to_mb): Likewise.
63477         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63478         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63479         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63480         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63481         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63482         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63483         * lib/unistr/u8-stpncpy.c: Likewise.
63484         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63485         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63487         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63488         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63489         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63490         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63493         Likewise.
63494         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63495         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63496         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63499         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63500         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63501         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63502         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63503         * tests/test-striconveha.c (main): Likewise.
63504         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63505         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63506         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63507         * doc/posix-functions/getline.texi: Likewise.
63508         Reported by Mike Frysinger <vapier@gentoo.org>.
63510 2010-11-20  Bruno Haible  <bruno@clisp.org>
63512         nproc: Fix condition.
63513         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63514         HAVE_PTHREAD_AFFINITY_NP.
63516 2010-11-20  Bruno Haible  <bruno@clisp.org>
63518         Fix a comment.
63519         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63521 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63523         ftoastr: don't assume snprintf
63524         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63525         Implement a subset of snprintf here, by using sprintf safely.
63526         * modules/ftoastr (Depends-on): Remove snprintf.
63528 2010-11-19  Jim Meyering  <meyering@redhat.com>
63530         test-rename.h: fix compilation failure
63531         * tests/test-rename.h (test_rename): Add omitted "}".
63533 2010-11-17  Jim Meyering  <meyering@redhat.com>
63535         maint.mk: add a URL discussing the no-@acronym policy
63536         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63538 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63540         ftoastr: depend on snprintf, improve comments
63541         * lib/ftoastr.c: Also mention Loitsch's draft.
63542         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63543         needed in the current implementation, but it might simplify
63544         speeding up the code later.
63545         * modules/ftoastr: Depend on snprintf; this improves portability.
63546         Suggested by Bruno Haible in the same email.
63548         ftoastr: port to hosts lacking strtof and strtold
63549         Problem reported by Bruno Haible in
63550         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63551         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63552         environment and strtold (and presumably strtof) are not available.
63553         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63554         (configure.ac): Require gl_C99_STRTOLD.
63556 2010-11-18  Bruno Haible  <bruno@clisp.org>
63558         c-strtold: Avoid link error on AIX 7.
63559         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63560         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63561         (gl_C_STRTOLD): Test whether strtold_l exists.
63562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63564 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63566         intprops: new macro INT_BITS_STRLEN_BOUND
63567         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63568         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63569         not exposed.  Also, it uses a slightly tighter bound than before;
63570         though this makes no practical difference, we might as well be as
63571         tight as we easily can.
63573         ftoastr: new module, for lossless conversion of floats to short strings
63574         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63575         * modules/ftoastr: New files.
63577 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63579         bootstrap: port to Solaris sed
63580         * build-aux/bootstrap (get_version): Port to Solaris sed.
63581         See Ralf Wildenhues's note in
63582         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63584 2010-11-14  Jim Meyering  <meyering@redhat.com>
63586         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63587         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63588         and move definition closer to sole use.
63590 2010-11-13  Jim Meyering  <meyering@redhat.com>
63592         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63593         Now we require at least autoconf-2.59, which means the work-around
63594         is no longer needed.
63595         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63597         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63598         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63599         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63601 2010-11-13  Bruno Haible  <bruno@clisp.org>
63603         rename, renameat: Avoid test failures at NFS mounted locations.
63604         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63605         functions.
63606         (test_rename): Use assert_nonexistent.
63607         * tests/test-rename.c: Include <dirent.h>.
63608         * tests/test-renameat.c: Likewise.
63609         Reported by Gary V. Vaughan <gary@gnu.org>.
63611         rename, renameat: Document Linux bug with NFS
63612         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63613         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63614         * doc/posix-functions/renameat.texi: Likewise.
63615         Suggested by Eric Blake.
63617 2010-11-13  Bruno Haible  <bruno@clisp.org>
63619         rename test: Add comments.
63620         * tests/test-rename.h (test_rename): Add structure and comments.
63622 2010-11-13  Eric Blake  <eblake@redhat.com>
63624         maintainer-makefile: cover a few more files
63625         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63626         scripts generated within C files, for libvirt.
63628 2010-11-13  Bruno Haible  <bruno@clisp.org>
63630         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63631         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63632         character, return the number of bytes that belong together, not always
63633         1.
63634         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63635         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63636         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63637         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63638         number of bytes of an invalid character.
63639         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63640         (main): Invoke it.
63641         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63642         results.
63643         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63644         malformed byte sequences.
63645         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63646         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63647         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63648         Reported by Ben Pfaff and Paolo Bonzini.
63650 2010-11-13  Bruno Haible  <bruno@clisp.org>
63652         openat: Work around glibc bug with fchownat() and empty file names.
63653         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63654         (gl_FUNC_FCHOWNAT): Invoke it.
63655         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63656         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63657         Reported by Gary V. Vaughan <gary@gnu.org>.
63659 2010-11-13  Bruno Haible  <bruno@clisp.org>
63661         openat: Ensure autoconf macro ordering.
63662         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63663         gl_USE_SYSTEM_EXTENSIONS.
63664         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63666 2010-11-13  Bruno Haible  <bruno@clisp.org>
63668         Update comments.
63669         * lib/unistr/u8-check.c: Update file name in comments.
63670         * lib/unistr/u8-mblen.c: Likewise.
63671         * lib/unistr/u8-prev.c: Likewise.
63672         * lib/unistr/u8-strmblen.c: Likewise.
63673         * lib/unistr/u8-strmbtouc.c: Likewise.
63675 2010-11-13  Jim Meyering  <meyering@redhat.com>
63677         tests: avoid test failure on Solaris 10 due to lack of PATH export
63678         * tests/test-update-copyright.sh: Don't forget to export PATH.
63680         init.sh: ensure that IFS is defined, just in case...
63681         * tests/init.sh (setup_): Ensure that IFS is defined,
63682         so that saving and restoring it works as expected.  This
63683         appears to be useful at least for an old version of dash
63684         from a long time ago (RH 6).  See here for details:
63685         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63687         maint.mk: tighten "test a == b" check
63688         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63689         test to files that contain something like #!/bin/sh.
63690         Without this, coreutils would get two false positives in
63691         the comments of C source files.
63693 2010-11-12  Eric Blake  <eblake@redhat.com>
63695         bootstrap: fix typo in previous attempt
63696         * build-aux/bootstrap (buildreq): Correct the grouping.
63697         Reported by Paul Eggert.
63699         maintainer-makefile: prohibit test x == x
63700         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63701         Based on a report by Matthias Bolte.
63703         bootstrap: allow FreeBSD gzip
63704         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63705         which has no '.' and goes to stderr.
63706         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63707         Reported by Matthias Bolte.
63709         maintainer-makefile: check for i18n setup
63710         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63711         will likely work.
63713 2010-11-12  Bruno Haible  <bruno@clisp.org>
63715         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63716         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63717         * lib/nanosleep.c (nanosleep): Likewise.
63719 2010-11-11  Bruno Haible  <bruno@clisp.org>
63721         fcntl-h: Fix for use of C++ on glibc systems.
63722         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63723         also on glibc systems in C++ mode.
63724         Reported by Gary V. Vaughan <gary@gnu.org>.
63726 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63728         mknod: avoid false failure with dash
63729         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63731 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63733         unlink: Fix "is it should" typo in diagnostic.
63734         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63735         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63737 2010-11-11  Bruno Haible  <bruno@clisp.org>
63739         Tests for module 'strerror_r-posix'.
63740         * modules/strerror_r-posix-tests: New file.
63741         * tests/test-strerror_r.c: New file.
63742         * tests/test-string-c++.cc: Check the signature of strerror_r.
63744         New module 'strerror_r-posix'.
63745         * lib/string.in.h (strerror_r): New declaration.
63746         * lib/strerror_r.c: New file.
63747         * m4/strerror_r.m4: New file.
63748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63749         of strerror_r.
63750         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63751         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63752         * modules/strerror_r-posix: New file.
63753         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63754         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63755         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63756         portability problems.
63758 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63760         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63761         line is also considered for output. Quoted function name in shell
63762         command, so temporary files for functions like MyClass::operator()
63763         are removed correctly without errors.
63765 2010-11-09  Bruno Haible  <bruno@clisp.org>
63767         * doc/posix-functions/strerror.texi: List more failing platforms.
63769         * doc/posix-functions/strerror.texi: Add a comment.
63771 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63773         fdopendir: fix bug on MacOS X when low on file descriptors
63775         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63776         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63777         All callers changed.
63778         (fdopendir): Invoke save_cwd at the top level, not after using
63779         multiple dup() calls to use up file descriptors.  Then retry
63780         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63781         less than the maximum number of open file descriptors, because
63782         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63783         on Mac OS X 10.6.4 for tar 1.24
63784         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63785         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63786         and for tar 1.25
63787         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63789 2010-11-07  Bruno Haible  <bruno@clisp.org>
63791         vasnprintf: Support I flag on glibc systems.
63792         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63793         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63794         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63795         snprintf function.
63796         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63797         glibc systems.
63798         * tests/test-vasnprintf-posix3.c: New file.
63799         * modules/vasnprintf-posix-tests (Files): Add it.
63800         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63802 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63804         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63805         * MODULES.html.sh: For compiler warnings, use name
63806         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63808 2010-11-05  Eric Blake  <eblake@redhat.com>
63810         ceil, floor: avoid spurious failure with icc
63811         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63812         [denormals-as-zero] when optimizing without -mieee-fp option.
63813         * tests/test-floorf2.c (floorf_reference): Likewise.
63814         * tests/test-ceilf1.c (dummy): New function.
63815         (main): Use it to outsmart icc's optimization.
63816         * tests/test-floorf1.c (dummy, main): Likewise.
63818         tests: require working signbit
63819         * modules/ceilf-tests (Depends-on): Add signbit.
63820         * modules/ceill-tests (Depends-on): Likewise.
63821         * modules/floorf-tests (Depends-on): Likewise.
63822         * modules/floorl-tests (Depends-on): Likewise.
63823         * modules/round-tests (Depends-on): Likewise.
63824         * modules/roundf-tests (Depends-on): Likewise.
63825         * modules/roundl-tests (Depends-on): Likewise.
63826         * modules/trunc-tests (Depends-on): Likewise.
63827         * modules/truncf-tests (Depends-on): Likewise.
63828         * modules/truncl-tests (Depends-on): Likewise.
63830         strtod: work around icc bug
63831         * lib/strtod.c (minus_zero): Define to working value.
63832         (strtod): Use it to avoid icc bug.
63834         copysign: enhance tests
63835         * modules/copysign-tests (Files): Add minus-zero.h.
63836         * tests/test-copysign.c (main): Also test zeros.
63838 2010-11-04  Eric Blake  <eblake@redhat.com>
63840         ceil, floor, round, trunc: enhance tests of -0
63841         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63842         * tests/test-ceill.c (main): Likewise.
63843         * tests/test-floorf1.c (main): Likewise.
63844         * tests/test-floorl.c (main): Likewise.
63845         * tests/test-round1.c (main): Likewise.
63846         * tests/test-roundf1.c (main): Likewise.
63847         * tests/test-roundl.c (main): Likewise.
63848         * tests/test-trunc1.c (main): Likewise.
63849         * tests/test-truncf1.c (main): Likewise.
63850         * tests/test-truncl.c (main): Likewise.
63852 2010-11-04  Eric Blake  <eblake@redhat.com>
63854         frexp, tests: work around ICC bug with -zero
63855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63856         works with more compilers.
63857         * tests/minus-zero.h: New file.
63858         * modules/ceilf-tests (Files): Include it.
63859         * modules/ceill-tests (Files): Likewise.
63860         * modules/floorf-tests (Files): Likewise.
63861         * modules/floorl-tests (Files): Likewise.
63862         * modules/frexp-nolibm-tests (Files): Likewise.
63863         * modules/frexp-tests (Files): Likewise.
63864         * modules/frexpl-nolibm-tests (Files): Likewise.
63865         * modules/frexpl-tests (Files): Likewise.
63866         * modules/isnan-tests (Files): Likewise.
63867         * modules/isnand-nolibm-tests (Files): Likewise.
63868         * modules/isnand-tests (Files): Likewise.
63869         * modules/isnanf-nolibm-tests (Files): Likewise.
63870         * modules/isnanf-tests (Files): Likewise.
63871         * modules/isnanl-nolibm-tests (Files): Likewise.
63872         * modules/isnanl-tests (Files): Likewise.
63873         * modules/round-tests (Files): Likewise.
63874         * modules/roundf-tests (Files): Likewise.
63875         * modules/roundl-tests (Files): Likewise.
63876         * modules/ldexpl-tests (Files): Likewise.
63877         * modules/signbit-tests (Files): Likewise.
63878         * modules/snprintf-posix-tests (Files): Likewise.
63879         * modules/sprintf-posix-tests (Files): Likewise.
63880         * modules/strtod-tests (Files): Likewise.
63881         * modules/trunc-tests (Files): Likewise.
63882         * modules/truncf-tests (Files): Likewise.
63883         * modules/truncl-tests (Files): Likewise.
63884         * modules/vsnprintf-posix-tests (Files): Likewise.
63885         * modules/vsprintf-posix-tests (Files): Likewise.
63886         * modules/vasnprintf-posix-tests (Files): Likewise.
63887         * modules/vasprintf-posix-tests (Files): Likewise.
63888         * tests/test-ceilf1.c (main): Use it.
63889         * tests/test-ceill.c (main): Likewise.
63890         * tests/test-floorf1.c (main): Likewise.
63891         * tests/test-floorl.c (main): Likewise.
63892         * tests/test-frexp.c (main): Likewise.
63893         * tests/test-frexpl.c (main): Likewise.
63894         * tests/test-isnan.c (main): Likewise.
63895         * tests/test-isnand.h (main): Likewise.
63896         * tests/test-isnanf.h (main): Likewise.
63897         * tests/test-isnanl.h (main): Likewise.
63898         * tests/test-ldexpl.c (main): Likewise.
63899         * tests/test-round.c (main): Likewise.
63900         * tests/test-roundf.c (main): Likewise.
63901         * tests/test-roundl.c (main): Likewise.
63902         * tests/test-signbit.c (test_signbitf, test_signbitd)
63903         (test_signbitl): Likewise.
63904         * tests/test-snprintf-posix.h (test_function): Likewise.
63905         * tests/test-sprintf-posix.h (test_function): Likewise.
63906         * tests/test-strtod.c (main): Likewise.
63907         * tests/test-trunc1.c (main): Likewise.
63908         * tests/test-truncf1.c (main): Likewise.
63909         * tests/test-truncl.c (main): Likewise.
63911         isnanl: work around icc bug
63912         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63914 2010-11-03  Eric Blake  <eblake@redhat.com>
63916         tests: fix compiler warnings
63917         * tests/test-getopt.h (test_getopt): Fix condition.
63918         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63919         * tests/test-pipe2.c (main): Likewise.
63920         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63922         utimens: fix broken m4 test
63923         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63925 2010-10-28  Bruno Haible  <bruno@clisp.org>
63927         posix_spawn*, getdtablesize: Relax license.
63928         * modules/posix_spawn (License): Change to LGPLv2+.
63929         * modules/posix_spawnp (License): Likewise.
63930         * modules/posix_spawn-internal (License): Likewise.
63931         * modules/posix_spawnattr_init (License): Likewise.
63932         * modules/posix_spawnattr_getflags (License): Likewise.
63933         * modules/posix_spawnattr_setflags (License): Likewise.
63934         * modules/posix_spawnattr_getpgroup (License): Likewise.
63935         * modules/posix_spawnattr_setpgroup (License): Likewise.
63936         * modules/posix_spawnattr_getschedparam (License): Likewise.
63937         * modules/posix_spawnattr_setschedparam (License): Likewise.
63938         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63939         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63940         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63941         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63942         * modules/posix_spawnattr_getsigmask (License): Likewise.
63943         * modules/posix_spawnattr_setsigmask (License): Likewise.
63944         * modules/posix_spawnattr_destroy (License): Likewise.
63945         * modules/posix_spawn_file_actions_init (License): Likewise.
63946         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63947         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63948         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63949         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63950         * modules/getdtablesize (License): Likewise.
63951         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63953 2010-10-26  Bruno Haible  <bruno@clisp.org>
63955         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63956         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63957         Cygwin and mingw.
63958         Suggested by Eric Blake.
63960 2010-10-26  Bruno Haible  <bruno@clisp.org>
63962         stdio: Work around compilation error due to renameat() on Solaris 10.
63963         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63964         * lib/renameat.c: Don't include <unistd.h> here.
63965         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63966         Reported by Paul Eggert and Eric Blake.
63968 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63970         renameat: port to Solaris 10, which declares renameat in unistd.h
63972         * lib/renameat.c: Include unistd.h before stdio.h, because
63973         Solaris 10 declares renameat in unistd.h.  Problem encountered
63974         when building GNU tar 1.24 on Solaris 10.
63976 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63978         fdopendir: fix C89 compilation
63979         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63980         compilers.
63982 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63984         inttostr: simplify by removing unnecessary redundancy
63985         * lib/anytostr.c: Don't include verify.h.
63986         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63987         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63988         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63989         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63990         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63991         Likewise.
63992         * modules/inttostr (Depends-on): Remove 'verify'.
63994 2010-10-23  Bruno Haible  <bruno@clisp.org>
63996         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63997         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63998         Reported by Eric Blake.
64000 2010-10-23  Bruno Haible  <bruno@clisp.org>
64002         Tests: Fix LOCALE_JA on MirBSD 10.
64003         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64004         to an UTF-8 locale.
64005         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64006         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64007         Reported by Eric Blake.
64009 2010-10-21  Bruno Haible  <bruno@clisp.org>
64011         nl_langinfo test: Avoid test failure on NetBSD 5.
64012         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64013         Reported by Eric Blake.
64015 2010-10-21  Eric Blake  <eblake@redhat.com>
64017         c-stack: work around libsigsegv 2.8 bug
64018         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64019         overflow on at least PowerPC64.
64021 2010-10-17  Bruno Haible  <bruno@clisp.org>
64023         userspec: Drop redundant file.
64024         * modules/userspec (Files): Remove lib/inttostr.h.
64026 2010-10-17  Bruno Haible  <bruno@clisp.org>
64028         nl_langinfo tests: Silence some warnings.
64029         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64030         Reported by Jim Meyering.
64032 2010-10-17  Bruno Haible  <bruno@clisp.org>
64034         Make use of GCC's attribute __alloc_size__.
64035         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64036         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64037         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64038         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64039         __alloc_size__.
64040         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64041         Suggested by Jim Meyering.
64043 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64045         bootstrap: anchor .gitignore entries.
64046         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64047         with...
64048         (insert_vc_ignore): ... this new function, which prepends `/' to
64049         all .gitignore entries before passing them to
64050         insert_sorted_if_absent.
64052 2010-10-16  Bruno Haible  <bruno@clisp.org>
64054         nextafter: Fix configure check.
64055         * modules/nextafter (configure.ac): Correct expected prototype.
64057 2010-10-16  Bruno Haible  <bruno@clisp.org>
64059         termios: Update documentation.
64060         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64062 2010-10-16  Bruno Haible  <bruno@clisp.org>
64064         tests: Make them compile with TinyCC.
64065         * tests/test-strstr.c (main): Remove parentheses around array
64066         initializer.
64068 2010-10-15  Eric Blake  <eblake@redhat.com>
64070         ignore-value: make header idempotent
64071         * lib/ignore-value.h: Add double-inclusion guards.
64072         Reported by Stefan Berger.
64074 2010-10-15  Jim Meyering  <meyering@redhat.com>
64076         GNUmakefile: handle "stable" target, not "major"
64077         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64078         lists in maint.mk and announce-gen.  Without this, "make stable"
64079         would fail to ensure that $(VERSION) is up to date.
64081 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64083         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64084         & co.
64086 2010-10-14  Bruno Haible  <bruno@clisp.org>
64088         vasnprintf: Don't set errno to 0.
64089         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64090         block that sets it to 0.
64091         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64093 2010-10-14  Bruno Haible  <bruno@clisp.org>
64095         socketlib: Fix.
64096         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64097         gl_PREREQ_SYS_H_WINSOCK2.
64098         Reported by Ian Beckwith <ianb@erislabs.net>.
64100 2010-10-13  Jim Meyering  <meyering@redhat.com>
64102         test-select-stdin.c: avoid warn_unused_result warnings
64103         * tests/test-select-stdin.c: Include "macros.h".
64104         ASSERT that read and fflush succeed.
64106 2010-10-13  Jim Meyering  <meyering@redhat.com>
64108         git-version-gen: do require git-VC'd files in cwd
64109         * build-aux/git-version-gen: Reject a git version string
64110         if there are no commits associated with the current directory.
64111         This avoids an unlikely false-positive (unrelated dir whose parent
64112         repository also contains a tag matching v*), as pointed out
64113         by Giuseppe Scrivano in
64114         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64116 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64118         argv-iter: omit nonconforming declaration
64119         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64120         enum arg_iter_err declaration, which doesn't conform to C99.
64121         Solaris 10 cc warns about this.
64123 2010-10-13  Eric Blake  <eblake@redhat.com>
64125         termios: fix compilation on mingw
64126         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64127         (gl_TERMIOS_H): Adjust it on mingw.
64128         * modules/termios (Makefile.am): Substitute new key.
64129         * lib/termios.in.h (includes): Make include_next conditional.
64130         * doc/posix-headers/termios.texi (termios.h): Update
64131         documentation.
64132         Reported by Daniel P. Berrange.
64134 2010-10-13  Jim Meyering  <meyering@redhat.com>
64136         git-version-gen: don't require that .git/ be in the current dir
64137         * build-aux/git-version-gen: Adjust this script so that it works
64138         when run from any working directory beneath the top-level .git/-
64139         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64142         test-select: avoid warn_unused_result warnings
64143         * tests/test-select.c: Include "macros.h".
64144         ASSERT that each call to read, write, and pipe succeeds.
64145         While not technically required, also check each "close".
64146         * modules/select-tests (Files): Add tests/macros.h.
64148         test-symlinkat: remove declaration of unused local
64149         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64151         test-inttostr: avoid shadowing warnings
64152         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64153         and use malloc rather than the stack for the same reason as
64154         mentioned in the comment justifying the other allocation.
64156 2010-10-11  Bruno Haible  <bruno@clisp.org>
64158         stdlib: Allow multiple gnulib generated replacements to coexist.
64159         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64160         Reported by Sam Steingold <sds@gnu.org>.
64162 2010-10-11  Jim Meyering  <meyering@redhat.com>
64164         fix a documentation typo
64165         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64167 2010-10-11  Eric Blake  <eblake@redhat.com>
64169         futimens: work around Solaris 11 bug
64170         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64171         * tests/test-futimens.h (test_futimens): Enhance, rather than
64172         weaken test.
64173         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64175 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64177         Indentation.
64178         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64179         higher-level operators more to the left.
64181 2010-10-11  Jim Meyering  <meyering@redhat.com>
64183         test-futimens: avoid unwarranted test failure on Solaris 5.11
64184         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64185         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64186         because it tries to dereference the NULL name argument.
64188 2010-10-11  Bruno Haible  <bruno@clisp.org>
64190         Indentation.
64191         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64192         indentation.
64194 2010-10-11  Jim Meyering  <meyering@redhat.com>
64196         spawn.in.h: make indentation consistent with parentheses
64197         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64198         Make indentation consistent with parentheses.
64200 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64202         Fix mismatched parens in previous commit
64203         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64204         parens.
64206 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64208         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64210         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64211         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64212         * lib/malloca.c: Include "verify.h".
64213         (verify1): Remove, replacing with a verify call.
64214         * lib/relocwrapper.c (verify1): Likewise.
64215         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64216         Likewise.
64217         * modules/malloca (Depends-on): Add 'verify'.
64218         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64219         * modules/vasnprintf (Depends-on): Add 'verify'.
64220         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64221         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64222         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64223         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64224         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64225         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64226         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64228         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64230         Formerly the style was sometimes 2*X - 1, because the C standard
64231         was wrongly thought to disallow ?: in integral constant expressions.
64232         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64233         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64234         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64235         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64236         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64237         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64238         verify that time_t cannot be floating.
64240 2010-10-08  Eric Blake  <eblake@redhat.com>
64242         time: enforce recent POSIX ruling that time_t is integral
64243         * lib/time.in.h (__time_t_must_be_integral): Detect any
64244         problematic systems, allowing the rest of gnulib to assume POSIX.
64246 2010-10-08  Jim Meyering  <meyering@redhat.com>
64248         fdopendir: fix a bug on systems lacking openat and /proc support
64249         OpenBSD 4.7 is one such system.  The most noticeable effect was
64250         failure of any application making nontrivial use of fts: rm, du,
64251         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64252           ./rm: traversal failed: `a': Bad file descriptor
64253         Debugging that, you see that even though FD 6 was closed just
64254         prior to the opendir call in fd_clone_opendir, its resulting
64255         dir->dd_fd was 8, rather than the expected value of 6:
64257         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64258         93                close (fd);
64259         (gdb) n
64260         94                dir = fd_clone_opendir (dupfd);
64261         (gdb) n
64262         95                saved_errno = errno;
64263         (gdb) p dir->dd_fd
64264         $11 = 8
64266         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64267         The problem is that on OpenBSD, fd_clone_opendir has to resort
64268         to using the old-style save/restore CWD mechanism, due to its
64269         lack of openat/proc support, and *that* would steal the FD (6)
64270         that opendir was supposed to use.
64272         The fix is to squirrel away the desired FD so that save_cwd uses a
64273         different one, and then free the dest FD right before calling opendir.
64274         That guarantees opendir will use the required file descriptor.
64276         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64278 2010-10-08  Bruno Haible  <bruno@clisp.org>
64280         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64281         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64283 2010-10-08  Bruno Haible  <bruno@clisp.org>
64285         nanosleep: Make replacement POSIX compliant.
64286         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64287         is out of range.
64288         Reported by Jim Meyering.
64290 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64292         bootstrap: add hook for altering gnulib.mk, for Bison
64293         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64294         the Bison bootstrapping process can rewrite file names and variables
64295         in this file before later parts of 'bootstrap' use the file.
64296         Bison wants to include lib/gnulib.mk from the top-level makefile,
64297         so it needs the file names in this file to be relative to the top
64298         level, not relative to lib; plus it needs variable names to be
64299         rewritten.
64300         (slurp): Use the new function.
64302         bootstrap: reformat for readability
64303         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64305 2010-10-08  Eric Blake  <eblake@redhat.com>
64307         docs: update cygwin progress
64308         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64309         1.7.7.
64310         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64311         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64312         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64313         * doc/posix-functions/carg.texi (carg): Likewise.
64314         * doc/posix-functions/cargf.texi (cargf): Likewise.
64315         * doc/posix-functions/casin.texi (casin): Likewise.
64316         * doc/posix-functions/casinf.texi (casinf): Likewise.
64317         * doc/posix-functions/casinh.texi (casinh): Likewise.
64318         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64319         * doc/posix-functions/catan.texi (catan): Likewise.
64320         * doc/posix-functions/catanf.texi (catanf): Likewise.
64321         * doc/posix-functions/catanh.texi (catanh): Likewise.
64322         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64323         * doc/posix-functions/ccos.texi (ccos): Likewise.
64324         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64325         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64326         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64327         * doc/posix-functions/cexp.texi (cexp): Likewise.
64328         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64329         * doc/posix-functions/cimag.texi (cimag): Likewise.
64330         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64331         * doc/posix-functions/clog.texi (clog): Likewise.
64332         * doc/posix-functions/clogf.texi (clogf): Likewise.
64333         * doc/posix-functions/conj.texi (conj): Likewise.
64334         * doc/posix-functions/conjf.texi (conjf): Likewise.
64335         * doc/posix-functions/cpow.texi (cpow): Likewise.
64336         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64337         * doc/posix-functions/cproj.texi (cproj): Likewise.
64338         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64339         * doc/posix-functions/creal.texi (creal): Likewise.
64340         * doc/posix-functions/crealf.texi (crealf): Likewise.
64341         * doc/posix-functions/csin.texi (csin): Likewise.
64342         * doc/posix-functions/csinf.texi (csinf): Likewise.
64343         * doc/posix-functions/csinh.texi (csinh): Likewise.
64344         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64345         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64346         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64347         * doc/posix-functions/ctan.texi (ctan): Likewise.
64348         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64349         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64350         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64351         * doc/posix-headers/complex.texi (complex.h): Likewise.
64353 2010-10-07  Jim Meyering  <meyering@redhat.com>
64355         parse-datetime: avoid compilation failure on OpenBSD 4.7
64356         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64357         This works around a compilation failure on OpenBSD 4.7:
64358         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64360 2010-10-07  Eric Blake  <eblake@redhat.com>
64362         docs: update cygwin progress
64363         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64364         1.7.6.
64365         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64366         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64367         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64368         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64369         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64370         Likewise.
64371         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64372         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64373         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64374         Likewise.
64375         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64376         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64377         Likewise.
64378         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64379         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64380         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64381         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64382         Likewise.
64383         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64384         Likewise.
64385         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64387         docs: update parse-datetime history
64388         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64389         documentation of this function's history and alternatives.
64391         cygwin: use more robust version check
64392         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64393         exclude an eventual cygwin 1.9.1.
64394         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64396         (gl_FUNC_STRCASESTR): Likewise.
64397         Reported by Bruno Haible.
64399 2010-10-06  Bruno Haible  <bruno@clisp.org>
64401         string, sys_select: Avoid #including large headers unless necessary.
64402         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64403         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64404         OSF/1, BeOS, Haiku.
64405         Reported by Jim Meyering.
64407 2010-10-05  Eric Blake  <eblake@redhat.com>
64409         memmem, strstr, strcasestr: fix bug with long periodic needle
64410         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64411         periodic needle having false positive.
64412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64413         and cygwin 1.7.7.
64414         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64416         (gl_FUNC_STRCASESTR): Likewise.
64417         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64418         * tests/test-memmem.c (main): Expose the bug.
64419         * tests/test-strcasestr.c (main): Likewise.
64420         * tests/test-strstr.c (main): Likewise.
64421         * tests/test-c-strcasestr.c (main): Likewise.
64422         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64423         * doc/posix-functions/strstr.texi (strstr): Likewise.
64424         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64425         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64427 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64429         parse-datetime: do some more renaming
64430         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64431         parse_datetime, not get_date.  Mention the renaming.
64432         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64433         in comments.
64434         * m4/bison.m4: Likewise.
64436 2010-10-05  Eric Blake  <eblake@redhat.com>
64438         parse-datetime: better name than get_date
64439         * NEWS: Reword the deprecation notice.
64440         * modules/get_date: Rename to modules/parse-datetime.
64441         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64442         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64443         * lib/get_date.y: Rename to lib/parse-datetime.y.
64444         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64445         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64446         * doc/getdate.texi: Provide fallback wrapper.
64447         * lib/getdate.h: Move guts, and wrap...
64448         * lib/parse-datetime.h: ...new file.
64449         * lib/parse-datetime.y (get_date): Rename...
64450         (parse_datetime): ...to this.
64451         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64452         (gl_PARSE_DATETIME): ...to this.
64453         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64454         documentation.
64455         * modules/getdate (Files): Provide fallback docs and header.
64456         (Notice, Depends-on): Update references.
64457         * tests/test-parse-datetime.c: Likewise.
64458         * DEPENDENCIES: Likewise.
64459         * MODULES.html.sh (Date and time <time.h>): Likewise.
64460         * doc/parse-datetime.texi (Date input formats)
64461         (Authors of parse_datetime): Likewise.
64462         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64463         (Include): Likewise.
64464         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64465         * gnulib-tool: Likewise.
64466         * m4/bison.m4 (gl_BISON): Likewise.
64467         Suggested by Bruno Haible.
64469 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64471         more ports to Solaris tr, which needs [] around ranges
64472         * gnulib-tool: Solaris tr needs [] around ranges.
64473         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64474         * tests/test-pipe-filter-gi1.c (main): Likewise.
64475         * tests/test-pipe-filter-ii1.c (main): Likewise.
64477 2010-10-05  Eric Blake  <eblake@redhat.com>
64479         bootstrap: fix Solaris regression
64480         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64481         around ranges.
64482         Reported by Pádraig Brady.
64484         bootstrap: work with pkg-config
64485         * build-aux/bootstrap (check_versions): Also transliterate - in
64486         prerequisite name.
64487         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64488         prerequisites that were already found, to avoid confusion.
64489         Reported by Justin Clift.
64491         faccessat: remove unused wrappers
64492         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64493         presence of these wrappers dragged in -lgen on Solaris.
64494         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64496 2010-10-05  Jim Meyering  <meyering@redhat.com>
64498         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64499         * Makefile (sc_pragma_columns): New syntax-check rule.
64501 2010-10-04  Bruno Haible  <bruno@clisp.org>
64503         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64504         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64505         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64506         Reported by Bruce Korb and Eric Blake.
64508 2010-10-04  Bruno Haible  <bruno@clisp.org>
64510         threadlib: Make option --with-libpth-prefix work.
64511         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64512         use $LIBPTH, not just -lpth.
64514 2010-10-04  Bruno Haible  <bruno@clisp.org>
64516         Avoid line length limitation from HP NonStop system header files.
64517         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64518         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64519         * lib/ctype.in.h: Likewise.
64520         * lib/dirent.in.h: Likewise.
64521         * lib/errno.in.h: Likewise.
64522         * lib/fcntl.in.h: Likewise.
64523         * lib/float.in.h: Likewise.
64524         * lib/getopt.in.h: Likewise.
64525         * lib/iconv.in.h: Likewise.
64526         * lib/inttypes.in.h: Likewise.
64527         * lib/langinfo.in.h: Likewise.
64528         * lib/locale.in.h: Likewise.
64529         * lib/math.in.h: Likewise.
64530         * lib/netdb.in.h: Likewise.
64531         * lib/netinet_in.in.h: Likewise.
64532         * lib/poll.in.h: Likewise.
64533         * lib/pthread.in.h: Likewise.
64534         * lib/pty.in.h: Likewise.
64535         * lib/sched.in.h: Likewise.
64536         * lib/se-selinux.in.h: Likewise.
64537         * lib/search.in.h: Likewise.
64538         * lib/signal.in.h: Likewise.
64539         * lib/spawn.in.h: Likewise.
64540         * lib/stdarg.in.h: Likewise.
64541         * lib/stddef.in.h: Likewise.
64542         * lib/stdint.in.h: Likewise.
64543         * lib/stdio.in.h: Likewise.
64544         * lib/stdlib.in.h: Likewise.
64545         * lib/string.in.h: Likewise.
64546         * lib/strings.in.h: Likewise.
64547         * lib/sys_file.in.h: Likewise.
64548         * lib/sys_ioctl.in.h: Likewise.
64549         * lib/sys_select.in.h: Likewise.
64550         * lib/sys_socket.in.h: Likewise.
64551         * lib/sys_stat.in.h: Likewise.
64552         * lib/sys_time.in.h: Likewise.
64553         * lib/sys_times.in.h: Likewise.
64554         * lib/sys_utsname.in.h: Likewise.
64555         * lib/sys_wait.in.h: Likewise.
64556         * lib/sysexits.in.h: Likewise.
64557         * lib/termios.in.h: Likewise.
64558         * lib/time.in.h: Likewise.
64559         * lib/unistd.in.h: Likewise.
64560         * lib/wchar.in.h: Likewise.
64561         * lib/wctype.in.h: Likewise.
64562         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64563         * modules/ctype (Makefile.am): Likewise.
64564         * modules/dirent (Makefile.am): Likewise.
64565         * modules/errno (Makefile.am): Likewise.
64566         * modules/fcntl-h (Makefile.am): Likewise.
64567         * modules/float (Makefile.am): Likewise.
64568         * modules/getopt-posix (Makefile.am): Likewise.
64569         * modules/iconv-h (Makefile.am): Likewise.
64570         * modules/inttypes (Makefile.am): Likewise.
64571         * modules/langinfo (Makefile.am): Likewise.
64572         * modules/locale (Makefile.am): Likewise.
64573         * modules/math (Makefile.am): Likewise.
64574         * modules/netdb (Makefile.am): Likewise.
64575         * modules/netinet_in (Makefile.am): Likewise.
64576         * modules/poll-h (Makefile.am): Likewise.
64577         * modules/pthread (Makefile.am): Likewise.
64578         * modules/pty (Makefile.am): Likewise.
64579         * modules/sched (Makefile.am): Likewise.
64580         * modules/search (Makefile.am): Likewise.
64581         * modules/selinux-h (Makefile.am): Likewise.
64582         * modules/signal (Makefile.am): Likewise.
64583         * modules/spawn (Makefile.am): Likewise.
64584         * modules/stdarg (Makefile.am): Likewise.
64585         * modules/stddef (Makefile.am): Likewise.
64586         * modules/stdint (Makefile.am): Likewise.
64587         * modules/stdio (Makefile.am): Likewise.
64588         * modules/stdlib (Makefile.am): Likewise.
64589         * modules/string (Makefile.am): Likewise.
64590         * modules/strings (Makefile.am): Likewise.
64591         * modules/sys_file (Makefile.am): Likewise.
64592         * modules/sys_ioctl (Makefile.am): Likewise.
64593         * modules/sys_select (Makefile.am): Likewise.
64594         * modules/sys_socket (Makefile.am): Likewise.
64595         * modules/sys_stat (Makefile.am): Likewise.
64596         * modules/sys_time (Makefile.am): Likewise.
64597         * modules/sys_times (Makefile.am): Likewise.
64598         * modules/sys_utsname (Makefile.am): Likewise.
64599         * modules/sys_wait (Makefile.am): Likewise.
64600         * modules/sysexits (Makefile.am): Likewise.
64601         * modules/termios (Makefile.am): Likewise.
64602         * modules/time (Makefile.am): Likewise.
64603         * modules/unistd (Makefile.am): Likewise.
64604         * modules/wchar (Makefile.am): Likewise.
64605         * modules/wctype (Makefile.am): Likewise.
64607 2010-10-04  Bruno Haible  <bruno@clisp.org>
64609         read-file tests: Avoid a test failure on NonStop Kernel.
64610         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64611         a regular file.
64612         Reported by Joachim Schmitz <schmitz@hp.com>.
64614 2010-10-03  Bruno Haible  <bruno@clisp.org>
64616         gnulib-tool: Fixes for --create-testdir with --libtool.
64617         * gnulib-tool (func_get_automake_snippet): Don't augment
64618         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64619         an executable.
64620         (func_create_testdir): Handle module 'alloca' like func_import.
64621         Reported by Bruce Korb <bruce.korb@gmail.com>.
64623 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64625         Avoid some lines longer than 80 characters.
64626         * lib/stdint.in.h: Break long comment lines.
64627         * lib/math.in.h: Likewise.
64628         (_GL_NUM_UINT_WORDS): New macro, for readability.
64629         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64630         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64631         * lib/stdlib.in.h: Likewise.
64632         * lib/spawn.in.h: Likewise.
64633         * lib/sys_socket.in.h: Update an URL.
64634         * lib/sys_stat.in.h: Break long line.
64636 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64638         Improve pmccabe2html.
64639         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64640         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64641         when the sources change. Remove the line in the HTML about "Used
64642         ranges" (which implied that there might be other unused ranges),
64643         rename "Resume" to "Summary" (easier to understand for more users).
64644         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64645         styles, and some unnecessary blank lines.
64647 2010-10-03  Bruno Haible  <bruno@clisp.org>
64648             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64650         acl: Add support for ACLs on NonStop Kernel.
64651         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64652         Check whether the function aclsort() exists.
64653         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64654         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64655         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64656         (acl_nontrivial [HAVE_ACLSORT]: New function.
64657         (file_has_acl): Implement for NonStop Kernel.
64658         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64659         (qset_acl): Implement for NonStop Kernel.
64660         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64661         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64662         (main): Implement for NonStop Kernel.
64663         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64664         Kernel. Handle this flavor.
64665         * tests/test-set-mode-acl.sh: Likewise.
64666         * tests/test-copy-acl.sh: Likewise.
64667         * tests/test-copy-file.sh: Likewise.
64669 2010-10-03  Bruno Haible  <bruno@clisp.org>
64671         Info about ACLs on NonStop Kernel.
64672         * doc/acl-resources.txt: Add info about NonStop Kernel.
64673         References by Joachim Schmitz <schmitz@hp.com>.
64675 2010-10-02  Bruno Haible  <bruno@clisp.org>
64677         Define missing EDQUOT on NonStop Kernel.
64678         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64679         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64680         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64681         missing.
64682         * doc/posix-headers/errno.texi: Mention the NSK bug.
64683         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64684         Reported by Joachim Schmitz <schmitz@hp.com>.
64686 2010-10-02  Bruno Haible  <bruno@clisp.org>
64688         Update doc for POSIX:2008.
64689         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64690         Update URL of POSIX specification.
64692 2010-10-02  Bruno Haible  <bruno@clisp.org>
64694         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64695         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64696         from gnulib, not from Automake.
64698 2010-10-02  Bruno Haible  <bruno@clisp.org>
64700         New module 'system-posix'.
64701         * modules/system-posix: New file.
64702         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64703         module is present.
64704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64705         GNULIB_SYSTEM_POSIX.
64706         * modules/stdlib (Depends-on): Remove sys_wait.
64707         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64708         * doc/posix-functions/system.texi: Mention the new module.
64709         * doc/posix-headers/stdlib.texi: Likewise.
64710         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64711         define test_sys_wait_macros to a no-op.
64712         Reported by Sam Steingold <sds@gnu.org>.
64714 2010-09-30  Bruno Haible  <bruno@clisp.org>
64716         More renaming from 'getdate' to 'get_date'.
64717         * doc/get_date.texi: Renamed from doc/getdate.texi.
64718         * modules/get_date (Files): Update.
64719         * MODULES.html.sh (Date and time <time.h>): Update.
64720         * DEPENDENCIES: Update.
64721         * gnulib-tool: Update comment.
64722         * m4/bison.m4 (gl_BISON): Likewise.
64723         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64725 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64727         bootstrap: support ACLOCAL_FLAGS during aclocal
64728         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64729         can add additional -I dir for third-party .m4 files.
64731 2010-09-30  Eric Blake  <eblake@redhat.com>
64733         bootstrap: use glibtoolize on MacOS
64734         * build-aux/bootstrap (check_versions): Convert libtool into
64735         libtoolize.
64736         (tool search): Move libtool check earlier, and look for
64737         glibtoolize for MacOS.
64738         (gnulib_tool_options): Auto-add --libtool when appropriate.
64739         Reported by Justin Clift.
64741         poll: fix typo that broke test on MacOS
64742         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64743         Reported by Justin Clift.
64745         getdate: rename to get_date
64746         Note: getdate.h is not renamed, to minimize client impact.
64747         * modules/getdate: Mark obsolete.  Move old contents...
64748         * modules/get_date: ...to new module name.
64749         * modules/getdate-tests: Move...
64750         * modules/get_date-tests: ...here.
64751         * m4/getdate.m4: Move...
64752         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64753         * lib/getdate.y: Move...
64754         * lib/get_date.y: ...here.
64755         * tests/test-getdate.c: Move...
64756         * tests/test-get_date.c: ...here.
64757         * doc/posix-functions/getdate.texi (getdate): Update name.
64758         * NEWS: Mention the change.
64760 2010-09-29  Bruno Haible  <bruno@clisp.org>
64762         Separate the module 'waitpid' from the module 'sys_wait'.
64763         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64764         present.
64765         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64766         gl_MODULE_INDICATOR_FOR_TESTS.
64767         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64768         * modules/sys_wait (Depends-on): Remove waitpid.
64769         (Makefile.am): Substitute GNULIB_WAITPID.
64770         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64771         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64772         signature only if the 'waitpid' module is present.
64773         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64774         * NEWS: Mention the change.
64775         * modules/grantpt (Depends-on): Add waitpid.
64776         * modules/wait-process (Depends-on): Likewise.
64778 2010-09-29  Bruno Haible  <bruno@clisp.org>
64780         More tests for module 'sys_wait'.
64781         * modules/sys_wait-c++-tests: New file.
64782         * tests/test-sys_wait-c++.cc: New file.
64783         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64784         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64786 2010-09-29  Bruno Haible  <bruno@clisp.org>
64788         New module 'waitpid'.
64789         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64790         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64791         Don't include <process.h>.
64792         (waitpid): Declare only, using modern idiom.
64793         * m4/waitpid.m4: New file.
64794         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64795         * modules/waitpid: New file.
64796         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64797         (Makefile.am): Update.
64798         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64800 2010-09-28  Bruno Haible  <bruno@clisp.org>
64802         poll: Assume ANSI C.
64803         * lib/poll.c (poll): Use an ANSI C declaration.
64805 2010-09-28  Bruno Haible  <bruno@clisp.org>
64807         poll-h: Create poll.h on all platforms.
64808         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64809         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64810         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64811         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64812         (gl_REPLACE_POLL_H): Don't set POLL_H.
64813         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64814         * modules/poll-h (Depends-on): Add include_next.
64815         (Makefile.am): Create poll.h unconditionally. Substitute also
64816         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64818 2010-09-28  Bruno Haible  <bruno@clisp.org>
64820         Tests for module 'poll-h'.
64821         * modules/poll-h-c++-tests: New file.
64822         * tests/test-poll-h-c++.cc: New file.
64824         Tests for module 'poll-h'.
64825         * modules/poll-h-tests: New file.
64826         * tests/test-poll-h.c: New file.
64828 2010-09-28  Bruno Haible  <bruno@clisp.org>
64830         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64831         * modules/poll-h (Depends-on): Add 'extensions'.
64833 2010-09-28  Bruno Haible  <bruno@clisp.org>
64835         New module 'poll-h'.
64836         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64837         (poll): Use modern idiom.
64838         * modules/poll-h: New file.
64839         * modules/poll (Files): Remove lib/poll.in.h.
64840         (Depends-on): Add poll-h.
64841         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64842         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64843         * m4/poll_h.m4: New file.
64844         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64845         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64846         and invoke gl_REPLACE_POLL_H.
64847         * lib/poll.c: Use common idiom.
64848         * tests/test-poll.c: Likewise.
64849         * doc/posix-headers/poll.texi: Mention the poll-h module.
64850         Suggested by Eric Blake.
64852 2010-09-26  Bruno Haible  <bruno@clisp.org>
64854         sys_wait: Implement WSTOPSIG.
64855         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64856         Reported by Simon Josefsson.
64858 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64860         stdlib, sys_wait: Avoid compilation error on mingw.
64861         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64863 2010-09-26  Bruno Haible  <bruno@clisp.org>
64865         stdlib tests: Avoid code duplication.
64866         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64867         * modules/sys_wait-tests (Files): Likewise.
64868         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64869         * tests/test-stdlib.c: Include test-sys_wait.h.
64870         (main): Invoke test_sys_wait_macros.
64871         * tests/test-sys_wait.c: Include test-sys_wait.h.
64872         (main): Invoke test_sys_wait_macros.
64874 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64876         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64877         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64878         sure Windows sockets are working before calling getaddrinfo.
64879         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64880         * doc/gnulib.texi (Windows sockets): Fix typo.
64882 2010-09-25  Bruno Haible  <bruno@clisp.org>
64884         Tests for module 'regex-quote'.
64885         * modules/regex-quote-tests: New file.
64886         * tests/test-regex-quote.c: New file.
64888         New module 'regex-quote'.
64889         * lib/regex-quote.h: New file.
64890         * lib/regex-quote.c: New file.
64891         * modules/regex-quote: New file.
64892         Suggested by Reuben Thomas <rrt@sc3d.org>.
64894 2010-09-24  Bruno Haible  <bruno@clisp.org>
64896         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64897         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64899 2010-09-23  Bruno Haible  <bruno@clisp.org>
64901         setenv: Relax license.
64902         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64903         Blake.
64904         Requested by Eric Blake.
64906 2010-09-22  Bruno Haible  <bruno@clisp.org>
64908         termios: Relax license.
64909         * modules/termios (License): Change to LGPLv2+.
64910         Requested by Eric Blake.
64912 2010-09-22  Bruno Haible  <bruno@clisp.org>
64914         threadlib: Allow the package to change the default to 'no'.
64915         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64916         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64917         Reported by Paul Eggert.
64919 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64920             Bruno Haible  <bruno@clisp.org>
64922         Fix endless loop in mbmemcasecoll.
64923         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64924         byte.
64925         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64927 2010-09-22  Bruno Haible  <bruno@clisp.org>
64929         Tests for module 'memcoll'.
64930         * modules/memcoll-tests: New file.
64931         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64933         memcoll, xmemcoll: Clarify size vs. length.
64934         * modules/memcoll.c (memcoll0): Clarify specification.
64935         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64936         passed to collate_error.
64938 2010-09-22  Bruno Haible  <bruno@clisp.org>
64940         Tests for module 'memcasecmp'.
64941         * modules/memcasecmp-tests: New file.
64942         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64944 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64946         * lib/pthread.in.h: Add split double-inclusion guard, and include
64947         system <pthread.h> if there is one.  Use @@-style as in other
64948         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64949         pthread.h doesn't.
64950         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64951         (pthread_mutexattr_settype, pthread_mutex_trylock):
64952         New static inline functions, if there's no system <pthread.h>.
64953         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64954         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64955         Approximate with mutexes if the system lacks spinlocks, as in
64956         MacOS.
64957         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64958         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64959         @@-style.  Check for spinlocks separately.
64960         (gl_PTHREAD_DEFAULTS): New macro.
64961         * modules/pthread: Redo to use a more typical style for in.h files.
64963 2010-09-21  Eric Blake  <eblake@redhat.com>
64965         net_if: enhance tests
64966         * tests/test-net_if.c (main): Move signature checks earlier.
64967         Print failures to stderr.
64968         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64969         Document the bug that we do not yet fix.
64971 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64973         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64974         about gnulib, not GSS.
64976 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64978         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64979         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64980         for Emacs.
64981         * build-aux/pmccabe2html: Make Makefile.am example code more
64982         cut-and-paste friendly.
64984 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64986         * tests/test-net_if.c: New file.
64987         * modules/net_if-tests: New file.
64989 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64991         pthread: add pthread_spin_destroy
64992         * lib/pthread.in.h (pthread_spin_destroy): New function.
64994 2010-09-19  Bruno Haible  <bruno@clisp.org>
64996         gnulib-tool: Fix --help output.
64997         * gnulib-tool (func_usage): Fix help message.
64998         Reported by Reuben Thomas <rrt@sc3d.org>.
65000 2010-09-18  Jim Meyering  <meyering@redhat.com>
65002         maint.mk: avoid unexpanded \n in two diagnostics
65003         * top/maint.mk (sc_prohibit_always_true_header_tests):
65004         Don't use a literal \n in a halt=... assignment.  It would not be
65005         expanded, and the two \n bytes would appear in the diagnostic output
65006         rather than the desired newline.  Use halt=$$(printf ... instead.
65007         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65009 2010-09-18  Bruno Haible  <bruno@clisp.org>
65011         netinet_in: Doc tweak.
65012         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65013         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65015 2010-09-18  Jim Meyering  <meyering@redhat.com>
65017         init.sh: correct an outdated comment
65018         * tests/init.sh (create_exe_shims_):  s/function/alias/
65020         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65021         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65022         a file named "*.exe" is removed between the glob expansion and the
65023         processing of that oddly named file.
65025 2010-09-17  Eric Blake  <eblake@redhat.com>
65027         mirbsd: add some more support
65028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65029         in BSD family.
65030         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65031         devices as OpenBSD.
65032         * m4/host-os.m4 (mirbsd): Add MirBSD.
65034         tests: fix unportable assumption on sys/wait.h
65035         * tests/test-sys_wait.c (main): Relax test.
65036         * tests/test-stdlib.c (main): Likewise.
65038         init.sh: accommodate directory with no .exes
65039         * tests/init.sh: Accomodate directory containing only scripts.
65041         tests: avoid compiler warning
65042         * tests/test-stdlib.c (main): Use the variable.
65044         fdutimens, fdutimensat: update signature, again
65045         * lib/utimens.h (gl_futimens): Delete, and move signature...
65046         (fdutimens): ...here.
65047         (fdutimensat): Rearrange signature.
65048         (lutimensat): Rename variable for clarity.
65049         * lib/fdutimensat.c (fdutimensat): Update signature.
65050         * lib/utimens.c (fdutimens): Likewise.
65051         (gl_futimens): Delete.
65052         (utimens, lutimens): Update callers.
65053         * lib/futimens.c (futimens): Likewise.
65054         * tests/test-fdutimensat.c: Likewise.
65055         * tests/test-utimens.c: Likewise.
65056         * tests/test-futimens.h: Update comment.
65057         * NEWS: Mention this.
65058         Suggested by Paul Eggert.
65060 2010-09-17  Bruno Haible  <bruno@clisp.org>
65062         Take over the maintenance of some older macros from Autoconf.
65063         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65064         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65065         GNU Autoconf.
65066         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65067         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65069 2010-09-17  Eric Blake  <eblake@redhat.com>
65071         fdutimensat: drop atflag validation
65072         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65073         with valid fd, to close a race scenario where futimens is
65074         unsupported and FILE was replaced by a symlink.
65075         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65076         accordingly.
65077         Suggested by Paul Eggert.
65079 2010-09-16  Bruno Haible  <bruno@clisp.org>
65081         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65082         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65084 2010-09-16  Bruno Haible  <bruno@clisp.org>
65086         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65087         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65088         login_tty exists.
65089         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65091 2010-09-16  Bruno Haible  <bruno@clisp.org>
65093         login_tty: Make the replacement code work on BSD systems.
65094         * lib/login_tty.c: Include <sys/ioctl.h>.
65095         (login_tty): Use ioctl TIOCSCTTY when available.
65096         * modules/login_tty (Depends-on): Add sys_ioctl.
65097         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65099 2010-09-16  Bruno Haible  <bruno@clisp.org>
65101         login_tty: Stricter unit test.
65102         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65103         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65104         and tcgetsid() after login_tty.
65105         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65107 2010-09-16  Bruno Haible  <bruno@clisp.org>
65109         New module 'tcgetsid'.
65110         * lib/tcgetsid.c: New file.
65111         * m4/tcgetsid.m4: New file.
65112         * modules/tcgetsid: New file.
65113         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65114         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65115         GNULIB_TCGETSID, HAVE_TCGETSID.
65116         * lib/termios.in.h: Include <sys/types.h>.
65117         (tcgetsid): New declaration.
65118         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65119         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65120         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65121         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65123 2010-09-16  Bruno Haible  <bruno@clisp.org>
65125         Tests for module 'termios'.
65126         * modules/termios-c++-tests: New file.
65127         * modules/termios-tests: New file.
65128         * tests/test-termios-c++.cc: New file.
65129         * tests/test-termios.c: New file.
65131         New module 'termios'.
65132         * modules/termios: New file.
65133         * lib/termios.in.h: New file.
65134         * m4/termios_h.m4: New file.
65135         * doc/posix-headers/termios.texi: Mention the new module.
65137 2010-09-16  Eric Blake  <eblake@redhat.com>
65139         fdutimensat: add an atflag parameter
65140         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65141         * lib/utimens.h (fdutimensat): Update prototype.
65142         * tests/test-fdutimensat.c: Adjust test to match.
65143         * NEWS: Document the change.
65144         Suggested by Paul Eggert.
65146 2010-09-16  Bruno Haible  <bruno@clisp.org>
65148         Fix typos in comments.
65149         * lib/striconveh.h: Fix typo in comment.
65150         * lib/login_tty.c (login_tty): Likewise.
65152 2010-09-15  Bruno Haible  <bruno@clisp.org>
65154         stdlib: clarify MirBSD WEXITSTATUS bug
65155         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65156         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65158 2010-09-15  Eric Blake  <eblake@redhat.com>
65160         stdlib: work around MirBSD WEXITSTATUS bug
65161         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65162         * modules/stdlib (Depends-on): Add sys_wait.
65163         * tests/test-sys_wait.c (main): Enhance test.
65164         * tests/test-stdlib.c (main): Likewise.
65165         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65167         docs: mention MacOS issue with WEXITSTATUS(constant)
65168         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65169         issue.
65170         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65172         strnlen: add tests
65173         * modules/strnlen-tests: New file.
65174         * tests/test-strnlen.c: Likewise.
65176 2010-09-14  Bruno Haible  <bruno@clisp.org>
65178         unistr/base: Avoid link errors when module 'libunistring' is also used.
65179         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65180         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65181         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65182         Declare also when HAVE_LIBUNISTRING is set.
65183         Reported by Pádraig Brady <P@draigbrady.com>.
65185 2010-09-14  Eric Blake  <eblake@redhat.com>
65187         test-rawmemchr: make more robust
65188         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65189         (Depends-on, configure.ac): Add needed prerequisites to use it.
65190         * modules/memchr-tests (Files, Depends-on, configure.ac):
65191         Likewise, to avoid implicit reliance on memchr module prereqs.
65192         * tests/test-memchr.c (main): Ensure proper masking.
65193         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65194         reads.
65196         memchr: detect glibc Alpha bug
65197         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65198         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65199         Alpha.
65200         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65201         * tests/test-memchr.c (main): Enhance test.
65202         Reported by Nelson H. F. Beebe.
65204 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65206         fts, getcwd, glob: audit for dirfd returning -1
65207         * lib/fts.c (opendir): Remove #define; no longer used.
65208         (opendirat): New arg PDIR_FD.  All callers changed.
65209         (fts_build, _opendir2): Use new opendirat to avoid the need for
65210         dirfd, or for checking whether dirfd returns a negative value.
65211         Don't use opendir; always use openat followed by fdopendir.
65212         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65213         it.
65214         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65215         returns -1 here.
65216         * modules/fts (Depends-on): Remove dirfd.
65217         * modules/getcwd (Depends-on): Likewise.
65219 2010-09-13  Eric Blake  <eblake@redhat.com>
65221         float: fix broken MirBSD header
65222         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65223         * doc/posix-headers/float.texi (float.h): Document it.
65225 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65227         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65228         * lib/fts.c (opendirat): New arg extra_flags.
65229         (__opendir2): Use it to avoid following symlinks when opening
65230         a directory, if symlinks are not supposed to be followed.  See
65231         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65233         fdopendir: preserve argument fd before returning
65234         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65235         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65236         (fdopendir): Use them, arranging for FD to be open to the same
65237         directory that it was when it started.  (It might be temporarily
65238         closed while fdopendir is running, so this not thread- or
65239         signal-safe.)  Be careful to do the right thing even when file
65240         descriptors are scarce and dup fails with errno == EMFILE.  See
65241         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65243 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65245         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65246         * NEWS: Document change.
65247         * m4/regex.m4: Disable test for regoff_t size.
65249 2010-09-13  Jim Meyering  <meyering@redhat.com>
65251         fts: don't operate on an invalid file descriptor after failed dup
65252         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65253         negative file descriptor.
65255 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65257         savedir: add streamsavedir, deprecate fdsavedir
65258         * NEWS: Mention deprecation of fdsavedir.
65259         * lib/savedir.c (streamsavedir): New extern function, whose name
65260         ends in "savedir" to be consistent with the others.  This differs
65261         from savedirstream in that it doesn't close its argument.  The
65262         next version of GNU tar will use this instead of fdsavedir, to
65263         avoid some race conditions and conserve file descriptors.
65264         (savedirstream): Reimplement as a wrapper around streamsavedir.
65265         (fdsavedir): Add a comment deprecating this function.  As far as
65266         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65267         * lib/savedir.h (streamsavedir): New decl.
65268         (fdsavedir): Add a comment deprecating this.
65270 2010-09-10  Bruno Haible  <bruno@clisp.org>
65272         langinfo: Fix last commit.
65273         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65274         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65277 2010-09-10  Bruno Haible  <bruno@clisp.org>
65279         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65280         * lib/progreloc.c (O_EXEC): Define fallback.
65282 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65284         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65285         * NEWS: Document recent changes to fcntl-h.
65286         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65287         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65288         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65289         Similarly for O_SEARCH; this last was already true, but not documented.
65290         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65291         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65292         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65293         Likewise.
65294         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65295         is zero, not whether it is defined.
65296         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65297         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65298         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65300 2010-09-10  Bruno Haible  <bruno@clisp.org>
65302         langinfo, nl_langinfo: Fix for IRIX 5.3.
65303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65304         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65305         HAVE_LANGINFO_YESEXPR.
65306         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65307         HAVE_LANGINFO_YESEXPR.
65308         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65309         HAVE_LANGINFO_T_FMT_AMPM is 0.
65310         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65311         HAVE_LANGINFO_YESEXPR is 0.
65312         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65313         NOEXPR.
65314         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65315         * doc/posix-functions/nl_langinfo.texi: Likewise.
65316         Reported by Eric Blake.
65318 2010-09-10  Bruno Haible  <bruno@clisp.org>
65320         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65321         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65322         on FreeBSD 8.0 and OpenBSD 4.6.
65323         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65324         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65325         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65326         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65327         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65328         ac_includes_default.
65329         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65331 2010-09-09  Eric Blake  <eblake@redhat.com>
65333         strsignal: work around NetBSD bug
65334         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65335         * lib/string.in.h (includes): Likewise.
65336         * doc/posix-functions/strsignal.texi (strsignal): Document the
65337         bug.
65338         Reported by Nelson H. F. Beebe.
65340         gnulib-tool: work with NetBSD /bin/sh
65341         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65342         (func_get_description, func_get_comment, func_get_status)
65343         (func_get_notice, func_get_applicability, func_get_filelist)
65344         (func_get_dependencies, func_get_autoconf_early_snippet)
65345         (func_get_autoconf_snippet, func_get_automake_snippet)
65346         (func_get_include_directive, func_get_link_directive)
65347         (func_get_license, func_get_maintainer, func_import): Avoid
65348         shell syntax errors from parsing syntax extensions.
65350 2010-09-09  Bruno Haible  <bruno@clisp.org>
65352         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65353         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65354         a reliable way to determine whether the 'alias' command works.
65356 2010-09-08  Jim Meyering  <meyering@redhat.com>
65358         init.sh: penalize a set-x-impaired shell; don't disqualify it
65359         * tests/init.sh: Too many shells corrupt application stderr when
65360         you set -x, so we can't afford to disqualify them, since at least
65361         on Irix-6.5, that would disqualify all bourne shells.
65362         Instead, use a two-pass approach.
65363         On the first pass, try to find a shell that meets the stricter
65364         condition that set -x does not corrupt stderr.
65365         If no shell meets the stricter condition, retest each candidate
65366         shell, but without that extra condition.  Finally, when
65367         VERBOSE=yes is requested and set -x might cause trouble, simply
65368         issue a warning and refrain from enabling debug output.
65370 2010-09-08  Eric Blake  <eblake@redhat.com>
65372         unsetenv: fix OpenBSD bug
65373         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65374         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65375         documentation.
65376         Reported by Jim Meyering.
65378         strtod: work around IRIX 6.5 bug
65379         * lib/strtod.c (strtod): Reparse number on shorter string if
65380         exponent parse was invalid.
65381         * tests/test-strtod.c (main): Add check for "0x1p 2".
65382         Reported by Tom G. Christensen.
65384         getopt: optimize previous patch
65385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65386         empty variable.  Speed up awk script.
65387         Reported by Paolo Bonzini.
65389 2010-09-08  Jim Meyering  <meyering@redhat.com>
65391         test.sh: disqualify shells for which set -x corrupts stderr
65392         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65393         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65394         appear in stderr output.  For example, this command:
65395             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65396         prints "P=1" on those two systems:
65398 2010-09-08  Bruno Haible  <bruno@clisp.org>
65400         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65401         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65402         commands, because some shells ignore redirections when there is an
65403         error in the command lookup.
65404         Reported by Eric Blake.
65406 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65408         * lib/regex.h: Fix a mention of `regex_compile' (should be
65409         `re_compile_pattern').
65410         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65411         (re_set_registers): Correct name of parameter in comment.
65413         * doc/regex.texi: Add documentation for missing syntax flags.
65414         Remove commented-out documentation of defunct syntax option
65415         RE_NO_EMPTY_ALTS.
65416         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65417         Add documentation of re_set_registers.
65418         Document trick to re-use a pattern buffer by setting fastmap manually.
65419         Update documentation of struct re_pattern_buffer per public members.
65420         Uncomment documentation of equivalence class operators and
65421         collating symbol operators, since they are now implemented,
65422         Explain leftmost-longest matching in relation to alternatives.
65423         Tidy documentation of substring matching.
65424         Remove POSIX documentation, which is done better in
65425         glibc, and refer the reader there. Keep BSD API documentation, as
65426         that is not readily available elsewhere.
65428 2010-09-07  Eric Blake  <eblake@redhat.com>
65430         getopt: handle POSIXLY_CORRECT set but not exported
65431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65432         export state of POSIXLY_CORRECT, due to bash set -o posix.
65433         Reported by Dustin J. Mitchell.
65435 2010-09-05  Bruno Haible  <bruno@clisp.org>
65437         gnulib-tool: Highlight the changed options.
65438         * gnulib-tool (func_usage): Display the --import, --add-import,
65439         --remove-import explanations in bold font.
65441 2010-09-06  Karl Berry  <karl@gnu.org>
65443         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65445 2010-09-05  Bruno Haible  <bruno@clisp.org>
65447         uniwidth/width: Update comment.
65448         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65449         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65451 2010-09-05  Bruno Haible  <bruno@clisp.org>
65453         isinf, isnan: Relax license.
65454         * modules/isinf (License): Change from GPL to LGPL, with consent from
65455         Ben Pfaff.
65456         * modules/isnan (License): Likewise.
65457         Requested by Ludovic Courtès.
65459 2010-09-04  Bruno Haible  <bruno@clisp.org>
65461         gnulib-tool: Help migration from --import to --add-import or --update.
65462         * gnulib-tool: Emit a verbose error message when --import is used
65463         without any module name.
65465 2010-09-04  Bruno Haible  <bruno@clisp.org>
65467         Update doc about gnulib-tool.
65468         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65469         'gnulib-tool --update' in more detail.
65470         Reported by Eric Blake.
65472 2010-09-04  Bruno Haible  <bruno@clisp.org>
65474         gnulib-tool: Change --import. New options --add/remove-import.
65475         * gnulib-tool: New options --add-import, --remove-import.
65476         (func_usage): Document them.
65477         (have_associative): Define always.
65478         (func_import): In import mode, don't merge the specified settings with
65479         the cached settings. Implement remove-import mode.
65480         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65481         Explain when to use them versus --import.
65482         (Simple update): Use --add-import instead of --import.
65483         * NEWS: Mention the change.
65485 2010-09-04  Bruno Haible  <bruno@clisp.org>
65487         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65488         separate gnulib.mk.
65490 2010-09-04  Bruno Haible  <bruno@clisp.org>
65492         gnulib-tool: Don't talk about CVS any more.
65493         * gnulib-tool (func_usage, func_import): Write "version control"
65494         instead of CVS.
65496 2010-09-04  Jim Meyering  <meyering@redhat.com>
65498         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65499         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65500         false positives (whose names may be ill-chosen) when searching
65501         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65502         would cause a false-positive.
65504         avoid coreutils "make distcheck" failure
65505         Coreutils tests with an absolute build directory name that contains
65506         a space.  Not quoting this directory name caused a failure.
65507         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65508         * tests/test-vc-list-files-cvs.sh: Likewise.
65510 2010-09-04  Bruno Haible  <bruno@clisp.org>
65512         gnulib-tool: Avoid error when run in a package without Makefile.am.
65513         * gnulib-tool: When collecting the m4dirs in a package that does not
65514         have a Makefile.am, eliminate those directories that contain no
65515         gnulib-cache.m4. Fix expression that counts these directories.
65517 2010-09-04  Bruno Haible  <bruno@clisp.org>
65519         update-copyright test: Improve output when perl is missing or too old.
65520         * tests/test-update-copyright.sh: Move test of Perl version down after
65521         the test whether Perl exists. Provide an explanation relating Perl's
65522         error message to Automake's SKIP: message.
65524 2010-09-04  Bruno Haible  <bruno@clisp.org>
65526         Don't augment PATH in TESTS_ENVIRONMENT.
65527         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65528         set abs_aux_dir instead of augmenting PATH.
65529         * modules/vc-list-files-tests (Makefile.am): Likewise.
65530         * tests/test-update-copyright.sh: Augment PATH here.
65531         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65532         path_prepend_.
65533         * tests/test-vc-list-files-git.sh: Likewise.
65535 2010-09-04  Jim Meyering  <meyering@redhat.com>
65537         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65538         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65540 2010-09-04  Bruno Haible  <bruno@clisp.org>
65542         strdup: Fix compilation error in C++ mode.
65543         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65544         the macro.
65546 2010-09-04  Bruno Haible  <bruno@clisp.org>
65548         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65549         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65550         macro into a function.
65551         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65553 2010-09-04  Bruno Haible  <bruno@clisp.org>
65555         Set PATH_SEPARATOR the same way autoconf does.
65556         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65557         the value of PATH_SEPARATOR the same way autoconf-generated configure
65558         scripts do.
65559         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65560         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65562 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65564         Set PATH_SEPARATOR the same way autoconf does.
65565         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65566         the same way autoconf-generated configure scripts do.
65567         * posix-modules: Likewise.
65569 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65571         hash: fix safe_hasher const typo
65572         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65573         const; otherwise, there is a type error later.
65575 2010-09-02  Jim Meyering  <meyering@redhat.com>
65577         test-update-copyright.sh: require perl 5.8.0
65578         * tests/test-update-copyright.sh: Require 5.8.0,
65579         which Tom G. Christensen has confirmed is adequate,
65580         while 5.6.1 is not.
65582 2010-09-02  Eric Blake  <eblake@redhat.com>
65584         tests: init.sh improvements for re-exec'ing with zsh
65585         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65586         -vx through shell re-exec.
65587         Reported by Tom G. Christensen.
65589         wctype: fix typo in previous commit
65590         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65591         Reported by Ludovic Courtès.
65593 2010-09-02  Jim Meyering  <meyering@redhat.com>
65595         test-update-copyright.sh: skip test if Perl is too old
65596         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65597         Reported by Tom G. Christensen.
65599 2010-09-02  Bruno Haible  <bruno@clisp.org>
65601         wctype: Avoid compilation error on IRIX 6.5.30.
65602         * lib/wctype.in.h (iswblank): Declare with a replacement if
65603         REPLACE_ISWBLANK is set.
65604         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65605         declared. Set REPLACE_ISWBLANK.
65606         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65607         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65608         * doc/posix-headers/wctype.texi: Likewise.
65609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65611 2010-09-01  Bruno Haible  <bruno@clisp.org>
65613         New module 'socketlib'.
65614         * modules/socketlib: New file.
65615         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65616         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65617         * modules/sockets (Depends-on): Add socketlib.
65618         Suggested by Sam Steingold <sds@gnu.org>.
65620 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65622         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65624         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65625         when one needs search access to a directory but not read access.
65626         On systems where it is available, it works in some cases where
65627         O_RDONLY does not, namely on directories that are searchable but
65628         not readable, and which need only to be searchable.  If O_SEARCH
65629         is not available, fall back to the traditional method of using
65630         O_RDONLY.
65632         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65633         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65634         when opening a directory that needs only to be searchable.
65635         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65636         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65637         * lib/openat-proc.c (openat_proc_name): Likewise.
65638         * lib/openat.c (openat_needs_fchdir): Likewise.
65639         * lib/save-cwd.c (save_cwd): Likewise.
65640         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65642 2010-08-28  Bruno Haible  <bruno@clisp.org>
65644         New module 'host-cpu-c-abi'.
65645         * modules/host-cpu-c-abi: New file.
65646         * m4/host-cpu-c-abi.m4: New file, based on part of
65647         clisp/src/m4/general.m4.
65648         Requested by Sam Steingold <sds@gnu.org>.
65650 2010-08-31  Eric Blake  <eblake@redhat.com>
65651         and Jim Meyering  <meyering@redhat.com>
65653         hash: factor, and guard against misbehaving hasher function
65654         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65655         of table->hasher's return value.  Also protect against a hash value
65656         so large that adding it to table->bucket results in a NULL pointer.
65657         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65658         Use it in place of open-coded check-and-abort.
65660 2010-08-30  Bruno Haible  <bruno@clisp.org>
65662         hash: silence spurious clang warning
65663         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65664         Reported by Eric Blake.
65666 2010-08-30  Eric Blake  <eblake@redhat.com>
65668         strstr, memmem, strcasestr: avoid leaked shell message
65669         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65670         FreeBSD.
65671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65674         tests: silence clang warning
65675         * tests/test-malloca.c (do_allocation): Avoid dead store.
65677 2010-08-29  Bruno Haible  <bruno@clisp.org>
65679         gettext: Fix recent mistake.
65680         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65682 2010-08-29  Bruno Haible  <bruno@clisp.org>
65684         selinux-h: Offer a --without-selinux option.
65685         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65686         --without-selinux was specified, skip all tests and define
65687         HAVE_SELINUX_SELINUX_H to 0.
65688         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65689         set LIB_SELINUX to empty.
65690         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65691         gl_LIBSELINUX. If --without-selinux was specified, replace
65692         selinux/context.h.
65693         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65695 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65696             Bruno Haible  <bruno@clisp.org>
65698         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65699         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65700         of HAVE_REALLOC.
65701         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65702         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65703         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65704         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65706 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65707             Bruno Haible  <bruno@clisp.org>
65709         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65710         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65711         HAVE_CALLOC.
65712         * lib/xmalloc.c: Update accordingly.
65713         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65714         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65715         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65717 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65718             Bruno Haible  <bruno@clisp.org>
65720         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65721         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65722         HAVE_MALLOC.
65723         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65724         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65725         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65727 2010-08-29  Bruno Haible  <bruno@clisp.org>
65729         Update modules list.
65730         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65731         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65732         (String handling <string.h>): Add astrxfrm.
65733         (File system functions): Add readlinkat.
65735 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65737         Tests for module 'realloc-gnu'.
65738         * modules/realloc-gnu-tests: New file.
65739         * tests/test-realloc-gnu.c: New file.
65741         Tests for module 'calloc-gnu'.
65742         * modules/calloc-gnu-tests: New file.
65743         * tests/test-calloc-gnu.c: New file.
65745         Tests for module 'malloc-gnu'.
65746         * modules/malloc-gnu-tests: New file.
65747         * tests/test-malloc-gnu.c: New file.
65749 2010-08-28  Bruno Haible  <bruno@clisp.org>
65751         Rename module 'realloc' -> 'realloc-gnu'.
65752         * modules/realloc-gnu: New file, copied from modules/realloc.
65753         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65754         obsolete.
65755         * modules/mgetgroups (Depends-on): Update.
65756         * doc/posix-functions/realloc.texi: Update.
65757         * NEWS: Mention the change.
65759         Rename module 'calloc' -> 'calloc-gnu'.
65760         * modules/calloc-gnu: New file, copied from modules/calloc.
65761         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65762         obsolete.
65763         * doc/posix-functions/calloc.texi: Update.
65764         * NEWS: Mention the change.
65766         Rename module 'malloc' -> 'malloc-gnu'.
65767         * modules/malloc-gnu: New file, copied from modules/malloc.
65768         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65769         obsolete.
65770         * modules/argp (Depends-on): Update.
65771         * modules/regex (Depends-on): Update.
65772         * doc/posix-functions/malloc.texi: Update.
65773         * NEWS: Mention the change.
65775 2010-08-28  Eric Blake  <eblake@redhat.com>
65777         pread, pwrite: add missing dependency
65778         * modules/pread (Depends-on): Add extensions.
65779         * modules/pwrite (Depends-on): Likewise.
65781 2010-08-28  Bruno Haible  <bruno@clisp.org>
65783         unistr/u*-strchr: Fix tests dependencies.
65784         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65785         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65786         Reported by Ian Beckwith <ianb@erislabs.net>.
65788 2010-08-28  Bruno Haible  <bruno@clisp.org>
65790         read-file: Don't occupy too much unused memory.
65791         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65793 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65794             Eric Blake  <eblake@redhat.com>
65795             Bruno Haible  <bruno@clisp.org>
65797         read-file: Avoid memory reallocations with regular files.
65798         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65799         (fread_file): With regular files, use the remaining length as the
65800         initial buffer size.  Check against overflow.
65801         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65802         sys_stat.
65804 2010-08-28  Bruno Haible  <bruno@clisp.org>
65806         ftello: Relax license.
65807         * modules/ftello (License): Relax to LGPLv2+.
65808         Reported by Eric Blake.
65810 2010-08-28  Bruno Haible  <bruno@clisp.org>
65812         Avoid relocwrapper link errors due to gnulib replacement functions.
65813         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65814         function.
65815         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65817 2010-08-28  Bruno Haible  <bruno@clisp.org>
65819         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65820         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65821         defined.
65822         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65823         Suggested by Eric Blake.
65825 2010-08-28  Bruno Haible  <bruno@clisp.org>
65827         sys_socket, netdb: Ensure socklen_t gets defined.
65828         * modules/sys_socket (Depends-on): Add socklen.
65829         * modules/netdb (Depends-on): Likewise.
65830         * modules/getaddrinfo (Depends-on): Remove socklen.
65831         * modules/getsockopt (Depends-on): Likewise.
65832         * modules/setsockopt (Depends-on): Likewise.
65833         * tests/test-sys_socket.c: Check that socklen_t is defined.
65834         * tests/test-netdb.c: Likewise.
65835         * m4/socklen.m4: Update comments.
65836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65838 2010-08-27  Eric Blake  <eblake@redhat.com>
65840         login_tty: add missing dependency
65841         * modules/login_tty (Depends-on): Add pty.
65843 2010-08-26  Eric Blake  <eblake@redhat.com>
65845         lib-symbol-versions: fix m4 quoting
65846         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65847         format for AC_LINK_IFELSE.
65849         glob: fix compile test
65850         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65852         btowc: fix missing file
65853         * modules/btowc (Files): Also ship locale-fr.m4.
65855         lseek: fix link test
65856         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65857         AC_LINK_IFELSE.
65859         include_next: silence autoconf 2.68 warning
65860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65861         AC_COMPILE_IFELSE as special.
65862         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65863         autoconf < 2.68.
65865         acl: fix compilation test
65866         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65867         AC_COMPILE_IFELSE.
65869 2010-08-26  Bruno Haible  <bruno@clisp.org>
65871         Modernize AC_TRY_RUN invocations.
65872         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65873         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65874         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65875         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65876         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65877         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65878         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65880         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65881         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65882         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65883         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65884         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65885         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65886         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65887         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65888         gl_MBRLEN_NUL_RETVAL): Likewise.
65889         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65890         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65891         Likewise.
65892         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65893         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65894         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65895         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65896         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65897         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65898         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65899         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65900         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65901         Likewise.
65902         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65903         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65904         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65905         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65906         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65907         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65908         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65909         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65910         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65913 2010-08-26  Bruno Haible  <bruno@clisp.org>
65915         Modernize AC_TRY_LINK invocations.
65916         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65917         AC_TRY_LINK.
65918         * m4/argp.m4 (gl_ARGP): Likewise.
65919         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65920         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65921         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65922         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65923         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65924         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65925         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65926         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65927         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65928         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65929         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65930         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65931         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65932         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65933         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65934         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65935         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65936         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65937         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65938         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65939         Likewise.
65940         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65941         Likewise.
65942         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65943         Likewise.
65944         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65946         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65947         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65948         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65949         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65950         * m4/servent.m4 (gl_SERVENT): Likewise.
65951         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65952         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65953         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65954         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65955         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65956         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65957         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65958         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65959         * modules/tsearch-tests (configure.ac): Likewise.
65961 2010-08-26  Bruno Haible  <bruno@clisp.org>
65963         Modernize AC_TRY_COMPILE invocations.
65964         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65965         AC_TRY_COMPILE.
65966         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65967         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65968         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65969         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65970         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65971         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65972         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65973         * m4/lock.m4 (gl_LOCK): Likewise.
65974         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65975         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65976         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65977         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65978         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65979         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65980         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65981         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65982         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65983         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65984         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65985         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65986         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65987         extraneous semicolon.
65989 2010-08-26  Jim Meyering  <meyering@redhat.com>
65991         stat-time: relax license LGPL
65992         * modules/stat-time (License): Change from GPL to LGPL,
65993         with consent from all contributors, for use in libguile.
65994         Requested by Ludovic Courtès.
65996 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65998         poll: return immediately on POLLHUP.
65999         * lib/poll.c (poll): Always set timeout before wait_timeout is
66000         computed.
66002 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66004         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66005         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66006         rmdir ("dir/.//"), unlinkat.
66008 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66010         stdbool: avoid spurious failure with modern xlc
66011         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66013 2010-08-24  Bruno Haible  <bruno@clisp.org>
66015         getloadavg: simplify code
66016         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66017         gl_have_func. Update comments.
66019 2010-08-24  Eric Blake  <eblake@redhat.com>
66021         getloadavg: don't define SVR4 on cygwin
66022         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66023         only define SVR4 when -lkvm is required.
66024         Reported by Yaakov Selkowitz.
66026 2010-08-24  Bruno Haible  <bruno@clisp.org>
66028         priv-set: fix comment
66029         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66031 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66033         priv-set: fix comments
66034         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66035         to match code, as suggested by David Bartley in:
66036         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66038 2010-08-23  Eric Blake  <eblake@redhat.com>
66040         stdbool: avoid rejecting clang
66041         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66042         * tests/test-stdbool.c: Enable more tests if using the system
66043         <stdbool.h> instead of the gnulib replacement.
66044         (main): Move xlc bug test to a runtime test for all compilers.
66045         Reported by Anders Kaseorg.
66047         argz: fix shell quoting issue
66048         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66049         Reported by Charles Wilson.
66051 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66052             Erik Faye-Lund <kusmabite@gmail.com>
66054         poll, select: handle ERROR_BROKEN_PIPE.
66055         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66056         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66057         * lib/select.c (win32_compute_revents): Do not mark a pipe
66058         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66060 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66062         fts: allow compilation with C++
66063         * lib/fts_.h: Specify extern "C" linkage with C++.
66065 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66067         Fix gnulib-tool sed script de-commentation for AIX sed.
66068         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66069         sed.
66071 2010-08-17  Eric Blake  <eblake@redhat.com>
66073         test-stddef: test for (some) offsetof bugs
66074         * tests/test-stddef.c: Enhance test to ensure correct type of
66075         offsetof.
66076         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66077         that we are not fixing at this time.
66079 2010-08-15  Bruno Haible  <bruno@clisp.org>
66081         stpncpy: Allow stpncpy to be defined as a macro.
66082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66083         if it's already correctly declared.
66084         * lib/string.in.h (stpncpy): Undefine before redefining.
66085         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66087 2010-08-14  Bruno Haible  <bruno@clisp.org>
66089         Rename module 'memxfrm' to 'amemxfrm'.
66090         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66091         (amemxfrm): Renamed from memxfrm.
66092         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66093         (amemxfrm): Renamed from memxfrm.
66094         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66095         * NEWS: Mention the change.
66096         * MODULES.html.sh (String handling <string.h>): Update.
66097         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66098         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66099         * lib/unicase/u16-casexfrm.c: Likewise.
66100         * lib/unicase/u32-casexfrm.c: Likewise.
66101         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66102         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66103         * lib/uninorm/u16-normxfrm.c: Likewise.
66104         * lib/uninorm/u32-normxfrm.c: Likewise.
66105         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66106         memxfrm.
66107         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66108         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66109         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66110         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66111         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66112         Suggested by Paul Eggert.
66114 2010-08-14  Bruno Haible  <bruno@clisp.org>
66116         Tests for module 'astrxfrm'.
66117         * modules/astrxfrm-tests: New file.
66118         * tests/test-astrxfrm.c: New file.
66120         New module 'astrxfrm'.
66121         * lib/astrxfrm.h: New file.
66122         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66123         * modules/astrxfrm: New file.
66125 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66127         regex: Tweak doc.
66128         * doc/regex.texi (Overview): Don't mention regex.c.
66129         (GNU Regular Expression Compiling): Likewise.
66130         (Match-end-of-line Operator): Mention 'not_eol'.
66132 2010-08-14  Brian Gough  <bjg@gnu.org>
66133             Bruno Haible  <bruno@clisp.org>
66135         git-merge-changelog: add doc relating to use with bzr and hg.
66136         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66138 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66140         pthread: fix pthread.h creation for srcdir != builddir
66141         * modules/pthread (Makefile.am): Fix the rule to work also in a
66142         non-srcdir build.
66144 2010-08-13  Karl Berry  <karl@gnu.org>
66146         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66147         * doc/posix-*/*: force line break before @url of POSIX
66148         specifications.
66149         Suggested by Werner Lemberg.
66151 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66153         strtod: fix const diagnostic
66154         * lib/strtod.c (strtod): Don't assign const char * to char *,
66155         as this elicits a warning from GCC when warnings are enabled.
66157 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66158         and Eric Blake  <eblake@redhat.com>
66160         copy-acl: ignore ENOTSUP on HP-UX
66161         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66162         so that it is available for HP-UX.
66163         * lib/copy-acl.c (qcopy_acl): Use it.
66164         Reported by Patrick M. Callahan.
66166 2010-08-10  Eric Blake  <eblake@redhat.com>
66168         open, chown: relax license
66169         * modules/open (License): Change to LGPLv2+, with consent by all
66170         authors, for use in augeas.
66171         * modules/chown (License): Likewise.
66172         * modules/lchown (Likewise): Likewise.
66173         Requested by Adam Stokes.
66175 2010-08-09  Karl Berry  <karl@gnu.org>
66177         * build-aux/ar-lib: new file, import from Automake.
66178         * config/srclist.txt: autocheck for updates.
66180 2010-08-09  Eric Blake  <eblake@redhat.com>
66182         readlinkat: adjust client modules
66183         * modules/areadlinkat (Depends-on): Use readlinkat, not
66184         symlinkat.
66185         * modules/areadlinkat-with-size (Depends-on): Likewise.
66187         mknod: be more vocal about danger of running tests as root
66188         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66189         root, since that is just asking for problems.
66190         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66192         readlinkat: split into its own module
66193         * modules/symlinkat: Split readlinkat...
66194         * modules/readlinkat: ...into separate module.
66195         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66196         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66197         * lib/symlinkat.c (readlinkat): Move...
66198         * lib/readlinkat.c: ...into new file.
66199         * modules/symlinkat-tests: Split readlinkat test...
66200         * modules/readlinkat-tests: ...into separate module.
66201         * tests/test-symlinkat.c: Split...
66202         * tests/test-readlinkat.c: ...into new file.
66203         * NEWS: Document the split.
66204         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66205         * lib/unistd.in.h (readlinkat): Likewise.
66206         Suggested by Bruno Haible.
66208 2010-08-08  Bruno Haible  <bruno@clisp.org>
66210         memxfrm: Speed up.
66211         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66212         that usually only one call to strxfrm is necessary for each string
66213         part.
66214         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66216 2010-08-07  Karl Berry  <karl@gnu.org>
66218         * doc/posix-headers/limits.texi,
66219         * doc/posix-functions/malloc.texi,
66220         * doc/posix-functions/strsignal.texi: missing @item.
66221         * doc/ld-version-script.texi: spurious leading i.
66222         * doc/regex.texi (Interval Operators): no commas inside @var.
66224 2010-08-01  Bruno Haible  <bruno@clisp.org>
66226         Integrate the regex documentation.
66227         * doc/gnulib.texi: Define 'cn' index.
66228         (Regular expressions): New a chapter that includes regex.texi and
66229         regexprops-generic.texi.
66230         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66231         syntax.
66233         Whitespace cleanup.
66234         * doc/regex.texi: Remove trailing spaces.
66236         Add regex documentation.
66237         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66238         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66239         Written by Kathy A. Hargreaves and Karl Berry.
66241 2010-08-01  Bruno Haible  <bruno@clisp.org>
66243         link: Update documentation.
66244         * doc/posix-functions/link.texi: Update regarding Solaris.
66246 2010-07-31  Bruno Haible  <bruno@clisp.org>
66248         Update modules list.
66249         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66250         (String handling <string.h>): Add memcmp2, memxfrm.
66251         (Container data structures): Add xlist, xsublist, xoset.
66252         (Core language properties): Add alignof, unused-parameter.
66253         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66254         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66255         (Unibyte characters <ctype.h>): New section.
66256         (String handling <string.h>): New section.
66257         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66258         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66259         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66260         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66261         tan, tanh, tanl, y0, y1, yn.
66262         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66263         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66264         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66265         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66266         unlockpt, vdprintf, vdprintf-posix.
66267         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66268         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66269         xconcat-filename.
66270         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66271         getdtablesize, pipe2, pipe2-safer.
66272         (Security): New section.
66273         (Networking functions): Add accept4.
66274         (Signal handling): Add sigpipe.
66275         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66276         mbmemcasecoll.
66277         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66278         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66279         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66280         pipe-filter-ii.
66281         (Misc): Add argp-version-etc, login_tty, parse-duration.
66283 2010-07-31  Bruno Haible  <bruno@clisp.org>
66285         Improve doc in MODULES.html.
66286         * modules/linkat (Description): Add the word "function".
66287         * modules/mkfifo (Description): Likewise.
66288         * modules/mknod (Description): Likewise.
66289         * modules/remove (Description): Likewise.
66290         * modules/renameat (Description): Likewise.
66291         * modules/stat (Description): Likewise.
66292         * modules/symlink (Description): Likewise.
66293         * modules/unlink (Description): Likewise.
66295 2010-07-31  Bruno Haible  <bruno@clisp.org>
66297         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66298         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66299         option --enable/disable-c++ instead of --enable/disable-cxx.
66300         * NEWS: Mention the change.
66302 2010-07-31  Bruno Haible  <bruno@clisp.org>
66304         readlink, areadlink: Relax test a bit.
66305         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66306         alternative to ENOTDIR.
66307         * tests/test-areadlink.h (test_areadlink): Likewise.
66308         Reported by Rainer Tammer.
66310 2010-07-31  Bruno Haible  <bruno@clisp.org>
66312         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66313         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66314         character, perform the search using U_STRCHR.
66315         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66316         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66317         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66318         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66319         Suggested by Paolo Bonzini.
66321 2010-07-31  Bruno Haible  <bruno@clisp.org>
66323         unistr/u*-strstr: Fix dependencies.
66324         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66325         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66326         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66328 2010-07-31  Bruno Haible  <bruno@clisp.org>
66330         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66331         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66332         the beginning of the loop.
66333         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66334         cases in 'switch' statement.
66336         unistr/u8-strchr: Fix several bugs.
66337         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66338         the string. When not found, return NULL, not a pointer near the end.
66340         More tests for unistr/u8-strchr.
66341         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66342         that the function does not read past the first occurrence of the byte
66343         being searched.
66344         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66345         * tests/unistr/test-u16-strchr.c (main): New function.
66346         * tests/unistr/test-u32-strchr.c (main): New function.
66348 2010-07-31  Bruno Haible  <bruno@clisp.org>
66350         posix-modules: Ignore backup files of documentation files.
66351         * posix-modules: grep only through files named *.texi.
66353 2010-07-31  Bruno Haible  <bruno@clisp.org>
66355         symlinkat: Fix documentation.
66356         * doc/posix-functions/readlinkat.texi: Fix module name.
66358 2010-07-31  Bruno Haible  <bruno@clisp.org>
66360         fchownat: Replace also when chown has the trailing slash bug.
66361         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66362         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66363         introduced on 2010-04-10.
66364         Reported by Rainer Tammer.
66366 2010-07-31  Bruno Haible  <bruno@clisp.org>
66368         linkat: Work around AIX 7.1 bug.
66369         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66370         whether linkat handles trailing slash correctly. If not, replace linkat
66371         and define LINKAT_TRAILING_SLASH_BUG.
66372         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66373         check whether (fd1,file1) points to a directory if file1 or file2 ends
66374         in a slash. Code taken from lib/link.c.
66375         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66376         Reported by Rainer Tammer.
66378 2010-07-31  Bruno Haible  <bruno@clisp.org>
66380         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66381         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66382         This disables an xlc optimization that was causing wrong test results.
66383         Reported by Rainer Tammer.
66385 2010-07-31  Bruno Haible  <bruno@clisp.org>
66387         iconv: Work around AIX 6.1..7.1 bug.
66388         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66389         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66390         cross-compiling, guess no on all versions of AIX.
66391         Reported by Rainer Tammer.
66393 2010-07-31  Bruno Haible  <bruno@clisp.org>
66395         readlink: Relax test a bit.
66396         * tests/test-readlink.h (test_readlink): Allow different errno value
66397         when readlink is called with a file name that ends in / and refers to
66398         a file.
66399         Suggested by Eric Blake.
66400         Reported by Rainer Tammer.
66402 2010-07-31  Bruno Haible  <bruno@clisp.org>
66404         copysign: Does not require -lm on glibc systems.
66405         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66406         gl_COMMON_DOUBLE_MATHFUNC.
66407         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66409 2010-07-31  Bruno Haible  <bruno@clisp.org>
66411         duplocale: Work around AIX 7.1 bug.
66412         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66413         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66414         * lib/duplocale.c (rpl_duplocale): Update comment.
66415         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66416         Reported by Rainer Tammer.
66418 2010-07-30  Bruno Haible  <bruno@clisp.org>
66420         dirfd: Avoid link error on AIX 7.1.
66421         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66422         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66423         exist, set REPLACE_DIRFD.
66424         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66425         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66426         * doc/posix-functions/dirfd.texi: Update.
66427         Reported by Rainer Tammer.
66429 2010-07-30  Eric Blake  <eblake@redhat.com>
66431         strtod: next round of AIX fixes
66432         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66433         exponent.
66434         * tests/test-strtod.c (main): Enhance tests.
66435         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66436         Reported by Rainer Tammer.
66438         futimens: fix configure check
66439         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66440         Reported by Bruno Haible.
66442 2010-07-30  Bruno Haible  <bruno@clisp.org>
66444         getline: Update regarding AIX.
66445         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66446         Reported by Rainer Tammer.
66448 2010-07-30  Bruno Haible  <bruno@clisp.org>
66450         wcwidth: Drop replacement on AIX 7.
66451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66452         AIX 7.
66453         Reported by Rainer Tammer.
66455 2010-07-30  Bruno Haible  <bruno@clisp.org>
66457         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66458         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66459         a 'char *'.
66460         Reported by Rainer Tammer.
66462 2010-07-30  Bruno Haible  <bruno@clisp.org>
66464         unlink: Update regarding AIX.
66465         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66466         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66467         Reported by Rainer Tammer.
66469 2010-07-30  Bruno Haible  <bruno@clisp.org>
66471         symlink: Update regarding AIX.
66472         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66473         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66474         Reported by Rainer Tammer.
66476 2010-07-30  Bruno Haible  <bruno@clisp.org>
66478         strndup: Update regarding AIX.
66479         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66480         AIX 7.
66481         Reported by Rainer Tammer.
66483 2010-07-30  Bruno Haible  <bruno@clisp.org>
66485         stat: Update regarding AIX.
66486         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66487         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66488         Reported by Rainer Tammer.
66490 2010-07-30  Bruno Haible  <bruno@clisp.org>
66492         truncl: Fix autoconf test.
66493         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66494         whether truncl works.
66495         Reported by Rainer Tammer.
66497 2010-07-30  Bruno Haible  <bruno@clisp.org>
66499         round: Update regarding AIX.
66500         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66501         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66502         Reported by Rainer Tammer.
66504 2010-07-30  Bruno Haible  <bruno@clisp.org>
66506         rename: Update regarding AIX.
66507         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66508         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66509         Reported by Rainer Tammer.
66511 2010-07-30  Bruno Haible  <bruno@clisp.org>
66513         printf.m4: Update regarding AIX.
66514         * m4/printf.m4: Update comments regarding AIX.
66515         Reported by Rainer Tammer.
66517 2010-07-30  Bruno Haible  <bruno@clisp.org>
66519         iconv: Update regarding AIX.
66520         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66521         AIX 7.
66522         Reported by Rainer Tammer.
66524 2010-07-30  Bruno Haible  <bruno@clisp.org>
66526         getopt: Update regarding AIX.
66527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66528         no on AIX.
66529         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66530         Reported by Rainer Tammer.
66532 2010-07-30  Bruno Haible  <bruno@clisp.org>
66534         ldexpl; Update regarding AIX.
66535         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66536         on AIX 7.
66537         Reported by Rainer Tammer.
66539 2010-07-30  Bruno Haible  <bruno@clisp.org>
66541         frexpl: Update regarding AIX.
66542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66543         on AIX 7.
66544         Reported by Rainer Tammer.
66546 2010-07-30  Bruno Haible  <bruno@clisp.org>
66548         open, fopen: Update regarding AIX.
66549         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66550         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66551         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66552         * doc/posix-functions/fopen.texi: Likewise.
66553         Reported by Rainer Tammer.
66555 2010-07-30  Bruno Haible  <bruno@clisp.org>
66557         chown: Update doc regarding AIX.
66558         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66559         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66560         Reported by Rainer Tammer.
66562 2010-07-30  Eric Blake  <eblake@redhat.com>
66564         strtod: fix bug in replacement function on AIX
66565         * lib/strtod.c (strtod): Special case broken "0x" parse in
66566         underlying strtod.
66567         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66568         * doc/posix-functions/strtod.texi (strtod): Likewise.
66569         Reported by Rainer Tammer.
66571 2010-07-30  Bruno Haible  <bruno@clisp.org>
66573         mbrlen: Fix cross-compilation guess for AIX.
66574         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66575         guess. Leftover from 2008-12-22.
66577 2010-07-30  Bruno Haible  <bruno@clisp.org>
66579         mbrtowc: Fix cross-compilation guess for AIX.
66580         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66581         guess. Leftover from 2008-12-21.
66583 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66585         init.sh: work around trap limitation of some shells
66586         * tests/init.sh (setup_): Move exit trap outside of shell function.
66588 2010-07-29  Eric Blake  <eblake@redhat.com>
66590         strtod: aid debugging
66591         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66592         understanding why strtod is rejected.
66594 2010-07-28  Bruno Haible  <bruno@clisp.org>
66596         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66597         * lib/unistr/u8-chr.c: Include <string.h>.
66598         * tests/unistr/test-u8-chr.c: Likewise.
66599         * tests/unistr/test-u16-chr.c: Likewise.
66600         * tests/unistr/test-u32-chr.c: Likewise.
66601         * tests/unistr/test-u8-strchr.c: Likewise.
66602         * tests/unistr/test-u16-strchr.c: Likewise.
66603         * tests/unistr/test-u32-strchr.c: Likewise.
66604         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66605         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66606         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66607         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66609 2010-07-28  Bruno Haible  <bruno@clisp.org>
66611         Use spaces for indentation, not tabs.
66612         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66614 2010-07-27  Bruno Haible  <bruno@clisp.org>
66616         mbspcasecmp: Fix function specification.
66617         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66618         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66619         Reported by Eric Blake <eblake@redhat.com>.
66621 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66623         timespec: use cast and not conditional, as truncation isn't possible
66624         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66625         instead of a conditional.  Comment about the situation in more detail.
66626         This undoes most of the 2009-10-29 patch.
66628 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66630         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66631         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66632         * lib/unistr/u8-strchr.c: Likewise.
66633         * modules/unistr/u8-chr: Depend on memchr.
66635         unistr/u*-strchr: add tests
66636         * modules/unistr/u8-strchr-tests: New file.
66637         * modules/unistr/u16-strchr-tests: New file.
66638         * modules/unistr/u32-strchr-tests: New file.
66639         * tests/unistr/test-strchr.h: New file.
66640         * tests/unistr/test-u8-strchr.c: New file.
66641         * tests/unistr/test-u16-strchr.c: New file.
66642         * tests/unistr/test-u32-strchr.c: New file.
66644         unistr/u*-chr: test multibyte sequences more
66645         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66646         test vector.
66647         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66648         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66649         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66651         unistr/u*-chr: test multibyte sequences
66652         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66654         unistr/u*-chr: prepare for multibyte tests
66655         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66656         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66657         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66658         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66659         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66660         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66662 2010-07-18  Bruno Haible  <bruno@clisp.org>
66664         unistr/u8-strchr: Optimize non-ASCII argument case.
66665         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66666         because the first byte often matches anyway.
66667         Reported by Pádraig Brady <P@draigbrady.com>.
66669 2010-07-15  Karl Berry  <karl@gnu.org>
66671         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66673 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66675         getcwd: on Solaris, work better if ancestors are inaccessible
66676         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66677         buffer and size, try again with a large buffer.  This works better
66678         on Solaris, since its getcwd succeeds even if the path to the root
66679         is inaccessible, and this is helpful in common cases such as .zfs
66680         hidden directories.  Problem reported by J Chapman Flack in
66681         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66682         Use system getcwd if it's declared, not merely if it's partly
66683         working; use the partly-working test only to avoid needless effort
66684         if the system getcwd fails.
66685         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66686         comment that was already obsolete and is now even more obsolete.
66687         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66688         now might call strdup.
66690 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66692         pthread: Add enough so that coreutils/src/sort.c compiles.
66693         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66694         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66695         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66696         Include <sys/types.h>, in case it defines pthread_t.
66697         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66698         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66699         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66700         (pthread_rwlockattr_t, pthread_spinlock_t):
66701         New typedefs, if HAVE_PTHREAD_T is not defined.
66702         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66703         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66704         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66705         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66706         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66707         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66708         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66709         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66710         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66711         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66712         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66713         New macros.
66714         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66715         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66716         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66717         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66718         (pthread_spin_unlock): New dummy functions.
66719         (pthread_create): Return EAGAIN; don't set errno.
66720         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66721         require AC_C_INLINE.
66722         * modules/pthread (Depends-on): Add sched, time.
66723         (pthread.h): Use AM_V_GEN.
66725 2010-07-13  Bruno Haible  <bruno@clisp.org>
66727         striconveh: Don't malloc memory if the result buffer is sufficient.
66728         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66729         buffer if its size is sufficient.
66730         Reported by Ludovic Courtès <ludo@gnu.org>.
66732 2010-07-13  Bruno Haible  <bruno@clisp.org>
66734         strtod: Add safety check.
66735         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66737 2010-07-12  Bruno Haible  <bruno@clisp.org>
66739         Unify tests that set gl_cv_func_ldexpl_no_libm.
66740         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66741         gl_FUNC_LDEXPL.
66742         (gl_FUNC_LDEXPL): Invoke it.
66743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66745 2010-07-12  Bruno Haible  <bruno@clisp.org>
66747         Unify tests that set gl_cv_func_ldexp_no_libm.
66748         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66749         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66750         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66751         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66752         * modules/strtod (Files): Add m4/ldexp.m4.
66754 2010-07-12  Bruno Haible  <bruno@clisp.org>
66756         Unify tests that set gl_cv_func_frexpl_no_libm.
66757         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66758         gl_FUNC_FREXPL_NO_LIBM.
66759         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66762 2010-07-12  Bruno Haible  <bruno@clisp.org>
66764         Unify tests that set gl_cv_func_frexp_no_libm.
66765         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66766         gl_FUNC_FREXP_NO_LIBM.
66767         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66768         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66770 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66772         memcoll: clarify sizes versus lengths, document better, and tweak perf
66773         * lib/memcoll.c (strcoll_loop, memcoll0):
66774         Improve quality of descriptive comments.  Name variables
66775         consistently as to whether they are lengths (which do not include
66776         terminating null) versus sizes (which do).
66777         * lib/xmemcoll.c (xmemcoll0): Likewise.
66778         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66779         returned when s1size == 0; this is easier to compile and saves
66780         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66782 2010-07-12  Bruno Haible  <bruno@clisp.org>
66784         Tests for module '_Exit'.
66785         * modules/_Exit-tests: New file.
66786         * tests/test-_Exit.sh: New file.
66787         * tests/test-_Exit.c: New file.
66789         New module '_Exit'.
66790         * lib/stdlib.in.h (__attribute__): New macro.
66791         (_Exit): New declaration.
66792         * lib/_Exit.c: New file.
66793         * m4/_Exit.m4: New file.
66794         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66795         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66796         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66797         * modules/_Exit: New file.
66798         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66799         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66801 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66803         strtod: make it more-accurate typically, and don't require libm
66804         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66805         Include limits.h.  Don't include string.h.
66806         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66807         (locale_isspace): New function, so that no casts are needed to
66808         check whether *s is a space.
66809         (ldexp): Provide an unused dummy if not available.
66810         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66811         (strtod): Use them.  This implementation prefers to use the
66812         underlying strtod if available, falling back on our own code
66813         only to fix known bugs.  This is more likely to produce an
66814         accurate result.  Also, it avoids the use of libm functions.
66815         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66816         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66817         was absent, but it caused a test failure with coreutils.
66818         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66819         with libm.
66820         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66821         * modules/strtod-tests (Makefile.am): Likewise.
66823 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66824             Bruno Haible  <bruno@clisp.org>
66826         unistr/u8-strchr: Optimize ASCII argument case.
66827         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66829 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66831         (x)memcoll: minor tweaks
66832         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66833         is after the type that it qualifies.
66834         (memcoll0): Likewise.
66835         * lib/memcoll.h (memcoll0): Likewise.
66836         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66837         * lib/xmemcoll.h (xmemcoll0): Likewise.
66838         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66839         differs from memcoll in that the NUL byte is part of the argument.
66840         Omit the abort-checks, as performance is a real issue here.  Plus,
66841         the checks were wrong anyway (an off-by-one error).  Omit local
66842         variable 'diff', as it's a bit clearer that way.
66843         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66844         no longer needed.
66846 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66848         (x)memcoll: speedup when input is known to be NUL delimited
66849         * lib/memcoll.c: Include stdlib.
66850         (memcoll0): New function.
66851         (strcoll_loop): New function, refactored for use in both memcoll
66852         and memcoll0.
66853         * lib/memcoll.h (memcoll0): Add prototype.
66854         * lib/xmemcoll.c (xmemcoll0): New function.
66855         (collate_error): New function, refactored for use in both xmemcoll
66856         and xmemcoll0.
66857         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66858         * m4/memcoll.m4: add inline invocation.
66860 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66862         * build-aux/bootstrap: Remove any local translations
66863         from the translation project synchronization directory,
66864         so that local only translations are not distributed.
66866 2010-07-04  Bruno Haible  <bruno@clisp.org>
66868         fsusage: Clarify which code applies to which platforms.
66869         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66870         platform.
66871         * lib/fsusage.c (get_fs_usage): Likewise.
66873 2010-07-04  Bruno Haible  <bruno@clisp.org>
66875         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66876         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66877         Reported by Martin Lambers <marlam@marlam.de>.
66879 2010-07-04  Jim Meyering  <meyering@redhat.com>
66881         hash: once again explicitly disallow insertion of NULL
66882         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66883         inserting a NULL pointer cannot work with these functions.
66884         Add a comment with details.
66885         This reverts part of the 2010-07-01 commit, 5bef1a35
66886         "hash: extend module to deal with non-pointer keys".
66888 2010-07-01  Bruno Haible  <bruno@clisp.org>
66890         stdbool: Update doc.
66891         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66892         Info from Christian Weisgerber <naddy@mips.inka.de>.
66894 2010-07-01  Jim Meyering  <meyering@redhat.com>
66896         hash: extend module to deal with non-pointer keys
66897         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66898         but that allows insertion of non-pointer entries.
66899         Do not disallow an ENTRY value of NULL.
66900         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66901         * lib/hash.h (hash_insert0): Declare.
66903 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66905         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66906         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66907         not present (i.e. with autoconf 2.59 and when using gettextize, not
66908         gnulib), require AC_GNU_SOURCE instead.
66910 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66912         idpriv-drop: Fix tests.
66913         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66914         not to the test-idpriv-droptemp program.
66916 2010-06-29  Bruno Haible  <bruno@clisp.org>
66918         string: Fix syntax error with g++ 2.96.
66919         * lib/string.in.h (__pure__): Remove definition.
66920         (_GL_ATTRIBUTE_PURE): New macro.
66921         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66922         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66923         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66925 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66927         unitypes: Fix bug introduced on 2010-05-18.
66928         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66930 2010-06-22  Eric Blake  <eblake@redhat.com>
66932         memmem: slight optimization
66933         * lib/str-two-way.h (critical_factorization): Update comments.
66934         Reduce work during factorization phase.
66935         Reported by Carlos Bueno <carlos@bueno.org>.
66937 2010-06-21  Bruno Haible  <bruno@clisp.org>
66939         Fix HAVE_CALLOC_POSIX misnomer.
66940         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66941         !HAVE_CALLOC_POSIX.
66942         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66943         HAVE_CALLOC_POSIX.
66944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66945         instead of HAVE_CALLOC_POSIX.
66946         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66947         HAVE_CALLOC_POSIX.
66949         Use modern idiom for calloc() replacement.
66950         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66951         AC_FUNC_CALLOC.
66952         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66953         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66954         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66955         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66956         (gl_REPLACE_CALLOC): New macro.
66958 2010-06-21  Bruno Haible  <bruno@clisp.org>
66960         Fix HAVE_REALLOC_POSIX misnomer.
66961         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66962         !HAVE_REALLOC_POSIX.
66963         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66964         HAVE_REALLOC_POSIX.
66965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66966         instead of HAVE_REALLOC_POSIX.
66967         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66968         HAVE_REALLOC_POSIX.
66970         Use modern idiom for realloc() replacement.
66971         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66972         AC_FUNC_REALLOC.
66973         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66974         Autoconf's AC_FUNC_REALLOC.
66975         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66976         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66977         (gl_REPLACE_REALLOC): New macro.
66978         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66980 2010-06-21  Bruno Haible  <bruno@clisp.org>
66982         Fix HAVE_MALLOC_POSIX misnomer.
66983         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66984         !HAVE_MALLOC_POSIX.
66985         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66986         HAVE_MALLOC_POSIX.
66987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66988         instead of HAVE_MALLOC_POSIX.
66989         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66990         HAVE_MALLOC_POSIX.
66992         Use modern idiom for malloc() replacement.
66993         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66994         AC_FUNC_MALLOC.
66995         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66996         Autoconf's AC_FUNC_MALLOC.
66997         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66998         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66999         (gl_REPLACE_MALLOC): New macro.
67000         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67002 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67004         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67005         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67006         This macro takes 3 arguments, not 4.
67008 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67010         ipv6: fix detection under mingw
67011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67012         in6_addr.
67014 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67016         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67017         that strtod() works when cross-compiling to a glibc version known
67018         to work.
67020 2010-06-15  Bruno Haible  <bruno@clisp.org>
67022         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67024 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67026         select: Correct timeout.
67027         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67029 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67031         git-version-gen: init shell var to avoid env var influence
67032         * build-aux/git-version-gen (v): Init shell var to empty.
67034 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67036         priv-set: Don't assume that priv.h exists merely because getppriv does.
67037         See Jan Andersen's bug report about AIX 5L in
67038         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67039         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67040         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67041         * lib/priv-set.h: Likewise.
67042         * tests/test-priv-set.c: Likewise.
67044 2010-06-13  Bruno Haible  <bruno@clisp.org>
67046         relocatable: Make it easier to test whether to install wrappers.
67047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67048         RELOCATABLE_VIA_WRAPPER.
67050 2010-06-13  Bruno Haible  <bruno@clisp.org>
67052         gnulib-tool: Display specified modules and dependencies differently.
67053         * gnulib-tool (func_show_module_list): New function.
67054         (func_import, func_create_testdir): Invoke it.
67055         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67057 2010-06-13  Bruno Haible  <bruno@clisp.org>
67059         gnulib-tool: Align code of func_import and func_create_testdir.
67060         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67061         specified_modules.
67063 2010-06-12  Jim Meyering  <meyering@redhat.com>
67065         test-inttostr: avoid spurious failure on Solaris 9
67066         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67067         to accept "%ju".  Reported by Bruno Haible.
67069 2010-06-11  Jim Meyering  <meyering@redhat.com>
67071         test-sys_socket: mark variables as used more readably
67072         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67073         as "used" explicitly via (void) statement casts.  This is more
67074         readable than using them in an artificial return expression.
67075         Suggestion from Bruno Haible.
67077 2010-06-11  Bruno Haible  <bruno@clisp.org>
67079         Avoid some more warnings from "gcc -Wwrite-strings".
67080         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67081         to 'const char *'.
67082         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67083         * tests/test-c-strcasestr.c (main): Likewise.
67084         * tests/test-mbscasestr1.c (main): Likewise.
67085         * tests/test-mbscasestr2.c (main): Likewise.
67086         * tests/test-memmem.c (main): Likewise.
67087         * tests/test-strstr.c (main): Likewise.
67088         * tests/test-strcasestr.c (main): Likewise.
67090 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67092         init.sh: change framework_failure_ to fail with status 99, not 1
67093         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67094         automake's parallel-tests rule that this is an unexpected failure,
67095         even if the test is listed in XFAIL_TESTS.
67097 2010-06-11  Jim Meyering  <meyering@redhat.com>
67099         test-inttostr: avoid warnings about 4-6KB literal strings
67100         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67101         Include "macros.h", for its definition of ASSERT.
67102         (CK): s/assert/ASSERT/
67103         * modules/inttostr-tests (Files): Add macros.h.
67105         init.sh: don't use $ME_ or skip_ before they are defined
67106         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67107         their first uses.  Also hoist their companions: warn_, fail_,
67108         framework_failure_, $stderr_fileno.  Prompted by a patch from
67109         Stefano Lattarini.
67111         test-sys_socket: avoid set-but-not-used warnings from gcc
67112         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67113         avoid warning about set-but-not-used variables.
67115         test-xvasprintf: avoid 'const' discard warnings
67116         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67117         "const" when assigning from literal strings.
67118         (test_xasprintf): Add "void" in function argument list to placate
67119         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67121         tests: avoid compilation warnings in argmatch and exclude tests...
67122         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67123         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67124         Since it always exits, declare with the "noreturn" attribute.
67125         * tests/test-argmatch.c: Likewise.
67127         tests: avoid 'const' discard warnings in mbsstr tests
67128         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67129         * tests/test-mbsstr2.c (main): Likewise.
67131         test-verify: avoid warning from gcc's -Wmissing-declarations
67132         * tests/test-verify.c (function): Declare to be static.
67134         test-inttostr.c: include <string.h> for use of strcmp
67135         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67137         test-linkat: avoid failed assertion on "other" architectures
67138         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67139         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67140         sparc: https://bugs.launchpad.net/bugs/591968
67142 2010-06-11  Jim Meyering  <meyering@redhat.com>
67144         printf.m4: avoid autoconf's "Expanded Before Required" warning
67145         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67146         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67147         autoconf warning.
67149 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67151         Replacement header templates are now named with ".in", not "_".
67152         * doc/gnulib-intro.texi: Correct.
67154 2010-06-10  Jim Meyering  <meyering@redhat.com>
67156         inttostr-tests: depend on snprintf, not snprintf-posix
67157         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67158         snprintf-posix, to avoid this aclocal failure:
67159           missing file gnulib-tests/vasnprintf.c
67160           configure.ac:45: error: expected source file, required through \
67161           AC_LIBSOURCES, not found
67163 2010-06-10  Jim Meyering  <meyering@redhat.com>
67165         inttostr: add a new function, inttostr, and tests
67166         The namesake function was not available.  The existence of the
67167         template file, inttostr.c makes its addition nontrivial.
67168         * lib/anytostr.c: Rename from inttostr.c.
67169         (anytostr): Rename from inttostr.
67170         * lib/inttostr.c: New file.
67171         * modules/inttostr (Files): Add anytostr.c.
67172         (Makefile.am): Set lib_SOURCES instead of ...
67173         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67174         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67175         * lib/offtostr.c: Likewise.
67176         * lib/uinttostr.c: Likewise.
67177         * lib/umaxtostr.c: Likewise.
67178         * modules/inttostr-tests: New file.
67179         * tests/test-inttostr.c: New file.  Test these functions.
67181 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67182             Bruno Haible  <bruno@clisp.org>
67184         Add "Extending Gnulib" chapter to manual.
67185         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67186         chapter.
67187         (Extending Gnulib): New chapter.
67188         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67189         chapter.
67191 2010-06-09  Bruno Haible  <bruno@clisp.org>
67193         Avoid relocwrapper link errors due to gnulib replacement functions.
67194         * lib/areadlink.c: Use the system's malloc, realloc functions.
67195         (areadlink): Set errno to ENOMEM explicitly.
67196         * modules/areadlink (Depends-on): Remove malloc-posix.
67197         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67199 2010-06-09  Bruno Haible  <bruno@clisp.org>
67201         Avoid relocwrapper link errors due to gnulib replacement functions.
67202         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67203         * lib/malloca.c: Likewise.
67204         * lib/relocatable.c: Likewise.
67205         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67206         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67207         * lib/setenv.c: Use the system's malloc, realloc functions.
67208         * lib/strerror.c: Use the system's sprintf function.
67209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67211 2010-06-04  Bruno Haible  <bruno@clisp.org>
67213         Prefer documented low-level autoconf macro names.
67214         * m4/lib-link.m4: Use m4_translit instead of translit.
67215         * m4/environ.m4: Likewise.
67216         * m4/mathfunc.m4: Likewise.
67217         * m4/onceonly.m4: Likewise.
67218         * m4/stdint.m4: Likewise.
67219         Suggested by Eric Blake.
67221 2010-06-04  Martin Lambers  <marlam@marlam.de>
67222             Bruno Haible  <bruno@clisp.org>
67224         havelib: Allow library names with '+' characters.
67225         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67226         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67228 2010-06-09  Bruno Haible  <bruno@clisp.org>
67230         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67231         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67232         realloc failed.
67234 2010-06-08  Peter Simons  <simons@cryp.to>
67236         maint.mk: make the news-check rule more configurable
67237         * top/maint.mk (news-check-lines-spec): New variable.
67238         (news-check): Use "sed -n 1,10p" in place of "head".
67240 2010-06-07  Jim Meyering  <meyering@redhat.com>
67242         do-release-commit-and-tag: fix typo in --help
67243         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67245         regex: avoid new dead-code warning with gcc-4.6.0
67246         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67247         if-block containing a while-loop.  It's been unused for at least
67248         5 years.
67250 2010-06-05  Bruno Haible  <bruno@clisp.org>
67252         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67253         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67255 2010-06-04  Bruno Haible  <bruno@clisp.org>
67257         Update to GNU gettext 0.18.1.
67258         * modules/gettext (configure.ac): Require gettext infrastructure from
67259         version 0.18.1.
67261 2010-06-03  Bruno Haible  <bruno@clisp.org>
67263         Don't use AC_LIBOBJ with file names in subdirectories.
67264         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67265         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67266         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67267         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67268         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67269         gl_LIBUNISTRING_LIBSOURCE.
67270         (Makefile.am): Augment lib_SOURCES here, conditionally.
67271         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67273 2010-06-03  Bruno Haible  <bruno@clisp.org>
67275         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67276         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67277         expansion does not end with a newline.
67278         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67279         unnecessary newline.
67281 2010-06-03  Bruno Haible  <bruno@clisp.org>
67283         Reduce dependencies.
67284         * tests/test-quotearg.h: New file, extracted from
67285         tests/test-quotearg.c.
67286         * tests/test-quotearg-simple.c: New file, extracted from
67287         tests/test-quotearg.c.
67288         * tests/test-quotearg.c: Don't include <ctype.h>.
67289         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67290         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67291         use_quote_double_quotes, use_quotearg_colon): Moved to
67292         tests/test-quotearg.h.
67293         (results_g, flag_results, custom_quotes, custom_results): Moved
67294         to tests/test-quotearg-simple.c.
67295         (main): Moved the part that does not depend on gettext to
67296         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67297         performed.
67298         * modules/quotearg-simple: New file.
67299         * modules/quotearg-simple-tests: New file.
67300         * modules/quotearg (Depends-on): Add quotearg-simple.
67301         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67302         (Files): Add tests/test-quotearg.h.
67303         Reported by Paolo Bonzini.
67305 2010-06-03  Bruno Haible  <bruno@clisp.org>
67307         Reduce dependencies.
67308         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67310 2010-06-03  Bruno Haible  <bruno@clisp.org>
67312         time: Undefine more broken macros.
67313         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67314         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67315         Reported by Eric Blake.
67317 2010-06-03  Bruno Haible  <bruno@clisp.org>
67319         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67320         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67321         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67322         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67323         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67324         Reported by Ludovic Courtès <ludo@gnu.org>.
67326 2010-06-02  Eric Blake  <eblake@redhat.com>
67328         time: work with mingw + pthreads-win32 library
67329         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67330         if timespec is defined only in pthread.h.
67331         * modules/time (Makefile.am): Substitute it.
67332         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67333         <pthread.h>, when needed.
67334         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67335         from the library.
67337 2010-05-31  Bruno Haible  <bruno@clisp.org>
67339         Avoid expanding two macros in the wrong order.
67340         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67341         gl_LIBUNISTRING if it is defined.
67342         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67343         autoconf >= 2.64.
67344         Reported by Ludovic Courtès <ludo@gnu.org>.
67346 2010-05-27  Jim Meyering  <meyering@redhat.com>
67348         maint.mk: also prohibit "#undef" of always-defined symbols
67349         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67350         Allow more than one space before the symbol name.
67351         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67352         the regexp uses alternation.
67354 2010-05-26  Eric Blake  <eblake@redhat.com>
67356         maint.mk: avoid echo -e
67357         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67358         Convert all uses of echo -* to printf.
67359         Reported by Matthias Bolte.
67361 2010-05-25  Bruno Haible  <bruno@clisp.org>
67363         Update to GNU gettext 0.18, part 2.
67364         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67365         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67367 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67369         Add missing include in test-pwrite.c.
67370         * tests/test-pwrite.c: Include string.h, for strcmp.
67372 2010-05-24  Bruno Haible  <bruno@clisp.org>
67374         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67376 2010-05-24  Bruno Haible  <bruno@clisp.org>
67378         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67379         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67380         iconveh_error argument.
67381         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67382         U_STRCONV_TO_LOCALE.
67383         * lib/unistr/u16-strcoll.c: Likewise.
67384         * lib/unistr/u32-strcoll.c: Likewise.
67385         * modules/unistr/u8-strcoll (Depends-on): Add
67386         uniconv/u8-strconv-to-enc, localcharset. Remove
67387         uniconv/u8-strconv-to-locale.
67388         (configure.ac): Bump version number.
67389         * modules/unistr/u16-strcoll (Depends-on): Add
67390         uniconv/u16-strconv-to-enc, localcharset. Remove
67391         uniconv/u16-strconv-to-locale.
67392         (configure.ac): Bump version number.
67393         * modules/unistr/u32-strcoll (Depends-on): Add
67394         uniconv/u32-strconv-to-enc, localcharset. Remove
67395         uniconv/u32-strconv-to-locale.
67396         (configure.ac): Bump version number.
67398 2010-05-24  Bruno Haible  <bruno@clisp.org>
67400         Avoid a test failure on NetBSD 5.0.
67401         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67402         an iconv() bug.
67404 2010-05-24  Bruno Haible  <bruno@clisp.org>
67406         Adjust #include directive style.
67407         * modules/regex (Includes): Recommend to write <regex.h>.
67409 2010-05-24  Bruno Haible  <bruno@clisp.org>
67411         regex: Don't require alloca.
67412         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67413         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67414         only inside if (0).
67416 2010-05-23  Jim Meyering  <meyering@redhat.com>
67418         test-renameat.c: include <sys/stat.h>
67419         * tests/test-renameat.c: Include <sys/stat.h>; required for
67420         definition of S_IS* macros.
67422 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67424         Update maintainer documentation for 'relocatable-prog' module.
67425         * doc/relocatable-maint.texi: Update.
67426         Comments by Bruno Haible.
67428 2010-05-23  Bruno Haible  <bruno@clisp.org>
67430         git-merge-changelog: Enable --split-merged-entry by default.
67431         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67432         (usage): Don't mention this option any more.
67433         Reported by Ralf Wildenhues.
67435 2010-05-23  Jim Meyering  <meyering@redhat.com>
67437         test-pwrite: do not leave behind a test file named "out"
67438         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67439         The trivial-looking use of init.sh is really necessary.
67440         It ensures that the temporary file, "out", is created in
67441         a temporary directory, and removed upon termination.
67442         * tests/test-pwrite.sh: Re-add file.
67443         * modules/pwrite-tests: Reference it.
67445 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67447         Fix output redirection buglet in init.sh.
67448         * tests/init.sh: Fix redirection of stderr.
67450 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67452         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67454 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67456         * modules/valgrind-tests: New file.
67457         * m4/valgrind-tests.m4: New file.
67458         * doc/valgrind-tests.texi: New file.
67459         * doc/gnulib.texi (Running self-tests under valgrind): New
67460         section.
67462 2010-05-19  Bruno Haible  <bruno@clisp.org>
67464         Clean up dead code in recent commit.
67465         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67466         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67467         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67468         Suggested by Paolo Bonzini.
67470 2010-05-19  Bruno Haible  <bruno@clisp.org>
67472         Avoid valgrind error reports from libunistring.
67473         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67474         * modules/libunistring (Files): Add it.
67475         * modules/libunistring-optional (Files): Likewise.
67477 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67478             Bruno Haible  <bruno@clisp.org>
67480         New module 'libunistring-optional'.
67481         * modules/libunistring-optional: New file.
67482         * m4/libunistring-base.m4: New file.
67483         * m4/libunistring-optional.m4: New file.
67484         * lib/unicase.in.h: Renamed from lib/unicase.h.
67485         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67486         * lib/unictype.in.h: Renamed from lib/unictype.h.
67487         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67488         * lib/uniname.in.h: Renamed from lib/uniname.h.
67489         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67490         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67491         * lib/unistr.in.h: Renamed from lib/unistr.h.
67492         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67493         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67494         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67495         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67496         gl_LIBUNISTRING. If the library was found, determine the installed
67497         version and set LIBUNISTRING_VERSION.
67498         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67499         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67500         handle a configuration option --with-included-libunistring.
67501         * modules/libunistring (Files): Add m4/absolute-header.m4.
67502         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67503         Add m4/libunistring-base.m4.
67504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67505         (Makefile.am): Build unicase.h from unicase.in.h.
67506         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67507         Add m4/libunistring-base.m4.
67508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67509         (Makefile.am): Build uniconv.h from uniconv.in.h.
67510         * modules/unictype/base (Files): Use unictype.in.h instead of
67511         unictype.h. Add m4/libunistring-base.m4.
67512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67513         (Makefile.am): Build unictype.h from unictype.in.h.
67514         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67515         Add m4/libunistring-base.m4.
67516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67517         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67518         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67519         Add m4/libunistring-base.m4.
67520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67521         (Makefile.am): Build uniname.h from uniname.in.h.
67522         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67523         Add m4/libunistring-base.m4.
67524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67525         (Makefile.am): Build uninorm.h from uninorm.in.h.
67526         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67527         unistdio.h. Add m4/libunistring-base.m4.
67528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67529         (Makefile.am): Build unistdio.h from unistdio.in.h.
67530         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67531         Add m4/libunistring-base.m4.
67532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67533         (Makefile.am): Build unistr.h from unistr.in.h.
67534         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67535         Add m4/libunistring-base.m4.
67536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67537         (Makefile.am): Build unitypes.h from unitypes.in.h.
67538         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67539         Add m4/libunistring-base.m4.
67540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67541         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67542         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67543         uniwidth.h. Add m4/libunistring-base.m4.
67544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67545         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67546         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67547         instead of augmenting lib_SOURCES.
67548         * modules/unicase/empty-suffix-context: Likewise.
67549         * modules/unicase/locale-language: Likewise.
67550         * modules/unicase/tolower: Likewise.
67551         * modules/unicase/totitle: Likewise.
67552         * modules/unicase/toupper: Likewise.
67553         * modules/unicase/u8-casecmp: Likewise.
67554         * modules/unicase/u8-casecoll: Likewise.
67555         * modules/unicase/u8-casefold: Likewise.
67556         * modules/unicase/u8-casexfrm: Likewise.
67557         * modules/unicase/u8-ct-casefold: Likewise.
67558         * modules/unicase/u8-ct-tolower: Likewise.
67559         * modules/unicase/u8-ct-totitle: Likewise.
67560         * modules/unicase/u8-ct-toupper: Likewise.
67561         * modules/unicase/u8-is-cased: Likewise.
67562         * modules/unicase/u8-is-casefolded: Likewise.
67563         * modules/unicase/u8-is-lowercase: Likewise.
67564         * modules/unicase/u8-is-titlecase: Likewise.
67565         * modules/unicase/u8-is-uppercase: Likewise.
67566         * modules/unicase/u8-prefix-context: Likewise.
67567         * modules/unicase/u8-suffix-context: Likewise.
67568         * modules/unicase/u8-tolower: Likewise.
67569         * modules/unicase/u8-totitle: Likewise.
67570         * modules/unicase/u8-toupper: Likewise.
67571         * modules/unicase/u16-casecmp: Likewise.
67572         * modules/unicase/u16-casecoll: Likewise.
67573         * modules/unicase/u16-casefold: Likewise.
67574         * modules/unicase/u16-casexfrm: Likewise.
67575         * modules/unicase/u16-ct-casefold: Likewise.
67576         * modules/unicase/u16-ct-tolower: Likewise.
67577         * modules/unicase/u16-ct-totitle: Likewise.
67578         * modules/unicase/u16-ct-toupper: Likewise.
67579         * modules/unicase/u16-is-cased: Likewise.
67580         * modules/unicase/u16-is-casefolded: Likewise.
67581         * modules/unicase/u16-is-lowercase: Likewise.
67582         * modules/unicase/u16-is-titlecase: Likewise.
67583         * modules/unicase/u16-is-uppercase: Likewise.
67584         * modules/unicase/u16-prefix-context: Likewise.
67585         * modules/unicase/u16-suffix-context: Likewise.
67586         * modules/unicase/u16-tolower: Likewise.
67587         * modules/unicase/u16-totitle: Likewise.
67588         * modules/unicase/u16-toupper: Likewise.
67589         * modules/unicase/u32-casecmp: Likewise.
67590         * modules/unicase/u32-casecoll: Likewise.
67591         * modules/unicase/u32-casefold: Likewise.
67592         * modules/unicase/u32-casexfrm: Likewise.
67593         * modules/unicase/u32-ct-casefold: Likewise.
67594         * modules/unicase/u32-ct-tolower: Likewise.
67595         * modules/unicase/u32-ct-totitle: Likewise.
67596         * modules/unicase/u32-ct-toupper: Likewise.
67597         * modules/unicase/u32-is-cased: Likewise.
67598         * modules/unicase/u32-is-casefolded: Likewise.
67599         * modules/unicase/u32-is-lowercase: Likewise.
67600         * modules/unicase/u32-is-titlecase: Likewise.
67601         * modules/unicase/u32-is-uppercase: Likewise.
67602         * modules/unicase/u32-prefix-context: Likewise.
67603         * modules/unicase/u32-suffix-context: Likewise.
67604         * modules/unicase/u32-tolower: Likewise.
67605         * modules/unicase/u32-totitle: Likewise.
67606         * modules/unicase/u32-toupper: Likewise.
67607         * modules/unicase/ulc-casecmp: Likewise.
67608         * modules/unicase/ulc-casecoll: Likewise.
67609         * modules/unicase/ulc-casexfrm: Likewise.
67610         * modules/uniconv/u8-conv-from-enc: Likewise.
67611         * modules/uniconv/u8-conv-to-enc: Likewise.
67612         * modules/uniconv/u8-strconv-from-enc: Likewise.
67613         * modules/uniconv/u8-strconv-from-locale: Likewise.
67614         * modules/uniconv/u8-strconv-to-enc: Likewise.
67615         * modules/uniconv/u8-strconv-to-locale: Likewise.
67616         * modules/uniconv/u16-conv-from-enc: Likewise.
67617         * modules/uniconv/u16-conv-to-enc: Likewise.
67618         * modules/uniconv/u16-strconv-from-enc: Likewise.
67619         * modules/uniconv/u16-strconv-from-locale: Likewise.
67620         * modules/uniconv/u16-strconv-to-enc: Likewise.
67621         * modules/uniconv/u16-strconv-to-locale: Likewise.
67622         * modules/uniconv/u32-conv-from-enc: Likewise.
67623         * modules/uniconv/u32-conv-to-enc: Likewise.
67624         * modules/uniconv/u32-strconv-from-enc: Likewise.
67625         * modules/uniconv/u32-strconv-from-locale: Likewise.
67626         * modules/uniconv/u32-strconv-to-enc: Likewise.
67627         * modules/uniconv/u32-strconv-to-locale: Likewise.
67628         * modules/unictype/bidicategory-byname: Likewise.
67629         * modules/unictype/bidicategory-name: Likewise.
67630         * modules/unictype/bidicategory-of: Likewise.
67631         * modules/unictype/bidicategory-test: Likewise.
67632         * modules/unictype/block-list: Likewise.
67633         * modules/unictype/block-test: Likewise.
67634         * modules/unictype/category-C: Likewise.
67635         * modules/unictype/category-Cc: Likewise.
67636         * modules/unictype/category-Cf: Likewise.
67637         * modules/unictype/category-Cn: Likewise.
67638         * modules/unictype/category-Co: Likewise.
67639         * modules/unictype/category-Cs: Likewise.
67640         * modules/unictype/category-L: Likewise.
67641         * modules/unictype/category-Ll: Likewise.
67642         * modules/unictype/category-Lm: Likewise.
67643         * modules/unictype/category-Lo: Likewise.
67644         * modules/unictype/category-Lt: Likewise.
67645         * modules/unictype/category-Lu: Likewise.
67646         * modules/unictype/category-M: Likewise.
67647         * modules/unictype/category-Mc: Likewise.
67648         * modules/unictype/category-Me: Likewise.
67649         * modules/unictype/category-Mn: Likewise.
67650         * modules/unictype/category-N: Likewise.
67651         * modules/unictype/category-Nd: Likewise.
67652         * modules/unictype/category-Nl: Likewise.
67653         * modules/unictype/category-No: Likewise.
67654         * modules/unictype/category-P: Likewise.
67655         * modules/unictype/category-Pc: Likewise.
67656         * modules/unictype/category-Pd: Likewise.
67657         * modules/unictype/category-Pe: Likewise.
67658         * modules/unictype/category-Pf: Likewise.
67659         * modules/unictype/category-Pi: Likewise.
67660         * modules/unictype/category-Po: Likewise.
67661         * modules/unictype/category-Ps: Likewise.
67662         * modules/unictype/category-S: Likewise.
67663         * modules/unictype/category-Sc: Likewise.
67664         * modules/unictype/category-Sk: Likewise.
67665         * modules/unictype/category-Sm: Likewise.
67666         * modules/unictype/category-So: Likewise.
67667         * modules/unictype/category-Z: Likewise.
67668         * modules/unictype/category-Zl: Likewise.
67669         * modules/unictype/category-Zp: Likewise.
67670         * modules/unictype/category-Zs: Likewise.
67671         * modules/unictype/category-and: Likewise.
67672         * modules/unictype/category-and-not: Likewise.
67673         * modules/unictype/category-byname: Likewise.
67674         * modules/unictype/category-name: Likewise.
67675         * modules/unictype/category-none: Likewise.
67676         * modules/unictype/category-of: Likewise.
67677         * modules/unictype/category-or: Likewise.
67678         * modules/unictype/category-test: Likewise.
67679         * modules/unictype/combining-class: Likewise.
67680         * modules/unictype/ctype-alnum: Likewise.
67681         * modules/unictype/ctype-alpha: Likewise.
67682         * modules/unictype/ctype-blank: Likewise.
67683         * modules/unictype/ctype-cntrl: Likewise.
67684         * modules/unictype/ctype-digit: Likewise.
67685         * modules/unictype/ctype-graph: Likewise.
67686         * modules/unictype/ctype-lower: Likewise.
67687         * modules/unictype/ctype-print: Likewise.
67688         * modules/unictype/ctype-punct: Likewise.
67689         * modules/unictype/ctype-space: Likewise.
67690         * modules/unictype/ctype-upper: Likewise.
67691         * modules/unictype/ctype-xdigit: Likewise.
67692         * modules/unictype/decimal-digit: Likewise.
67693         * modules/unictype/digit: Likewise.
67694         * modules/unictype/mirror: Likewise.
67695         * modules/unictype/numeric: Likewise.
67696         * modules/unictype/property-alphabetic: Likewise.
67697         * modules/unictype/property-ascii-hex-digit: Likewise.
67698         * modules/unictype/property-bidi-arabic-digit: Likewise.
67699         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67700         * modules/unictype/property-bidi-block-separator: Likewise.
67701         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67702         * modules/unictype/property-bidi-common-separator: Likewise.
67703         * modules/unictype/property-bidi-control: Likewise.
67704         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67705         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67706         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67707         * modules/unictype/property-bidi-european-digit: Likewise.
67708         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67709         * modules/unictype/property-bidi-left-to-right: Likewise.
67710         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67711         * modules/unictype/property-bidi-other-neutral: Likewise.
67712         * modules/unictype/property-bidi-pdf: Likewise.
67713         * modules/unictype/property-bidi-segment-separator: Likewise.
67714         * modules/unictype/property-bidi-whitespace: Likewise.
67715         * modules/unictype/property-byname: Likewise.
67716         * modules/unictype/property-combining: Likewise.
67717         * modules/unictype/property-composite: Likewise.
67718         * modules/unictype/property-currency-symbol: Likewise.
67719         * modules/unictype/property-dash: Likewise.
67720         * modules/unictype/property-decimal-digit: Likewise.
67721         * modules/unictype/property-default-ignorable-code-point: Likewise.
67722         * modules/unictype/property-deprecated: Likewise.
67723         * modules/unictype/property-diacritic: Likewise.
67724         * modules/unictype/property-extender: Likewise.
67725         * modules/unictype/property-format-control: Likewise.
67726         * modules/unictype/property-grapheme-base: Likewise.
67727         * modules/unictype/property-grapheme-extend: Likewise.
67728         * modules/unictype/property-grapheme-link: Likewise.
67729         * modules/unictype/property-hex-digit: Likewise.
67730         * modules/unictype/property-hyphen: Likewise.
67731         * modules/unictype/property-id-continue: Likewise.
67732         * modules/unictype/property-id-start: Likewise.
67733         * modules/unictype/property-ideographic: Likewise.
67734         * modules/unictype/property-ids-binary-operator: Likewise.
67735         * modules/unictype/property-ids-trinary-operator: Likewise.
67736         * modules/unictype/property-ignorable-control: Likewise.
67737         * modules/unictype/property-iso-control: Likewise.
67738         * modules/unictype/property-join-control: Likewise.
67739         * modules/unictype/property-left-of-pair: Likewise.
67740         * modules/unictype/property-line-separator: Likewise.
67741         * modules/unictype/property-logical-order-exception: Likewise.
67742         * modules/unictype/property-lowercase: Likewise.
67743         * modules/unictype/property-math: Likewise.
67744         * modules/unictype/property-non-break: Likewise.
67745         * modules/unictype/property-not-a-character: Likewise.
67746         * modules/unictype/property-numeric: Likewise.
67747         * modules/unictype/property-other-alphabetic: Likewise.
67748         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67749         * modules/unictype/property-other-grapheme-extend: Likewise.
67750         * modules/unictype/property-other-id-continue: Likewise.
67751         * modules/unictype/property-other-id-start: Likewise.
67752         * modules/unictype/property-other-lowercase: Likewise.
67753         * modules/unictype/property-other-math: Likewise.
67754         * modules/unictype/property-other-uppercase: Likewise.
67755         * modules/unictype/property-paired-punctuation: Likewise.
67756         * modules/unictype/property-paragraph-separator: Likewise.
67757         * modules/unictype/property-pattern-syntax: Likewise.
67758         * modules/unictype/property-pattern-white-space: Likewise.
67759         * modules/unictype/property-private-use: Likewise.
67760         * modules/unictype/property-punctuation: Likewise.
67761         * modules/unictype/property-quotation-mark: Likewise.
67762         * modules/unictype/property-radical: Likewise.
67763         * modules/unictype/property-sentence-terminal: Likewise.
67764         * modules/unictype/property-soft-dotted: Likewise.
67765         * modules/unictype/property-space: Likewise.
67766         * modules/unictype/property-terminal-punctuation: Likewise.
67767         * modules/unictype/property-test: Likewise.
67768         * modules/unictype/property-titlecase: Likewise.
67769         * modules/unictype/property-unassigned-code-value: Likewise.
67770         * modules/unictype/property-unified-ideograph: Likewise.
67771         * modules/unictype/property-uppercase: Likewise.
67772         * modules/unictype/property-variation-selector: Likewise.
67773         * modules/unictype/property-white-space: Likewise.
67774         * modules/unictype/property-xid-continue: Likewise.
67775         * modules/unictype/property-xid-start: Likewise.
67776         * modules/unictype/property-zero-width: Likewise.
67777         * modules/unictype/scripts: Likewise.
67778         * modules/unictype/syntax-c-ident: Likewise.
67779         * modules/unictype/syntax-c-whitespace: Likewise.
67780         * modules/unictype/syntax-java-ident: Likewise.
67781         * modules/unictype/syntax-java-whitespace: Likewise.
67782         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67783         * modules/unilbrk/u8-width-linebreaks: Likewise.
67784         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67785         * modules/unilbrk/u16-width-linebreaks: Likewise.
67786         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67787         * modules/unilbrk/u32-width-linebreaks: Likewise.
67788         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67789         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67790         * modules/uniname/uniname: Likewise.
67791         * modules/uninorm/canonical-decomposition: Likewise.
67792         * modules/uninorm/composition: Likewise.
67793         * modules/uninorm/decomposing-form: Likewise.
67794         * modules/uninorm/decomposition: Likewise.
67795         * modules/uninorm/filter: Likewise.
67796         * modules/uninorm/nfc: Likewise.
67797         * modules/uninorm/nfd: Likewise.
67798         * modules/uninorm/nfkc: Likewise.
67799         * modules/uninorm/nfkd: Likewise.
67800         * modules/uninorm/u8-normalize: Likewise.
67801         * modules/uninorm/u8-normcmp: Likewise.
67802         * modules/uninorm/u8-normcoll: Likewise.
67803         * modules/uninorm/u8-normxfrm: Likewise.
67804         * modules/uninorm/u16-normalize: Likewise.
67805         * modules/uninorm/u16-normcmp: Likewise.
67806         * modules/uninorm/u16-normcoll: Likewise.
67807         * modules/uninorm/u16-normxfrm: Likewise.
67808         * modules/uninorm/u32-normalize: Likewise.
67809         * modules/uninorm/u32-normcmp: Likewise.
67810         * modules/uninorm/u32-normcoll: Likewise.
67811         * modules/uninorm/u32-normxfrm: Likewise.
67812         * modules/unistdio/u8-asnprintf: Likewise.
67813         * modules/unistdio/u8-asprintf: Likewise.
67814         * modules/unistdio/u8-snprintf: Likewise.
67815         * modules/unistdio/u8-sprintf: Likewise.
67816         * modules/unistdio/u8-u8-asnprintf: Likewise.
67817         * modules/unistdio/u8-u8-asprintf: Likewise.
67818         * modules/unistdio/u8-u8-snprintf: Likewise.
67819         * modules/unistdio/u8-u8-sprintf: Likewise.
67820         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67821         * modules/unistdio/u8-u8-vasprintf: Likewise.
67822         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67823         * modules/unistdio/u8-u8-vsprintf: Likewise.
67824         * modules/unistdio/u8-vasnprintf: Likewise.
67825         * modules/unistdio/u8-vasprintf: Likewise.
67826         * modules/unistdio/u8-vsnprintf: Likewise.
67827         * modules/unistdio/u8-vsprintf: Likewise.
67828         * modules/unistdio/u16-asnprintf: Likewise.
67829         * modules/unistdio/u16-asprintf: Likewise.
67830         * modules/unistdio/u16-snprintf: Likewise.
67831         * modules/unistdio/u16-sprintf: Likewise.
67832         * modules/unistdio/u16-u16-asnprintf: Likewise.
67833         * modules/unistdio/u16-u16-asprintf: Likewise.
67834         * modules/unistdio/u16-u16-snprintf: Likewise.
67835         * modules/unistdio/u16-u16-sprintf: Likewise.
67836         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67837         * modules/unistdio/u16-u16-vasprintf: Likewise.
67838         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67839         * modules/unistdio/u16-u16-vsprintf: Likewise.
67840         * modules/unistdio/u16-vasnprintf: Likewise.
67841         * modules/unistdio/u16-vasprintf: Likewise.
67842         * modules/unistdio/u16-vsnprintf: Likewise.
67843         * modules/unistdio/u16-vsprintf: Likewise.
67844         * modules/unistdio/u32-asnprintf: Likewise.
67845         * modules/unistdio/u32-asprintf: Likewise.
67846         * modules/unistdio/u32-snprintf: Likewise.
67847         * modules/unistdio/u32-sprintf: Likewise.
67848         * modules/unistdio/u32-u32-asnprintf: Likewise.
67849         * modules/unistdio/u32-u32-asprintf: Likewise.
67850         * modules/unistdio/u32-u32-snprintf: Likewise.
67851         * modules/unistdio/u32-u32-sprintf: Likewise.
67852         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67853         * modules/unistdio/u32-u32-vasprintf: Likewise.
67854         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67855         * modules/unistdio/u32-u32-vsprintf: Likewise.
67856         * modules/unistdio/u32-vasnprintf: Likewise.
67857         * modules/unistdio/u32-vasprintf: Likewise.
67858         * modules/unistdio/u32-vsnprintf: Likewise.
67859         * modules/unistdio/u32-vsprintf: Likewise.
67860         * modules/unistdio/ulc-asnprintf: Likewise.
67861         * modules/unistdio/ulc-asprintf: Likewise.
67862         * modules/unistdio/ulc-fprintf: Likewise.
67863         * modules/unistdio/ulc-snprintf: Likewise.
67864         * modules/unistdio/ulc-sprintf: Likewise.
67865         * modules/unistdio/ulc-vasnprintf: Likewise.
67866         * modules/unistdio/ulc-vasprintf: Likewise.
67867         * modules/unistdio/ulc-vfprintf: Likewise.
67868         * modules/unistdio/ulc-vsnprintf: Likewise.
67869         * modules/unistdio/ulc-vsprintf: Likewise.
67870         * modules/unistr/u8-check: Likewise.
67871         * modules/unistr/u8-chr: Likewise.
67872         * modules/unistr/u8-cmp: Likewise.
67873         * modules/unistr/u8-cmp2: Likewise.
67874         * modules/unistr/u8-cpy: Likewise.
67875         * modules/unistr/u8-cpy-alloc: Likewise.
67876         * modules/unistr/u8-endswith: Likewise.
67877         * modules/unistr/u8-mblen: Likewise.
67878         * modules/unistr/u8-mbsnlen: Likewise.
67879         * modules/unistr/u8-mbtouc: Likewise.
67880         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67881         * modules/unistr/u8-mbtoucr: Likewise.
67882         * modules/unistr/u8-move: Likewise.
67883         * modules/unistr/u8-next: Likewise.
67884         * modules/unistr/u8-prev: Likewise.
67885         * modules/unistr/u8-set: Likewise.
67886         * modules/unistr/u8-startswith: Likewise.
67887         * modules/unistr/u8-stpcpy: Likewise.
67888         * modules/unistr/u8-stpncpy: Likewise.
67889         * modules/unistr/u8-strcat: Likewise.
67890         * modules/unistr/u8-strchr: Likewise.
67891         * modules/unistr/u8-strcmp: Likewise.
67892         * modules/unistr/u8-strcoll: Likewise.
67893         * modules/unistr/u8-strcpy: Likewise.
67894         * modules/unistr/u8-strcspn: Likewise.
67895         * modules/unistr/u8-strdup: Likewise.
67896         * modules/unistr/u8-strlen: Likewise.
67897         * modules/unistr/u8-strmblen: Likewise.
67898         * modules/unistr/u8-strmbtouc: Likewise.
67899         * modules/unistr/u8-strncat: Likewise.
67900         * modules/unistr/u8-strncmp: Likewise.
67901         * modules/unistr/u8-strncpy: Likewise.
67902         * modules/unistr/u8-strnlen: Likewise.
67903         * modules/unistr/u8-strpbrk: Likewise.
67904         * modules/unistr/u8-strrchr: Likewise.
67905         * modules/unistr/u8-strspn: Likewise.
67906         * modules/unistr/u8-strstr: Likewise.
67907         * modules/unistr/u8-strtok: Likewise.
67908         * modules/unistr/u8-to-u16: Likewise.
67909         * modules/unistr/u8-to-u32: Likewise.
67910         * modules/unistr/u8-uctomb: Likewise.
67911         * modules/unistr/u16-check: Likewise.
67912         * modules/unistr/u16-chr: Likewise.
67913         * modules/unistr/u16-cmp: Likewise.
67914         * modules/unistr/u16-cmp2: Likewise.
67915         * modules/unistr/u16-cpy: Likewise.
67916         * modules/unistr/u16-cpy-alloc: Likewise.
67917         * modules/unistr/u16-endswith: Likewise.
67918         * modules/unistr/u16-mblen: Likewise.
67919         * modules/unistr/u16-mbsnlen: Likewise.
67920         * modules/unistr/u16-mbtouc: Likewise.
67921         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67922         * modules/unistr/u16-mbtoucr: Likewise.
67923         * modules/unistr/u16-move: Likewise.
67924         * modules/unistr/u16-next: Likewise.
67925         * modules/unistr/u16-prev: Likewise.
67926         * modules/unistr/u16-set: Likewise.
67927         * modules/unistr/u16-startswith: Likewise.
67928         * modules/unistr/u16-stpcpy: Likewise.
67929         * modules/unistr/u16-stpncpy: Likewise.
67930         * modules/unistr/u16-strcat: Likewise.
67931         * modules/unistr/u16-strchr: Likewise.
67932         * modules/unistr/u16-strcmp: Likewise.
67933         * modules/unistr/u16-strcoll: Likewise.
67934         * modules/unistr/u16-strcpy: Likewise.
67935         * modules/unistr/u16-strcspn: Likewise.
67936         * modules/unistr/u16-strdup: Likewise.
67937         * modules/unistr/u16-strlen: Likewise.
67938         * modules/unistr/u16-strmblen: Likewise.
67939         * modules/unistr/u16-strmbtouc: Likewise.
67940         * modules/unistr/u16-strncat: Likewise.
67941         * modules/unistr/u16-strncmp: Likewise.
67942         * modules/unistr/u16-strncpy: Likewise.
67943         * modules/unistr/u16-strnlen: Likewise.
67944         * modules/unistr/u16-strpbrk: Likewise.
67945         * modules/unistr/u16-strrchr: Likewise.
67946         * modules/unistr/u16-strspn: Likewise.
67947         * modules/unistr/u16-strstr: Likewise.
67948         * modules/unistr/u16-strtok: Likewise.
67949         * modules/unistr/u16-to-u32: Likewise.
67950         * modules/unistr/u16-to-u8: Likewise.
67951         * modules/unistr/u16-uctomb: Likewise.
67952         * modules/unistr/u32-check: Likewise.
67953         * modules/unistr/u32-chr: Likewise.
67954         * modules/unistr/u32-cmp: Likewise.
67955         * modules/unistr/u32-cmp2: Likewise.
67956         * modules/unistr/u32-cpy: Likewise.
67957         * modules/unistr/u32-cpy-alloc: Likewise.
67958         * modules/unistr/u32-endswith: Likewise.
67959         * modules/unistr/u32-mblen: Likewise.
67960         * modules/unistr/u32-mbsnlen: Likewise.
67961         * modules/unistr/u32-mbtouc: Likewise.
67962         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67963         * modules/unistr/u32-mbtoucr: Likewise.
67964         * modules/unistr/u32-move: Likewise.
67965         * modules/unistr/u32-next: Likewise.
67966         * modules/unistr/u32-prev: Likewise.
67967         * modules/unistr/u32-set: Likewise.
67968         * modules/unistr/u32-startswith: Likewise.
67969         * modules/unistr/u32-stpcpy: Likewise.
67970         * modules/unistr/u32-stpncpy: Likewise.
67971         * modules/unistr/u32-strcat: Likewise.
67972         * modules/unistr/u32-strchr: Likewise.
67973         * modules/unistr/u32-strcmp: Likewise.
67974         * modules/unistr/u32-strcoll: Likewise.
67975         * modules/unistr/u32-strcpy: Likewise.
67976         * modules/unistr/u32-strcspn: Likewise.
67977         * modules/unistr/u32-strdup: Likewise.
67978         * modules/unistr/u32-strlen: Likewise.
67979         * modules/unistr/u32-strmblen: Likewise.
67980         * modules/unistr/u32-strmbtouc: Likewise.
67981         * modules/unistr/u32-strncat: Likewise.
67982         * modules/unistr/u32-strncmp: Likewise.
67983         * modules/unistr/u32-strncpy: Likewise.
67984         * modules/unistr/u32-strnlen: Likewise.
67985         * modules/unistr/u32-strpbrk: Likewise.
67986         * modules/unistr/u32-strrchr: Likewise.
67987         * modules/unistr/u32-strspn: Likewise.
67988         * modules/unistr/u32-strstr: Likewise.
67989         * modules/unistr/u32-strtok: Likewise.
67990         * modules/unistr/u32-to-u16: Likewise.
67991         * modules/unistr/u32-to-u8: Likewise.
67992         * modules/unistr/u32-uctomb: Likewise.
67993         * modules/uniwbrk/u8-wordbreaks: Likewise.
67994         * modules/uniwbrk/u16-wordbreaks: Likewise.
67995         * modules/uniwbrk/u32-wordbreaks: Likewise.
67996         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67997         * modules/uniwbrk/wordbreak-property: Likewise.
67998         * modules/uniwidth/u8-strwidth: Likewise.
67999         * modules/uniwidth/u8-width: Likewise.
68000         * modules/uniwidth/u16-strwidth: Likewise.
68001         * modules/uniwidth/u16-width: Likewise.
68002         * modules/uniwidth/u32-strwidth: Likewise.
68003         * modules/uniwidth/u32-width: Likewise.
68004         * modules/uniwidth/width: Likewise.
68005         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68006         with $(LIBUNISTRING).
68007         * modules/unicase/ignorable-tests: Likewise.
68008         * modules/unicase/locale-language-tests: Likewise.
68009         * modules/unicase/tolower-tests: Likewise.
68010         * modules/unicase/totitle-tests: Likewise.
68011         * modules/unicase/toupper-tests: Likewise.
68012         * modules/unicase/u8-casecmp-tests: Likewise.
68013         * modules/unicase/u8-casecoll-tests: Likewise.
68014         * modules/unicase/u8-casefold-tests: Likewise.
68015         * modules/unicase/u8-is-cased-tests: Likewise.
68016         * modules/unicase/u8-is-casefolded-tests: Likewise.
68017         * modules/unicase/u8-is-lowercase-tests: Likewise.
68018         * modules/unicase/u8-is-titlecase-tests: Likewise.
68019         * modules/unicase/u8-is-uppercase-tests: Likewise.
68020         * modules/unicase/u8-tolower-tests: Likewise.
68021         * modules/unicase/u8-totitle-tests: Likewise.
68022         * modules/unicase/u8-toupper-tests: Likewise.
68023         * modules/unicase/u16-casecmp-tests: Likewise.
68024         * modules/unicase/u16-casecoll-tests: Likewise.
68025         * modules/unicase/u16-casefold-tests: Likewise.
68026         * modules/unicase/u16-is-cased-tests: Likewise.
68027         * modules/unicase/u16-is-casefolded-tests: Likewise.
68028         * modules/unicase/u16-is-lowercase-tests: Likewise.
68029         * modules/unicase/u16-is-titlecase-tests: Likewise.
68030         * modules/unicase/u16-is-uppercase-tests: Likewise.
68031         * modules/unicase/u16-tolower-tests: Likewise.
68032         * modules/unicase/u16-totitle-tests: Likewise.
68033         * modules/unicase/u16-toupper-tests: Likewise.
68034         * modules/unicase/u32-casecmp-tests: Likewise.
68035         * modules/unicase/u32-casecoll-tests: Likewise.
68036         * modules/unicase/u32-casefold-tests: Likewise.
68037         * modules/unicase/u32-is-cased-tests: Likewise.
68038         * modules/unicase/u32-is-casefolded-tests: Likewise.
68039         * modules/unicase/u32-is-lowercase-tests: Likewise.
68040         * modules/unicase/u32-is-titlecase-tests: Likewise.
68041         * modules/unicase/u32-is-uppercase-tests: Likewise.
68042         * modules/unicase/u32-tolower-tests: Likewise.
68043         * modules/unicase/u32-totitle-tests: Likewise.
68044         * modules/unicase/u32-toupper-tests: Likewise.
68045         * modules/unicase/ulc-casecmp-tests: Likewise.
68046         * modules/unicase/ulc-casecoll-tests: Likewise.
68047         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68048         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68049         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68050         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68051         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68052         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68053         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68054         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68055         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68056         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68057         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68058         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68059         * modules/unictype/bidicategory-byname-tests: Likewise.
68060         * modules/unictype/bidicategory-name-tests: Likewise.
68061         * modules/unictype/bidicategory-of-tests: Likewise.
68062         * modules/unictype/bidicategory-test-tests: Likewise.
68063         * modules/unictype/block-list-tests: Likewise.
68064         * modules/unictype/block-of-tests: Likewise.
68065         * modules/unictype/block-test-tests: Likewise.
68066         * modules/unictype/category-C-tests: Likewise.
68067         * modules/unictype/category-Cc-tests: Likewise.
68068         * modules/unictype/category-Cf-tests: Likewise.
68069         * modules/unictype/category-Cn-tests: Likewise.
68070         * modules/unictype/category-Co-tests: Likewise.
68071         * modules/unictype/category-Cs-tests: Likewise.
68072         * modules/unictype/category-L-tests: Likewise.
68073         * modules/unictype/category-Ll-tests: Likewise.
68074         * modules/unictype/category-Lm-tests: Likewise.
68075         * modules/unictype/category-Lo-tests: Likewise.
68076         * modules/unictype/category-Lt-tests: Likewise.
68077         * modules/unictype/category-Lu-tests: Likewise.
68078         * modules/unictype/category-M-tests: Likewise.
68079         * modules/unictype/category-Mc-tests: Likewise.
68080         * modules/unictype/category-Me-tests: Likewise.
68081         * modules/unictype/category-Mn-tests: Likewise.
68082         * modules/unictype/category-N-tests: Likewise.
68083         * modules/unictype/category-Nd-tests: Likewise.
68084         * modules/unictype/category-Nl-tests: Likewise.
68085         * modules/unictype/category-No-tests: Likewise.
68086         * modules/unictype/category-P-tests: Likewise.
68087         * modules/unictype/category-Pc-tests: Likewise.
68088         * modules/unictype/category-Pd-tests: Likewise.
68089         * modules/unictype/category-Pe-tests: Likewise.
68090         * modules/unictype/category-Pf-tests: Likewise.
68091         * modules/unictype/category-Pi-tests: Likewise.
68092         * modules/unictype/category-Po-tests: Likewise.
68093         * modules/unictype/category-Ps-tests: Likewise.
68094         * modules/unictype/category-S-tests: Likewise.
68095         * modules/unictype/category-Sc-tests: Likewise.
68096         * modules/unictype/category-Sk-tests: Likewise.
68097         * modules/unictype/category-Sm-tests: Likewise.
68098         * modules/unictype/category-So-tests: Likewise.
68099         * modules/unictype/category-Z-tests: Likewise.
68100         * modules/unictype/category-Zl-tests: Likewise.
68101         * modules/unictype/category-Zp-tests: Likewise.
68102         * modules/unictype/category-Zs-tests: Likewise.
68103         * modules/unictype/category-and-not-tests: Likewise.
68104         * modules/unictype/category-and-tests: Likewise.
68105         * modules/unictype/category-byname-tests: Likewise.
68106         * modules/unictype/category-name-tests: Likewise.
68107         * modules/unictype/category-none-tests: Likewise.
68108         * modules/unictype/category-of-tests: Likewise.
68109         * modules/unictype/category-or-tests: Likewise.
68110         * modules/unictype/category-test-withtable-tests: Likewise.
68111         * modules/unictype/combining-class-tests: Likewise.
68112         * modules/unictype/ctype-alnum-tests: Likewise.
68113         * modules/unictype/ctype-alpha-tests: Likewise.
68114         * modules/unictype/ctype-blank-tests: Likewise.
68115         * modules/unictype/ctype-cntrl-tests: Likewise.
68116         * modules/unictype/ctype-digit-tests: Likewise.
68117         * modules/unictype/ctype-graph-tests: Likewise.
68118         * modules/unictype/ctype-lower-tests: Likewise.
68119         * modules/unictype/ctype-print-tests: Likewise.
68120         * modules/unictype/ctype-punct-tests: Likewise.
68121         * modules/unictype/ctype-space-tests: Likewise.
68122         * modules/unictype/ctype-upper-tests: Likewise.
68123         * modules/unictype/ctype-xdigit-tests: Likewise.
68124         * modules/unictype/decimal-digit-tests: Likewise.
68125         * modules/unictype/digit-tests: Likewise.
68126         * modules/unictype/mirror-tests: Likewise.
68127         * modules/unictype/numeric-tests: Likewise.
68128         * modules/unictype/property-alphabetic-tests: Likewise.
68129         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68130         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68131         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68132         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68133         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68134         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68135         * modules/unictype/property-bidi-control-tests: Likewise.
68136         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68137         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68138         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68139         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68140         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68141         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68142         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68143         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68144         * modules/unictype/property-bidi-pdf-tests: Likewise.
68145         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68146         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68147         * modules/unictype/property-byname-tests: Likewise.
68148         * modules/unictype/property-combining-tests: Likewise.
68149         * modules/unictype/property-composite-tests: Likewise.
68150         * modules/unictype/property-currency-symbol-tests: Likewise.
68151         * modules/unictype/property-dash-tests: Likewise.
68152         * modules/unictype/property-decimal-digit-tests: Likewise.
68153         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68154         * modules/unictype/property-deprecated-tests: Likewise.
68155         * modules/unictype/property-diacritic-tests: Likewise.
68156         * modules/unictype/property-extender-tests: Likewise.
68157         * modules/unictype/property-format-control-tests: Likewise.
68158         * modules/unictype/property-grapheme-base-tests: Likewise.
68159         * modules/unictype/property-grapheme-extend-tests: Likewise.
68160         * modules/unictype/property-grapheme-link-tests: Likewise.
68161         * modules/unictype/property-hex-digit-tests: Likewise.
68162         * modules/unictype/property-hyphen-tests: Likewise.
68163         * modules/unictype/property-id-continue-tests: Likewise.
68164         * modules/unictype/property-id-start-tests: Likewise.
68165         * modules/unictype/property-ideographic-tests: Likewise.
68166         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68167         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68168         * modules/unictype/property-ignorable-control-tests: Likewise.
68169         * modules/unictype/property-iso-control-tests: Likewise.
68170         * modules/unictype/property-join-control-tests: Likewise.
68171         * modules/unictype/property-left-of-pair-tests: Likewise.
68172         * modules/unictype/property-line-separator-tests: Likewise.
68173         * modules/unictype/property-logical-order-exception-tests: Likewise.
68174         * modules/unictype/property-lowercase-tests: Likewise.
68175         * modules/unictype/property-math-tests: Likewise.
68176         * modules/unictype/property-non-break-tests: Likewise.
68177         * modules/unictype/property-not-a-character-tests: Likewise.
68178         * modules/unictype/property-numeric-tests: Likewise.
68179         * modules/unictype/property-other-alphabetic-tests: Likewise.
68180         * modules/unictype/property-other-default-ignorable-code-point-tests:
68181         Likewise.
68182         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68183         * modules/unictype/property-other-id-continue-tests: Likewise.
68184         * modules/unictype/property-other-id-start-tests: Likewise.
68185         * modules/unictype/property-other-lowercase-tests: Likewise.
68186         * modules/unictype/property-other-math-tests: Likewise.
68187         * modules/unictype/property-other-uppercase-tests: Likewise.
68188         * modules/unictype/property-paired-punctuation-tests: Likewise.
68189         * modules/unictype/property-paragraph-separator-tests: Likewise.
68190         * modules/unictype/property-pattern-syntax-tests: Likewise.
68191         * modules/unictype/property-pattern-white-space-tests: Likewise.
68192         * modules/unictype/property-private-use-tests: Likewise.
68193         * modules/unictype/property-punctuation-tests: Likewise.
68194         * modules/unictype/property-quotation-mark-tests: Likewise.
68195         * modules/unictype/property-radical-tests: Likewise.
68196         * modules/unictype/property-sentence-terminal-tests: Likewise.
68197         * modules/unictype/property-soft-dotted-tests: Likewise.
68198         * modules/unictype/property-space-tests: Likewise.
68199         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68200         * modules/unictype/property-test-tests: Likewise.
68201         * modules/unictype/property-titlecase-tests: Likewise.
68202         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68203         * modules/unictype/property-unified-ideograph-tests: Likewise.
68204         * modules/unictype/property-uppercase-tests: Likewise.
68205         * modules/unictype/property-variation-selector-tests: Likewise.
68206         * modules/unictype/property-white-space-tests: Likewise.
68207         * modules/unictype/property-xid-continue-tests: Likewise.
68208         * modules/unictype/property-xid-start-tests: Likewise.
68209         * modules/unictype/property-zero-width-tests: Likewise.
68210         * modules/unictype/scripts-tests: Likewise.
68211         * modules/unictype/syntax-c-ident-tests: Likewise.
68212         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68213         * modules/unictype/syntax-java-ident-tests: Likewise.
68214         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68215         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68216         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68217         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68218         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68219         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68220         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68221         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68222         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68223         * modules/uniname/uniname-tests: Likewise.
68224         * modules/uninorm/canonical-decomposition-tests: Likewise.
68225         * modules/uninorm/compat-decomposition-tests: Likewise.
68226         * modules/uninorm/composition-tests: Likewise.
68227         * modules/uninorm/decomposing-form-tests: Likewise.
68228         * modules/uninorm/decomposition-tests: Likewise.
68229         * modules/uninorm/filter-tests: Likewise.
68230         * modules/uninorm/nfc-tests: Likewise.
68231         * modules/uninorm/nfd-tests: Likewise.
68232         * modules/uninorm/nfkc-tests: Likewise.
68233         * modules/uninorm/nfkd-tests: Likewise.
68234         * modules/uninorm/u8-normcmp-tests: Likewise.
68235         * modules/uninorm/u8-normcoll-tests: Likewise.
68236         * modules/uninorm/u16-normcmp-tests: Likewise.
68237         * modules/uninorm/u16-normcoll-tests: Likewise.
68238         * modules/uninorm/u32-normcmp-tests: Likewise.
68239         * modules/uninorm/u32-normcoll-tests: Likewise.
68240         * modules/unistdio/u8-asnprintf-tests: Likewise.
68241         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68242         * modules/unistdio/u8-vasprintf-tests: Likewise.
68243         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68244         * modules/unistdio/u8-vsprintf-tests: Likewise.
68245         * modules/unistdio/u16-asnprintf-tests: Likewise.
68246         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68247         * modules/unistdio/u16-vasprintf-tests: Likewise.
68248         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68249         * modules/unistdio/u16-vsprintf-tests: Likewise.
68250         * modules/unistdio/u32-asnprintf-tests: Likewise.
68251         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68252         * modules/unistdio/u32-vasprintf-tests: Likewise.
68253         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68254         * modules/unistdio/u32-vsprintf-tests: Likewise.
68255         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68256         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68257         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68258         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68259         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68260         * modules/unistr/u8-check-tests: Likewise.
68261         * modules/unistr/u8-chr-tests: Likewise.
68262         * modules/unistr/u8-cmp-tests: Likewise.
68263         * modules/unistr/u8-cmp2-tests: Likewise.
68264         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68265         * modules/unistr/u8-cpy-tests: Likewise.
68266         * modules/unistr/u8-mblen-tests: Likewise.
68267         * modules/unistr/u8-mbsnlen-tests: Likewise.
68268         * modules/unistr/u8-mbtouc-tests: Likewise.
68269         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68270         * modules/unistr/u8-mbtoucr-tests: Likewise.
68271         * modules/unistr/u8-move-tests: Likewise.
68272         * modules/unistr/u8-next-tests: Likewise.
68273         * modules/unistr/u8-prev-tests: Likewise.
68274         * modules/unistr/u8-set-tests: Likewise.
68275         * modules/unistr/u8-stpcpy-tests: Likewise.
68276         * modules/unistr/u8-stpncpy-tests: Likewise.
68277         * modules/unistr/u8-strcat-tests: Likewise.
68278         * modules/unistr/u8-strcmp-tests: Likewise.
68279         * modules/unistr/u8-strcoll-tests: Likewise.
68280         * modules/unistr/u8-strcpy-tests: Likewise.
68281         * modules/unistr/u8-strdup-tests: Likewise.
68282         * modules/unistr/u8-strlen-tests: Likewise.
68283         * modules/unistr/u8-strmblen-tests: Likewise.
68284         * modules/unistr/u8-strmbtouc-tests: Likewise.
68285         * modules/unistr/u8-strncat-tests: Likewise.
68286         * modules/unistr/u8-strncmp-tests: Likewise.
68287         * modules/unistr/u8-strncpy-tests: Likewise.
68288         * modules/unistr/u8-strnlen-tests: Likewise.
68289         * modules/unistr/u8-to-u16-tests: Likewise.
68290         * modules/unistr/u8-to-u32-tests: Likewise.
68291         * modules/unistr/u8-uctomb-tests: Likewise.
68292         * modules/unistr/u16-check-tests: Likewise.
68293         * modules/unistr/u16-chr-tests: Likewise.
68294         * modules/unistr/u16-cmp-tests: Likewise.
68295         * modules/unistr/u16-cmp2-tests: Likewise.
68296         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68297         * modules/unistr/u16-cpy-tests: Likewise.
68298         * modules/unistr/u16-mblen-tests: Likewise.
68299         * modules/unistr/u16-mbsnlen-tests: Likewise.
68300         * modules/unistr/u16-mbtouc-tests: Likewise.
68301         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68302         * modules/unistr/u16-mbtoucr-tests: Likewise.
68303         * modules/unistr/u16-move-tests: Likewise.
68304         * modules/unistr/u16-next-tests: Likewise.
68305         * modules/unistr/u16-prev-tests: Likewise.
68306         * modules/unistr/u16-set-tests: Likewise.
68307         * modules/unistr/u16-stpcpy-tests: Likewise.
68308         * modules/unistr/u16-stpncpy-tests: Likewise.
68309         * modules/unistr/u16-strcat-tests: Likewise.
68310         * modules/unistr/u16-strcmp-tests: Likewise.
68311         * modules/unistr/u16-strcoll-tests: Likewise.
68312         * modules/unistr/u16-strcpy-tests: Likewise.
68313         * modules/unistr/u16-strdup-tests: Likewise.
68314         * modules/unistr/u16-strlen-tests: Likewise.
68315         * modules/unistr/u16-strmblen-tests: Likewise.
68316         * modules/unistr/u16-strmbtouc-tests: Likewise.
68317         * modules/unistr/u16-strncat-tests: Likewise.
68318         * modules/unistr/u16-strncmp-tests: Likewise.
68319         * modules/unistr/u16-strncpy-tests: Likewise.
68320         * modules/unistr/u16-strnlen-tests: Likewise.
68321         * modules/unistr/u16-to-u32-tests: Likewise.
68322         * modules/unistr/u16-to-u8-tests: Likewise.
68323         * modules/unistr/u16-uctomb-tests: Likewise.
68324         * modules/unistr/u32-check-tests: Likewise.
68325         * modules/unistr/u32-chr-tests: Likewise.
68326         * modules/unistr/u32-cmp-tests: Likewise.
68327         * modules/unistr/u32-cmp2-tests: Likewise.
68328         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68329         * modules/unistr/u32-cpy-tests: Likewise.
68330         * modules/unistr/u32-mblen-tests: Likewise.
68331         * modules/unistr/u32-mbsnlen-tests: Likewise.
68332         * modules/unistr/u32-mbtouc-tests: Likewise.
68333         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68334         * modules/unistr/u32-mbtoucr-tests: Likewise.
68335         * modules/unistr/u32-move-tests: Likewise.
68336         * modules/unistr/u32-next-tests: Likewise.
68337         * modules/unistr/u32-prev-tests: Likewise.
68338         * modules/unistr/u32-set-tests: Likewise.
68339         * modules/unistr/u32-stpcpy-tests: Likewise.
68340         * modules/unistr/u32-stpncpy-tests: Likewise.
68341         * modules/unistr/u32-strcat-tests: Likewise.
68342         * modules/unistr/u32-strcmp-tests: Likewise.
68343         * modules/unistr/u32-strcoll-tests: Likewise.
68344         * modules/unistr/u32-strcpy-tests: Likewise.
68345         * modules/unistr/u32-strdup-tests: Likewise.
68346         * modules/unistr/u32-strlen-tests: Likewise.
68347         * modules/unistr/u32-strmblen-tests: Likewise.
68348         * modules/unistr/u32-strmbtouc-tests: Likewise.
68349         * modules/unistr/u32-strncat-tests: Likewise.
68350         * modules/unistr/u32-strncmp-tests: Likewise.
68351         * modules/unistr/u32-strncpy-tests: Likewise.
68352         * modules/unistr/u32-strnlen-tests: Likewise.
68353         * modules/unistr/u32-to-u16-tests: Likewise.
68354         * modules/unistr/u32-to-u8-tests: Likewise.
68355         * modules/unistr/u32-uctomb-tests: Likewise.
68356         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68357         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68358         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68359         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68360         * modules/uniwidth/u8-strwidth-tests: Likewise.
68361         * modules/uniwidth/u8-width-tests: Likewise.
68362         * modules/uniwidth/u16-strwidth-tests: Likewise.
68363         * modules/uniwidth/u16-width-tests: Likewise.
68364         * modules/uniwidth/u32-strwidth-tests: Likewise.
68365         * modules/uniwidth/u32-width-tests: Likewise.
68366         * modules/uniwidth/width-tests: Likewise.
68368 2010-05-18  Richard Jones  <rjones@redhat.com>
68370         doc: users.txt: list hivex
68371         * users.txt: Add hivex.
68373 2010-05-18  Richard Jones  <rjones@redhat.com>
68375         doc: users.txt: list febootstrap
68376         * users.txt: Add febootstrap.
68378 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68380         bootstrap: fix an error when gnulib is not used as a git submodule
68381         * build-aux/bootstrap (gnulib_path): If its length is zero then
68382         assign "gnulib" to it.
68383         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68385 2010-05-16  Bruno Haible  <bruno@clisp.org>
68387         Avoid autoconf warnings about AM_ICONV.
68388         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68389         2.64.
68391 2010-05-16  Bruno Haible  <bruno@clisp.org>
68393         absolute-header: Make the macro usable in more situations.
68394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68395         from gl_ABSOLUTE_HEADER.
68396         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68398 2010-05-16  James Youngman  <jay@gnu.org>
68400         doc: update users.txt
68401         * users.txt: Add CSSC.
68403 2010-05-16  Jim Meyering  <meyering@redhat.com>
68405         init.sh: fix an error in the previous change; add more comments
68406         * tests/init.sh: Compare exit code in loop against 9, not 2.
68407         Patch by Bruno Haible.
68408         Make the two tests more similar by adding an empty "then" clause.
68409         Add comments.
68411         init.sh: avoid unnecessary shell re-exec
68412         * tests/init.sh: Improve the re-exec-required check to first test the
68413         current shell.  If it passes the test, do not search for a shell that
68414         does pass, and do not re-exec.  This test is particularly contorted to
68415         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68416         of $(...) evokes a syntax error and causes immediate shell exit with
68417         status 2.  Bruno Haible reported that the re-exec made it impossible
68418         to single-step through any init.sh-using script.
68420 2010-05-16  Bruno Haible  <bruno@clisp.org>
68422         Fix collision between gnulib's and libintl's printf replacements.
68423         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68424         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68425         (printf): When using GNU C, map the __printf__ function to rpl_printf
68426         via __asm__. When not using GNU C, define rpl_printf instead of
68427         __printf__.
68428         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68429         commit.
68430         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68431         commit.
68432         * m4/asm-underscore.m4: New file.
68433         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68434         * modules/stdio (Files): Add m4/asm-underscore.m4.
68435         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68436         Reported by Ben Pfaff.
68438 2010-05-16  Bruno Haible  <bruno@clisp.org>
68440         verify: Avoid skipping the test on openSUSE 11.0.
68441         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68443 2010-05-13  Bruno Haible  <bruno@clisp.org>
68445         Avoid useless warnings from G++.
68446         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68447         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68448         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68450 2010-05-11  Jim Meyering  <meyering@redhat.com>
68452         maint.mk: tweak preceding change
68453         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68454         regexps tighter by anchoring at EOL, and make the new group "shy"
68455         for slightly decreased overhead.
68457 2010-05-11  Eric Blake  <eblake@redhat.com>
68459         maint.mk: gnulib doesn't guarantee NSIG
68460         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68462 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68464         test-pwrite.c: Remove unused variable declaration.
68465         * tests/test-pwrite.c (main): Remove read_buf declaration.
68467         Remove useless test-pwrite.sh file.
68468         * tests/test-pwrite.sh: Delete file.
68469         * modules/pwrite-tests: Remove references.
68470         Reported by Bruno Haible.
68472 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68474         init.sh: fix a typo
68475         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68477 2010-05-10  Jim Meyering  <meyering@redhat.com>
68479         maint.mk: avoid using a temporary file in the always-defined-macros check
68480         * top/maint.mk (.re-defmac): Remove rule.
68481         (gl_trap_): Remove definition.
68482         (sc_prohibit_always-defined_macros): Rewrite not to create and
68483         depend on a temporary file.  Instead, depend on GNU grep's ability
68484         to read a list of regular expressions from stdin when given "-f -".
68486 2010-05-09  Bruno Haible  <bruno@clisp.org>
68488         Update to GNU gettext 0.18, part 1.
68489         * m4/gettext.m4: Update to GNU gettext 0.18.
68490         * m4/intl.m4: Likewise.
68491         * m4/po.m4: Likewise.
68492         * modules/gettext (Files): Add m4/fcntl-o.m4.
68493         (configure.ac): Require gettext infrastructure from version 0.18.
68495 2010-05-09  Jim Meyering  <meyering@redhat.com>
68497         init.sh: enable MALLOC_PERTURB_
68498         * tests/init.sh: Enable glibc's malloc-perturbing option.
68500         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68501         With my recent change in init.sh from the two-line form:
68502             -#   : ${srcdir=.}
68503             -#   . "$srcdir/init.sh"; path_prepend_ .
68504             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68505         I noticed that using the one-line form would cause this test
68506         to fail with a false-positive, or to stop working altogether,
68507         depending on whether help-version changed or all the tests did.
68508         * top/maint.mk (_hv_regex): Remove this definition.
68509         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68510         (_hv_regex_strong): Use a stronger regex to check for conformance.
68511         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68512         Give a separate diagnostic for lack of conforming use.
68514         maint.mk: prohibit definition of symbols defined by gnulib
68515         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68516         definition of symbols defined by gnulib.
68518 2010-05-09  Bruno Haible  <bruno@clisp.org>
68520         acl: Avoid test failure on Cygwin-hosted mingw.
68521         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68523 2010-05-09  Bruno Haible  <bruno@clisp.org>
68525         error: Use system's fcntl function.
68526         * lib/error.c (fcntl): Undefine.
68528 2010-05-09  Jim Meyering  <meyering@redhat.com>
68530         verify: adjust formatting to be more consistent
68531         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68532         argument-list '('s, and after one comma.
68534 2010-05-09  Bruno Haible  <bruno@clisp.org>
68536         error: More reliable output on mingw.
68537         * lib/error.c: Include <windows.h>.
68538         (is_open): New function.
68539         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68540         defined.
68542 2010-05-09  Bruno Haible  <bruno@clisp.org>
68544         vasnprintf: Fix syntax errors in libintl build on mingw.
68545         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68546         pad_ourselves and prec_ourselves after use.
68548 2010-05-08  Bruno Haible  <bruno@clisp.org>
68550         * lib/config.charset: Update comments for Cygwin 1.7.
68551         * lib/localcharset.c: Likewise.
68553 2010-05-07  Jim Meyering  <meyering@redhat.com>
68555         init.sh: improve comments
68556         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68557         . "${srcdir=.}/init.sh"; path_prepend_ .
68558         Add a note about path_prepend_ and the alternative of using
68559         TESTS_ENVIRONMENT.
68561 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68563         exclude: Unescape hashed patterns in wildcard mode.
68564         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68565         to the hash list.
68566         * tests/test-exclude8.sh: New test case.
68567         * modules/exclude-tests: Add new test.
68569 2010-05-05  Eric Blake  <eblake@redhat.com>
68571         verify: automate tests
68572         * modules/verify-tests: New module.
68573         * tests/test-verify.sh: New file.
68574         * tests/test-verify.c: Guard each negative test with a unique id.
68575         Also avoid warning about unused left hand of comma expressions.
68577 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68579         Further improvements to verify.h, suggested by Eric Blake.
68580         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68581         the GL_* versions, to avoid collision with OpenGL.
68582         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68583         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68584         than testing merely whether it's defined.
68586         Modify verify.h to pacify gcc -Wredundant_decls.
68587         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68588         These use the prefix "GL_" since they're likely to be useful elsewhere.
68589         We may need to break them out into a different .h file.
68590         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68591         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68592         of verify_function__.
68594 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68596         Tests for module pwrite.
68597         * modules/pwrite-tests: New file.
68598         * tests/test-pwrite.sh: New file.
68599         * tests/test-pwrite.c: New file.
68601         New module pwrite.
68602         * lib/unistd.in.h (pwrite): New declaration.
68603         * lib/pwrite.c: New file, from glibc with modifications.
68604         * m4/pwrite.m4: New file.
68605         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68606         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68607         REPLACE_PWRITE.
68608         * modules/pwrite: New file.
68609         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68610         REPLACE_PWRITE.
68611         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68612         * doc/posix-functions/pwrite.texi: Mention the new module.
68614 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68616         pread: Update documentation.
68617         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68619 2010-05-04  Eric Blake  <eblake@redhat.com>
68621         docs: update cygwin progress
68622         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68623         this bug.
68624         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68625         Added in cygwin 1.7.2.
68626         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68627         Likewise.
68628         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68629         Likewise.
68630         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68631         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68632         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68633         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68634         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68635         Mention nproc module.
68636         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68637         bug in cygwin 1.7.5 addition.
68638         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68639         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68640         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68641         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68642         1.7.5.
68643         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68644         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68645         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68646         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68647         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68648         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68649         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68650         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68651         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68652         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68653         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68654         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68655         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68656         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68657         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68658         Likewise.
68659         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68660         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68661         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68662         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68663         Likewise.
68664         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68665         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68666         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68667         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68668         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68669         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68670         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68671         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68672         Likewise.
68673         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68674         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68675         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68676         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68677         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68678         Likewise.
68679         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68680         Likewise.
68681         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68682         Likewise.
68683         * doc/glibc-functions/xdrrec_endofrecord.texi
68684         (xdrrec_endofrecord): Likewise.
68685         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68686         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68687         Likewise.
68688         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68689         Likewise.
68691 2010-05-04  Jim Meyering  <meyering@redhat.com>
68693         gendocs.sh: make its "-s FILE" option more useful
68694         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68695         $PACKAGE to reflect the probably-different basename of "FILE".
68697 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68699         bootstrap: don't ignore download_po_files failure
68700         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68701         failure.
68703 2010-05-03  Jim Meyering  <meyering@redhat.com>
68705         maint.mk: allow to pass options to gendocs.sh
68706         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68707         (gendocs_options_): New overridable variable.
68709         gnu-web-doc-update: don't ignore configure or build failure
68710         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68712         announce-gen: backslash-escape '@'s in --help output
68713         * build-aux/announce-gen: Fix syntax errors.
68715         maint.mk, announce-gen: allow project-specific announcement mail headers
68716         * top/maint.mk (translation_project_): Define default.
68717         (announcement_Cc_, announcement_mail_headers_): Likewise.
68718         (announcement): Invoke announce-gen with new --mail-headers option.
68719         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68721         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68722         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68723         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68724         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68725         line in the "err2" output file when running "make check" in verbose
68726         mode (i.e., with set -x enabled).
68728 2010-05-03  Bruno Haible  <bruno@clisp.org>
68730         wctob: Fix for weird platforms.
68731         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68732         argument value.
68734 2010-05-03  Jim Meyering  <meyering@redhat.com>
68736         maint.mk: prohibit unwarranted use of <strings.h>
68737         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68738         strings.h in a file that does not also use strcasecmp, strncasecmp,
68739         ffs or ffsll.
68741         maint.mk: remove obsolete comments
68742         * top/maint.mk: Remove stale, commented-out rules.
68744 2010-05-02  Bruno Haible  <bruno@clisp.org>
68746         wcwidth: Declare also when it's aliased.
68747         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68748         macro.
68750 2010-05-02  Bruno Haible  <bruno@clisp.org>
68752         Fix regression from 2010-04-25.
68753         * gnulib-tool (func_modules_transitive_closure): Check the status of
68754         all modules, not only of the tests that are of the form foo-tests where
68755         foo is a module.
68757 2010-05-02  Bruno Haible  <bruno@clisp.org>
68759         wctob: Work around nasty Cygwin 1.7.2 bug.
68760         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68761         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68763 2010-05-01  Bruno Haible  <bruno@clisp.org>
68765         fpurge: Sharper test.
68766         * tests/test-fpurge.c (main): Add one more ftell check.
68767         * modules/fpurge-tests (Depends-on): Add ftell.
68768         Suggested by Eric Blake.
68770 2010-05-01  Bruno Haible  <bruno@clisp.org>
68772         ftello: Another test.
68773         * tests/test-ftello3.c: New file.
68774         * modules/ftello-tests (Files): Add it.
68775         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68776         MOSTLYCLEANFILES.
68778         ftell: Another test.
68779         * tests/test-ftell3.c: New file.
68780         * modules/ftell-tests (Files): Add it.
68781         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68782         MOSTLYCLEANFILES.
68784 2010-05-01  Bruno Haible  <bruno@clisp.org>
68786         ftell, ftello: Work around Solaris bug.
68787         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68788         * lib/ftello.c: Include stdio-impl.h.
68789         (ftello): On Solaris, when _IOWRT is set, compute the result without
68790         looking at _IOREAD.
68791         * modules/ftello (Files): Add lib/stdio-impl.h.
68792         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68793         * doc/posix-functions/ftello.texi: Likewise.
68794         Reported by Eric Blake.
68796 2010-05-01  Bruno Haible  <bruno@clisp.org>
68798         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68799         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68800         the _IOWRT flag is also set.
68802 2010-05-01  Bruno Haible  <bruno@clisp.org>
68804         Fix doc about a HP-UX stdio bug.
68805         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68806         * doc/posix-functions/ftello.texi: Likewise.
68808 2010-05-01  Bruno Haible  <bruno@clisp.org>
68810         lseek test: Fix failure on Solaris.
68811         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68812         output.
68814 2010-04-30  Jim Meyering  <meyering@redhat.com>
68816         bootstrap: don't ignore failure to generate po*/Makevars
68817         * build-aux/bootstrap (with_gettext): Don't ignore failure
68818         to create po/Makevars or runtime-po/Makevars.
68820 2010-04-29  Eric Blake  <eblake@redhat.com>
68822         headers: relax license to LGPLv2+
68823         * modules/fcntl-h (License): Relax license.
68824         * modules/getopt-posix (License): Likewise.
68825         * modules/locale (License): Likewise.
68826         * modules/math (License): Likewise.
68827         * modules/pty (License): Likewise.
68828         * modules/sched (License): Likewise.
68829         * modules/search (License): Likewise.
68830         * modules/spawn (License): Likewise.
68831         * modules/stdarg (License): Likewise.
68832         * modules/sysexits (License): Likewise.
68834 2010-04-29  Jim Meyering  <meyering@redhat.com>
68836         inttypes: relax license to LGPLv2+
68837         * modules/inttypes (License): Relax license.
68839 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68841         * top/maint.mk (indent): Run twice to produce idempotent results.
68843 2010-04-28  Bruno Haible  <bruno@clisp.org>
68845         getdate: Generate getdate.c in the source directory.
68846         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68847         MOSTLYCLEANFILES.
68848         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68850 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68852         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68853         is not declared as a const *; avoid warnings in that case.
68855 2010-04-28  Eric Blake  <eblake@redhat.com>
68857         canonicalize-lgpl: avoid compiler warning
68858         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68859         declaration' / 'extraneous semicolon' warning with some compilers.
68860         Reported by Andreas Gruenbacher.
68862 2010-04-28  Jim Meyering  <meyering@redhat.com>
68864         init.sh: ensure a more reliable exit status when exiting via trap
68865         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68866         Inspired by patches from Dmitry V. Levin.
68867         Also trap on signal 3 (SIGQUIT).
68869 2010-04-27  Bruno Haible  <bruno@clisp.org>
68871         Update doc about utimes().
68872         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68873         'utimens' module.
68874         Reported by Andreas Gruenbacher <agruen@suse.de>.
68876 2010-04-27  Eric Blake  <eblake@redhat.com>
68878         full-read, full-write: relax license
68879         * modules/full-read (License): Drop to LGPLv2+.
68880         * modules/full-write (License): Likewise.
68881         * modules/safe-read (License): Likewise.
68882         * modules/safe-write (License): Likewise.
68884         pthread: mention library for linking
68885         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68887 2010-04-27  Jim Meyering  <meyering@redhat.com>
68889         maint.mk: fix a bug introduced in last change
68890         * top/maint.mk (gl_assured_headers_): Now that all names are on
68891         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68892         is not anchored to end of word, it should be adequate.
68894         maint.mk: avoid side-effect in latest syntax-check
68895         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68896         to run commands via $(shell...), and hence to incur cost only when
68897         the new rule is actually run.
68899         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68900         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68901         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68902         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68903         (gl_assured_headers_, az_, AZ_): Define.
68904         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68906 2010-04-26  Jim Meyering  <jim@meyering.net>
68907             Bruno Haible  <bruno@clisp.org>
68909         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68910         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68911         Prompted by an exchange with Gilles Espinasse.
68913 2010-04-26  Jim Meyering  <meyering@redhat.com>
68915         git-version-gen: aesthetic tweak
68916         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68917         so that the command remains on a single line.
68919 2010-04-26  Eric Blake  <eblake@redhat.com>
68921         git-version-gen: allow use on EBCDIC hosts
68922         * build-aux/git-version-gen (dirty): Use literal rather than tying
68923         ourselves to ascii.
68924         Reported by Steve Goetze.
68926 2010-04-25  Bruno Haible  <bruno@clisp.org>
68928         netdb: Add support for GNULIB_POSIXCHECK.
68929         * lib/netdb.in.h: Include warn-on-use.h.
68930         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68931         functions are used when GNULIB_POSIXCHECK is defined and the
68932         getaddrinfo module is not in use.
68933         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68934         freeaddrinfo, gai_strerror, getnameinfo are declared.
68935         * modules/netdb (Depends-on): Add warn-on-use.
68936         (Makefile.am): Include warn-on-use.h in netdb.h.
68938 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68940         build: avoid "make check" failure without .git/ directory
68941         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68942         there is no .git/ directory.
68944 2010-04-25  Bruno Haible  <bruno@clisp.org>
68946         ptsname: Fix misuse of ttyname_r.
68947         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68948         of errno.
68950 2010-04-25  Bruno Haible  <bruno@clisp.org>
68952         ttyname_r: Make it work on Solaris 10.
68953         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68954         if the system function has the POSIX declaration. Test whether the
68955         function fails if the buffer is less than 128 bytes large.
68956         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68957         system's ttyname_r function. Provide a reasonably large buffer.
68958         * modules/ttyname_r (Depends-on): Add extensions.
68959         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68961 2010-04-25  Bruno Haible  <bruno@clisp.org>
68963         Use the 'extensions' module for some more functions on Solaris.
68964         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68965         module.
68966         * doc/posix-functions/ctime_r.texi: Likewise.
68967         * doc/posix-functions/getgrgid_r.texi: Likewise.
68968         * doc/posix-functions/getgrnam_r.texi: Likewise.
68969         * doc/posix-functions/getpwnam_r.texi: Likewise.
68970         * doc/posix-functions/getpwuid_r.texi: Likewise.
68971         * doc/posix-functions/readdir_r.texi: Likewise.
68972         * doc/posix-functions/sigwait.texi: Likewise.
68973         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68974         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68976 2010-04-25  Bruno Haible  <bruno@clisp.org>
68978         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68980         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68981         * lib/ttyname_r.c: Include <limits.h>.
68982         (ttyname_r): Define using the system's ttyname_r function, if it exists
68983         and not on Solaris.
68984         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68985         set.
68986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68987         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68988         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68989         Reported by Simon Josefsson.
68991 2010-04-25  Bruno Haible  <bruno@clisp.org>
68993         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68994         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68995         * doc/posix-functions/ctime_r.texi: Likewise.
68996         * doc/posix-functions/getgrgid_r.texi: Likewise.
68997         * doc/posix-functions/getgrnam_r.texi: Likewise.
68998         * doc/posix-functions/getlogin_r.texi: Likewise.
68999         * doc/posix-functions/getpwnam_r.texi: Likewise.
69000         * doc/posix-functions/getpwuid_r.texi: Likewise.
69001         * doc/posix-functions/readdir_r.texi: Likewise.
69002         * doc/posix-functions/sigwait.texi: Likewise.
69003         * doc/posix-functions/ttyname_r.texi: Likewise.
69004         Reported by Simon Josefsson.
69006 2010-04-25  Bruno Haible  <bruno@clisp.org>
69008         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69009         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69010         also to --create-testdir.
69011         (func_acceptable): Don't consider the status of *-tests modules here.
69012         (func_modules_transitive_closure): Consider it here, before including a
69013         test module.
69014         (func_import, func_create_testdir): Set inc_all_direct_tests,
69015         inc_all_indirect_tests.
69016         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69017         --create-testdir and --create-megatestdir.
69019 2010-04-25  Bruno Haible  <bruno@clisp.org>
69021         gnulib-tool: Add --without-*-tests options.
69022         * gnulib-tool (func_usage): Document the --without-*-tests options.
69023         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69024         excl_unportable_tests): New variables.
69025         Fail if they are specified with --import or --update.
69026         (func_acceptable): Respect the excl_*_tests variables.
69027         (func_import): Set the excl_*_tests variables to empty.
69029 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69030             Bruno Haible  <bruno@clisp.org>
69032         Work around a MacOS X 10.4 bug with openpty.
69033         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69034         * tests/test-openpty.c (main): Close the master side explicitly.
69036 2010-04-25  Bruno Haible  <bruno@clisp.org>
69038         strnlen: Fix a C++ test error on MacOS X and Solaris.
69039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69040         the function is not declared.
69041         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69042         Simon Josefsson.
69044 2010-04-24  Bruno Haible  <bruno@clisp.org>
69046         Avoid a gcc warning.
69047         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69048         of correct type for %08lx directive.
69049         Reported by Eric Blake.
69051 2010-04-24  Bruno Haible  <bruno@clisp.org>
69053         vasnprintf: Correct errno value in case of out-of-memory.
69054         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69055         or sprintf. Use the errno value from SNPRINTF or sprintf.
69056         Reported by Ian Beckwith <ianb@erislabs.net>.
69058 2010-04-24  Bruno Haible  <bruno@clisp.org>
69060         ansi-c++-opt: Find correct compiler when cross-compiling.
69061         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69062         AC_CHECK_PROGS.
69063         Reported by Simon Josefsson.
69065 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69067         vc-list-files: Add support for subversion
69068         * build-aux/vc-list-files: Use "svn list" to generate the list of
69069         files controlled by subversion.
69071 2010-04-23  Jim Meyering  <meyering@redhat.com>
69073         vc-list-files tests: convert to use init.sh
69074         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69075         path_prepend_.
69076         Use Exit, not exit.
69077         Use skip_ rather than open coding it.
69078         Remove trap set-up and compare definitions.
69079         * tests/test-vc-list-files-git.sh: Likewise.
69080         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69082 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69084         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69085         backup files.
69087 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69089         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69091 2010-04-20  Eric Blake  <eblake@redhat.com>
69093         tests: be robust to ignored SIGPIPE
69094         * tests/test-select-in.sh: Consume all output.
69095         * tests/test-lseek.sh: Check correct exit status, while avoiding
69096         EPIPE.
69098 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69099             Bruno Haible  <bruno@clisp.org>
69101         visibility: Don't use -fvisibility if it leads to a warning.
69102         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69103         yes, don't pretend that visibility works if it leads to a warning.
69104         Reported by Mike Gran <spk121@yahoo.com>.
69106 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69108         * build-aux/bootstrap: Use "git -h" for testing for supported options
69109         instead of "git --help".  The short-form option only shows a summary,
69110         and doesn't layout the full man page.  Grep for the full option name
69111         in the summary, too.
69113 2010-04-19  Bruno Haible  <bruno@clisp.org>
69115         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69116         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69117         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69118         mention of RELOCATABLE_STRIP.
69119         Reported by Sylvain Beucler <beuc@beuc.net>.
69121 2010-04-19  Bruno Haible  <bruno@clisp.org>
69123         * lib/diffseq.h: Fix typo in comment.
69124         Reported by Eric Blake.
69126 2010-04-19  Bruno Haible  <bruno@clisp.org>
69128         ioctl: Move autoconf macro to a .m4 file.
69129         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69130         * modules/ioctl (Files): Add it.
69131         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69132         Reported by Ian Beckwith <ianb@erislabs.net>.
69134 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69135             Bruno Haible  <bruno@clisp.org>
69137         diffseq: Accommodate use-case with abstract arrays.
69138         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69139         is not defined.
69140         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69141         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69143 2010-04-18  Bruno Haible  <bruno@clisp.org>
69145         * doc/posix-headers/stdbool.texi: More precise wording.
69147 2010-04-17  Jim Meyering  <meyering@redhat.com>
69149         maint.mk: use gnu-style indentation in an embedded perl script
69150         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69151         Rename variable: s/two/last_two_bytes/
69153 2010-04-16  Eric Blake  <eblake@redhat.com>
69155         test-stdbool: skip test that fails with Solaris CC
69156         * tests/test-stdbool.c (f): Skip test that causes compilation
69157         error under buggy C++ compiler.
69158         * lib/stdbool.in.h: Document the limitation.
69159         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69161         setenv: allow compilation with C++
69162         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69163         register keyword.
69165         stdint: allow test to pass with C++
69166         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69168         getopt: allow compilation with C++
69169         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69170         struct.
69171         * lib/getopt.c (_getopt_internal_r): Use correct type.
69172         Reported by Dagobert Michelson, via Joel E. Denny.
69174 2010-04-16  Bruno Haible  <bruno@clisp.org>
69176         Override netdb.h always.
69177         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69178         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69179         Reported by Ludovic Courtès <ludo@gnu.org>.
69181 2010-04-15  Bruno Haible  <bruno@clisp.org>
69183         openpty: Fix mistake from 2010-03-21.
69184         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69185         Reported by Simon Josefsson.
69187 2010-04-15  Eric Blake  <eblake@redhat.com>
69189         test-forkpty: fix expected signature
69190         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69191         Reported by Simon Josefsson.
69193 2010-04-15  Jim Meyering  <meyering@redhat.com>
69195         maint.mk: texinfo_suffix_re_: correct the default regexp
69196         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69198         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69199         make it configurable via texinfo_suffix_re_.
69201 2010-04-14  Eric Blake  <eblake@redhat.com>
69203         strtok_r: relax license to LGPLv2+
69204         * modules/strtok_r (License): Relax license.
69205         Reported by Matthias Bolte.
69207 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69209         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69210         version 1.4.4 by default instead of requiring the libgcrypt
69211         version used during build.  This makes it possible to use the
69212         application with older but still binary compatible libgcrypt
69213         versions.
69215 2010-04-13  Eric Blake  <eblake@redhat.com>
69217         getopt-gnu: match recent glibc fixes and posix ruling
69218         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69219         '+' handling, when requesting extensions.
69220         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69221         'W;' handling.
69222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69223         * doc/posix-functions/getopt.texi (getopt): Document this.
69224         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69225         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69226         Likewise.
69228         getopt: merge bug fixes from glibc
69229         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69230         diagnostics.  Honor '+:' correctly.  Reject ';'.
69232         getopt-posix: detect MacOS bug
69233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69234         optind when missing a required argument.
69235         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69236         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69237         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69238         Likewise.
69240         getopt-posix: avoid spurious failure on Solaris
69241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69242         an indicator that setting optind=1 is sufficient for reset.
69244         getopt-posix: avoid spurious failure on FreeBSD
69245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69246         in POSIX mode, since the m4 test uses it.
69248         gnulib-tool: silence warning on BSD sh
69249         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69251 2010-04-13  Jim Meyering  <meyering@redhat.com>
69253         doc: users.txt: GNU patch now uses gnulib
69254         * users.txt: Add patch.
69256 2010-04-12  Jim Meyering  <meyering@redhat.com>
69258         maint.mk: generate more concise timing data for syntax-check rules
69259         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69260         " done" from each line that reports a syntax-check test duration.
69262 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69264         git-version-gen: use "git update-index..." rather than "git status"
69265         * build-aux/git-version-gen: Use git update-index --refresh, not
69266         "git status".  With some versions of git, "git status" would fail
69267         to update the index and result in an unwarranted "-dirty" suffix.
69269 2010-04-11  Jim Meyering  <meyering@redhat.com>
69271         openat: correct formatting (no semantic change)
69272         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69273         Suggested by Bruno Haible.
69275 2010-04-11  Bruno Haible  <bruno@clisp.org>
69277         Stricter declaration checking in testdirs.
69278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69279         If for_tests is true, augment AM_CPPFLAGS to define
69280         GNULIB_STRICT_CHECKING.
69281         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69282         GNULIB_STRICT_CHECKING is defined, verify that the function is
69283         declared.
69285 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69286             Bruno Haible  <bruno@clisp.org>
69288         libunistring: Improve configure output.
69289         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69290         Don't say "consider installing GNU libunistring" when checking again
69291         with libiconv.
69293 2010-04-11  Bruno Haible  <bruno@clisp.org>
69295         libunistring: Correct value of $LTLIBUNISTRING.
69296         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69297         correct the value of $LTLIBUNISTRING.
69299 2010-04-11  Bruno Haible  <bruno@clisp.org>
69301         havelib: Add static libraries to LIBS in the right order.
69302         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69303         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69305 2010-04-11  Bruno Haible  <bruno@clisp.org>
69307         libunistring: Detect libunistring also when it depends on libiconv.
69308         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69309         the second AC_LIB_HAVE_LINKFLAGS invocation.
69311 2010-04-11  James Youngman  <jay@gnu.org>
69313         close-stream: declare local scalars to be "const"
69314         * lib/close-stream.c (close_stream): Make boolean variables const
69315         to document the fact that we set but do not change them.
69317 2010-04-11  Bruno Haible  <bruno@clisp.org>
69319         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69321 2010-04-11  Jim Meyering  <meyering@redhat.com>
69323         maint.mk: don't include dist-check.mk
69324         * top/maint.mk: Remove bogus include directive.
69326         maint.mk: improve empty-line-at-EOF check
69327         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69328         solution, rather than tail+Perl-based one.  The latter would read
69329         a few kilobytes from the end of each file, and did not handle empty
69330         files properly.
69332         maint.mk: print the elapsed time for each syntax-check rule
69333         * top/maint.mk (sc_m_rules_): Save start time in a file.
69334         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69335         (local-check): Interpose the .z rules
69337 2010-04-11  Jim Meyering  <meyering@redhat.com>
69339         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69340         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69341         empty file with one that ends in an empty line.
69343 2010-04-10  Bruno Haible  <bruno@clisp.org>
69345         mkdir: Make it work on mingw64.
69346         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69347         * lib/mkdir.c: Update comment.
69348         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69350 2010-04-10  Bruno Haible  <bruno@clisp.org>
69352         Don't override improved macro from newer autoconf.
69353         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69354         autoconf >= 2.62.
69355         Reported by Joel E. Denny <jdenny@clemson.edu>.
69357 2010-04-10  Jim Meyering  <meyering@redhat.com>
69359         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69360         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69362         maint.mk: correct a diagnostic
69363         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69364         in diagnostic; now use $prohibit.
69366 2010-04-10  Bruno Haible  <address@hidden>
69368         fchownat: Fix a C++ test error on Solaris 8.
69369         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69370         the function does not exist.
69372 2010-04-10  Bruno Haible  <bruno@clisp.org>
69374         vasnprintf: Add more tests.
69375         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69376         (test_function): Test converting an invalid wide string.
69378         vasnprintf: Correct handling of unconvertible wide string arguments.
69379         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69380         VASNPRINTF.
69381         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69382         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69383         smaller than the expected maximum need for the directive. Set errno to
69384         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69385         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69386         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69387         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69388         * modules/vasnprintf (Files): Add m4/printf.m4.
69389         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69391 2010-04-10  Bruno Haible  <bruno@clisp.org>
69393         vasnprintf: Fix crash in %ls directive.
69394         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69395         string is passed as argument to %ls, with no precision and no width.
69396         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69398 2010-04-10  Bruno Haible  <bruno@clisp.org>
69400         vasnprintf: Fix multiple test failures on mingw.
69401         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69402         _snprintf, or snwprintf, not _snwprintf.
69404 2010-04-10  Bruno Haible  <bruno@clisp.org>
69406         write: Fix a C++ test error on mingw.
69407         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69409 2010-04-10  Bruno Haible  <bruno@clisp.org>
69411         vasnprintf test: Reduce code duplication.
69412         * tests/test-vasnprintf.c (test_function): New function, extracted from
69413         test_vasnprintf.
69414         (test_vasnprintf, test_asnprintf): Invoke it.
69416 2010-04-10  Bruno Haible  <bruno@clisp.org>
69418         strnlen: Fix warning in C++ mode on MacOS X.
69419         * lib/string.in.h (strnlen): Use the modern idiom.
69420         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69421         defining strnlen as a macro already in <config.h>.
69422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69423         REPLACE_STRNLEN.
69424         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69425         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69427 2010-04-08  James Youngman  <jay@gnu.org>
69429         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69430         the example.
69432 2010-04-09  Jim Meyering  <meyering@redhat.com>
69434         maint.mk: print better diagnostic when there is no $(_hv_file)
69435         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69436         announce that when $(_hv_file) (aka help-version) does not exist.
69438         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69439         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69440         not try to interpret its random input bytes.  Jarno Rajahalme reported
69441         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69442         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69443         (mktempd_): Likewise, just in case.
69445         ftruncate: add two years to projected module removal date: 2012
69446         * m4/ftruncate.m4: Adjust comments.
69448         ftruncate: mark module as obsolete; even MinGW provides it, now
69449         * modules/ftruncate (Status): Obsolete.
69450         (Notice): Say that.
69451         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69454 2010-04-08  Bruno Haible  <bruno@clisp.org>
69456         Fix side effects from tests-related modules.
69457         * modules/dprintf-posix (Comment): New section.
69458         * modules/fprintf-posix (Comment): Likewise.
69459         * modules/obstack-printf-posix (Comment): Likewise.
69460         * modules/printf-posix (Comment): Likewise.
69461         * modules/snprintf-posix (Comment): Likewise.
69462         * modules/sprintf-posix (Comment): Likewise.
69463         * modules/vasnprintf-posix (Comment): Likewise.
69464         * modules/vasprintf-posix (Comment): Likewise.
69465         * modules/vdprintf-posix (Comment): Likewise.
69466         * modules/vfprintf-posix (Comment): Likewise.
69467         * modules/vprintf-posix (Comment): Likewise.
69468         * modules/vsnprintf-posix (Comment): Likewise.
69469         * modules/vsprintf-posix (Comment): Likewise.
69470         * modules/xprintf-posix (Comment): Likewise.
69471         * modules/xvasprintf-posix (Comment): Likewise.
69472         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69473         * modules/floorf-tests (Depends-on): Likewise.
69474         * modules/round-tests (Depends-on): Likewise.
69475         * modules/roundf-tests (Depends-on): Likewise.
69476         * modules/trunc-tests (Depends-on): Likewise.
69477         * modules/truncf-tests (Depends-on): Likewise.
69478         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69479         'fprintf-posix' module is not present.
69480         * tests/test-floorf2.c (check): Likewise.
69481         * tests/test-trunc2.c (check): Likewise.
69482         * tests/test-truncf2.c (check): Likewise.
69483         * tests/test-round2.c (equal): Likewise.
69484         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69486 2010-04-07  Karl Berry  <karl@gnu.org>
69488         * config/srclist.txt,
69489         * config/srclistvars.sh,
69490         * config/srclist-update: doc fixes.
69492 2010-04-07  Jim Meyering  <meyering@redhat.com>
69494         maint.mk: add a PATH crosschecking syntax-check rule
69495         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69496         Useful if you use a test like the one in help-version (coreutils,
69497         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69498         printed by prog --version.
69500 2010-04-06  Bruno Haible  <bruno@clisp.org>
69502         Fix link error on mingw.
69503         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69504         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69506 2010-04-06  Bruno Haible  <bruno@clisp.org>
69508         Assume rmdir exists.
69509         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69511 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69513         doc: update users.txt
69514         * users.txt: Add gcal.
69516 2010-04-06  Jim Meyering  <meyering@redhat.com>
69518         init.sh: simply unset TMPDIR rather than risking env -i
69519         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69520         although it probably works fine on all Unix-based systems, some
69521         systems (Cygwin?) cannot tolerate a totally cleared environment.
69522         Suggestion from Eric Blake.
69524 2010-04-06  Jim Meyering  <meyering@redhat.com>
69526         init.sh: portability fix: use env's POSIX-specified -i option not -u
69527         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69528         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69530 2010-04-05  Bruno Haible  <bruno@clisp.org>
69532         btowc: Work around Cygwin 1.7.2 bug.
69533         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69534         does not map NUL to 0.
69535         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69537 2010-04-05  Bruno Haible  <bruno@clisp.org>
69539         Make the multithread modules work on Cygwin 1.7.2.
69540         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69541         imported symbols can be declared weak, so that it returns "no" on
69542         Cygwin 1.7.2.
69544 2010-04-05  Bruno Haible  <bruno@clisp.org>
69546         Use the module 'strncat'.
69547         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69549         Tests for module 'strncat'.
69550         * modules/strncat-tests: New file.
69551         * tests/test-strncat.c: New file.
69553         New module 'strncat'.
69554         * lib/string.in.h (strncat): New declaration.
69555         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69556         * m4/strncat.m4: New file, based on m4/memchr.m4.
69557         * modules/strncat: New file.
69558         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69559         is declared.
69560         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69561         REPLACE_STRNCAT.
69562         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69563         REPLACE_STRNCAT.
69564         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69565         module.
69566         * tests/test-string-c++.cc: Check signature of strncat.
69568 2010-04-05  Jim Meyering  <meyering@redhat.com>
69570         xstrtoumax-tests: convert to use init.sh
69571         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69572         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69573         Use Exit, not exit.
69574         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69576         xstrtoimax-tests: convert to use init.sh
69577         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69578         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69579         Use Exit, not exit.
69580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69582 2010-04-05  Bruno Haible  <bruno@clisp.org>
69584         sys_socket: Avoid #define replacements in C++ mode.
69585         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69586         warning to the function if possible, rather than #defining the symbol
69587         to a dysfunctional alias.
69589 2010-04-05  Bruno Haible  <bruno@clisp.org>
69591         fseeko: Fix C++ test error on mingw.
69592         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69593         gl_FUNC_FSEEKO.
69594         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69595         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69596         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69597         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69599 2010-04-05  Bruno Haible  <bruno@clisp.org>
69601         duplocale: Improve test output.
69602         * tests/test-duplocale.c (main): Print reason for skipped test.
69604 2010-04-05  Bruno Haible  <bruno@clisp.org>
69606         Assume rmdir exists.
69607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69608         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69610 2010-04-05  Bruno Haible  <bruno@clisp.org>
69612         Fix link error on Solaris 8 with cc.
69613         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69615 2010-04-05  Bruno Haible  <bruno@clisp.org>
69617         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69618         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69620 2010-04-05  Bruno Haible  <bruno@clisp.org>
69622         vasprintf: Update documentation.
69623         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69625 2010-04-05  Bruno Haible  <bruno@clisp.org>
69627         ptsname: Improve test.
69628         * tests/test-ptsname.c (main): Also try the various master names of BSD
69629         systems.
69631 2010-04-05  Bruno Haible  <bruno@clisp.org>
69633         memchr: Avoid a possible C++ test error.
69634         * lib/string.in.h (memchr): Provide declaration if function is missing.
69635         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69636         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69638         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69640 2010-04-05  Bruno Haible  <bruno@clisp.org>
69642         strtok_r: Improve idiom.
69643         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69644         AC_LIBOBJ is used.
69646 2010-04-05  Bruno Haible  <bruno@clisp.org>
69648         strdup: Improve idiom.
69649         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69650         AC_LIBOBJ is used.
69651         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69652         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69653         when AC_LIBOBJ is used.
69655 2010-04-05  Bruno Haible  <bruno@clisp.org>
69657         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69658         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69659         don't set REPLACE_MBSINIT to 1.
69660         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69661         don't set REPLACE_MBRTOWC to 1.
69662         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69663         exist, don't set REPLACE_MBSRTOWCS to 1.
69664         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69665         exist, don't set REPLACE_MBSNRTOWCS to 1.
69666         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69667         don't set REPLACE_WCRTOMB to 1.
69668         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69669         exist, don't set REPLACE_WCSRTOMBS to 1.
69670         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69671         exist, don't set REPLACE_WCSNRTOMBS to 1.
69673 2010-04-05  Bruno Haible  <bruno@clisp.org>
69675         ldexpl: Improve idiom.
69676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69677         make sure to set HAVE_DECL_LDEXPL to 0.
69679 2010-04-05  Jim Meyering  <meyering@redhat.com>
69681         xstrtol-tests: convert to use init.sh
69682         * modules/xstrtol-tests (Files): Add tests/init.sh.
69683         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69684         Use Exit, not exit.
69685         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69687         atexit-tests: convert to use init.sh
69688         * modules/atexit-tests (Files): Add tests/init.sh.
69689         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69690         Use Exit, not exit.
69691         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69693         init.sh: fix typo
69694         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69696         init.sh: make it easier for a test script to write to the tty, ...
69697         when using automake's parallel-tests mode.
69698         * tests/init.sh (stderr_fileno_): Define overridable variable.
69699         (warn_): New function, to use it.
69700         (fail_, skip_, framework_failure_): Use warn_.
69702 2010-04-04  Bruno Haible  <bruno@clisp.org>
69704         btowc: Avoid warning.
69705         * lib/btowc.c: Include <stdlib.h>.
69706         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69708 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69709             Bruno Haible  <bruno@clisp.org>
69711         wchar: Port to NetBSD 1.5.
69712         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69713         * lib/wctype.in.h (WEOF): Likewise.
69715 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69716             Bruno Haible  <bruno@clisp.org>
69718         Port extended stdio to NetBSD 1.5.
69719         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69720         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69721         older.
69723 2010-04-04  Bruno Haible  <bruno@clisp.org>
69725         string: Remove unused substitution.
69726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69727         HAVE_DECL_STRERROR.
69728         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69730 2010-04-04  Bruno Haible  <bruno@clisp.org>
69732         strtod: Avoid a possible C++ test error.
69733         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69734         set REPLACE_STRTOD.
69736 2010-04-04  Bruno Haible  <bruno@clisp.org>
69738         strerror: Update documentation.
69739         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69741 2010-04-04  Bruno Haible  <bruno@clisp.org>
69743         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69744         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69745         _GL_CXXALIAS_SYS_CAST.
69747 2010-04-04  Bruno Haible  <bruno@clisp.org>
69749         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69750         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69751         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69752         REPLACE_FREXPL to 1.
69753         * doc/posix-functions/frexpl.texi: Update documentation.
69755 2010-04-04  Bruno Haible  <bruno@clisp.org>
69757         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69758         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69760 2010-04-04  Bruno Haible  <bruno@clisp.org>
69762         Implement nanosleep for native Windows.
69763         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69765 2010-04-04  Bruno Haible  <bruno@clisp.org>
69767         math: Fix some C++ test errors on Solaris 8.
69768         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69770 2010-04-04  Bruno Haible  <bruno@clisp.org>
69772         math: Fix some C++ test errors on Cygwin.
69773         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69774         truncl): Provide declaration if the system does not have it.
69775         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69776         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69777         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69778         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69779         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69780         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69781         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69782         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69783         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69784         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69785         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69786         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69787         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69788         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69789         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69790         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69792         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69793         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69794         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69795         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69796         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69798 2010-04-04  Bruno Haible  <bruno@clisp.org>
69800         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69801         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69802         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69803         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69804         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69805         * m4/isinf.m4 (gl_ISINF): Likewise.
69806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69808 2010-04-04  Bruno Haible  <bruno@clisp.org>
69810         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69811         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69813 2010-04-04  Bruno Haible  <bruno@clisp.org>
69815         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69816         * modules/tmpfile (configure.ac): Update.
69818         tmpfile: Fix C++ test error on mingw.
69819         * lib/stdio.in.h (tmpfile): New declaration.
69820         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69821         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69822         * modules/tmpfile (Depends-on): Add stdio.
69823         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69824         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69825         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69826         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69827         REPLACE_TMPFILE.
69828         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69830 2010-04-04  Bruno Haible  <bruno@clisp.org>
69832         ioctl: Fix C++ test error on mingw.
69833         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69834         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69835         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69837 2010-04-03  Bruno Haible  <bruno@clisp.org>
69839         wcwidth: Fix C++ test error on mingw.
69840         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69842         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69844 2010-04-03  Bruno Haible  <bruno@clisp.org>
69846         nanosleep: Fix C++ test error on mingw.
69847         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69848         * lib/time.in.h (nanosleep): Use modern idiom.
69849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69850         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69851         REPLACE_NANOSLEEP to 1.
69852         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69853         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69855 2010-04-03  Bruno Haible  <bruno@clisp.org>
69857         strptime: Fix C++ test error on mingw.
69858         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69859         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69860         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69861         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69862         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69863         not REPLACE_STRPTIME.
69864         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69865         REPLACE_STRPTIME.
69867 2010-04-03  Bruno Haible  <bruno@clisp.org>
69869         timegm: Fix C++ test error on mingw.
69870         * lib/time.in.h (timegm): Use modern idiom.
69871         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69872         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69873         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69874         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69876 2010-04-03  Bruno Haible  <bruno@clisp.org>
69878         timegm: Assume declaration if function exists.
69879         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69880         if it exists. Don't clobber ac_cv_func_timegm.
69882 2010-04-03  Bruno Haible  <bruno@clisp.org>
69884         time_r: Fix C++ test error on mingw.
69885         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69886         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69887         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69888         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69889         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69891 2010-04-03  Bruno Haible  <bruno@clisp.org>
69893         time_r: Minor updates.
69894         * modules/time_r (Description): Mention the provided functions.
69895         * lib/time_r.c: Don't include <string.h>.
69896         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69897         * doc/posix-functions/localtime_r.texi: Likewise.
69899 2010-04-03  Bruno Haible  <bruno@clisp.org>
69901         time: Fix regression introduced on 2010-03-08.
69902         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69903         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69905 2010-04-03  Jim Meyering  <meyering@redhat.com>
69907         maint.mk: don't silently disable project-specific syntax-check rules
69908         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69909         that they need to convert their project-specific syntax-check rules
69910         to use the new _sc_search_regexp.
69912 2010-04-03  Bruno Haible  <bruno@clisp.org>
69914         fchdir: Fix regression introduced on 2010-03-08.
69915         * lib/unistd.in.h (fchdir): Fix declaration.
69916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69918         REPLACE_FCHDIR.
69919         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69920         REPLACE_FCHDIR.
69922 2010-04-03  Bruno Haible  <bruno@clisp.org>
69924         getpagesize: Fix C++ test error on mingw.
69925         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69926         system does not declare the function.
69927         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69928         declared.
69929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69930         HAVE_DECL_GETPAGESIZE.
69931         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69933 2010-04-03  Bruno Haible  <bruno@clisp.org>
69935         stdio: Make C++ tests work on mingw.
69936         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69937         does not declare the function.
69939 2010-04-03  Bruno Haible  <bruno@clisp.org>
69941         ftello: Fix C++ test error on mingw.
69942         * lib/stdio.in.h (ftello): Use modern idiom.
69943         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69944         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69945         is missing and that it needs to be replaced.
69946         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69948         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69950 2010-04-03  Bruno Haible  <bruno@clisp.org>
69952         fseeko: Fix C++ test error on mingw.
69953         * lib/stdio.in.h (fseeko): Use modern idiom.
69954         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69955         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69956         is missing and that it needs to be replaced.
69957         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69959         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69961 2010-04-03  Bruno Haible  <bruno@clisp.org>
69963         mkstemp: Fix C++ test error on mingw.
69964         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69966         function is missing and that it needs to be replaced.
69967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69968         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69970 2010-04-03  Bruno Haible  <bruno@clisp.org>
69972         stpncpy: Fix C++ test error on mingw.
69973         * lib/string.in.h (stpncpy): Use modern idiom.
69974         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69975         function is missing and that it needs to be replaced.
69976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69977         REPLACE_STPNCPY.
69978         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69980 2010-04-03  Bruno Haible  <bruno@clisp.org>
69982         sys_stat: Fix C++ test error on mingw.
69983         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69984         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69986 2010-04-03  Bruno Haible  <bruno@clisp.org>
69988         pty: Update doc.
69989         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69991 2010-04-03  Bruno Haible  <bruno@clisp.org>
69993         unistd: Fix C++ test error on mingw.
69994         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69996 2010-04-03  Bruno Haible  <bruno@clisp.org>
69998         Update doc regarding mingw.
69999         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70000         * doc/glibc-functions/login_tty.texi: Likewise.
70001         * doc/glibc-functions/forkpty.texi: Likewise.
70003 2010-04-03  Bruno Haible  <bruno@clisp.org>
70005         stdlib: Avoid compilation failure of c-strtold on mingw.
70006         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70008 2010-04-03  Bruno Haible  <bruno@clisp.org>
70010         locale: Make C++ tests work on Cygwin and mingw.
70011         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70012         cannot provide the function.
70013         Reported by Simon Josefsson.
70015 2010-04-03  Bruno Haible  <bruno@clisp.org>
70017         localename: Port to MacOS X 10.6.
70018         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70019         memory layout of the locales in MacOS X 10.6 as well.
70020         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70022 2010-04-02  Bruno Haible  <bruno@clisp.org>
70024         gnulib-tool: Ensure that long-running tests are executed last.
70025         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70026         running tests after the one for the other tests.
70028 2010-04-02  Bruno Haible  <bruno@clisp.org>
70030         gnulib-tool: Ensure the tests in the main directory are executed first.
70031         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70032         start with the current directory.
70034 2010-04-02  Bruno Haible  <bruno@clisp.org>
70036         Tests for module 'havelib', moved here from GNU gettext.
70037         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70038         modifications.
70039         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70040         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70041         with modifications.
70042         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70043         modifications.
70044         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70045         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70046         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70047         with modifications.
70048         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70049         with modifications.
70050         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70051         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70052         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70053         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70054         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70055         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70056         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70057         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70058         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70059         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70060         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70061         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70062         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70063         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70064         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70065         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70066         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70067         with modifications.
70068         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70069         with modifications.
70070         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70071         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70072         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70073         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70074         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70075         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70076         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70077         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70078         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70079         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70080         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70081         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70082         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70083         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70084         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70085         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70086         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70087         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70088         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70089         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70090         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70091         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70092         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70093         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70094         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70095         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70096         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70097         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70098         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70099         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70100         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70101         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70102         * tests/havelib/rpathx/rpathx.c: New file, from
70103         gettext/autoconf-lib-link.
70104         * tests/havelib/rpathx/Makefile.am: New file, from
70105         gettext/autoconf-lib-link.
70106         * tests/havelib/rpathx/configure.ac: New file, from
70107         gettext/autoconf-lib-link with modifications.
70108         * tests/havelib/rpathy/rpathy.c: New file, from
70109         gettext/autoconf-lib-link.
70110         * tests/havelib/rpathy/Makefile.am: New file, from
70111         gettext/autoconf-lib-link.
70112         * tests/havelib/rpathy/configure.ac: New file, from
70113         gettext/autoconf-lib-link with modifications.
70114         * tests/havelib/rpathz/rpathz.c: New file, from
70115         gettext/autoconf-lib-link.
70116         * tests/havelib/rpathz/Makefile.am: New file, from
70117         gettext/autoconf-lib-link.
70118         * tests/havelib/rpathz/configure.ac: New file, from
70119         gettext/autoconf-lib-link with modifications.
70120         * tests/havelib/rpathlx/usex.c: New file, from
70121         gettext/autoconf-lib-link.
70122         * tests/havelib/rpathlx/Makefile.am: New file, from
70123         gettext/autoconf-lib-link.
70124         * tests/havelib/rpathlx/configure.ac: New file, from
70125         gettext/autoconf-lib-link with modifications.
70126         * tests/havelib/rpathly/usey.c: New file, from
70127         gettext/autoconf-lib-link.
70128         * tests/havelib/rpathly/Makefile.am: New file, from
70129         gettext/autoconf-lib-link.
70130         * tests/havelib/rpathly/configure.ac: New file, from
70131         gettext/autoconf-lib-link with modifications.
70132         * tests/havelib/rpathlz/usez.c: New file, from
70133         gettext/autoconf-lib-link.
70134         * tests/havelib/rpathlz/Makefile.am: New file, from
70135         gettext/autoconf-lib-link.
70136         * tests/havelib/rpathlz/configure.ac: New file, from
70137         gettext/autoconf-lib-link with modifications.
70138         * tests/havelib/rpathlyx/usey.c: New file, from
70139         gettext/autoconf-lib-link.
70140         * tests/havelib/rpathlyx/Makefile.am: New file, from
70141         gettext/autoconf-lib-link.
70142         * tests/havelib/rpathlyx/configure.ac: New file, from
70143         gettext/autoconf-lib-link with modifications.
70144         * tests/havelib/rpathlzyx/usez.c: New file, from
70145         gettext/autoconf-lib-link.
70146         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70147         gettext/autoconf-lib-link.
70148         * tests/havelib/rpathlzyx/configure.ac: New file, from
70149         gettext/autoconf-lib-link with modifications.
70150         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70151         with modifications.
70153 2010-04-02  Bruno Haible  <bruno@clisp.org>
70155         gnulib-tool: Create distributed built sources also for the tests.
70156         * gnulib-tool (func_create_testdir): Also generate distributed built
70157         sources in the tests directory.
70159 2010-04-02  Bruno Haible  <bruno@clisp.org>
70161         gnulib-tool: Obey user's environment variables.
70162         * gnulib-tool (func_create_testdir): When creating built sources,
70163         respect the environment variables for autoconf, automake, etc. given by
70164         the user.
70166 2010-04-02  Bruno Haible  <bruno@clisp.org>
70168         gnulib-tool: Provide the value of --m4-base to modules.
70169         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70170         of gl_m4_base.
70172 2010-04-02  Eric Blake  <eblake@redhat.com>
70174         maint.mk: fix some fallout
70175         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70176         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70178 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70180         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70181         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70182         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70183         (sc_cast_of_x_alloc_return_value): Likewise.
70184         (sc_cast_of_alloca_return_value): Likewise.
70185         (sc_space_tab): Likewise.
70186         (sc_prohibit_atoi_atof): Likewise.
70187         (sc_prohibit_magic_number_exit): Likewise.
70188         (sc_error_exit_success): Likewise.
70189         (sc_file_system): Likewise.
70190         (sc_prohibit_have_config_h): Likewise.
70191         (sc_require_config_h): Likewise.
70192         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70193         (sc_obsolete_symbols): Likewise.
70194         (sc_changelog): Likewise.
70195         (sc_program_name): Likewise.
70196         (sc_the_the): Likewise.
70197         (sc_trailing_blank): Likewise.
70198         (sc_two_space_separator_in_usage): Likewise.
70199         (sc_useless_cpp_parens): Likewise.
70200         (sc_GPL_version): Likewise.
70201         (sc_GFDL_version): Likewise.
70202         (sc_texinfo_acronym): Likewise.
70203         (sc_prohibit_cvs_keyword): Likewise.
70204         (sc_prohibit_stat_st_blocks): Likewise.
70205         (sc_prohibit_S_IS_definition): Likewise.
70206         (sc_redundant_const): Likewise.
70207         (sc_makefile_TAB_only_indentation): Likewise.
70208         (sc_m4_quote_check): Likewise.
70209         (sc_makefile_path_separator_check): Likewise.
70210         (sc_copyright_check): Likewise.
70211         (sc_Wundef_boolean): Likewise.
70212         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70214         maint.mk: match 0 or more whitespace-before-function-call '('
70215         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70216         that have zero or two-and-more spaces between the function name
70217         and the open parenthesis.
70218         (sc_error_message_warn_fatal): Likewise.
70219         (sc_error_message_uppercase): Likewise.
70220         (sc_error_message_period): Likewise.
70222 2010-03-31  Eric Blake  <eblake@redhat.com>
70224         maint.mk: check for [ as well as test
70225         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70226         Based on a libvirt report by Matthias Bolte.
70228         gnumakefile: don't squelch _version output
70229         * top/GNUmakefile (_version): Create one-shot dependency rather
70230         than using $(shell) when version must be regenerated.
70231         (_autoreconf): Run verbosely, by default.
70233         sys_time: avoid compiler warnings
70234         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70235         unconditional, fixing regression from 2010-03-29.
70236         Reported by Simon Josefsson.
70238 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70240         maint.mk: s/_header_without_use/_sc_header_without_use/
70241         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70242         (sc_prohibit_assert_without_use): Use the new name.
70243         (sc_prohibit_close_stream_without_use): Likewise.
70244         (sc_prohibit_getopt_without_use): Likewise.
70245         (sc_prohibit_quotearg_without_use): Likewise.
70246         (sc_prohibit_quote_without_use): Likewise.
70247         (sc_prohibit_long_options_without_use): Likewise.
70248         (sc_prohibit_inttostr_without_use): Likewise.
70249         (sc_prohibit_ignore_value_without_use): Likewise.
70250         (sc_prohibit_error_without_use): Likewise.
70251         (sc_prohibit_xalloc_without_use): Likewise.
70252         (sc_prohibit_hash_without_use): Likewise.
70253         (sc_prohibit_hash_pjw_without_use): Likewise.
70254         (sc_prohibit_safe_read_without_use): Likewise.
70255         (sc_prohibit_argmatch_without_use): Likewise.
70256         (sc_prohibit_canonicalize_without_use): Likewise.
70257         (sc_prohibit_root_dev_ino_without_use): Likewise.
70258         (sc_prohibit_openat_without_use): Likewise.
70259         (sc_prohibit_c_ctype_without_use): Likewise.
70260         (sc_prohibit_signal_without_use): Likewise.
70261         (sc_prohibit_intprops_without_use): Likewise.
70263 2010-03-30  Eric Blake  <eblake@redhat.com>
70265         maint: improve module indicators
70266         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70267         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70268         columns, and avoid extra macro expansion.
70270         fdopendir: work around FreeBSD bug
70271         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70272         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70273         * modules/dirent (Makefile.am): Substitute it.
70274         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70275         declaration.
70276         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70277         fix.
70278         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70280 2010-03-29  Bruno Haible  <bruno@clisp.org>
70282         Emit #pragma system_header after the inclusion guard, not before.
70283         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70284         guard that spans the entire file, not before. This enables an
70285         optimization in GCC's preprocessor.
70286         * lib/ctype.in.h: Likewise.
70287         * lib/dirent.in.h: Likewise.
70288         * lib/errno.in.h: Likewise.
70289         * lib/float.in.h: Likewise.
70290         * lib/getopt.in.h: Likewise.
70291         * lib/iconv.in.h: Likewise.
70292         * lib/langinfo.in.h: Likewise.
70293         * lib/locale.in.h: Likewise.
70294         * lib/math.in.h: Likewise.
70295         * lib/netdb.in.h: Likewise.
70296         * lib/netinet_in.in.h: Likewise.
70297         * lib/pty.in.h: Likewise.
70298         * lib/sched.in.h: Likewise.
70299         * lib/se-selinux.in.h: Likewise.
70300         * lib/search.in.h: Likewise.
70301         * lib/spawn.in.h: Likewise.
70302         * lib/stdarg.in.h: Likewise.
70303         * lib/stdint.in.h: Likewise.
70304         * lib/string.in.h: Likewise.
70305         * lib/strings.in.h: Likewise.
70306         * lib/sys_file.in.h: Likewise.
70307         * lib/sys_ioctl.in.h: Likewise.
70308         * lib/sys_time.in.h: Likewise.
70309         * lib/sys_times.in.h: Likewise.
70310         * lib/sys_utsname.in.h: Likewise.
70311         * lib/sys_wait.in.h: Likewise.
70312         * lib/sysexits.in.h: Likewise.
70313         * lib/wctype.in.h: Likewise.
70315 2010-03-28  James Youngman  <jay@gnu.org>
70317         save-cwd: don't leak a file descriptor when the caller execs.
70318         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70319         saved file descriptor.
70320         * modules/save-cwd (Depends-on): Depend on cloexec.
70322 2010-03-29  Bruno Haible  <bruno@clisp.org>
70324         Remove vestiges of fts-lgpl module.
70325         * lib/fts_.h: Assume GNULIB_FTS is 1.
70326         * lib/fts.c: Likewise.
70327         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70329 2010-03-28  Bruno Haible  <bruno@clisp.org>
70331         Fix definition of tests witness macro.
70332         * gnulib-tool (func_import): Fix definition of witness macro.
70334 2010-03-28  Bruno Haible  <bruno@clisp.org>
70336         Fix ioctl's protoype on glibc systems.
70337         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70338         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70339         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70340         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70341         signature. If not, arrange to replace the ioctl function.
70342         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70343         REPLACE_IOCTL.
70344         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70345         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70346         Reported by Ludovic Courtès <ludo@gnu.org>.
70348 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70350         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70351         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70352         made it so grep -r --include=GLOB* ... did not work.
70354 2010-03-26  Jim Meyering  <meyering@redhat.com>
70355             Eric Blake  <eblake@redhat.com>
70357         maint.mk: prohibit use of test's -o and -a operators
70358         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70360 2010-03-28  Bruno Haible  <bruno@clisp.org>
70362         Remove unused GNULIB_XYZ macro definitions.
70363         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70364         invocation.
70366 2010-03-28  Bruno Haible  <bruno@clisp.org>
70368         Mark privileged tests modules.
70369         * modules/idpriv-drop-tests (Status): New section.
70370         * modules/idpriv-droptemp-tests (Status): New section.
70372 2010-03-28  Bruno Haible  <bruno@clisp.org>
70374         Split C++ tests into separate tests modules.
70375         * modules/dirent-c++-tests: New file, extracted from
70376         modules/dirent-tests.
70377         * modules/dirent-tests: Depend on it.
70378         * modules/fcntl-h-c++-tests: New file, extracted from
70379         modules/fcntl-h-tests.
70380         * modules/fcntl-h-tests: Depend on it.
70381         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70382         * modules/glob-tests: Depend on it.
70383         * modules/iconv-h-c++-tests: New file, extracted from
70384         modules/iconv-h-tests.
70385         * modules/iconv-h-tests: Depend on it.
70386         * modules/langinfo-c++-tests: New file, extracted from
70387         modules/langinfo-tests.
70388         * modules/langinfo-tests: Depend on it.
70389         * modules/locale-c++-tests: New file, extracted from
70390         modules/locale-tests.
70391         * modules/locale-tests: Depend on it.
70392         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70393         * modules/math-tests: Depend on it.
70394         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70395         * modules/pty-tests: Depend on it.
70396         * modules/search-c++-tests: New file, extracted from
70397         modules/search-tests.
70398         * modules/search-tests: Depend on it.
70399         * modules/signal-c++-tests: New file, extracted from
70400         modules/signal-tests.
70401         * modules/signal-tests: Depend on it.
70402         * modules/spawn-c++-tests: New file, extracted from
70403         modules/spawn-tests.
70404         * modules/spawn-tests: Depend on it.
70405         * modules/stdio-c++-tests: New file, extracted from
70406         modules/stdio-tests.
70407         * modules/stdio-tests: Depend on it.
70408         * modules/stdlib-c++-tests: New file, extracted from
70409         modules/stdlib-tests.
70410         * modules/stdlib-tests: Depend on it.
70411         * modules/string-c++-tests: New file, extracted from
70412         modules/string-tests.
70413         * modules/string-tests: Depend on it.
70414         * modules/sys_ioctl-c++-tests: New file, extracted from
70415         modules/sys_ioctl-tests.
70416         * modules/sys_ioctl-tests: Depend on it.
70417         * modules/sys_select-c++-tests: New file, extracted from
70418         modules/sys_select-tests.
70419         * modules/sys_select-tests: Depend on it.
70420         * modules/sys_socket-c++-tests: New file, extracted from
70421         modules/sys_socket-tests.
70422         * modules/sys_socket-tests: Depend on it.
70423         * modules/sys_stat-c++-tests: New file, extracted from
70424         modules/sys_stat-tests.
70425         * modules/sys_stat-tests: Depend on it.
70426         * modules/sys_time-c++-tests: New file, extracted from
70427         modules/sys_time-tests.
70428         * modules/sys_time-tests: Depend on it.
70429         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70430         * modules/time-tests: Depend on it.
70431         * modules/unistd-c++-tests: New file, extracted from
70432         modules/unistd-tests.
70433         * modules/unistd-tests: Depend on it.
70434         * modules/wchar-c++-tests: New file, extracted from
70435         modules/wchar-tests.
70436         * modules/wchar-tests: Depend on it.
70437         * modules/wctype-c++-tests: New file, extracted from
70438         modules/wctype-tests.
70439         * modules/wctype-tests: Depend on it.
70440         Reported by Simon Josefsson.
70442 2010-03-28  Bruno Haible  <bruno@clisp.org>
70444         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70445         * gnulib-tool (func_exists_module): New function, extracted from
70446         func_verify_module.
70447         (func_verify_module): Use it.
70448         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70449         'foo' only if 'foo' exists.
70450         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70451         module.
70453 2010-03-28  Bruno Haible  <bruno@clisp.org>
70455         gnulib-tool: Add support for special categories of tests.
70456         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70457         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70458         (func_usage): Document them.
70459         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70460         inc_unportable_tests, inc_all_tests): New variables.
70461         (func_acceptable): Consider these variables.
70462         (func_modules_transitive_closure): Make it work when the 'Status' field
70463         consists of multiple words.
70464         (func_import): Store and restore the values of inc_cxx_tests,
70465         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70466         inc_all_tests in gnulib-comp.m4.
70467         (func_create_testdir): Set inc_all_tests to true.
70468         * doc/gnulib.texi (Extra tests modules): New section.
70469         Suggested by Jim Meyering.
70471 2010-03-28  Bruno Haible  <bruno@clisp.org>
70473         ansi-c++-opt: Allow turning off the C++ build by default.
70474         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70475         gl_CXX_CHOICE_DEFAULT_NO is defined.
70476         Requested by Eric Blake.
70478 2010-03-28  Bruno Haible  <bruno@clisp.org>
70480         unistd: Avoid #define replacements in C++ mode.
70481         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70482         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70483         setsockopt, shutdown, select): In C++, attach a warning to the function
70484         if possible, rather than #defining the symbol to a dysfunctional alias.
70485         Reported by John W. Eaton <jwe@gnu.org>.
70487 2010-03-28  Bruno Haible  <bruno@clisp.org>
70489         Fix link errors on mingw.
70490         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70491         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70492         $(LIBSOCKET).
70493         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70494         $(LIBSOCKET).
70496 2010-03-28  Bruno Haible  <bruno@clisp.org>
70497             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70499         lib-ignore: Determine different options for different compilers.
70500         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70501         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70502         Add comments.
70503         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70504         * NEWS: Mention the change.
70506 2010-03-27  Bruno Haible  <bruno@clisp.org>
70508         Remove unused GNULIB_XYZ macro definitions.
70509         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70510         * modules/fseek (configure.ac): Likewise.
70511         * modules/ioctl (configure.ac): Likewise.
70512         * modules/open (configure.ac): Likewise.
70513         * modules/stdlib-safer (configure.ac): Likewise.
70515 2010-03-27  Bruno Haible  <bruno@clisp.org>
70517         Add a remark about certain modules.
70518         * modules/malloc (Comment): New section.
70519         * modules/realloc (Comment): Likewise.
70520         * modules/sigpipe (Comment): Likewise.
70522 2010-03-27  Bruno Haible  <bruno@clisp.org>
70524         Resolve conflict between the two kinds of module indicators.
70525         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70526         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70527         * modules/canonicalize (configure.ac): Invoke
70528         gl_MODULE_INDICATOR_FOR_TESTS.
70529         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70530         GNULIB_XYZ.
70531         * tests/test-dirent-c++.cc: Likewise.
70532         * tests/test-dirent-safer.c: Likewise.
70533         * tests/test-dup2.c: Likewise.
70534         * tests/test-fchdir.c: Likewise.
70535         * tests/test-fcntl-h-c++.cc: Likewise.
70536         * tests/test-getopt.c: Likewise.
70537         * tests/test-getopt.h: Likewise.
70538         * tests/test-langinfo-c++.cc: Likewise.
70539         * tests/test-locale-c++.cc: Likewise.
70540         * tests/test-math-c++.cc: Likewise.
70541         * tests/test-pty-c++.cc: Likewise.
70542         * tests/test-search-c++.cc: Likewise.
70543         * tests/test-signal-c++.cc: Likewise.
70544         * tests/test-spawn-c++.cc: Likewise.
70545         * tests/test-stdio-c++.cc: Likewise.
70546         * tests/test-stdlib-c++.cc: Likewise.
70547         * tests/test-string-c++.cc: Likewise.
70548         * tests/test-sys_ioctl-c++.cc: Likewise.
70549         * tests/test-sys_select-c++.cc: Likewise.
70550         * tests/test-sys_socket-c++.cc: Likewise.
70551         * tests/test-sys_stat-c++.cc: Likewise.
70552         * tests/test-sys_time-c++.cc: Likewise.
70553         * tests/test-time-c++.cc: Likewise.
70554         * tests/test-unistd-c++.cc: Likewise.
70555         * tests/test-wchar-c++.cc: Likewise.
70556         * tests/uninorm/test-u8-nfc.c: Likewise.
70557         * tests/uninorm/test-u8-nfd.c: Likewise.
70558         * tests/uninorm/test-u8-nfkc.c: Likewise.
70559         * tests/uninorm/test-u8-nfkd.c: Likewise.
70560         * tests/uninorm/test-u16-nfc.c: Likewise.
70561         * tests/uninorm/test-u16-nfd.c: Likewise.
70562         * tests/uninorm/test-u16-nfkc.c: Likewise.
70563         * tests/uninorm/test-u16-nfkd.c: Likewise.
70564         * tests/uninorm/test-u32-nfc.c: Likewise.
70565         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70566         * tests/uninorm/test-u32-nfd.c: Likewise.
70567         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70568         * tests/uninorm/test-u32-nfkc.c: Likewise.
70569         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70570         * tests/uninorm/test-u32-nfkd.c: Likewise.
70571         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70572         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70574 2010-03-27  Bruno Haible  <bruno@clisp.org>
70576         Distinguish two kinds of module indicators.
70577         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70578         gl_MODULE_INDICATOR.
70579         (gl_MODULE_INDICATOR): New macro.
70580         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70581         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70583         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70584         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70585         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70586         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70587         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70588         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70589         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70590         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70591         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70594         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70595         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70596         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70597         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70598         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70599         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70600         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70601         * modules/cloexec (configure.ac): Likewise.
70602         * modules/getopt-gnu (configure.ac): Likewise.
70603         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70604         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70605         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70606         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70608 2010-03-27  Bruno Haible  <bruno@clisp.org>
70610         New module description field 'Comment'.
70611         * gnulib-tool: New option --extract-comment.
70612         (func_usage): Document it.
70613         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70614         (func_get_comment): New function.
70615         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70617 2010-03-27  Bruno Haible  <bruno@clisp.org>
70619         Addendum to 2010-02-07 commit.
70620         * gnulib-tool (func_usage): Document --extract-applicability option.
70622 2010-03-27  Bruno Haible  <bruno@clisp.org>
70624         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70625         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70626         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70627         rather than link errors.
70629 2010-03-27  Bruno Haible  <bruno@clisp.org>
70631         Avoid side effects from tests-related modules on the compilation of lib.
70632         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70633         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70634         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70635         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70636         macro.
70637         (func_import): Define a witness macro. Assign it a value that depends
70638         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70639         tests-related modules.
70640         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70641         Reported by Jim Meyering.
70643 2010-03-27  Bruno Haible  <bruno@clisp.org>
70645         Factorize common .m4 code.
70646         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70647         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70648         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70649         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70650         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70651         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70652         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70653         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70654         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70655         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70656         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70657         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70658         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70659         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70660         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70661         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70662         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70663         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70665         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70666         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70667         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70668         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70670         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70671         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70672         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70673         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70674         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70675         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70676         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70677         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70679 2010-03-27  Bruno Haible  <bruno@clisp.org>
70681         Fix a compilation error on Cygwin with g++ >= 4.3.
70682         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70683         if it is undefined or if we alias it to chmod.
70684         (lstat): Don't warn about the use of this function if it is undefined
70685         or if we alias it to stat.
70686         Reported by Simon Josefsson.
70688 2010-03-27  Bruno Haible  <bruno@clisp.org>
70690         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70691         * modules/getlogin (configure.ac): Update.
70693         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70694         * modules/getlogin_r (configure.ac): Update.
70696         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70697         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70698         * modules/inet_ntop (configure.ac): Update.
70700         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70701         * modules/inet_pton (configure.ac): Update.
70703         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70704         * modules/mbslen (configure.ac): Update.
70706         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70707         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70708         * modules/forkpty (configure.ac): Update.
70709         * modules/openpty (configure.ac): Update.
70711 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70713         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70714         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70716 2010-03-25  Eric Blake  <eblake@redhat.com>
70718         maint: use pragma consistently across replacement headers
70719         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70720         * lib/dirent.in.h (system_header): Likewise.
70721         * lib/errno.in.h (system_header): Likewise.
70722         * lib/float.in.h (system_header): Likewise.
70723         * lib/getopt.in.h (system_header): Likewise.
70724         * lib/iconv.in.h (system_header): Likewise.
70725         * lib/inttypes.in.h (system_header): Likewise.
70726         * lib/langinfo.in.h (system_header): Likewise.
70727         * lib/locale.in.h (system_header): Likewise.
70728         * lib/math.in.h (system_header): Likewise.
70729         * lib/netdb.in.h (system_header): Likewise.
70730         * lib/netinet_in.in.h (system_header): Likewise.
70731         * lib/pty.in.h (system_header): Likewise.
70732         * lib/sched.in.h (system_header): Likewise.
70733         * lib/se-selinux.in.h (system_header): Likewise.
70734         * lib/search.in.h (system_header): Likewise.
70735         * lib/spawn.in.h (system_header): Likewise.
70736         * lib/stdarg.in.h (system_header): Likewise.
70737         * lib/stdint.in.h (system_header): Likewise.
70738         * lib/string.in.h (system_header): Likewise.
70739         * lib/strings.in.h (system_header): Likewise.
70740         * lib/sys_file.in.h (system_header): Likewise.
70741         * lib/sys_ioctl.in.h (system_header): Likewise.
70742         * lib/sys_socket.in.h (system_header): Likewise.
70743         * lib/sys_times.in.h (system_header): Likewise.
70744         * lib/sys_utsname.in.h (system_header): Likewise.
70745         * lib/sys_wait.in.h (system_header): Likewise.
70746         * lib/sysexits.in.h (system_header): Likewise.
70747         * lib/unistd.in.h (system_header): Likewise.
70748         * lib/wctype.in.h (system_header): Likewise.
70750         arpa/inet: fix mingw compilation warning
70751         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70752         Reported by Matthew Bolte.
70754 2010-03-25  Bruno Haible  <bruno@clisp.org>
70756         Avoid collision between gnulib wrapper and libintl wrapper.
70757         * lib/printf.c (printf): Don't define if a printf wrapper is already
70758         defined in intl/printf.c.
70759         Reported by Michel Boaventura <michel@michelboaventura.com>.
70761 2010-03-25  Bruno Haible  <bruno@clisp.org>
70763         Use ANSI C.
70764         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70766 2010-03-25  Bruno Haible  <bruno@clisp.org>
70768         Minor formatting changes.
70769         * lib/acosl.c: Insert space before function argument list.
70770         * lib/argz.c: Likewise.
70771         * lib/asinl.c: Likewise.
70772         * lib/expl.c: Likewise.
70773         * lib/gen-uni-tables.c: Likewise.
70774         * lib/gettext.h: Likewise.
70775         * lib/glthread/lock.h: Likewise.
70776         * lib/tanl.c: Likewise.
70777         * lib/uniname/uniname.c: Likewise.
70778         * tests/test-idpriv-drop.c: Likewise.
70779         * tests/test-idpriv-droptemp.c: Likewise.
70780         * tests/test-lock.c: Likewise.
70781         * tests/test-tls.c: Likewise.
70782         * lib/argp-help.c: Insert space before function-like macro argument
70783         list.
70784         * lib/memcmp.c: Likewise.
70785         * tests/test-base64.c: Likewise.
70786         * lib/localename.c: Insert space before sizeof's argument list.
70787         * lib/safe-alloc.h: Likewise.
70788         * lib/file-set.h: Insert space before macro argument list.
70789         * tests/test-argp.c: Likewise.
70790         * lib/argp-namefrob.h: Insert space before function parameter list.
70791         * lib/getaddrinfo.c: Likewise.
70792         * lib/netdb.in.h: Likewise.
70793         * lib/parse-duration.h: Likewise.
70794         * lib/parse-duration.c: Likewise.
70795         * lib/poll.c: Likewise.
70796         * lib/select.c: Likewise.
70797         * lib/trim.h: Likewise.
70798         * tests/test-usleep.c: Likewise.
70799         * lib/ldexpl.c: Insert space before function parameter list and before
70800         function argument list.
70801         * lib/logl.c: Likewise.
70802         * lib/sqrtl.c: Likewise.
70803         * lib/trim.c: Likewise.
70804         * lib/cosl.c: Use GNU style indentation. Insert space before function
70805         argument list.
70806         * lib/sinl.c: Likewise.
70807         * lib/tsearch.c: Insert space after 'for'.
70808         Reported by Jim Meyering.
70810 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70812         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70813         config header before grepping, as it's not present before
70814         autoreconf/configure are run.  Reported by Simon Josefsson.
70816 2010-03-23  Bruno Haible  <bruno@clisp.org>
70818         pt_chown: Make it work with automake < 1.11.
70819         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70820         Reported by Simon Josefsson.
70822 2010-03-23  Bruno Haible  <bruno@clisp.org>
70824         pt_chown: Don't depend on GPLed modules.
70825         * lib/pt_chown.c: Don't include idpriv.h.
70826         (main): Don't drop privileges.
70827         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70828         Reported by Simon Josefsson.
70830 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70832         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70833         suggestions from karl@freefriends.org (Karl Berry).
70835 2010-03-22  Eric Blake  <eblake@redhat.com>
70837         gethostname: further tweaks
70838         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70839         are overriding gethostname.
70840         Suggested by Bruno Haible.
70842 2010-03-21  Bruno Haible  <bruno@clisp.org>
70844         Fix comments.
70845         * lib/forkpty.c (rpl_forkpty): Fix comment.
70846         * lib/openpty.c (rpl_openpty): Likewise.
70847         Reported by Eric Blake.
70849 2010-03-22  Eric Blake  <eblake@redhat.com>
70851         gethostname: fix build on mingw
70852         * lib/unistd.in.h (includes): Work around fact that mingw
70853         <winsock2.h> re-includes <unistd.h>, by avoiding any
70854         redeclarations if we are being included by <winsock2.h>.
70855         Reported by Matthias Bolte.
70857 2010-03-21  Bruno Haible  <bruno@clisp.org>
70859         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70860         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70861         modifications.
70862         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70863         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70864         provide the replacement.
70865         * modules/forkpty (Depends-on): Add openpty, login_tty.
70866         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70867         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70868         * doc/glibc-functions/forkpty.texi: More supported platforms.
70869         * config/srclist.txt: Add forkpty.c (commented).
70871 2010-03-21  Bruno Haible  <bruno@clisp.org>
70873         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70874         (Makefile.am): Verify that PTY_LIB is defined.
70876         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70878 2010-03-21  Bruno Haible  <bruno@clisp.org>
70880         Tests for module 'login_tty'.
70881         * modules/login_tty-tests: New file.
70882         * tests/test-login_tty.c: New file.
70884         New module 'login_tty'.
70885         * lib/login_tty.c: New file.
70886         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70887         * modules/login_tty: New file.
70888         * doc/glibc-functions/login_tty.texi: Mention the new module.
70890 2010-03-21  Bruno Haible  <bruno@clisp.org>
70892         login_tty: Documentation.
70893         * doc/glibc-functions/login_tty.texi: New file.
70894         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70896 2010-03-21  Bruno Haible  <bruno@clisp.org>
70898         pty: Consistent macro naming.
70899         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70900         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70901         * modules/pty (configure.ac): Update.
70903 2010-03-21  Bruno Haible  <bruno@clisp.org>
70905         Tests for openpty: Make stricter.
70906         * tests/test-openpty.c (main): Add test of canonical processing and
70907         erase.
70908         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70910         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70911         * lib/openpty.c (openpty): New replacement function.
70912         * lib/pty.in.h: Include <termios.h>.
70913         (openpty): Update declaration. Add comments.
70914         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70915         is not declared, arrange to provide the replacement. Check for _getpty
70916         and posix_openpt.
70917         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70918         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70919         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70920         * modules/pty-tests (test_pty_c___LDADD): New variable.
70921         * doc/glibc-functions/openpty.texi: More supported platforms.
70923 2010-03-21  Bruno Haible  <bruno@clisp.org>
70925         setenv: Tweaks.
70926         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70927         the test program.
70928         * doc/posix-functions/setenv.texi: Update platforms list.
70930 2010-03-21  Bruno Haible  <bruno@clisp.org>
70932         New module 'unlockpt'.
70933         * lib/unlockpt.c: New file, from glibc with modifications.
70934         * m4/unlockpt.m4: New file.
70935         * modules/unlockpt: New file.
70936         * lib/stdlib.in.h (unlockpt): New declaration.
70937         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70938         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70939         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70940         HAVE_UNLOCKPT.
70941         * doc/posix-functions/unlockpt.texi: Mention the new module.
70942         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70943         * config/srclist.txt: Add unlockpt.c (commented).
70945 2010-03-21  Jim Meyering  <meyering@redhat.com>
70947         maint.mk: prohibit inclusion of "intprops.h" without use
70948         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70950 2010-03-21  Bruno Haible  <bruno@clisp.org>
70952         New module 'grantpt'.
70953         * lib/grantpt.c: New file, from glibc with modifications.
70954         * m4/grantpt.m4: New file.
70955         * modules/grantpt: New file.
70956         * lib/stdlib.in.h (grantpt): New declaration.
70957         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70958         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70959         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70960         HAVE_GRANTPT.
70961         * doc/posix-functions/grantpt.texi: Mention the new module.
70962         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70963         * config/srclist.txt: Add grantpt.c (commented).
70965 2010-03-21  Bruno Haible  <bruno@clisp.org>
70967         New module 'pt_chown'.
70968         * lib/pt_chown.c: New file, from glibc with modifications.
70969         * lib/pty-private.h: New file, from glibc with modifications.
70970         * modules/pt_chown: New file.
70971         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70973 2010-03-21  Bruno Haible  <bruno@clisp.org>
70975         Tests for module 'ptsname'.
70976         * modules/ptsname-tests: New file.
70977         * tests/test-ptsname.c: New file.
70979         New module 'ptsname'.
70980         * lib/ptsname.c: New file, from glibc with modifications.
70981         * m4/ptsname.m4: New file.
70982         * modules/ptsname: New file.
70983         * lib/stdlib.in.h (ptsname): New declaration.
70984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70985         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70986         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70987         HAVE_PTSNAME.
70988         * doc/posix-functions/ptsname.texi: Mention the new module.
70989         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70990         * config/srclist.txt: Add ptsname.c (commented).
70992 2010-03-21  Bruno Haible  <bruno@clisp.org>
70994         Tests for module 'ttyname_r'.
70995         * modules/ttyname_r-tests: New file.
70996         * tests/test-ttyname_r.c: New file.
70998         New module 'ttyname_r'.
70999         * lib/ttyname_r.c: New file.
71000         * m4/ttyname_r.m4: New file.
71001         * modules/ttyname_r: New file.
71002         * lib/unistd.in.h (ttyname_r): New declaration.
71003         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71004         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71005         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71006         HAVE_TTYNAME_R.
71007         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71008         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71010 2010-03-20  Bruno Haible  <bruno@clisp.org>
71012         signal: Undefine macro definitions in C++ mode.
71013         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71014         sigfillset): Undefine macro definitions from the system header in C++
71015         mode.
71016         Reported by John W. Eaton <jwe@gnu.org>.
71018 2010-03-20  Bruno Haible  <bruno@clisp.org>
71020         Ensure no #include statements inside extern "C" { ... }.
71021         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71022         contain #include statements.
71023         * lib/time.in.h: Likewise.
71025 2010-03-20  Bruno Haible  <bruno@clisp.org>
71027         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71028         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71029         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71030         Reported by John W. Eaton <jwe@gnu.org>.
71032 2010-03-20  Bruno Haible  <bruno@clisp.org>
71034         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71035         Reported by Jim Meyering.
71037 2010-03-20  Bruno Haible  <bruno@clisp.org>
71039         pipe: Set errno upon failure.
71040         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71041         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71042         errno value in error message.
71044 2010-03-20  Bruno Haible  <bruno@clisp.org>
71045             Jim Meyering  <meyering@redhat.com>
71047         lchown: Avoid "unused variable" warning.
71048         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71050 2010-03-20  Bruno Haible  <bruno@clisp.org>
71052         Work around unlink() bug on MacOS X 10.5.6.
71053         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71054         attempting to unlink a parent directory.
71055         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71056         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71057         activate for the replacement function.
71058         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71060 2010-03-20  Bruno Haible  <bruno@clisp.org>
71062         Fix link errors on Solaris 8.
71063         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71064         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71066 2010-03-19  Jim Meyering  <meyering@redhat.com>
71068         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71069         The _LIBC implementation of build_range_exp correctly honors the
71070         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71071         However, the non-_LIBC implementation would ignore that syntax-bit
71072         flag and return REG_ERANGE unconditionally.
71073         This change makes it honor that flag.
71074         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71075         Make two pointer parameters "const".
71076         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71077         (parse_bracket_exp): Update caller.
71079         regex.m4: correct the reversed range endpoint ([b-a]) test
71080         * m4/regex.m4: When requiring that [b-a] evoke failure,
71081         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71082         test pass once again for x86-based systems.
71084 2010-03-19  Bruno Haible  <bruno@clisp.org>
71086         scandir: Fix link error on Solaris 8.
71087         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71088         macros.
71090 2010-03-19  Bruno Haible  <bruno@clisp.org>
71092         getusershell: Fix documentation.
71093         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71094         module.
71095         * doc/glibc-functions/setusershell.texi: Likewise.
71097         getusershell: Provide declaration, missing on Solaris 9.
71098         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71099         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71100         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71101         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71103         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71104         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71105         HAVE_GETUSERSHELL.
71106         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71108 2010-03-19  Bruno Haible  <bruno@clisp.org>
71110         wctype: Provide iswblank function.
71111         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71112         exists and is fine.
71113         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71114         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71115         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71116         * doc/posix-functions/iswblank.texi: Update.
71118 2010-03-19  Bruno Haible  <bruno@clisp.org>
71120         Tests of module 'pty' in C++ mode.
71121         * modules/pty-tests: New file.
71122         * tests/test-pty-c++.cc: New file.
71123         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71125 2010-03-19  Eric Blake  <eblake@redhat.com>
71127         logb: fix documentation
71128         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71129         1.5 declaration bug.
71131         forkpty, openpty: prefer glibc's const-safe prototype
71132         * lib/forkpty.c (rpl_forkpty): New file.
71133         * lib/openpty.c (rpl_openpty): Likewise.
71134         * modules/forkpty (Files): Distribute it.
71135         * modules/openpty (Files): Likewise.
71136         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71137         check...
71138         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71139         replacement for non-const BSD signature.
71140         * modules/pty (Makefile.am): Substitute witnesses.
71141         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71142         * tests/test-forkpty.c: Update signature check.
71143         * tests/test-openpty.c: Likewise.
71144         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71145         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71147         forkpty, openpty: split functions into new modules
71148         * modules/pty (Makefile.am): Substitute new witnesses.
71149         (Libraries): Move library detection...
71150         * modules/forkpty: ...into new module.
71151         * modules/openpty: Another new module.
71152         * modules/pty-tests: Rename and split...
71153         * modules/forkpty-tests: ...to this...
71154         * modules/openpty-tests: ...and this.
71155         * tests/test-pty.c: Rename and split...
71156         * tests/test-forkpty.c: ...to this...
71157         * tests/test-openpty.c: ...and this.
71158         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71159         (gl_PTY): Split library searching...
71160         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71161         (gl_FORKPTY, gl_OPENPTY): New macros.
71162         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71163         * NEWS: Mention the split.
71164         * MODULES.html.sh (Misc): Document the modules.
71165         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71166         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71168         pty: improve replacement header
71169         * lib/pty.in.h: New file.
71170         * modules/pty (Files): Ship it.
71171         (Makefile.am): Always build replacement.
71172         * m4/pty.m4: Rename...
71173         * m4/pty_h.m4: ...to this.
71174         (gl_PTY): Modernize setting of witness macros; update check of
71175         forkpty to take proper advantage of cache.
71176         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71178         getopt: avoid compiler warning
71179         * lib/getopt.c (attribute_hidden): Remove unused macro.
71181 2010-03-18  Bruno Haible  <bruno@clisp.org>
71183         Fix link errors on Solaris 8.
71184         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71185         * modules/search-tests (test_search_c___LDADD): Likewise.
71186         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71187         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71188         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71189         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71190         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71191         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71192         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71194 2010-03-18  Bruno Haible  <bruno@clisp.org>
71196         Fix bug introduced on 2010-03-14.
71197         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71198         (gl_SPAWN_H): Require it.
71199         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71200         Reported by Simon Josefsson.
71202 2010-03-18  Bruno Haible  <bruno@clisp.org>
71204         Fix typo introduced on 2009-12-31.
71205         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71206         posix_spawn_file_actions_adddup2.
71208 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71209         and Eric Blake  <eblake@redhat.com>
71211         test-vc-list-files-git: make more robust
71212         * tests/test-vc-list-files-git.sh: Unset problematic environment
71213         variables.  Chain commands together.
71215 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71217         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71218         `AC_CHECK_DECL' invocation.
71220 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71222         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71223         appears before executable statements. Suggested by Petr Sumbera
71224         <Petr.Sumbera@Sun.COM>.
71226 2010-03-14  Bruno Haible  <bruno@clisp.org>
71228         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71229         portability problems. Instead use a simpler test.
71230         (main): Check that invalid arguments are rejected only on Linux.
71232 2010-03-14  Bruno Haible  <bruno@clisp.org>
71234         Fix bug introduced on 2009-12-31.
71235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71236         gl_PREREQ_SYS_H_WINSOCK2 always.
71237         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71238         SYS_SOCKET_H variable.
71239         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71240         Update comments.
71241         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71242         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71243         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71244         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71245         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71247 2010-03-14  Bruno Haible  <bruno@clisp.org>
71249         Fix values returned by sinl, cosl.
71250         * lib/trigl.h: Add specification comments.
71251         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71252         that combines the values from the precomputed table with the values of
71253         the Chebyshev polynomials.
71255 2010-03-14  Bruno Haible  <bruno@clisp.org>
71257         Fix compilation error when modules 'posix_spawn[p]' are not used.
71258         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71259         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71261 2010-03-14  Bruno Haible  <bruno@clisp.org>
71263         Fix compilation error on mingw when module 'time_r' is not used.
71264         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71265         is 1.
71266         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71267         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71268         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71269         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71271 2010-03-14  Bruno Haible  <bruno@clisp.org>
71273         Fix compilation error with Sun C.
71274         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71275         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71276         instead of GCC specific ULONG_LONG_MAX.
71277         * lib/xstrtoll.c: Likewise.
71278         * lib/xstrtoull.c: Likewise.
71280 2010-03-13  Bruno Haible  <bruno@clisp.org>
71282         Allow the user to disable C++ code and tests.
71283         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71284         (gl_PROG_ANSI_CXX): Require it.
71286 2010-03-13  Bruno Haible  <bruno@clisp.org>
71288         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71289         cases.
71291 2010-03-13  Bruno Haible  <bruno@clisp.org>
71293         Test that gnulib does not break the standard C++ headers.
71294         * tests/test-locale-c++2.cc: New file.
71295         * modules/locale-tests (Files): Add it.
71296         (Makefile.am): Compile it for test-locale-c++.
71297         * tests/test-math-c++2.cc: New file.
71298         * modules/math-tests (Files): Add it.
71299         (Makefile.am): Compile it for test-math-c++.
71300         * tests/test-signal-c++2.cc: New file.
71301         * modules/signal-tests (Files): Add it.
71302         (Makefile.am): Compile it for test-signal-c++.
71303         * tests/test-stdio-c++2.cc: New file.
71304         * modules/stdio-tests (Files): Add it.
71305         (Makefile.am): Compile it for test-stdio-c++.
71306         * tests/test-stdlib-c++2.cc: New file.
71307         * modules/stdlib-tests (Files): Add it.
71308         (Makefile.am): Compile it for test-stdlib-c++.
71309         * tests/test-string-c++2.cc: New file.
71310         * modules/string-tests (Files): Add it.
71311         (Makefile.am): Compile it for test-string-c++.
71312         * tests/test-time-c++2.cc: New file.
71313         * modules/time-tests (Files): Add it.
71314         (Makefile.am): Compile it for test-time-c++.
71315         Reported by John W. Eaton <jwe@gnu.org>.
71317 2010-03-13  Bruno Haible  <bruno@clisp.org>
71319         * gnulib-tool (func_usage): Clarify which options are available for
71320         --create-testdir and --create-megatestdir.
71322 2010-03-13  Bruno Haible  <bruno@clisp.org>
71324         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71325         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71326         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71327         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71328         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71329         when appropriate.
71330         Reported by Jim Meyering.
71332 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71334         * gnulib-tool (func_import): Explain origin of code.
71336 2010-03-12  Bruno Haible  <bruno@clisp.org>
71338         Fix problem with automake's definition of CXXLINK.
71339         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71340         Reported by Simon Josefsson and Ludovic Courtès.
71342 2010-03-12  Bruno Haible  <bruno@clisp.org>
71344         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71345         stable releases.
71347 2010-03-11  Bruno Haible  <bruno@clisp.org>
71349         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71350         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71351         whether the system provides one variant or multiple variants of the
71352         function.
71353         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71354         C++ compilers.
71355         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71356         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71357         Reported by Jim Meyering.
71359 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71361         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71363 2010-03-08  Bruno Haible  <bruno@clisp.org>
71365         gnulib-tool: Add support for --libtool in --create-testdir.
71366         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71367         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71369 2010-03-08  Eric Blake  <eblake@redhat.com>
71371         gnulib-tool.texi: mention possibility of git submodule
71372         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71373         submodules.
71374         * doc/.gitignore: Ignore another generated file.
71376 2010-03-08  Karl Berry  <karl@gnu.org>
71378         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71379         of committing gnulib files while skipping others.
71381 2010-03-07  Bruno Haible  <bruno@clisp.org>
71383         Tests of module 'wctype' in C++ mode.
71384         * tests/test-wctype-c++.cc: New file.
71385         * modules/wctype-tests (Files): Add it and tests/signature.h.
71386         (Depends-on): Add ansi-c++-opt.
71387         (Makefile.am): Arrange to compile and run test-wctype-c++.
71389         Tests of module 'wchar' in C++ mode.
71390         * tests/test-wchar-c++.cc: New file.
71391         * modules/wchar-tests (Files): Add it and tests/signature.h.
71392         (Depends-on): Add ansi-c++-opt.
71393         (Makefile.am): Arrange to compile and run test-wchar-c++.
71394         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71395         gl_MODULE_INDICATOR.
71397         Tests of module 'unistd' in C++ mode.
71398         * tests/test-unistd-c++.cc: New file.
71399         * modules/unistd-tests (Files): Add it and tests/signature.h.
71400         (Depends-on): Add ansi-c++-opt.
71401         (Makefile.am): Arrange to compile and run test-unistd-c++.
71402         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71403         gl_MODULE_INDICATOR.
71405         Tests of module 'time' in C++ mode.
71406         * tests/test-time-c++.cc: New file.
71407         * modules/time-tests (Files): Add it and tests/signature.h.
71408         (Depends-on): Add ansi-c++-opt.
71409         (Makefile.am): Arrange to compile and run test-time-c++.
71410         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71412         Tests of module 'sys_time' in C++ mode.
71413         * tests/test-sys_time-c++.cc: New file.
71414         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71415         (Depends-on): Add ansi-c++-opt.
71416         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71417         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71418         gl_MODULE_INDICATOR.
71420         Tests of module 'sys_stat' in C++ mode.
71421         * tests/test-sys_stat-c++.cc: New file.
71422         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71423         (Depends-on): Add ansi-c++-opt.
71424         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71425         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71426         gl_MODULE_INDICATOR.
71428         Tests of module 'sys_socket' in C++ mode.
71429         * tests/test-sys_socket-c++.cc: New file.
71430         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71431         (Depends-on): Add ansi-c++-opt.
71432         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71434         gl_MODULE_INDICATOR.
71436         Tests of module 'sys_select' in C++ mode.
71437         * tests/test-sys_select-c++.cc: New file.
71438         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71439         (Depends-on): Add ansi-c++-opt.
71440         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71441         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71442         gl_MODULE_INDICATOR.
71444         Tests of module 'sys_ioctl' in C++ mode.
71445         * tests/test-sys_ioctl-c++.cc: New file.
71446         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71447         (Depends-on): Add ansi-c++-opt.
71448         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71449         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71450         gl_MODULE_INDICATOR.
71452         Tests of module 'string' in C++ mode.
71453         * tests/test-string-c++.cc: New file.
71454         * modules/string-tests (Files): Add it and tests/signature.h.
71455         (Depends-on): Add ansi-c++-opt.
71456         (Makefile.am): Arrange to compile and run test-string-c++.
71457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71458         gl_MODULE_INDICATOR.
71460         Tests of module 'stdlib' in C++ mode.
71461         * tests/test-stdlib-c++.cc: New file.
71462         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71463         (Depends-on): Add ansi-c++-opt.
71464         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71465         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71466         gl_MODULE_INDICATOR.
71468         Tests of module 'stdio' in C++ mode.
71469         * tests/test-stdio-c++.cc: New file.
71470         * modules/stdio-tests (Files): Add it and tests/signature.h.
71471         (Depends-on): Add ansi-c++-opt.
71472         (Makefile.am): Arrange to compile and run test-stdio-c++.
71473         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71474         gl_MODULE_INDICATOR.
71476         Tests of module 'spawn' in C++ mode.
71477         * tests/test-spawn-c++.cc: New file.
71478         * modules/spawn-tests (Files): Add it and tests/signature.h.
71479         (Depends-on): Add ansi-c++-opt.
71480         (Makefile.am): Arrange to compile and run test-spawn-c++.
71481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71482         gl_MODULE_INDICATOR.
71484         Tests of module 'signal' in C++ mode.
71485         * tests/test-signal-c++.cc: New file.
71486         * modules/signal-tests (Files): Add it and tests/signature.h.
71487         (Depends-on): Add ansi-c++-opt.
71488         (Makefile.am): Arrange to compile and run test-signal-c++.
71489         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71490         gl_MODULE_INDICATOR.
71492         Tests of module 'search' in C++ mode.
71493         * tests/test-search-c++.cc: New file.
71494         * modules/search-tests (Files): Add it and tests/signature.h.
71495         (Depends-on): Add ansi-c++-opt.
71496         (Makefile.am): Arrange to compile and run test-search-c++.
71497         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71498         gl_MODULE_INDICATOR.
71500         Tests of module 'math' in C++ mode.
71501         * tests/test-math-c++.cc: New file.
71502         * modules/math-tests (Files): Add it and tests/signature.h.
71503         (Depends-on): Add ansi-c++-opt.
71504         (Makefile.am): Arrange to compile and run test-math-c++.
71505         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71507         Tests of module 'locale' in C++ mode.
71508         * tests/test-locale-c++.cc: New file.
71509         * modules/locale-tests (Files): Add it and tests/signature.h.
71510         (Depends-on): Add ansi-c++-opt.
71511         (Makefile.am): Arrange to compile and run test-locale-c++.
71512         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71513         gl_MODULE_INDICATOR.
71515         Tests of module 'langinfo' in C++ mode.
71516         * tests/test-langinfo-c++.cc: New file.
71517         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71518         (Depends-on): Add ansi-c++-opt.
71519         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71520         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71521         gl_MODULE_INDICATOR.
71523         Tests of module 'iconv-h' in C++ mode.
71524         * tests/test-iconv-h-c++.cc: New file.
71525         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71526         (Depends-on): Add ansi-c++-opt.
71527         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71529         Tests of module 'glob' in C++ mode.
71530         * tests/test-glob-c++.cc: New file.
71531         * modules/glob-tests (Files): Add it.
71532         (Depends-on): Add ansi-c++-opt.
71533         (Makefile.am): Arrange to compile and run test-glob-c++.
71535         Tests of module 'fcntl-h' in C++ mode.
71536         * tests/test-fcntl-h-c++.cc: New file.
71537         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71538         (Depends-on): Add ansi-c++-opt.
71539         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71540         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71541         gl_MODULE_INDICATOR.
71543         Tests of module 'dirent' in C++ mode.
71544         * tests/test-dirent-c++.cc: New file.
71545         * modules/dirent-tests (Files): Add it and tests/signature.h.
71546         (Depends-on): Add ansi-c++-opt.
71547         (Makefile.am): Arrange to compile and run test-dirent-c++.
71548         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71549         gl_MODULE_INDICATOR.
71551         New module 'ansi-c++-opt'.
71552         * modules/ansi-c++-opt: New file.
71553         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71555         Document C++ namespace mode.
71556         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71558         wctype: Avoid #define replacements in C++ mode.
71559         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71560         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71561         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71562         In C++, define a namespaced alias symbol.
71563         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71564         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71565         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71566         rule.
71568         wchar: Avoid #define replacements in C++ mode.
71569         * lib/wchar.in.h: Include c++defs.h.
71570         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71571         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71572         symbol.
71573         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71574         * modules/wchar (Depends-on): Add c++defs.
71575         (Makefile.am): Update wchar.h rule.
71577         unistd: Avoid #define replacements in C++ mode.
71578         * lib/unistd.in.h: Include c++defs.h.
71579         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71580         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71581         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71582         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71583         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71584         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71585         symbol.
71586         (environ): Update.
71587         * modules/unistd (Depends-on): Add c++defs.
71588         (Makefile.am): Update unistd.h rule.
71590         time: Avoid #define replacements in C++ mode.
71591         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71592         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71593         define a namespaced alias symbol.
71594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71595         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71596         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71597         * modules/time (Depends-on): Add c++defs, warn-on-use.
71598         (Makefile.am): Update time.h rule.
71599         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71600         * modules/nanosleep (configure.ac): Likewise.
71601         * modules/strptime (configure.ac): Likewise.
71602         * modules/timegm (configure.ac): Likewise.
71604         sys_time: Avoid #define replacements in C++ mode.
71605         * lib/sys_time.in.h: Include c++defs.h.
71606         (gettimeofday): In C++, define a namespaced alias symbol.
71607         * modules/sys_time (Depends-on): Add c++defs.
71608         (Makefile.am): Update sys/time.h rule.
71610         sys_stat: Avoid #define replacements in C++ mode.
71611         * lib/sys_stat.in.h: Include c++defs.h.
71612         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71613         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71614         namespaced alias symbol.
71615         In C++, define a namespaced alias symbol.
71616         * modules/sys_stat (Depends-on): Add c++defs.
71617         (Makefile.am): Update sys/stat.h rule.
71619         sys_socket: Avoid #define replacements in C++ mode.
71620         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71621         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71622         definitions also when the system has a <sys/socket.h>.
71623         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71624         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71625         In C++, define a namespaced alias symbol.
71626         * modules/sys_socket (Depends-on): Add c++defs.
71627         (Makefile.am): Update sys/socket.h rule.
71629         sys_select: Avoid #define replacements in C++ mode.
71630         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71631         definitions also when the system has a <sys/select.h>.
71632         (select): In C++, define a namespaced alias symbol.
71633         * modules/sys_select (Depends-on): Add c++defs.
71634         (Makefile.am): Update sys/select.h rule.
71636         sys_ioctl: Avoid #define replacements in C++ mode.
71637         * lib/sys_ioctl.in.h: Include c++defs.h.
71638         (ioctl): In C++, define a namespaced alias symbol.
71639         * modules/sys_ioctl (Depends-on): Add c++defs.
71640         (Makefile.am): Update sys/ioctl.h rule.
71642         string: Avoid #define replacements in C++ mode.
71643         * lib/string.in.h: Include c++defs.h.
71644         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71645         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71646         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71647         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71648         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71649         * modules/string (Depends-on): Add c++defs.
71650         (Makefile.am): Update string.h rule.
71652         stdlib: Avoid #define replacements in C++ mode.
71653         * lib/stdlib.in.h: Include c++defs.h.
71654         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71655         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71656         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71657         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71658         symbol.
71659         * modules/stdlib (Depends-on): Add c++defs.
71660         (Makefile.am): Update stdlib.h rule.
71662         stdio: Avoid #define replacements in C++ mode.
71663         * lib/stdio.in.h: Include c++defs.h.
71664         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71665         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71666         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71667         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71668         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71669         namespaced alias symbol.
71670         * modules/stdio (Depends-on): Add c++defs.
71671         (Makefile.am): Update stdio.h rule.
71673         spawn: Avoid #define replacements in C++ mode.
71674         * lib/spawn.in.h: Include c++defs.h.
71675         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71676         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71677         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71678         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71679         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71680         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71681         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71682         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71683         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71684         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71685         In C++, define a namespaced alias symbol.
71686         * modules/spawn (Depends-on): Add c++defs.
71687         (Makefile.am): Update spawn.h rule.
71689         signal: Avoid #define replacements in C++ mode.
71690         * lib/signal.in.h: Include c++defs.h.
71691         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71692         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71693         namespaced alias symbol.
71694         * modules/signal (Depends-on): Add c++defs.
71695         (Makefile.am): Update signal.h rule.
71697         search: Avoid #define replacements in C++ mode.
71698         * lib/search.in.h: Include c++defs.h.
71699         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71700         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71701         symbol.
71702         * modules/search (Depends-on): Add c++defs.
71703         (Makefile.am): Update search.h rule.
71705         math: Avoid #define replacements in C++ mode.
71706         * lib/math.in.h: Include c++defs.h.
71707         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71708         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71709         trunc, truncl): In C++, define a namespaced alias symbol.
71710         * modules/math (Depends-on): Add c++defs.
71711         (Makefile.am): Update math.h rule.
71713         locale: Avoid #define replacements in C++ mode.
71714         * lib/locale.in.h: Include c++defs.h.
71715         (duplocale): In C++, define a namespaced alias symbol.
71716         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71717         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71718         * modules/locale (Depends-on): Add c++defs.
71719         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71721         langinfo: Avoid #define replacements in C++ mode.
71722         * lib/langinfo.in.h: Include c++defs.h.
71723         (nl_langinfo): In C++, define a namespaced alias symbol.
71724         * modules/langinfo (Depends-on): Add c++defs.
71725         (Makefile.am): Update langinfo.h rule.
71727         iconv-h: Avoid #define replacements in C++ mode.
71728         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71729         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71730         symbol.
71731         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71732         whenever iconv is present.
71733         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71734         (Makefile.am): Update iconv.h rule.
71736         glob: Avoid #define replacements in C++ mode.
71737         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71738         (_gl_glob_errfunc_fn): New type.
71739         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71740         symbol.
71741         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71742         (Makefile.am): Update glob.h rule.
71744         fcntl-h: Avoid #define replacements in C++ mode.
71745         * lib/fcntl.in.h: Include c++defs.h.
71746         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71747         * modules/fcntl-h (Depends-on): Add c++defs.
71748         (Makefile.am): Update fcntl.h rule.
71750         dirent: Avoid #define replacements in C++ mode.
71751         * lib/dirent.in.h: Include c++defs.h.
71752         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71753         namespaced alias symbol.
71754         (dirfd): Update declaration.
71755         * modules/dirent (Depends-on): Add c++defs.
71756         (Makefile.am): Update dirent.h rule.
71758         ctype: Make it usable in C++ code.
71759         * lib/ctype.in.h: Include c++defs.h.
71760         (isblank): Declare as extern "C".
71761         * modules/ctype (Depends-on): Add c++defs.
71762         (Makefile.am): Update ctype.h rule.
71764         New module 'c++defs'.
71765         * modules/c++defs: New file.
71766         * build-aux/c++defs.h: New file.
71767         Reported by John W. Eaton <jwe@gnu.org>.
71769 2010-03-07  Bruno Haible  <bruno@clisp.org>
71771         logb: Provide missing declaration for Cygwin.
71772         * lib/math.in.h (logb): New declaration.
71773         * m4/logb.m4: New file.
71774         * modules/logb (Files): Add m4/logb.m4.
71775         (Depends-on): Add math.
71776         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71777         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71779         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71780         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71782 2010-03-07  Bruno Haible  <bruno@clisp.org>
71784         Fix test-cond link error.
71785         * tests/test-cond.c: Include <stdio.h>.
71787 2010-03-07  Bruno Haible  <bruno@clisp.org>
71789         Fix test-dirent-safer link error.
71790         * modules/dirent-safer-tests (Makefile.am): Define
71791         test_dirent_safer_LDADD.
71793 2010-03-07  Bruno Haible  <bruno@clisp.org>
71795         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71796         among default module list.
71798 2010-03-07  Bruno Haible  <bruno@clisp.org>
71800         Fix link error on platforms with GNU libiconv.
71801         * modules/unistr/u8-strcoll-tests (Makefile): Define
71802         test_u8_strcoll_LDADD.
71803         * modules/unistr/u16-strcoll-tests (Makefile): Define
71804         test_u16_strcoll_LDADD.
71805         * modules/unistr/u32-strcoll-tests (Makefile): Define
71806         test_u32_strcoll_LDADD.
71808 2010-03-07  Bruno Haible  <bruno@clisp.org>
71810         Use POSIX declarations for socket functions.
71811         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71812         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71813         rpl_sendto): Change declaration to match POSIX.
71814         * lib/connect.c (rpl_connect): Likewise.
71815         * lib/accept.c (rpl_accept): Likewise.
71816         * lib/bind.c (rpl_bind): Likewise.
71817         * lib/getpeername.c (rpl_getpeername): Likewise.
71818         * lib/getsockname.c (rpl_getsockname): Likewise.
71819         * lib/recv.c (rpl_recv): Likewise.
71820         * lib/send.c (rpl_send): Likewise.
71821         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71822         * lib/sendto.c (rpl_sendto): Likewise.
71824 2010-03-06  Bruno Haible  <bruno@clisp.org>
71826         Clarify access, euidaccess, faccessat.
71827         * doc/posix-functions/faccessat.texi: Mention security problem under
71828         "Other problems", not "Portability problems".
71829         * doc/posix-functions/access.texi: Likewise. Mention a related security
71830         problem.
71831         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71832         * lib/euidaccess.c: Add comments about platforms.
71833         * lib/unistd.in.h (access, euidaccess): Add warnings.
71835 2010-03-07  Bruno Haible  <bruno@clisp.org>
71837         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71838         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71839         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71840         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71841         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71842         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71843         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71844         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71845         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71846         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71847         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71848         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71849         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71850         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71851         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71852         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71853         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71854         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71855         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71856         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71857         Likewise.
71858         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71859         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71860         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71861         Likewise.
71862         * tests/test-spawn.c (main): Make it work when
71863         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71865 2010-03-07  Bruno Haible  <bruno@clisp.org>
71867         Fix incorrect Makefile.am generation in German locale.
71868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71869         Execute sed command with character range in C locale.
71871 2010-03-06  Bruno Haible  <bruno@clisp.org>
71873         Tests for module 'iconv-h'.
71874         * modules/iconv-h-tests: New file.
71875         * tests/test-iconv-h.c: New file.
71877         New module 'iconv-h'.
71878         * modules/iconv-h: New file.
71879         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71880         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71881         (configure.ac): Remove gl_ICONV_H.
71882         (Makefile.am): Remove rule for iconv.h.
71884 2010-03-06  Bruno Haible  <bruno@clisp.org>
71886         More consistent naming of *.m4 files.
71887         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71888         * modules/wctype (Files): Update.
71890         More consistent naming of *.m4 files.
71891         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71892         * modules/wchar (Files): Update.
71894 2010-03-06  Jim Meyering  <meyering@redhat.com>
71896         euidaccess: relax license to LGPLv2+
71897         * modules/euidaccess (License): Relax to LGPLv2+.
71899 2010-03-06  Bruno Haible  <bruno@clisp.org>
71901         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71902         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71903         (Makefile.am): Augment lib_SOURCES instead.
71905 2010-03-04  Jim Meyering  <meyering@redhat.com>
71907         utime: remove obsolete module
71908         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71909         unnecessary for years, and has been marked as obsolete for 10 months.
71910         * modules/utime: Remove file.
71911         * lib/utime.c: Remove file.
71912         * m4/utime.m4: Remove file.
71913         * m4/utimes-null.m4: Remove file.
71914         * doc/posix-functions/utime.texi (utime): Remove reference to
71915         the module.  Move the sole "fixed by gnulib" item into the
71916         "problems not fixed by Gnulib" list.
71917         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71919 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71921         * modules/exit (License): Relax license to LGPLv2+.
71922         (Status): Mark as obsolete.
71923         * NEWS: Mention deprecated 'exit' module.
71924         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71925         of now obsolete 'exit'.
71927 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71929         fts-lgpl: remove unused module
71930         * modules/fts-lgpl: Remove.
71931         * MODULES.html.sh (func_all_modules): Adjust.
71932         * check-module (find_included_lib_files): Adjust.
71933         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71935 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71937         copy-acl: enhance Solaris ACL error handling
71938         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71939         * lib/set-mode-acl.c (qset_acl): Likewise.
71941 2010-03-02  Bruno Haible  <bruno@clisp.org>
71943         spawn: Don't override the system defined values on FreeBSD 8.
71944         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71945         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71946         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71947         if HAVE_POSIX_SPAWN is 1.
71948         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71950 2010-03-01  Bruno Haible  <bruno@clisp.org>
71952         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71953         regarding Automake.
71955 2010-02-25  Bruno Haible  <bruno@clisp.org>
71957         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71958         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71959         setting, not afterwards.
71960         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71962 2010-02-24  Eric Blake  <eblake@redhat.com>
71964         bootstrap, git-version-gen: use timestamp
71965         * build-aux/git-version-gen (scriptversion): Force UTC.
71966         * build-aux/bootstrap (scriptversion): New variable.
71968         bootstrap: allow older git
71969         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71970         older than 1.6.4.  Requested by the libvirt project.
71972 2010-02-23  Eric Blake  <eblake@redhat.com>
71974         warn-on-use: work with old autoconf
71975         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71976         AS_VAR semantics of autoconf 2.60.
71977         Reported by Bruno Haible.
71979         bootstrap: improve some comments
71980         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71981         clarification comments.
71983         gettimeofday: provide correct function
71984         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71985         when replacement is declared, otherwise provide gettimeofday.
71986         Reported by Michael Goffioul.
71988 2010-02-23  Jim Meyering  <meyering@redhat.com>
71990         lib-ignore: relax license to "unlimited", not LGPLv2+
71991         * modules/lib-ignore (License): Relax to "unlimited".
71993 2010-02-23  Jim Meyering  <meyering@redhat.com>
71995         lib-ignore: relax license to LGPLv2+
71996         * modules/lib-ignore (License): Relax to LGPLv2+.
71998 2010-02-22  Eric Blake  <eblake@redhat.com>
72000         lseek: avoid bash 3.2 broken pipe bug
72001         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72002         warning from bash 3.2.
72003         Reported by Ben Pfaff, with analysis from Bruno Haible.
72005         bootstrap: support non-FSF copyright holder
72006         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72007         bootstrap.conf override of COPYRIGHT_HOLDER.
72008         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72010         bootstrap: interoperate with gettext 0.14.1
72011         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72013         bootstrap: allow for alternate submodule location
72014         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72015         hardcoding submodule location.
72016         (gnulib_mk): Allow direct use of Makefile.am.
72018         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72019         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72020         rather than reconfiguring where the submodule points.
72022         gettimeofday: restore support for platforms that lack function
72023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72024         replacement if function is missing.
72025         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72026         * modules/sys_time (Makefile.am): Substitute it.
72027         * lib/sys_time.in.h (gettimeofday): Check it.
72028         Reported by Michael Goffioul.
72030 2010-02-21  Bruno Haible  <bruno@clisp.org>
72032         * lib/stdio.in.h (obstack_printf): Fix typo.
72034 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72036         vc-list-files: use bzr ls's -R option
72037         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72038         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72040 2010-02-21  Jim Meyering  <meyering@redhat.com>
72042         init.sh: fix EXEEXT shims to work also for names like test-prog
72043         * tests/init.sh: Re-exec a better shell, when needed.
72044         If the current shell lacks support for posix $(...), an init.sh-using
72045         test will now try to find a shell that supports that.  If EXEEXT is
72046         nonempty, we also require support for hyphen-in-alias-name and shell
72047         substitutions like ${var#glob}.  Failure to find such a shell results
72048         in a skipped test.
72050 2010-02-21  Bruno Haible  <bruno@clisp.org>
72052         Really work around "broken pipe" error message from bash 3.2.
72053         * gnulib-tool (func_reset_sigpipe): Remove function.
72054         (echo): In bash 3.2, define to a function that uses printf.
72055         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72057 2010-02-20  Bruno Haible  <bruno@clisp.org>
72059         Restore support for automake 1.9.6 with autoconf 2.61.
72060         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72061         Reported by James Youngman <jay@gnu.org>.
72063 2010-02-20  Bruno Haible  <bruno@clisp.org>
72065         Improve *printf warning condition.
72066         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72067         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72068         and the function is overridden due to SIGPIPE emulation.
72070 2010-02-20  Bruno Haible  <bruno@clisp.org>
72072         * lib/stdio.in.h: Tweak comments.
72074 2010-02-19  Bruno Haible  <bruno@clisp.org>
72076         Make it easier to find modules. New gnulib-tool option '--find'.
72077         * gnulib-tool: New option --find.
72078         (func_usage): Document it.
72079         (func_sanitize_modulelist): New function, extracted from
72080         func_all_modules.
72081         (func_all_modules): Invoke it.
72082         * doc/gnulib-tool.texi (Which modules?): New node.
72084 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72086         * lib/sys_select.in.h: Provide select replacement even if
72087         sys/select.h exists on a system, for Interix.
72089 2010-02-18  Jim Meyering  <meyering@redhat.com>
72091         init.sh: don't use $(...) just yet
72092         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72093         to accommodate e.g., Solaris' /bin/sh.
72095 2010-02-17  Bruno Haible  <bruno@clisp.org>
72097         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72098         Reported by Ludovic Courtès <ludo@gnu.org>.
72100 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72102         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72103         linking with -lintl.
72105 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72107         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72108         if not provided by the system's netdb.h.  Reported by
72109         ludo@gnu.org (Ludovic Courtès).
72111 2010-02-15  Jim Meyering  <meyering@redhat.com>
72113         init.sh: improve portability and efficiency
72114         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72115         "dummy" in a for loop.
72116         Use '!', not '^' to select the complement of a character set used
72117         in a "case" statement.
72118         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72119         Suggestions from Eric Blake.
72121         init.sh: automatically accommodate programs with the .exe suffix
72122         Automatically arrange for an invocation of "prog" to execute the
72123         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72124         may use the simpler "prog", yet still work when built on a system
72125         that requires specifying the added suffix.
72126         Do this by constructing a function named "prog" that invokes
72127         "prog.exe" for each .exe file in selected directories.
72128         * tests/init.sh (find_exe_basenames_): New function.
72129         (create_exe_shim_functions_): New function.
72130         (path_prepend_): Use it.
72132         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72133         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72134         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72136 2010-02-14  Jim Meyering  <meyering@redhat.com>
72138         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72139         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72140         (sc_prohibit_hash_pjw_without_use): New rule.
72142         maint.mk: allow the default upload destination dir to be overridden
72143         * top/maint.mk (upload_dest_dir_): Define with a default that
72144         preserves the status quo.
72145         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72146         Reported by Peter Simons.
72148         maint.mk: prohibit inclusion of "hash.h" without_use
72149         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72151 2010-02-10  Jim Meyering  <meyering@redhat.com>
72153         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72154         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72156 2010-02-09  Eric Blake  <ebb9@byu.net>
72157         and Bruno Haible  <bruno@clisp.org>
72159         obstack-printf-posix: ensure declaration
72160         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72161         extracted from gl_FUNC_OBSTACK_PRINTF.
72162         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72163         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72164         Likewise.
72165         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72166         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72167         0.
72169 2010-02-08  Bruno Haible  <bruno@clisp.org>
72171         gnulib-tool: Fix typo in 2010-02-07 commit.
72172         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72173         Reported by Eric Blake.
72175 2010-02-07  Bruno Haible  <bruno@clisp.org>
72177         gnulib-tool: Fix up caching patches.
72178         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72179         option --no-cache. Use associative arrays when supported by the shell.
72180         (sed_comments): New variable.
72181         (modcache): Renamed from do_cache.
72182         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72183         abbreviate unnecessarily.
72184         (have_associative): New variable.
72185         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72186         way also for ksh and zsh.
72187         (func_init_sed_convert_to_cache_statements): New function, extracted
72188         from func_cache_lookup_module. Add support for associative arrays.
72189         Don't set the c_MODULE_cached variable here. Ignore all lines before
72190         the first field header. Remove only the final newline, not all trailing
72191         newlines. Support empty fields correctly. Limit the use of 'eval' to
72192         assignments.
72193         (func_get_description, func_get_status, func_get_notice,
72194         func_get_applicability, func_get_filelist, func_get_dependencies,
72195         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72196         func_get_automake_snippet, func_get_include_directive,
72197         func_get_link_directive, func_get_license, func_get_maintainer):
72198         Update documentation. List the unoptimized code first. Add support for
72199         associative arrays. Limit the use of 'eval' to assignments.
72200         (func_get_applicability): Undo stylistic pessimisations.
72201         (func_get_automake_snippet, func_get_include_directive): Reduce code
72202         duplication.
72203         (func_modules_transitive_closure, func_modules_add_dummy,
72204         func_modules_notice, func_modules_to_filelist, func_add_file,
72205         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72206         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72207         func_create_testdir, func_create_megatestdir): Update documentation.
72209 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72211         * gnulib-tool (func_cache_lookup_module): Store the module name
72212         belonging to the cache variable; error out if two different
72213         module names map to the same cache variable name.
72215 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72217         gnulib-tool: Make caching optional.
72218         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72219         Update matching short versions of --no-changelog.
72220         (func_usage): Update.
72221         (sed_extract_cache_prog): Renamed from ...
72222         (sed_extract_prog): ... this; revert to old extraction script.
72223         (func_get_description, func_get_status)
72224         (func_get_notice, func_get_applicability, func_get_filelist)
72225         (func_get_dependencies, func_get_autoconf_early_snippet)
72226         (func_get_autoconf_snippet, func_get_automake_snippet)
72227         (func_get_include_directive, func_get_link_directive)
72228         (func_get_license, func_get_maintainer): If $do_cache is false,
72229         use old, non-caching extraction scripts.
72230         Suggestion by Bruno Haible.
72232 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72234         gnulib-tool: cache module metainformation.
72235         * gnulib-tool (sed_extract_prog): Match newline before each
72236         header, and rewrite header to a shell variable suffix.
72237         (func_cache_var, func_cache_lookup_module): New functions,
72238         to turn a module name into a cache variable prefix, and to
72239         look up and cache module metainformation.
72240         (func_get_description, func_get_status)
72241         (func_get_notice, func_get_applicability, func_get_filelist)
72242         (func_get_dependencies, func_get_autoconf_early_snippet)
72243         (func_get_autoconf_snippet, func_get_automake_snippet)
72244         (func_get_include_directive, func_get_link_directive)
72245         (func_get_license, func_get_maintainer): Use
72246         func_cache_lookup_module.
72248 2010-02-07  Bruno Haible  <bruno@clisp.org>
72250         fnctl: Fix missing dependency.
72251         * modules/fcntl (Depends-on): Add getdtablesize.
72252         Reported by John W. Eaton <jwe@gnu.org>.
72254 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72256         Argp: fix recognition of short alias options.
72258         * lib/argp-parse.c (convert_options): Fix improper use of
72259         `|' between character values.
72260         * tests/test-argp.c (group1_option): New alias option
72261         --read (-r).
72262         (group1_parser): Special handling for 'r'.
72263         (test15): New test case.
72264         (test_fun): Add test15.
72265         * tests/test-argp-2.sh: Update expected --help and --usage
72266         outputs.
72268 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72270         * tests/test-argp.c: Fix indentation.
72272 2010-02-04  Eric Blake  <ebb9@byu.net>
72274         gettimeofday: expose type of second argument
72275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72276         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72277         * tests/test-gettimeofday.c: Use it to silence warning.
72278         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72279         the issue.
72281 2010-02-03  Jim Meyering  <meyering@redhat.com>
72283         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72284         * lib/regcomp.c (TYPE_SIGNED): Define.
72285         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72287         regcomp.c: avoid a new -Wshadow warning
72288         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72290 2010-02-01  Jim Meyering  <meyering@redhat.com>
72292         removing useless parentheses in cpp #define directives
72293         For motivation, see commit c0221df4, "define STREQ(a,b)
72294         consistently, removing useless parentheses"
72295         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72296         * lib/mountlist.c (MNT_IGNORE): Likewise.
72297         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72299 2010-02-01  Eric Blake  <ebb9@byu.net>
72301         sys_time: use link-warning
72302         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72303         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72304         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72305         * modules/sys_time (Depends-on): Add warn-on-use.
72306         (Makefile.am): Always build replacement.
72307         (configure.ac): Update substitutions.
72308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72309         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72310         bother with SYS_TIME_H.
72311         * modules/gettimeofday (configure.ac): Declare indicator.
72312         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72313         in use.
72315         closein-tests: silence compiler warning
72316         * tests/test-closein.c (main): Ignore fread result.
72317         * modules/closein-tests (Depends-on): Add ignore-value.
72319         tests: silence warning about system return
72320         * tests/test-areadlink-with-size.c (main): Ignore system result.
72321         * tests/test-areadlink.c (main): Likewise.
72322         * tests/test-areadlinkat-with-size.c (main): Likewise.
72323         * tests/test-areadlinkat.c (main): Likewise.
72324         * tests/test-canonicalize-lgpl.c (main): Likewise.
72325         * tests/test-canonicalize.c (main): Likewise.
72326         * tests/test-chown.c (main): Likewise.
72327         * tests/test-fchownat.c (main): Likewise.
72328         * tests/test-fdutimensat.c (main): Likewise.
72329         * tests/test-fstatat.c (main): Likewise.
72330         * tests/test-futimens.c (main): Likewise.
72331         * tests/test-lchown.c (main): Likewise.
72332         * tests/test-link.c (main): Likewise.
72333         * tests/test-linkat.c (main): Likewise.
72334         * tests/test-lstat.c (main): Likewise.
72335         * tests/test-mkdir.c (main): Likewise.
72336         * tests/test-mkdirat.c (main): Likewise.
72337         * tests/test-mkfifo.c (main): Likewise.
72338         * tests/test-mkfifoat.c (main): Likewise.
72339         * tests/test-mknod.c (main): Likewise.
72340         * tests/test-readlink.c (main): Likewise.
72341         * tests/test-remove.c (main): Likewise.
72342         * tests/test-rename.c (main): Likewise.
72343         * tests/test-renameat.c (main): Likewise.
72344         * tests/test-rmdir.c (main): Likewise.
72345         * tests/test-symlink.c (main): Likewise.
72346         * tests/test-symlinkat.c (main): Likewise.
72347         * tests/test-unlink.c (main): Likewise.
72348         * tests/test-unlinkat.c (main): Likewise.
72349         * tests/test-utimens.c (main): Likewise.
72350         * tests/test-utimensat.c (main): Likewise.
72351         * modules/areadlink-tests (Depends-on): Add ignore-value.
72352         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72353         * modules/areadlinkat-tests (Depends-on): Likewise.
72354         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72355         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72356         * modules/canonicalize-tests (Depends-on): Likewise.
72357         * modules/chown-tests (Depends-on): Likewise.
72358         * modules/fdutimensat-tests (Depends-on): Likewise.
72359         * modules/futimens-tests (Depends-on): Likewise.
72360         * modules/lchown-tests (Depends-on): Likewise.
72361         * modules/link-tests (Depends-on): Likewise.
72362         * modules/linkat-tests (Depends-on): Likewise.
72363         * modules/lstat-tests (Depends-on): Likewise.
72364         * modules/mkdir-tests (Depends-on): Likewise.
72365         * modules/mkfifo-tests (Depends-on): Likewise.
72366         * modules/mkfifoat-tests (Depends-on): Likewise.
72367         * modules/mknod-tests (Depends-on): Likewise.
72368         * modules/openat-tests (Depends-on): Likewise.
72369         * modules/readlink-tests (Depends-on): Likewise.
72370         * modules/remove-tests (Depends-on): Likewise.
72371         * modules/rename-tests (Depends-on): Likewise.
72372         * modules/renameat-tests (Depends-on): Likewise.
72373         * modules/rmdir-tests (Depends-on): Likewise.
72374         * modules/symlink-tests (Depends-on): Likewise.
72375         * modules/symlinkat-tests (Depends-on): Likewise.
72376         * modules/unlink-tests (Depends-on): Likewise.
72377         * modules/utimens-tests (Depends-on): Likewise.
72378         * modules/utimensat-tests (Depends-on): Likewise.
72380 2010-01-31  Bruno Haible  <bruno@clisp.org>
72382         Perform the same test for many <math.h> functions.
72383         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72384         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72385         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72386         of gl_MATHFUNC.
72387         * modules/acos (configure.ac): Likewise.
72388         * modules/asin (configure.ac): Likewise.
72389         * modules/atan (configure.ac): Likewise.
72390         * modules/atan2 (configure.ac): Likewise.
72391         * modules/cbrt (configure.ac): Likewise.
72392         * modules/copysign (configure.ac): Likewise.
72393         * modules/cos (configure.ac): Likewise.
72394         * modules/cosh (configure.ac): Likewise.
72395         * modules/erf (configure.ac): Likewise.
72396         * modules/erfc (configure.ac): Likewise.
72397         * modules/exp (configure.ac): Likewise.
72398         * modules/fmod (configure.ac): Likewise.
72399         * modules/hypot (configure.ac): Likewise.
72400         * modules/j0 (configure.ac): Likewise.
72401         * modules/j1 (configure.ac): Likewise.
72402         * modules/jn (configure.ac): Likewise.
72403         * modules/lgamma (configure.ac): Likewise.
72404         * modules/log (configure.ac): Likewise.
72405         * modules/log10 (configure.ac): Likewise.
72406         * modules/log1p (configure.ac): Likewise.
72407         * modules/pow (configure.ac): Likewise.
72408         * modules/remainder (configure.ac): Likewise.
72409         * modules/sin (configure.ac): Likewise.
72410         * modules/sinh (configure.ac): Likewise.
72411         * modules/tan (configure.ac): Likewise.
72412         * modules/tanh (configure.ac): Likewise.
72413         * modules/y0 (configure.ac): Likewise.
72414         * modules/y1 (configure.ac): Likewise.
72415         * modules/yn (configure.ac): Likewise.
72416         Suggested by Paolo Bonzini.
72418 2010-01-31  Bruno Haible  <bruno@clisp.org>
72420         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72422 2010-01-31  Bruno Haible  <bruno@clisp.org>
72424         Work around getdelim() bug on FreeBSD 8.0.
72425         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72426         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72427         not work.
72428         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72429         is 1.
72430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72431         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72432         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72433         a non-zero size.
72434         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72436 2010-01-31  Bruno Haible  <bruno@clisp.org>
72438         Work around getline() bug on FreeBSD 8.0.
72439         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72440         and a non-zero size.
72441         * tests/test-getline.c (main): Likewise.
72442         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72443         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72445 2010-01-28  Eric Blake  <ebb9@byu.net>
72447         regex: fix build failure
72448         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72449         platforms.
72451 2010-01-28  Jim Meyering  <meyering@redhat.com>
72453         regex: do not ignore memory allocation failure
72454         * lib/regex_internal.c (create_cd_newstate): Detect
72455         re_node_set_init_copy failure.   Extracted from glibc commit
72456         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72458         regex: sync more white-space changes from libc
72459         * lib/regex_internal.c: White-space only changes.
72460         * lib/regexec.c: Likewise.
72462         regex: add many uses of __attribute_warn_unused_result__
72463         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72464         * lib/regexec.c: Likewise.
72465         Extracted from a messy glibc commit.
72467         regcomp.c: spelling and merge-artifact from glibc
72468         * lib/regcomp.c: Merge remainder of glibc's
72469         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72471         regcomp.c: sync white-space changes from glibc
72472         * lib/regcomp.c: Merge to accommodate white space
72473         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72475         regcomp.c: do not ignore internal return values
72476         * lib/regcomp.c: Do not ignore internal return values.
72477         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72478         but without its white-space changes and spelling fixes.
72480         regex_internal.h: define __attribute_warn_unused_result__
72481         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72483         maint: add a syntax-check rule to check for vulnerable Makefile.in
72484         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72486 2010-01-27  Jim Meyering  <meyering@redhat.com>
72488         ncftpput-ftp: clean up spaces
72489         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72490         Remove trailing blanks.
72492 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72494         * build-aux/git-version-gen: Fix copyright statement.
72495         * build-aux/gnupload: Likewise.
72496         * tests/test-arcfour.c: Likewise.
72497         * tests/test-arctwo.c: Likewise.
72498         * tests/test-count-one-bits.c: Likewise.
72499         * tests/test-crc.c: Likewise.
72500         * tests/test-des.c: Likewise.
72501         * tests/test-gc-arcfour.c: Likewise.
72502         * tests/test-gc-arctwo.c: Likewise.
72503         * tests/test-gc-des.c: Likewise.
72504         * tests/test-gc-hmac-md5.c: Likewise.
72505         * tests/test-gc-hmac-sha1.c: Likewise.
72506         * tests/test-gc-md2.c: Likewise.
72507         * tests/test-gc-md4.c: Likewise.
72508         * tests/test-gc-md5.c: Likewise.
72509         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72510         * tests/test-gc-rijndael.c: Likewise.
72511         * tests/test-gc-sha1.c: Likewise.
72512         * tests/test-gc.c: Likewise.
72513         * tests/test-gethostname.c: Likewise.
72514         * tests/test-gettimeofday.c: Likewise.
72515         * tests/test-hash.c: Likewise.
72516         * tests/test-hmac-md5.c: Likewise.
72517         * tests/test-hmac-sha1.c: Likewise.
72518         * tests/test-md2.c: Likewise.
72519         * tests/test-md4.c: Likewise.
72520         * tests/test-md5.c: Likewise.
72521         * tests/test-memchr.c: Likewise.
72522         * tests/test-memchr2.c: Likewise.
72523         * tests/test-memcmp.c: Likewise.
72524         * tests/test-memmem.c: Likewise.
72525         * tests/test-memrchr.c: Likewise.
72526         * tests/test-rawmemchr.c: Likewise.
72527         * tests/test-read-file.c: Likewise.
72528         * tests/test-rijndael.c: Likewise.
72529         * tests/test-sockets.c: Likewise.
72530         * tests/test-strchrnul.c: Likewise.
72531         * tests/test-strstr.c: Likewise.
72532         * tests/test-strtod.c: Likewise.
72533         * build-aux/ncftpput-ftp: Likewise.
72535 2010-01-26  Eric Blake  <ebb9@byu.net>
72537         ignore-value: update recommended header name
72538         * modules/ignore-value (Include): Only use <> for headers that
72539         exist in glibc.
72541 2010-01-26  Jim Meyering  <meyering@redhat.com>
72543         test-userspec.c: avoid compiler warnings
72544         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72545         and "initialization discards qualifiers..." warnings.
72546         Put the first "uid" in its own scope, and make char* members "const".
72548 2010-01-25  Bruno Haible  <bruno@clisp.org>
72550         gnulib-tool: Make warning diagnostics consistent.
72551         * gnulib-tool (func_warning): New function.
72552         Use it everywhere where gnulib-tool produces output to stderr and it is
72553         not a fatal error.
72555 2010-01-25  Bruno Haible  <bruno@clisp.org>
72557         Fix test dependencies.
72558         * modules/xstrtol-tests (Depends-on): Add inttypes.
72559         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72561 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72563         syntax-check: detect incorrect boolean macro values in config.h
72564         * modules/maintainer-makefile (configure.ac): Parameterize the location
72565         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72566         The logic is from Eric Blake and the location indicated by Jim Meyering.
72567         Note the more natural CONFIG_HEADER name is prohibited by automake
72568         for backwards compatibility reasons.
72569         * top/maint.mk (sc_Wundef_boolean): New rule.
72571 2010-01-25  Jim Meyering  <meyering@redhat.com>
72573         bootstrap: detect MacOS 10.6's shasum, too
72574         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72575         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72577 2010-01-23  Jim Meyering  <meyering@redhat.com>
72579         xstrtoll: new module
72580         * modules/xstrtoll: New file.
72581         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72582         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72583         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72584         ./configure fails if you use this module and lack "long long".
72585         * modules/xstrtoll-tests: New module.
72586         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72587         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72588         new init.sh-based test framework.
72590 2010-01-24  Bruno Haible  <bruno@clisp.org>
72592         Tests for module 'yn'.
72593         * modules/yn-tests: New file.
72594         * tests/test-yn.c: New file.
72596         Tests for module 'y1'.
72597         * modules/y1-tests: New file.
72598         * tests/test-y1.c: New file.
72600         Tests for module 'y0'.
72601         * modules/y0-tests: New file.
72602         * tests/test-y0.c: New file.
72604         Tests for module 'tanh'.
72605         * modules/tanh-tests: New file.
72606         * tests/test-tanh.c: New file.
72608         Tests for module 'tan'.
72609         * modules/tan-tests: New file.
72610         * tests/test-tan.c: New file.
72612         Tests for module 'sqrt'.
72613         * modules/sqrt-tests: New file.
72614         * tests/test-sqrt.c: New file.
72616         Tests for module 'sinh'.
72617         * modules/sinh-tests: New file.
72618         * tests/test-sinh.c: New file.
72620         Tests for module 'sin'.
72621         * modules/sin-tests: New file.
72622         * tests/test-sin.c: New file.
72624         Tests for module 'rint'.
72625         * modules/rint-tests: New file.
72626         * tests/test-rint.c: New file.
72628         Tests for module 'remainder'.
72629         * modules/remainder-tests: New file.
72630         * tests/test-remainder.c: New file.
72632         Tests for module 'pow'.
72633         * modules/pow-tests: New file.
72634         * tests/test-pow.c: New file.
72636         Tests for module 'nextafter'.
72637         * modules/nextafter-tests: New file.
72638         * tests/test-nextafter.c: New file.
72640         Tests for module 'modf'.
72641         * modules/modf-tests: New file.
72642         * tests/test-modf.c: New file.
72644         Tests for module 'logb'.
72645         * modules/logb-tests: New file.
72646         * tests/test-logb.c: New file.
72648         Tests for module 'log1p'.
72649         * modules/log1p-tests: New file.
72650         * tests/test-log1p.c: New file.
72652         Tests for module 'log10'.
72653         * modules/log10-tests: New file.
72654         * tests/test-log10.c: New file.
72656         Tests for module 'log'.
72657         * modules/log-tests: New file.
72658         * tests/test-log.c: New file.
72660         Tests for module 'lgamma'.
72661         * modules/lgamma-tests: New file.
72662         * tests/test-lgamma.c: New file.
72664         Tests for module 'ldexp'.
72665         * modules/ldexp-tests: New file.
72666         * tests/test-ldexp.c: New file.
72668         Tests for module 'jn'.
72669         * modules/jn-tests: New file.
72670         * tests/test-jn.c: New file.
72672         Tests for module 'j1'.
72673         * modules/j1-tests: New file.
72674         * tests/test-j1.c: New file.
72676         Tests for module 'j0'.
72677         * modules/j0-tests: New file.
72678         * tests/test-j0.c: New file.
72680         Tests for module 'hypot'.
72681         * modules/hypot-tests: New file.
72682         * tests/test-hypot.c: New file.
72684         Tests for module 'fmod'.
72685         * modules/fmod-tests: New file.
72686         * tests/test-fmod.c: New file.
72688         Tests for module 'fabs'.
72689         * modules/fabs-tests: New file.
72690         * tests/test-fabs.c: New file.
72692         Tests for module 'exp'.
72693         * modules/exp-tests: New file.
72694         * tests/test-exp.c: New file.
72696         Tests for module 'erfc'.
72697         * modules/erfc-tests: New file.
72698         * tests/test-erfc.c: New file.
72700         Tests for module 'erf'.
72701         * modules/erf-tests: New file.
72702         * tests/test-erf.c: New file.
72704         Tests for module 'cosh'.
72705         * modules/cosh-tests: New file.
72706         * tests/test-cosh.c: New file.
72708         Tests for module 'cos'.
72709         * modules/cos-tests: New file.
72710         * tests/test-cos.c: New file.
72712         Tests for module 'copysign'.
72713         * modules/copysign-tests: New file.
72714         * tests/test-copysign.c: New file.
72716         Tests for module 'cbrt'.
72717         * modules/cbrt-tests: New file.
72718         * tests/test-cbrt.c: New file.
72720         Tests for module 'atan2'.
72721         * modules/atan2-tests: New file.
72722         * tests/test-atan2.c: New file.
72724         Tests for module 'atan'.
72725         * modules/atan-tests: New file.
72726         * tests/test-atan.c: New file.
72728         Tests for module 'asin'.
72729         * modules/asin-tests: New file.
72730         * tests/test-asin.c: New file.
72732         Tests for module 'acos'.
72733         * modules/acos-tests: New file.
72734         * tests/test-acos.c: New file.
72736 2010-01-24  Bruno Haible  <bruno@clisp.org>
72738         Fix tests for common <math.h> functions.
72739         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72740         code snippet that references the function pointer, rather than merely
72741         calling the function. Substitute the FUNC_LIBM variable.
72742         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72743         * modules/acos (configure.ac): Likewise.
72744         * modules/asin (configure.ac): Likewise.
72745         * modules/atan (configure.ac): Likewise.
72746         * modules/atan2 (configure.ac): Likewise.
72747         * modules/cbrt (configure.ac): Likewise.
72748         * modules/copysign (configure.ac): Likewise.
72749         * modules/cos (configure.ac): Likewise.
72750         * modules/cosh (configure.ac): Likewise.
72751         * modules/erf (configure.ac): Likewise.
72752         * modules/erfc (configure.ac): Likewise.
72753         * modules/exp (configure.ac): Likewise.
72754         * modules/fabs (configure.ac): Likewise.
72755         * modules/fmod (configure.ac): Likewise.
72756         * modules/hypot (configure.ac): Likewise.
72757         * modules/j0 (configure.ac): Likewise.
72758         * modules/j1 (configure.ac): Likewise.
72759         * modules/jn (configure.ac): Likewise.
72760         * modules/ldexp (configure.ac): Likewise.
72761         * modules/lgamma (configure.ac): Likewise.
72762         * modules/log (configure.ac): Likewise.
72763         * modules/log10 (configure.ac): Likewise.
72764         * modules/log1p (configure.ac): Likewise.
72765         * modules/logb (configure.ac): Likewise.
72766         * modules/modf (configure.ac): Likewise.
72767         * modules/nextafter (configure.ac): Likewise.
72768         * modules/pow (configure.ac): Likewise.
72769         * modules/remainder (configure.ac): Likewise.
72770         * modules/rint (configure.ac): Likewise.
72771         * modules/sin (configure.ac): Likewise.
72772         * modules/sinh (configure.ac): Likewise.
72773         * modules/tan (configure.ac): Likewise.
72774         * modules/tanh (configure.ac): Likewise.
72775         * modules/y0 (configure.ac): Likewise.
72776         * modules/y1 (configure.ac): Likewise.
72777         * modules/yn (configure.ac): Likewise.
72779 2010-01-24  Bruno Haible  <bruno@clisp.org>
72781         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72782         * tests/test-acosl.c (x): New variable.
72783         (main): Store argument in x and fetch it from x.
72784         * tests/test-asinl.c (x): New variable.
72785         (main): Store argument in x and fetch it from x.
72786         * tests/test-atanl.c (x): New variable.
72787         (main): Store argument in x and fetch it from x.
72788         * tests/test-cosl.c (x): New variable.
72789         (main): Store argument in x and fetch it from x.
72790         * tests/test-expl.c (x): New variable.
72791         (main): Store argument in x and fetch it from x.
72792         * tests/test-logl.c (x): New variable.
72793         (main): Store argument in x and fetch it from x.
72794         * tests/test-sinl.c (x): New variable.
72795         (main): Store argument in x and fetch it from x.
72796         * tests/test-sqrtl.c (x): New variable.
72797         (main): Store argument in x and fetch it from x.
72798         * tests/test-tanl.c (x): New variable.
72799         (main): Store argument in x and fetch it from x.
72801 2010-01-24  Bruno Haible  <bruno@clisp.org>
72803         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72804         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72805         assignments to the initial TESTS_ENVIRONMENT.
72806         * doc/gnulib.texi (Unit test modules): Document it.
72807         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72808         TESTS_ENVIRONMENT.
72809         * modules/btowc-tests (Makefile.am): Likewise.
72810         * modules/c-stack-tests (Makefile.am): Likewise.
72811         * modules/c-strcase-tests (Makefile.am): Likewise.
72812         * modules/copy-file-tests (Makefile.am): Likewise.
72813         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72814         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72815         * modules/mbrtowc-tests (Makefile.am): Likewise.
72816         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72817         * modules/mbscasestr-tests (Makefile.am): Likewise.
72818         * modules/mbschr-tests (Makefile.am): Likewise.
72819         * modules/mbscspn-tests (Makefile.am): Likewise.
72820         * modules/mbsinit-tests (Makefile.am): Likewise.
72821         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72822         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72823         * modules/mbspbrk-tests (Makefile.am): Likewise.
72824         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72825         * modules/mbsrchr-tests (Makefile.am): Likewise.
72826         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72827         * modules/mbsspn-tests (Makefile.am): Likewise.
72828         * modules/mbsstr-tests (Makefile.am): Likewise.
72829         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72830         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72831         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72832         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72833         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72834         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72835         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72836         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72837         * modules/wcrtomb-tests (Makefile.am): Likewise.
72838         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72839         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72840         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72841         assignments from TESTS_ENVIRONMENT.
72842         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72843         augmentation.
72844         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72845         * modules/atexit-tests (Makefile.am): Likewise.
72846         * modules/binary-io-tests (Makefile.am): Likewise.
72847         * modules/closein-tests (Makefile.am): Likewise.
72848         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72849         * modules/exclude-tests (Makefile.am): Likewise.
72850         * modules/fflush-tests (Makefile.am): Likewise.
72851         * modules/fpending-tests (Makefile.am): Likewise.
72852         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72853         * modules/freadahead-tests (Makefile.am): Likewise.
72854         * modules/freadptr-tests (Makefile.am): Likewise.
72855         * modules/freadseek-tests (Makefile.am): Likewise.
72856         * modules/fseek-tests (Makefile.am): Likewise.
72857         * modules/fseeko-tests (Makefile.am): Likewise.
72858         * modules/ftell-tests (Makefile.am): Likewise.
72859         * modules/ftello-tests (Makefile.am): Likewise.
72860         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72861         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72862         * modules/lseek-tests (Makefile.am): Likewise.
72863         * modules/parse-duration-tests (Makefile.am): Likewise.
72864         * modules/perror-tests (Makefile.am): Likewise.
72865         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72866         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72867         * modules/pipe-tests (Makefile.am): Likewise.
72868         * modules/pread-tests (Makefile.am): Likewise.
72869         * modules/printf-posix-tests (Makefile.am): Likewise.
72870         * modules/select-tests (Makefile.am): Likewise.
72871         * modules/sigpipe-tests (Makefile.am): Likewise.
72872         * modules/tsearch-tests (Makefile.am): Likewise.
72873         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72874         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72875         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72876         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72877         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72878         * modules/version-etc-tests (Makefile.am): Likewise.
72879         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72880         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72881         * modules/xalloc-die-tests (Makefile.am): Likewise.
72882         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72883         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72884         * modules/xstrtol-tests (Makefile.am): Likewise.
72885         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72886         * modules/yesno-tests (Makefile.am): Likewise.
72887         Suggested by Jim Meyering.
72889 2010-01-24  Bruno Haible  <bruno@clisp.org>
72891         More documentation.
72892         * doc/gnulib.texi (Writing modules): New chapter.
72893         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72894         the new chapter.
72896 2010-01-24  Jim Meyering  <meyering@redhat.com>
72898         maint.mk: do not prepend "./" after filtering
72899         * top/maint.mk (_prepend_srcdir_prefix): New variable
72900         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72901         "./" when $(srcdir) is ".".
72903         define STREQ(a,b) consistently, removing useless parentheses
72904         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72905         since the only risk is that "a" or "b" contains an unparenthesized
72906         comma, but if either did that, STREQ would have 3 or more arguments.
72907         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72908         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72909         * lib/hash-triple.c (STREQ): Likewise.
72910         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72911         * lib/getugroups.c (STREQ): Likewise.
72913 2010-01-23  Jim Meyering  <meyering@redhat.com>
72915         maint.mk: fix syntax-check in a non-srcdir build directory
72916         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72917         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72919 2010-01-22  Jim Meyering  <meyering@redhat.com>
72921         userspec: add unit tests
72922         * tests/test-userspec.c: New file.
72923         * modules/userspec-tests: Likewise.
72925 2010-01-21  Jim Meyering  <meyering@redhat.com>
72927         maint.mk: handle source file names containing "." robustly
72928         * top/maint.mk (_dot_escaped_srcdir): Define.
72929         (VC_LIST): Use it in LHS of sed substitution.
72931 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72933         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72934         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72935         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72936         from a non-srcdir build.
72938 2010-01-20  Eric Blake  <ebb9@byu.net>
72940         warn-on-use: use instead of link-warning
72941         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72942         * modules/unistd (Depends-on, Makefile.am): Likewise.
72943         * modules/arpa_inet (Depends-on): Replace link-warning with
72944         warn-on-use.
72945         (Makefile.am): Update rules accordingly.
72946         * modules/ctype (Depends-on, Makefile.am): Likewise.
72947         * modules/dirent (Depends-on, Makefile.am): Likewise.
72948         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72949         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72950         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72951         * modules/locale (Depends-on, Makefile.am): Likewise.
72952         * modules/math (Depends-on, Makefile.am): Likewise.
72953         * modules/search (Depends-on, Makefile.am): Likewise.
72954         * modules/signal (Depends-on, Makefile.am): Likewise.
72955         * modules/spawn (Depends-on, Makefile.am): Likewise.
72956         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72957         * modules/string (Depends-on, Makefile.am): Likewise.
72958         * modules/strings (Depends-on, Makefile.am): Likewise.
72959         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72960         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72961         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72962         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72963         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72964         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72965         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72966         * modules/wchar (Depends-on, Makefile.am): Likewise.
72967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72968         should be poisoned.
72969         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72970         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72971         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72972         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72973         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72974         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72975         * m4/math_h.m4 (gl_MATH_H): Likewise.
72976         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72977         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72978         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72979         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72980         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72981         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72982         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72983         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72984         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72985         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72986         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72988         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72989         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72990         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72991         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72992         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72993         GL_LINK_WARNING.
72994         * lib/ctype.in.h: Likewise.
72995         * lib/dirent.in.h: Likewise.
72996         * lib/fcntl.in.h: Likewise.
72997         * lib/inttypes.in.h: Likewise.
72998         * lib/langinfo.in.h: Likewise.
72999         * lib/locale.in.h: Likewise.
73000         * lib/math.in.h: Likewise.
73001         * lib/search.in.h: Likewise.
73002         * lib/signal.in.h: Likewise.
73003         * lib/spawn.in.h: Likewise.
73004         * lib/stdio.in.h: Likewise.
73005         * lib/stdlib.in.h: Likewise.
73006         * lib/string.in.h: Likewise.
73007         * lib/strings.in.h: Likewise.
73008         * lib/sys_file.in.h: Likewise.
73009         * lib/sys_ioctl.in.h: Likewise.
73010         * lib/sys_select.in.h: Likewise.
73011         * lib/sys_socket.in.h: Likewise.
73012         * lib/sys_stat.in.h: Likewise.
73013         * lib/sys_times.in.h: Likewise.
73014         * lib/sys_utsname.in.h: Likewise.
73015         * lib/unistd.in.h: Likewise.
73016         * lib/wchar.in.h: Likewise.
73018 2010-01-20  Bruno Haible  <bruno@clisp.org>
73020         Avoid duplicate -lm.
73021         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73022         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73023         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73024         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73025         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73026         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73027         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73028         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73029         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73030         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73031         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73032         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73033         Reported by Paolo Bonzini.
73035 2010-01-19  Bruno Haible  <bruno@clisp.org>
73037         langinfo, nl_langinfo: Relicense under LGPLv2+.
73038         * modules/langinfo (License): Change to LGPLv2+.
73039         * modules/nl_langinfo (License): Likewise.
73040         Patch by David Lutterkort <lutter@redhat.com>.
73042 2010-01-19  Bruno Haible  <bruno@clisp.org>
73044         Avoid compilation error with cc on OSF/1 5.1.
73045         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73046         statement, not before.
73047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73049 2010-01-18  Bruno Haible  <bruno@clisp.org>
73051         Avoid a link error due to the __printf__ symbol.
73052         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73053         and 2.6.x.
73054         (__format__, __printf__): Remove definitions.
73055         * lib/argp-fmtstream.h: Likewise.
73056         * lib/argp.h: Likewise.
73057         * lib/error.h: Likewise.
73058         * lib/vasnprintf.h: Likewise.
73059         * lib/xprintf.h: Likewise.
73060         * lib/xvasprintf.h: Likewise.
73061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73063 2010-01-18  Bruno Haible  <bruno@clisp.org>
73065         Tests for module 'tanl'.
73066         * modules/tanl-tests: New file.
73067         * tests/test-tanl.c: New file.
73069         Tests for module 'sqrtl'.
73070         * modules/sqrtl-tests: New file.
73071         * tests/test-sqrtl.c: New file.
73073         Tests for module 'sinl'.
73074         * modules/sinl-tests: New file.
73075         * tests/test-sinl.c: New file.
73077         Tests for module 'logl'.
73078         * modules/logl-tests: New file.
73079         * tests/test-logl.c: New file.
73081         Tests for module 'expl'.
73082         * modules/expl-tests: New file.
73083         * tests/test-expl.c: New file.
73085         Tests for module 'cosl'.
73086         * modules/cosl-tests: New file.
73087         * tests/test-cosl.c: New file.
73089         Tests for module 'atanl'.
73090         * modules/atanl-tests: New file.
73091         * tests/test-atanl.c: New file.
73093         Tests for module 'asinl'.
73094         * modules/asinl-tests: New file.
73095         * tests/test-asinl.c: New file.
73097         Tests for module 'acosl'.
73098         * modules/acosl-tests: New file.
73099         * tests/test-acosl.c: New file.
73101         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73102         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73103         tanl): Use the standard gnulib idiom.
73104         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73105         * lib/sinl.c: Likewise.
73106         * lib/tanl.c: Don't include trigl.c.
73107         (kernel_tanl): Make static.
73108         * lib/sincosl.c: Include trigl.h first.
73109         * lib/trigl.c: Likewise.
73110         * m4/acosl.m4: New file.
73111         * m4/asinl.m4: New file.
73112         * m4/atanl.m4: New file.
73113         * m4/cosl.m4: New file.
73114         * m4/expl.m4: New file.
73115         * m4/logl.m4: New file.
73116         * m4/sinl.m4: New file.
73117         * m4/sqrtl.m4: New file.
73118         * m4/tanl.m4: New file.
73119         * m4/mathl.m4: Remove file.
73120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73121         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73122         Don't initialize GNULIB_MATHL.
73123         * modules/acosl: New file.
73124         * modules/asinl: New file.
73125         * modules/atanl: New file.
73126         * modules/cosl: New file.
73127         * modules/expl: New file.
73128         * modules/logl: New file.
73129         * modules/sinl: New file.
73130         * modules/sqrtl: New file.
73131         * modules/tanl: New file.
73132         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73133         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73134         substitute GNULIB_MATHL.
73135         * modules/mathl: Rewritten.
73136         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73137         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73138         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73139         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73140         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73141         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73142         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73143         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73144         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73146 2010-01-18  Bruno Haible  <bruno@clisp.org>
73148         sqrt: Make gl_FUNC_SQRT requirable.
73149         * m4/sqrt.m4: New file.
73150         * modules/sqrt (Files): Add it.
73151         (configure.ac): Invoke gl_FUNC_SQRT.
73153 2010-01-18  Bruno Haible  <bruno@clisp.org>
73155         New modules for common <math.h> functions.
73156         * m4/mathfunc.m4: New file.
73157         * modules/acos: New file.
73158         * modules/asin: New file.
73159         * modules/atan: New file.
73160         * modules/atan2: New file.
73161         * modules/cbrt: New file.
73162         * modules/copysign: New file.
73163         * modules/cos: New file.
73164         * modules/cosh: New file.
73165         * modules/erf: New file.
73166         * modules/erfc: New file.
73167         * modules/exp: New file.
73168         * modules/fabs: New file.
73169         * modules/fmod: New file.
73170         * modules/hypot: New file.
73171         * modules/j0: New file.
73172         * modules/j1: New file.
73173         * modules/jn: New file.
73174         * modules/ldexp: New file.
73175         * modules/lgamma: New file.
73176         * modules/log: New file.
73177         * modules/log10: New file.
73178         * modules/log1p: New file.
73179         * modules/logb: New file.
73180         * modules/modf: New file.
73181         * modules/nextafter: New file.
73182         * modules/pow: New file.
73183         * modules/remainder: New file.
73184         * modules/rint: New file.
73185         * modules/sin: New file.
73186         * modules/sinh: New file.
73187         * modules/sqrt: New file.
73188         * modules/tan: New file.
73189         * modules/tanh: New file.
73190         * modules/y0: New file.
73191         * modules/y1: New file.
73192         * modules/yn: New file.
73193         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73194         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73195         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73196         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73197         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73198         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73199         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73200         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73201         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73202         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73203         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73204         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73205         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73206         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73207         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73208         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73209         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73210         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73211         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73212         * doc/posix-functions/log.texi: Mention the 'log' module.
73213         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73214         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73215         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73216         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73217         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73218         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73219         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73220         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73221         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73222         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73223         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73224         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73225         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73226         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73227         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73228         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73230 2010-01-18  Jim Meyering  <meyering@redhat.com>
73232         ignore-value: relax license to LGPLv2+
73233         * modules/ignore-value (License): Relax to LGPLv2+.
73235         getdate: don't leak when TZ contains two or more '"'s
73236         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73237         double quote in TZ after the first one.
73239         readtokens: do not leak internal token_lengths buffer
73240         * lib/readtokens.c (readtokens): Free the local, lengths,
73241         when the supplied "token_lengths" parameter is NULL.
73243 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73245         Fix a couple of missing LIBTHREAD link failures on AIX.
73246         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73247         $(LIBTHREAD).
73248         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73250         Link test-poll against INET_PTON_LIB.
73251         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73252         for inet_pton on Solaris 10.
73254 2010-01-17  Bruno Haible  <bruno@clisp.org>
73256         unistdio/*-sprintf: Fix typo in module description.
73257         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73258         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73259         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73260         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73261         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73262         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73263         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73266 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73268         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73269         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73270         variables in shell case patterns, for AIX and HP-UX ksh.
73272         Split large sed scripts, for HP-UX sed.
73273         * modules/stdio: Split sed scripts around 50 sed commands,
73274         to avoid HP-UX limit of 99 commands, in the near future.
73275         * modules/string: Likewise.
73276         * modules/unistd: Likewise.
73278         gnulib-tool: avoid writing in the current directory.
73279         * gnulib-tool (func_emit_lib_Makefile_am)
73280         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73281         not in the current directory, so concurrent gnulib-tool
73282         instances do not interfere.
73284 2010-01-16  Jim Meyering  <meyering@redhat.com>
73286         doc: update users.txt
73287         * users.txt: Add grep.
73288         (diffutils, gzip): Update URLs.
73290 2010-01-12  Bruno Haible  <bruno@clisp.org>
73292         posix_spawn: Avoid test failure on Cygwin.
73293         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73294         characters.
73295         Reported by Simon Josefsson.
73297 2010-01-12  Bruno Haible  <bruno@clisp.org>
73299         * tests/test-cond.c (main): When skipping the test, show the reason.
73301 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73303         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73305 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73307         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73308         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73310 2010-01-12  Eric Blake  <ebb9@byu.net>
73312         build: guarantee AS_VAR_IF
73313         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73314         (gl_AS_VAR_IF): Move...
73315         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73316         Reported by Simon Josefsson.
73318 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73320         * lib/stdio.in.h: Fix typo.
73322 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73324         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73325         libgpg-error.
73327 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73329         * tests/test-xalloc-die.sh: Use $EXEEXT.
73331 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73332             Bruno Haible  <bruno@clisp.org>
73334         getlogin, getlogin_r: Avoid test failure.
73335         * tests/test-getlogin.c: Include <stdio.h>.
73336         (main): Skip the test when the function fails because stdin is not a
73337         tty.
73338         * tests/test-getlogin_r.c: Include <stdio.h>.
73339         (main): Skip the test when the function fails because stdin is not a
73340         tty.
73342 2010-01-11  Eric Blake  <ebb9@byu.net>
73344         tests: avoid more large file warnings
73345         * tests/test-fflush.c: Avoid warning about ftell use.
73346         * tests/test-fseek.c: Avoid warning about fseek use.
73348 2010-01-10  Bruno Haible  <bruno@clisp.org>
73350         nproc: Work better on Linux when /proc and /sys are not mounted.
73351         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73352         as lower bound when, on glibc/Linux systems,
73353         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73354         Suggested by Pádraig Brady <P@draigbrady.com>.
73355         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73357         nproc: Refactor.
73358         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73359         extracted from num_processors.
73360         (num_processors): Call it.
73362 2010-01-11  Jim Meyering  <meyering@redhat.com>
73364         utimecmp: avoid new warning from upcoming gcc-4.5.0
73365         * lib/utimecmp.c (BILLION): Define using #define rather than an
73366         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73368 2010-01-11  Eric Blake  <ebb9@byu.net>
73370         math: add portability warnings for classification macros
73371         * modules/math (Depends-on): Add warn-on-use.
73372         (Makefile.am): Provide new substitutions.
73373         * m4/math_h.m4 (gl_MATH_H): Require inline.
73374         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73375         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73376         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73377         implement warnings.
73379         unistd: warn on use of environ without module
73380         * modules/unistd (Depends-on): Add warn-on-use.
73381         (Makefile.am): Provide new substitutions.
73382         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73383         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73385         stdio: warn on suspicious uses
73386         * modules/stdio (Depends-on): Add warn-on-use.
73387         (Makefile.am): Provide new substitutions.
73388         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73389         fseeko.
73390         * lib/stdio.in.h (gets): Always warn on use.
73391         (fseek, ftell): Adjust when warnings are issued, and honor
73392         _GL_NO_LARGE_FILES as a way to silence the warning.
73393         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73394         any warning about large file offsets.
73395         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73396         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73397         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73398         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73399         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73400         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73401         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73402         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73404         warn-on-use: new module
73405         * modules/warn-on-use: New file.
73406         * build-aux/warn-on-use.h: Likewise.
73407         * m4/warn-on-use.m4: Likewise.
73408         * MODULES.html.sh (Support for building): Mention it.
73410 2010-01-10  Bruno Haible  <bruno@clisp.org>
73412         Tests for module 'unistr/u32-strdup'.
73413         * modules/unistr/u32-strdup-tests: New file.
73414         * tests/unistr/test-u32-strdup.c: New file.
73416         Tests for module 'unistr/u16-strdup'.
73417         * modules/unistr/u16-strdup-tests: New file.
73418         * tests/unistr/test-u16-strdup.c: New file.
73420         Tests for module 'unistr/u8-strdup'.
73421         * modules/unistr/u8-strdup-tests: New file.
73422         * tests/unistr/test-u8-strdup.c: New file.
73423         * tests/unistr/test-strdup.h: New file.
73425         Tests for module 'unistr/u32-strncmp'.
73426         * modules/unistr/u32-strncmp-tests: New file.
73427         * tests/unistr/test-u32-strncmp.c: New file.
73429         Tests for module 'unistr/u16-strncmp'.
73430         * modules/unistr/u16-strncmp-tests: New file.
73431         * tests/unistr/test-u16-strncmp.c: New file.
73433         Tests for module 'unistr/u8-strncmp'.
73434         * modules/unistr/u8-strncmp-tests: New file.
73435         * tests/unistr/test-u8-strncmp.c: New file.
73436         * tests/unistr/test-strncmp.h: New file.
73438         Tests for module 'unistr/u32-strcoll'.
73439         * modules/unistr/u32-strcoll-tests: New file.
73440         * tests/unistr/test-u32-strcoll.c: New file.
73442         Tests for module 'unistr/u16-strcoll'.
73443         * modules/unistr/u16-strcoll-tests: New file.
73444         * tests/unistr/test-u16-strcoll.c: New file.
73446         Tests for module 'unistr/u8-strcoll'.
73447         * modules/unistr/u8-strcoll-tests: New file.
73448         * tests/unistr/test-u8-strcoll.c: New file.
73450         Tests for module 'unistr/u32-strcmp'.
73451         * modules/unistr/u32-strcmp-tests: New file.
73452         * tests/unistr/test-u32-strcmp.c: New file.
73453         * tests/unistr/test-u32-strcmp.h: New file.
73455         Tests for module 'unistr/u16-strcmp'.
73456         * modules/unistr/u16-strcmp-tests: New file.
73457         * tests/unistr/test-u16-strcmp.c: New file.
73458         * tests/unistr/test-u16-strcmp.h: New file.
73460         Tests for module 'unistr/u8-strcmp'.
73461         * modules/unistr/u8-strcmp-tests: New file.
73462         * tests/unistr/test-u8-strcmp.c: New file.
73463         * tests/unistr/test-u8-strcmp.h: New file.
73464         * tests/unistr/test-strcmp.h: New file.
73466         Tests for module 'unistr/u32-strncat'.
73467         * modules/unistr/u32-strncat-tests: New file.
73468         * tests/unistr/test-u32-strncat.c: New file.
73470         Tests for module 'unistr/u16-strncat'.
73471         * modules/unistr/u16-strncat-tests: New file.
73472         * tests/unistr/test-u16-strncat.c: New file.
73474         Tests for module 'unistr/u8-strncat'.
73475         * modules/unistr/u8-strncat-tests: New file.
73476         * tests/unistr/test-u8-strncat.c: New file.
73477         * tests/unistr/test-strncat.h: New file.
73479         Tests for module 'unistr/u32-strcat'.
73480         * modules/unistr/u32-strcat-tests: New file.
73481         * tests/unistr/test-u32-strcat.c: New file.
73483         Tests for module 'unistr/u16-strcat'.
73484         * modules/unistr/u16-strcat-tests: New file.
73485         * tests/unistr/test-u16-strcat.c: New file.
73487         Tests for module 'unistr/u8-strcat'.
73488         * modules/unistr/u8-strcat-tests: New file.
73489         * tests/unistr/test-u8-strcat.c: New file.
73490         * tests/unistr/test-strcat.h: New file.
73492         Tests for module 'unistr/u32-stpncpy'.
73493         * modules/unistr/u32-stpncpy-tests: New file.
73494         * tests/unistr/test-u32-stpncpy.c: New file.
73496         Tests for module 'unistr/u16-stpncpy'.
73497         * modules/unistr/u16-stpncpy-tests: New file.
73498         * tests/unistr/test-u16-stpncpy.c: New file.
73500         Tests for module 'unistr/u8-stpncpy'.
73501         * modules/unistr/u8-stpncpy-tests: New file.
73502         * tests/unistr/test-u8-stpncpy.c: New file.
73503         * tests/unistr/test-stpncpy.h: New file.
73505         Tests for module 'unistr/u32-strncpy'.
73506         * modules/unistr/u32-strncpy-tests: New file.
73507         * tests/unistr/test-u32-strncpy.c: New file.
73509         Tests for module 'unistr/u16-strncpy'.
73510         * modules/unistr/u16-strncpy-tests: New file.
73511         * tests/unistr/test-u16-strncpy.c: New file.
73513         Tests for module 'unistr/u8-strncpy'.
73514         * modules/unistr/u8-strncpy-tests: New file.
73515         * tests/unistr/test-u8-strncpy.c: New file.
73516         * tests/unistr/test-strncpy.h: New file.
73518         Tests for module 'unistr/u32-stpcpy'.
73519         * modules/unistr/u32-stpcpy-tests: New file.
73520         * tests/unistr/test-u32-stpcpy.c: New file.
73522         Tests for module 'unistr/u16-stpcpy'.
73523         * modules/unistr/u16-stpcpy-tests: New file.
73524         * tests/unistr/test-u16-stpcpy.c: New file.
73526         Tests for module 'unistr/u8-stpcpy'.
73527         * modules/unistr/u8-stpcpy-tests: New file.
73528         * tests/unistr/test-u8-stpcpy.c: New file.
73529         * tests/unistr/test-stpcpy.h: New file.
73531         Tests for module 'unistr/u32-strcpy'.
73532         * modules/unistr/u32-strcpy-tests: New file.
73533         * tests/unistr/test-u32-strcpy.c: New file.
73535         Tests for module 'unistr/u16-strcpy'.
73536         * modules/unistr/u16-strcpy-tests: New file.
73537         * tests/unistr/test-u16-strcpy.c: New file.
73539         Tests for module 'unistr/u8-strcpy'.
73540         * modules/unistr/u8-strcpy-tests: New file.
73541         * tests/unistr/test-u8-strcpy.c: New file.
73542         * tests/unistr/test-strcpy.h: New file.
73544         Tests for module 'unistr/u32-strnlen'.
73545         * modules/unistr/u32-strnlen-tests: New file.
73546         * tests/unistr/test-u32-strnlen.c: New file.
73548         Tests for module 'unistr/u16-strnlen'.
73549         * modules/unistr/u16-strnlen-tests: New file.
73550         * tests/unistr/test-u16-strnlen.c: New file.
73552         Tests for module 'unistr/u8-strnlen'.
73553         * modules/unistr/u8-strnlen-tests: New file.
73554         * tests/unistr/test-u8-strnlen.c: New file.
73555         * tests/unistr/test-strnlen.h: New file.
73557         Tests for module 'unistr/u32-strlen'.
73558         * modules/unistr/u32-strlen-tests: New file.
73559         * tests/unistr/test-u32-strlen.c: New file.
73561         Tests for module 'unistr/u16-strlen'.
73562         * modules/unistr/u16-strlen-tests: New file.
73563         * tests/unistr/test-u16-strlen.c: New file.
73565         Tests for module 'unistr/u8-strlen'.
73566         * modules/unistr/u8-strlen-tests: New file.
73567         * tests/unistr/test-u8-strlen.c: New file.
73569         Tests for module 'unistr/u32-prev'.
73570         * modules/unistr/u32-prev-tests: New file.
73571         * tests/unistr/test-u32-prev.c: New file.
73573         Tests for module 'unistr/u16-prev'.
73574         * modules/unistr/u16-prev-tests: New file.
73575         * tests/unistr/test-u16-prev.c: New file.
73577         Tests for module 'unistr/u8-prev'.
73578         * modules/unistr/u8-prev-tests: New file.
73579         * tests/unistr/test-u8-prev.c: New file.
73581         Tests for module 'unistr/u32-next'.
73582         * modules/unistr/u32-next-tests: New file.
73583         * tests/unistr/test-u32-next.c: New file.
73585         Tests for module 'unistr/u16-next'.
73586         * modules/unistr/u16-next-tests: New file.
73587         * tests/unistr/test-u16-next.c: New file.
73589         Tests for module 'unistr/u8-next'.
73590         * modules/unistr/u8-next-tests: New file.
73591         * tests/unistr/test-u8-next.c: New file.
73593         Tests for module 'unistr/u32-strmbtouc'.
73594         * modules/unistr/u32-strmbtouc-tests: New file.
73595         * tests/unistr/test-u32-strmbtouc.c: New file.
73597         Tests for module 'unistr/u16-strmbtouc'.
73598         * modules/unistr/u16-strmbtouc-tests: New file.
73599         * tests/unistr/test-u16-strmbtouc.c: New file.
73601         Tests for module 'unistr/u8-strmbtouc'.
73602         * modules/unistr/u8-strmbtouc-tests: New file.
73603         * tests/unistr/test-u8-strmbtouc.c: New file.
73605         Tests for module 'unistr/u32-strmblen'.
73606         * modules/unistr/u32-strmblen-tests: New file.
73607         * tests/unistr/test-u32-strmblen.c: New file.
73609         Tests for module 'unistr/u16-strmblen'.
73610         * modules/unistr/u16-strmblen-tests: New file.
73611         * tests/unistr/test-u16-strmblen.c: New file.
73613         Tests for module 'unistr/u8-strmblen'.
73614         * modules/unistr/u8-strmblen-tests: New file.
73615         * tests/unistr/test-u8-strmblen.c: New file.
73617         Tests for module 'unistr/u32-cpy-alloc'.
73618         * modules/unistr/u32-cpy-alloc-tests: New file.
73619         * tests/unistr/test-u32-cpy-alloc.c: New file.
73621         Tests for module 'unistr/u16-cpy-alloc'.
73622         * modules/unistr/u16-cpy-alloc-tests: New file.
73623         * tests/unistr/test-u16-cpy-alloc.c: New file.
73625         Tests for module 'unistr/u8-cpy-alloc'.
73626         * modules/unistr/u8-cpy-alloc-tests: New file.
73627         * tests/unistr/test-u8-cpy-alloc.c: New file.
73628         * tests/unistr/test-cpy-alloc.h: New file.
73630         Tests for module 'unistr/u32-mbsnlen'.
73631         * modules/unistr/u32-mbsnlen-tests: New file.
73632         * tests/unistr/test-u32-mbsnlen.c: New file.
73634         Tests for module 'unistr/u16-mbsnlen'.
73635         * modules/unistr/u16-mbsnlen-tests: New file.
73636         * tests/unistr/test-u16-mbsnlen.c: New file.
73638         Tests for module 'unistr/u8-mbsnlen'.
73639         * modules/unistr/u8-mbsnlen-tests: New file.
73640         * tests/unistr/test-u8-mbsnlen.c: New file.
73642         Tests for module 'unistr/u32-chr'.
73643         * modules/unistr/u32-chr-tests: New file.
73644         * tests/unistr/test-u32-chr.c: New file.
73646         Tests for module 'unistr/u16-chr'.
73647         * modules/unistr/u16-chr-tests: New file.
73648         * tests/unistr/test-u16-chr.c: New file.
73650         Tests for module 'unistr/u8-chr'.
73651         * modules/unistr/u8-chr-tests: New file.
73652         * tests/unistr/test-u8-chr.c: New file.
73653         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73655         Tests for module 'unistr/u32-cmp2'.
73656         * modules/unistr/u32-cmp2-tests: New file.
73657         * tests/unistr/test-u32-cmp2.c: New file.
73659         Tests for module 'unistr/u16-cmp2'.
73660         * modules/unistr/u16-cmp2-tests: New file.
73661         * tests/unistr/test-u16-cmp2.c: New file.
73663         Tests for module 'unistr/u8-cmp2'.
73664         * modules/unistr/u8-cmp2-tests: New file.
73665         * tests/unistr/test-u8-cmp2.c: New file.
73666         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73668         Tests for module 'unistr/u32-cmp'.
73669         * modules/unistr/u32-cmp-tests: New file.
73670         * tests/unistr/test-u32-cmp.c: New file.
73672         Tests for module 'unistr/u16-cmp'.
73673         * modules/unistr/u16-cmp-tests: New file.
73674         * tests/unistr/test-u16-cmp.c: New file.
73676         Tests for module 'unistr/u8-cmp'.
73677         * modules/unistr/u8-cmp-tests: New file.
73678         * tests/unistr/test-u8-cmp.c: New file.
73679         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73681         Tests for module 'unistr/u32-set'.
73682         * modules/unistr/u32-set-tests: New file.
73683         * tests/unistr/test-u32-set.c: New file.
73685         Tests for module 'unistr/u16-set'.
73686         * modules/unistr/u16-set-tests: New file.
73687         * tests/unistr/test-u16-set.c: New file.
73689         Tests for module 'unistr/u8-set'.
73690         * modules/unistr/u8-set-tests: New file.
73691         * tests/unistr/test-u8-set.c: New file.
73692         * tests/unistr/test-set.h: New file.
73694         Tests for module 'unistr/u32-move'.
73695         * modules/unistr/u32-move-tests: New file.
73696         * tests/unistr/test-u32-move.c: New file.
73698         Tests for module 'unistr/u16-move'.
73699         * modules/unistr/u16-move-tests: New file.
73700         * tests/unistr/test-u16-move.c: New file.
73702         Tests for module 'unistr/u8-move'.
73703         * modules/unistr/u8-move-tests: New file.
73704         * tests/unistr/test-u8-move.c: New file.
73705         * tests/unistr/test-move.h: New file.
73707         Tests for module 'unistr/u32-cpy'.
73708         * modules/unistr/u32-cpy-tests: New file.
73709         * tests/unistr/test-u32-cpy.c: New file.
73711         Tests for module 'unistr/u16-cpy'.
73712         * modules/unistr/u16-cpy-tests: New file.
73713         * tests/unistr/test-u16-cpy.c: New file.
73715         Tests for module 'unistr/u8-cpy'.
73716         * modules/unistr/u8-cpy-tests: New file.
73717         * tests/unistr/test-u8-cpy.c: New file.
73718         * tests/unistr/test-cpy.h: New file.
73720 2010-01-09  Bruno Haible  <bruno@clisp.org>
73722         Tests for module 'unistr/u32-uctomb'.
73723         * modules/unistr/u32-uctomb-tests: New file.
73724         * tests/unistr/test-u32-uctomb.c: New file.
73726         Tests for module 'unistr/u16-uctomb'.
73727         * modules/unistr/u16-uctomb-tests: New file.
73728         * tests/unistr/test-u16-uctomb.c: New file.
73730         Tests for module 'unistr/u8-uctomb'.
73731         * modules/unistr/u8-uctomb-tests: New file.
73732         * tests/unistr/test-u8-uctomb.c: New file.
73734         Tests for module 'unistr/u32-mbtoucr'.
73735         * modules/unistr/u32-mbtoucr-tests: New file.
73736         * tests/unistr/test-u32-mbtoucr.c: New file.
73738         Tests for module 'unistr/u16-mbtoucr'.
73739         * modules/unistr/u16-mbtoucr-tests: New file.
73740         * tests/unistr/test-u16-mbtoucr.c: New file.
73742         Tests for module 'unistr/u8-mbtoucr'.
73743         * modules/unistr/u8-mbtoucr-tests: New file.
73744         * tests/unistr/test-u8-mbtoucr.c: New file.
73746         Tests for module 'unistr/u32-mbtouc'.
73747         * modules/unistr/u32-mbtouc-tests: New file.
73748         * tests/unistr/test-u32-mbtouc.c: New file.
73750         Tests for module 'unistr/u16-mbtouc'.
73751         * modules/unistr/u16-mbtouc-tests: New file.
73752         * tests/unistr/test-u16-mbtouc.c: New file.
73754         Tests for module 'unistr/u8-mbtouc'.
73755         * modules/unistr/u8-mbtouc-tests: New file.
73756         * tests/unistr/test-u8-mbtouc.c: New file.
73758         Tests for module 'unistr/u32-mbtouc-unsafe'.
73759         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73760         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73761         * tests/unistr/test-u32-mbtouc.h: New file.
73763         Tests for module 'unistr/u16-mbtouc-unsafe'.
73764         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73765         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73766         * tests/unistr/test-u16-mbtouc.h: New file.
73768         Tests for module 'unistr/u8-mbtouc-unsafe'.
73769         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73770         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73771         * tests/unistr/test-u8-mbtouc.h: New file.
73773         Tests for module 'unistr/u32-mblen'.
73774         * modules/unistr/u32-mblen-tests: New file.
73775         * tests/unistr/test-u32-mblen.c: New file.
73777         Tests for module 'unistr/u16-mblen'.
73778         * modules/unistr/u16-mblen-tests: New file.
73779         * tests/unistr/test-u16-mblen.c: New file.
73781         Tests for module 'unistr/u8-mblen'.
73782         * modules/unistr/u8-mblen-tests: New file.
73783         * tests/unistr/test-u8-mblen.c: New file.
73785         Tests for module 'unistr/u32-to-u16'.
73786         * modules/unistr/u32-to-u16-tests: New file.
73787         * tests/unistr/test-u32-to-u16.c: New file.
73789         Tests for module 'unistr/u32-to-u8'.
73790         * modules/unistr/u32-to-u8-tests: New file.
73791         * tests/unistr/test-u32-to-u8.c: New file.
73793         Tests for module 'unistr/u16-to-u32'.
73794         * modules/unistr/u16-to-u32-tests: New file.
73795         * tests/unistr/test-u16-to-u32.c: New file.
73797         Tests for module 'unistr/u16-to-u8'.
73798         * modules/unistr/u16-to-u8-tests: New file.
73799         * tests/unistr/test-u16-to-u8.c: New file.
73801         Tests for module 'unistr/u8-to-u32'.
73802         * modules/unistr/u8-to-u32-tests: New file.
73803         * tests/unistr/test-u8-to-u32.c: New file.
73805         Tests for module 'unistr/u8-to-u16'.
73806         * modules/unistr/u8-to-u16-tests: New file.
73807         * tests/unistr/test-u8-to-u16.c: New file.
73809         Tests for module 'unistr/u32-check'.
73810         * modules/unistr/u32-check-tests: New file.
73811         * tests/unistr/test-u32-check.c: New file.
73813         Tests for module 'unistr/u16-check'.
73814         * modules/unistr/u16-check-tests: New file.
73815         * tests/unistr/test-u16-check.c: New file.
73817         Tests for module 'unistr/u8-check'.
73818         * modules/unistr/u8-check-tests: New file.
73819         * tests/unistr/test-u8-check.c: New file.
73821         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73822         (category_equals): New function.
73823         (main): Add more tests.
73824         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73826         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73828 2010-01-10  Bruno Haible  <bruno@clisp.org>
73830         unistr/u*-strcoll: Try harder to distinguish different strings.
73831         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73832         compare s1 and s2 to see if they are different.
73834 2010-01-10  Bruno Haible  <bruno@clisp.org>
73836         unistr/u*-stpncpy: Fix the return value.
73837         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73838         description of the return value consistent with stpncpy in glibc.
73839         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73840         written non-NUL unit.
73842 2010-01-10  Bruno Haible  <bruno@clisp.org>
73844         unistr/u*-next: Add missing dependencies.
73845         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73846         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73847         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73849 2010-01-10  Bruno Haible  <bruno@clisp.org>
73851         unistr/u8-mbsnlen: Fix return value for incomplete character.
73852         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73853         u8_mblen.
73854         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73855         Remove unistr/u8-mblen.
73856         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73857         u16_mblen.
73858         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73859         Remove unistr/u16-mblen.
73861 2010-01-10  Bruno Haible  <bruno@clisp.org>
73863         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73864         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73865         Reported by Brian Gough <bjg@gnu.org> and
73866         Chris Clayton <chris2553@googlemail.com> via
73867         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73869 2010-01-09  Bruno Haible  <bruno@clisp.org>
73871         unistr/u16-to-u32: Reject invalid input.
73872         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73873         u16_mbtouc.
73874         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73875         Remove unistr/u16-mbtouc.
73877         unistr/u16-to-u8: Reject invalid input.
73878         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73879         u16_mbtouc.
73880         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73881         Remove unistr/u16-mbtouc.
73883         unistr/u8-to-u32: Reject invalid input.
73884         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73885         u8_mbtouc.
73886         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73887         Remove unistr/u8-mbtouc.
73889         unistr/u8-to-u16: Reject invalid input.
73890         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73891         u8_mbtouc.
73892         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73893         Remove unistr/u8-mbtouc.
73895 2010-01-09  Bruno Haible  <bruno@clisp.org>
73897         Tests for module 'getlogin'.
73898         * modules/getlogin-tests: New file.
73899         * tests/test-getlogin.c: New file.
73901         New module 'getlogin'.
73902         * lib/unistd.in.h (getlogin): New declaration.
73903         * lib/getlogin.c: New file.
73904         * m4/getlogin.m4: New file.
73905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73906         HAVE_GETLOGIN.
73907         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73908         HAVE_GETLOGIN.
73909         * modules/getlogin: New file.
73910         * doc/posix-functions/getlogin.texi: Mention the new module.
73911         Reported by John W. Eaton <jwe@gnu.org>.
73913 2010-01-09  Bruno Haible  <bruno@clisp.org>
73915         getlogin_r: Support for native Windows.
73916         * lib/getlogin_r.c: Include <windows.h>
73917         (getlogin_r): Implement for native Windows.
73918         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73919         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73920         via John W. Eaton <jwe@gnu.org>.
73922 2010-01-09  Bruno Haible  <bruno@clisp.org>
73924         getlogin_r: Small fixes.
73925         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73926         succeeds.
73927         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73928         before testing whether getlogin_r is declared. No need to set
73929         HAVE_DECL_GETLOGIN_R to 1.
73930         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73932 2010-01-09  Bruno Haible  <bruno@clisp.org>
73934         * lib/unistd.in.h (getlogin_r): Add comment.
73936 2010-01-09  Bruno Haible  <bruno@clisp.org>
73938         Tests for module 'getlogin_r'.
73939         * modules/getlogin_r-tests: New file.
73940         * tests/test-getlogin_r.c: New file.
73942 2010-01-09  Jim Meyering  <meyering@redhat.com>
73944         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73945         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73946         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73948 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73950         * lib/dup2.c (rpl_dup2): Improve comment.
73952 2010-01-08  Eric Blake  <ebb9@byu.net>
73954         maint.mk: allow packages to add makefile @@ exceptions
73955         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73956         (sc_makefile_check): Rename...
73957         (sc_makefile_at_at_check): ...to this, and use hook.
73959         dup2: work around mingw bug
73960         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73961         Reported by Simon Josefsson.
73963 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73965         glob: Fix C++ compilation.
73966         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73967         C++.
73969 2010-01-07  Bruno Haible  <bruno@clisp.org>
73971         Fix indentation of wctype.in.h, broken since 2007-01-06.
73972         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73974 2010-01-07  Bruno Haible  <bruno@clisp.org>
73976         mbslen: Avoid collision with system function.
73977         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73978         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73979         * m4/mbslen.m4: New file.
73980         * modules/mbslen (Files): Add it.
73981         (configure.ac): Invoke gl_MBSLEN.
73982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73983         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73984         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73985         via Ian Beckwith <ianb@erislabs.net>.
73987 2010-01-07  Bruno Haible  <bruno@clisp.org>
73989         dirent: Document the last fix.
73990         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73992 2010-01-07  Bruno Haible  <bruno@clisp.org>
73994         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73995         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73996         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73997         va_list are defined.
73998         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73999         Reported by Eric Blake.
74001 2010-01-07  Bruno Haible  <bruno@clisp.org>
74003         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74004         * modules/xlist (Depends-on): Add 'list',
74005         * modules/xoset (Depends-on): Add 'oset'.
74006         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74008 2010-01-07  Bruno Haible  <bruno@clisp.org>
74010         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74011         * doc/posix-functions/strncasecmp.texi: Likewise.
74013 2010-01-07  Bruno Haible  <bruno@clisp.org>
74015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74017 2010-01-07  John W. Eaton  <jwe@octave.org>
74019         wctype: allow C++ use
74020         * lib/wctype.in.h: Add extern "C" block for C++.
74022 2010-01-06  Eric Blake  <ebb9@byu.net>
74024         maint.mk: detect incorrect GFDL usage
74025         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74027 2010-01-06  Jim Meyering  <meyering@redhat.com>
74028         and Eric Blake  <ebb9@byu.net>
74030         maint.mk: ignore multi-line copyright in NEWS
74031         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74033 2010-01-06  Eric Blake  <ebb9@byu.net>
74035         select: add missing dependency
74036         * modules/select-tests (Depends-on): Move sockets dependency...
74037         * modules/select (Depends-on): ...here.
74038         Reported by Ian Beckwith.
74040         doc: regenerate INSTALL
74041         * doc/INSTALL: Reflect recent autoconf update.
74042         * doc/INSTALL.ISO: Likewise.
74043         * doc/INSTALL.UTF-8: Likewise.
74045         pread: fix compilation on glibc
74046         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74047         Reported by Ralf Wildenhues.
74049         dirent: fix test failure
74050         * lib/dirent.in.h (includes): Guarantee ino_t.
74051         Reported by Ralf Wildenhues.
74053 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74055         linkat, renameat: avoid bad free
74056         * lib/at-func2.c (at_func2): Fix typo.
74057         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74059 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74061         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74062         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74063         to avoid failure of symlink test later.
74065 2010-01-06  Eric Blake  <ebb9@byu.net>
74067         stdio, unistd: guarantee ssize_t
74068         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74069         2008 are exposed when needed.
74070         * lib/stdio.in.h (includes): Likewise.
74071         Reported by Ralf Wildenhues.
74073 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74075         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74077         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74079 2010-01-06  Jim Meyering  <meyering@redhat.com>
74081         readtokens: this module *does* require xalloc.h
74082         It uses only functions that were omitted by the old syntax-check rule.
74083         * lib/readtokens.c: Include "xalloc.h" once again.
74084         * modules/readtokens (Depends-on): Add xalloc.
74085         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74087 2010-01-05  Eric Blake  <ebb9@byu.net>
74089         maint: support 'make announcement' from a VPATH build
74090         * top/maint.mk (announcement): Look for correct NEWS file.
74092 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74094         utimens (fdutimens): ignore a negative FD, per contract
74095         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74096         when we have a valid file descriptor.  Otherwise, using a brand
74097         new glibc (with just-patched futimens that now fails with EBADF)
74098         would cause this function to fail with ENOSYS.
74099         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74100         See also http://bugzilla.redhat.com/552320.
74102 2010-01-05  Eric Blake  <ebb9@byu.net>
74104         strcase: document what it provides
74105         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74106         gnulib module.
74107         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74108         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74110 2010-01-05  Jim Meyering  <meyering@redhat.com>
74112         maint: remove useless inclusions of "xalloc.h"
74113         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74114         * lib/readtokens.c: Likewise.
74115         * lib/same.c: Likewise.
74116         * modules/getloadavg (Depends-on): Remove xalloc.
74117         * modules/readtokens: Likewise.
74118         * modules/same: Likewise.
74120         maint.mk: include 4 more function names in alloca.h-checking regexp
74121         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74122         regexp.  Before, we would give a false-positive (saying alloca.h
74123         is included unnecessarily) when the only uses involved omitted symbols.
74125         xalloc.h: use consistent formatting
74126         * lib/xalloc.h: Move declarations to start in the first column.
74128 2010-01-05  Eric Blake  <ebb9@byu.net>
74130         mkdir: avoid xalloc
74131         * lib/mkdir.c (includes): Drop unused header.
74132         Reported by John W. Eaton.
74134 2010-01-04  Jim Meyering  <meyering@redhat.com>
74136         nl_langinfo: avoid configure-time syntax error
74137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74138         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74139         the empty string.  Don't let that provoke a shell syntax error.
74141         regcomp, regexec, fnmatch: avoid array bounds read error
74142         * lib/regcomp.c (build_equiv_class): From glibc:
74143         Use only the low 24 bits of a findidx return value as an index
74144         into the weights array.  Patch by Ulrich Drepper:
74145         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74146         * lib/regexec.c (check_node_accept_bytes): Likewise.
74147         * lib/fnmatch_loop.c (FCT): Likewise.
74149         regcomp: skip collseq lookup when there are no rules
74150         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74151         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74153         regcomp: recognize ill-formed { } expressions
74154         * lib/regcomp.c (parse_dup_op): From glibc:
74155         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74157         regcomp: fix typo in comment
74158         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74159         s/satisfy/satisfies/.
74161         regcomp: sync from glibc: remove dead store
74162         * lib/regcomp.c (duplicate_node_closure): Remove useless
74163         search_duplicated_node call and dead store.
74165         regcomp: sync from glibc; always use nl_langinfo
74166         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74167         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74168         * modules/regex (Depends-on): Add nl_langinfo.
74170 2010-01-04  Eric Blake  <ebb9@byu.net>
74172         fdopendir: fix configure test
74173         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74175 2010-01-01  Bruno Haible  <bruno@clisp.org>
74177         wchar: Remove unused configure check.
74178         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74180 2010-01-01  Eric Blake  <ebb9@byu.net>
74182         headers: make check of system header explicit
74183         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74184         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74185         ourselves.
74186         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74188         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74189         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74190         internals.
74191         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74192         missing.
74193         Suggested by Bruno Haible.
74195 2010-01-01  Jim Meyering  <meyering@redhat.com>
74197         ChangeLog: tweak to eliminate unnecessary copyright line
74198         * ChangeLog: Remove a copyright line that was mistakenly updated
74199         by today's update-copyright run.  Reported by Eric Blake.
74201         test-update-copyright: don't let envvar setting cause test failure
74202         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74204 2010-01-01  Bruno Haible  <bruno@clisp.org>
74206         localename: Avoid gcc warning.
74207         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74208         function if it is not used.
74210 2010-01-01  Jim Meyering  <meyering@redhat.com>
74212         update nearly all FSF copyright year lists to include 2010
74213         Use the same procedure as for 2009, outlined in
74214         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74216         version-etc: set COPYRIGHT_YEAR to 2010
74217         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74219 2009-12-31  Eric Blake  <ebb9@byu.net>
74221         doc: correct availability of cygwin 1.5.x getopt
74222         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74223         variables.
74224         * doc/posix-functions/opterr.texi (opterr): Likewise.
74225         * doc/posix-functions/optind.texi (optind): Likewise.
74226         * doc/posix-functions/optopt.texi (optopt): Likewise.
74227         * doc/posix-functions/tzname.texi (tzname): Likewise.
74229         openat: update maintainer
74230         * modules/openat (Maintainer): Add myself.
74232         utimens: avoid shadowing warning
74233         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74234         buffers into one, to avoid shadowing, as well as avoiding a
74235         redundant stat.
74236         Reported by Jim Meyering.
74238         test-dup2: avoid compiler warning
74239         * tests/test-dup2.c (is_inheritable): Only define if used.
74241 2010-01-01  Bruno Haible  <bruno@clisp.org>
74243         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74244         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74245         defined, use wctomb instead of wcrtomb.
74247 2010-01-01  Bruno Haible  <bruno@clisp.org>
74249         iconv: Reject native Solaris iconv.
74250         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74251         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74253 2009-12-31  Bruno Haible  <bruno@clisp.org>
74255         * tests/test-signal.c (main): Remove test of 'SIG'.
74257 2009-12-31  Bruno Haible  <bruno@clisp.org>
74259         spawn: Fix incomplete fix.
74260         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74261         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74262         warnings for GNULIB_POSIXCHECK again.
74263         Reported by Eric Blake.
74265 2009-12-31  Bruno Haible  <bruno@clisp.org>
74267         Avoid namespace pollution on glibc systems.
74268         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74269         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74270         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74271         glibc systems.
74273 2009-12-31  Bruno Haible  <bruno@clisp.org>
74275         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74276         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74277         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74278         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74279         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74280         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74281         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74283 2009-12-31  Bruno Haible  <bruno@clisp.org>
74285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74286         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74287         afterwards.
74289 2009-12-31  Bruno Haible  <bruno@clisp.org>
74291         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74292         SYS_UTSNAME_H.
74294 2009-12-31  Bruno Haible  <bruno@clisp.org>
74296         spawn: Fix misapplied patch.
74297         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74298         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74299         warnings for GNULIB_POSIXCHECK.
74301 2009-12-31  Bruno Haible  <bruno@clisp.org>
74303         times: Update after sys_times changed.
74304         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74305         * modules/times (Files): Add it.
74306         (configure.ac): Invoke gl_FUNC_TIMES.
74308 2009-12-31  Bruno Haible  <bruno@clisp.org>
74310         Use AC_C_INLINE where necessary.
74311         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74312         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74314         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74315         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74316         * m4/mbiter.m4 (gl_MBITER): Likewise.
74317         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74318         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74319         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74320         * modules/u64 (configure.ac): Likewise.
74322 2009-12-31  Bruno Haible  <bruno@clisp.org>
74324         Use AC_C_INLINE instead of module 'inline' where possible.
74325         * modules/inline (Description): Clarify purpose.
74326         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74327         * modules/count-one-bits (Depends-on): Remove inline.
74328         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74329         * modules/openat (Depends-on): Remove inline.
74330         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74331         instead of depending on module 'inline'.
74332         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74333         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74334         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74335         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74336         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74337         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74338         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74339         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74340         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74341         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74342         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74343         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74344         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74345         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74346         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74347         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74348         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74349         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74350         Likewise.
74351         * modules/unictype/property-ascii-hex-digit (Depends-on,
74352         configure.ac): Likewise.
74353         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74354         configure.ac): Likewise.
74355         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74356         configure.ac): Likewise.
74357         * modules/unictype/property-bidi-block-separator (Depends-on,
74358         configure.ac): Likewise.
74359         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74360         configure.ac): Likewise.
74361         * modules/unictype/property-bidi-common-separator (Depends-on,
74362         configure.ac): Likewise.
74363         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74364         Likewise.
74365         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74366         configure.ac): Likewise.
74367         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74368         configure.ac): Likewise.
74369         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74370         configure.ac): Likewise.
74371         * modules/unictype/property-bidi-european-digit (Depends-on,
74372         configure.ac): Likewise.
74373         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74374         configure.ac): Likewise.
74375         * modules/unictype/property-bidi-left-to-right (Depends-on,
74376         configure.ac): Likewise.
74377         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74378         configure.ac): Likewise.
74379         * modules/unictype/property-bidi-other-neutral (Depends-on,
74380         configure.ac): Likewise.
74381         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74382         Likewise.
74383         * modules/unictype/property-bidi-segment-separator (Depends-on,
74384         configure.ac): Likewise.
74385         * modules/unictype/property-bidi-whitespace (Depends-on,
74386         configure.ac): Likewise.
74387         * modules/unictype/property-combining (Depends-on, configure.ac):
74388         Likewise.
74389         * modules/unictype/property-composite (Depends-on, configure.ac):
74390         Likewise.
74391         * modules/unictype/property-currency-symbol (Depends-on,
74392         configure.ac): Likewise.
74393         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74394         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74395         Likewise.
74396         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74397         configure.ac): Likewise.
74398         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74399         Likewise.
74400         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74401         Likewise.
74402         * modules/unictype/property-extender (Depends-on, configure.ac):
74403         Likewise.
74404         * modules/unictype/property-format-control (Depends-on, configure.ac):
74405         Likewise.
74406         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74407         Likewise.
74408         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74409         Likewise.
74410         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74411         Likewise.
74412         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74413         Likewise.
74414         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74415         Likewise.
74416         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74417         Likewise.
74418         * modules/unictype/property-id-start (Depends-on, configure.ac):
74419         Likewise.
74420         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74421         Likewise.
74422         * modules/unictype/property-ids-binary-operator (Depends-on,
74423         configure.ac): Likewise.
74424         * modules/unictype/property-ids-trinary-operator (Depends-on,
74425         configure.ac): Likewise.
74426         * modules/unictype/property-ignorable-control (Depends-on,
74427         configure.ac): Likewise.
74428         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74429         Likewise.
74430         * modules/unictype/property-join-control (Depends-on, configure.ac):
74431         Likewise.
74432         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74433         Likewise.
74434         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74435         Likewise.
74436         * modules/unictype/property-logical-order-exception (Depends-on,
74437         configure.ac): Likewise.
74438         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74439         Likewise.
74440         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74441         * modules/unictype/property-non-break (Depends-on, configure.ac):
74442         Likewise.
74443         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74444         Likewise.
74445         * modules/unictype/property-numeric (Depends-on, configure.ac):
74446         Likewise.
74447         * modules/unictype/property-other-alphabetic (Depends-on,
74448         configure.ac): Likewise.
74449         * modules/unictype/property-other-default-ignorable-code-point
74450         (Depends-on, configure.ac): Likewise.
74451         * modules/unictype/property-other-grapheme-extend (Depends-on,
74452         configure.ac): Likewise.
74453         * modules/unictype/property-other-id-continue (Depends-on,
74454         configure.ac): Likewise.
74455         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74456         Likewise.
74457         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74458         Likewise.
74459         * modules/unictype/property-other-math (Depends-on, configure.ac):
74460         Likewise.
74461         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74462         Likewise.
74463         * modules/unictype/property-paired-punctuation (Depends-on,
74464         configure.ac): Likewise.
74465         * modules/unictype/property-paragraph-separator (Depends-on,
74466         configure.ac): Likewise.
74467         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74468         Likewise.
74469         * modules/unictype/property-pattern-white-space (Depends-on,
74470         configure.ac): Likewise.
74471         * modules/unictype/property-private-use (Depends-on, configure.ac):
74472         Likewise.
74473         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74474         Likewise.
74475         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74476         Likewise.
74477         * modules/unictype/property-radical (Depends-on, configure.ac):
74478         Likewise.
74479         * modules/unictype/property-sentence-terminal (Depends-on,
74480         configure.ac): Likewise.
74481         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74482         Likewise.
74483         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74484         * modules/unictype/property-terminal-punctuation (Depends-on,
74485         configure.ac): Likewise.
74486         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74487         Likewise.
74488         * modules/unictype/property-unassigned-code-value (Depends-on,
74489         configure.ac): Likewise.
74490         * modules/unictype/property-unified-ideograph (Depends-on,
74491         configure.ac): Likewise.
74492         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74493         Likewise.
74494         * modules/unictype/property-variation-selector (Depends-on,
74495         configure.ac): Likewise.
74496         * modules/unictype/property-white-space (Depends-on, configure.ac):
74497         Likewise.
74498         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74499         Likewise.
74500         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74501         Likewise.
74502         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74503         Likewise.
74504         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74505         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74506         Likewise.
74508 2009-12-31  Bruno Haible  <bruno@clisp.org>
74510         Remove unnecessary AC_C_INLINE invocation.
74511         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74512         since 2009-08-21.
74514 2009-12-31  Jim Meyering  <meyering@redhat.com>
74516         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74517         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74518         With this change, we can all remove the gpg_key_ID = ... definition
74519         from our respective cfg.mk files.
74521         maint.mk: create announcement template in ~/, not in /tmp
74522         * top/maint.mk (emit_upload_commands): Adjust.
74523         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74524         Remove temporary file, .ci-msg.
74526 2009-12-31  Eric Blake  <ebb9@byu.net>
74528         link-warning: always build headers with link warnings
74529         * modules/arpa_inet (Makefile.am): Always build replacement
74530         header.
74531         * modules/ctype (Makefile.am): Likewise.
74532         * modules/dirent (Makefile.am): Likewise.
74533         * modules/inttypes (Makefile.am): Likewise.
74534         * modules/langinfo (Makefile.am): Likewise.
74535         * modules/locale (Makefile.am): Likewise.
74536         * modules/spawn (Makefile.am): Likewise.
74537         * modules/sys_file (Makefile.am): Likewise.
74538         * modules/sys_ioctl (Makefile.am): Likewise.
74539         * modules/sys_select (Makefile.am): Likewise.
74540         * modules/sys_socket (Makefile.am): Likewise.
74541         * modules/sys_times (Makefile.am): Likewise.
74542         * modules/sys_utsname (Makefile.am): Likewise.
74543         * modules/sys_wait (Makefile.am): Likewise.
74544         * modules/wchar (Makefile.am): Likewise.
74545         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74546         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74547         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74548         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74549         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74550         Likewise.
74551         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74552         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74553         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74554         Likewise.
74555         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74556         Likewise.
74557         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74558         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74559         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74562         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74563         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74564         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74565         (gl_WCHAR_H_DEFAULTS): Likewise.
74567 2009-12-31  Eric Blake  <ebb9@byu.net>
74569         signal, spawn: use link warnings
74570         * lib/signal.in.h (sigset_t): Make unconditional.
74571         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74572         (sigpending, sigprocmask, sigaction): Add link warnings.
74573         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74574         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74575         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74576         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74577         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74578         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74579         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74580         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74581         (posix_spawn_file_actions_destroy)
74582         (posix_spawn_file_actions_addopen)
74583         (posix_spawn_file_actions_addclose)
74584         (posix_spawn_file_actions_adddup2): Likewise.
74585         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74586         * tests/test-signal.c (main): Enhance test.
74588         spawn: improve wrapper support
74589         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74590         (gl_SPAWN_H_DEFAULTS): New defaults.
74591         * modules/spawn (Makefile.am): Substitute them.
74592         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74593         Only declare if missing or broken.
74595         sys_times, sys_utsname: use include_next
74596         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74597         header.
74598         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74599         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74600         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74601         * modules/sys_times (Depends-on): Add include_next.
74602         (Makefile.am): Substitute additional values.
74603         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74604         * lib/sys_times.in.h (includes): Include native header, if
74605         available.
74606         * lib/sys_utsname.in.h (includes): Likewise.
74607         * tests/test-sys_times.c (main): Enhance test.
74609         fdutimensat: revert prior patch
74610         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74611         utimens.h.
74612         Reported by Bruno Haible.
74614 2009-12-30  Eric Blake  <ebb9@byu.net>
74616         sys_wait: drop link-warning dependency
74617         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74618         link-warning efforts.
74619         * lib/sys_wait.in.h: Likewise.
74621         fdutimensat: remove bogus dependency
74622         * modules/fdutimensat (Depends-on): Drop inline.
74624         unistd: fix typo
74625         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74627 2009-12-30  Bruno Haible  <bruno@clisp.org>
74629         Fix compilation error with Solaris cc.
74630         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74631         * lib/unicase/u16-is-invariant.c: Likewise.
74632         * lib/unicase/u32-is-invariant.c: Likewise.
74633         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74635 2009-12-30  Bruno Haible  <bruno@clisp.org>
74637         Fix test crash.
74638         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74639         locales.
74640         Reported by Simon Josefsson <simon@josefsson.org>.
74642 2009-12-30  Bruno Haible  <bruno@clisp.org>
74644         Fix compilation error on most platforms.
74645         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74646         Reported by Simon Josefsson <simon@josefsson.org>
74647         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74649 2009-12-30  Eric Blake  <ebb9@byu.net>
74651         futimens, utimensat: work around ntfs-3g bug
74652         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74653         a ctime bug is present, and expand workaround to cover ntfs-3g.
74654         * lib/utimens.c (fdutimens, lutimens): Likewise.
74655         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74656         (validate_timespec): Adjust return value.
74657         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74658         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74659         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74661 2009-12-29  Eric Blake  <ebb9@byu.net>
74663         link-warning: make usage consistent
74664         * modules/ctype (Depends-on): Add link-warning.
74665         (Makefile.am): Update rules accordingly.
74666         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74667         * modules/locale (Depends-on, Makefile.am): Likewise.
74668         * modules/sys_file (Makefile.am): Likewise.
74669         * modules/getopt-posix (Makefile.am): Delete unused link warning
74670         efforts.
74671         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74672         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74673         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74674         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74676         stdio: remove unused variables
74677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74678         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74679         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74681         tests: test more substitute headers
74682         * modules/ctype-tests: New file.
74683         * modules/dirent-tests: Likewise.
74684         * modules/spawn-tests: Likewise.
74685         * modules/sys_file-tests: Likewise.
74686         * modules/sys_ioctl-tests: Likewise.
74687         * modules/sys_wait-tests: Likewise.
74688         * tests/test-ctype.c: Likewise.
74689         * tests/test-dirent.c: Likewise.
74690         * tests/test-spawn.c: Likewise.
74691         * tests/test-sys_file.c: Likewise.
74692         * tests/test-sys_ioctl.c: Likewise.
74693         * tests/test-sys_wait.c: Likewise.
74694         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74695         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74696         whether or not flock is in use.
74698         tests: remove License section from module
74699         * modules/arpa_inet-tests: Remove unneeded section.
74700         * modules/byteswap-tests: Likewise.
74701         * modules/ceilf-tests: Likewise.
74702         * modules/ceill-tests: Likewise.
74703         * modules/crypto/des-tests: Likewise.
74704         * modules/crypto/gc-arcfour-tests: Likewise.
74705         * modules/crypto/gc-arctwo-tests: Likewise.
74706         * modules/crypto/gc-des-tests: Likewise.
74707         * modules/crypto/gc-hmac-md5-tests: Likewise.
74708         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74709         * modules/crypto/gc-md2-tests: Likewise.
74710         * modules/crypto/gc-md4-tests: Likewise.
74711         * modules/crypto/gc-md5-tests: Likewise.
74712         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74713         * modules/crypto/gc-rijndael-tests: Likewise.
74714         * modules/crypto/gc-sha1-tests: Likewise.
74715         * modules/crypto/gc-tests: Likewise.
74716         * modules/crypto/md2-tests: Likewise.
74717         * modules/crypto/md4-tests: Likewise.
74718         * modules/fcntl-h-tests: Likewise.
74719         * modules/floorf-tests: Likewise.
74720         * modules/floorl-tests: Likewise.
74721         * modules/frexp-nolibm-tests: Likewise.
74722         * modules/frexp-tests: Likewise.
74723         * modules/frexpl-nolibm-tests: Likewise.
74724         * modules/frexpl-tests: Likewise.
74725         * modules/getaddrinfo-tests: Likewise.
74726         * modules/inttypes-tests: Likewise.
74727         * modules/isfinite-tests: Likewise.
74728         * modules/isinf-tests: Likewise.
74729         * modules/ldexpl-tests: Likewise.
74730         * modules/locale-tests: Likewise.
74731         * modules/math-tests: Likewise.
74732         * modules/netdb-tests: Likewise.
74733         * modules/netinet_in-tests: Likewise.
74734         * modules/printf-frexp-tests: Likewise.
74735         * modules/printf-frexpl-tests: Likewise.
74736         * modules/priv-set-tests: Likewise.
74737         * modules/random_r-tests: Likewise.
74738         * modules/round-tests: Likewise.
74739         * modules/roundf-tests: Likewise.
74740         * modules/roundl-tests: Likewise.
74741         * modules/search-tests: Likewise.
74742         * modules/select-tests: Likewise.
74743         * modules/signal-tests: Likewise.
74744         * modules/stdbool-tests: Likewise.
74745         * modules/stddef-tests: Likewise.
74746         * modules/stdint-tests: Likewise.
74747         * modules/stdio-tests: Likewise.
74748         * modules/stdlib-tests: Likewise.
74749         * modules/string-tests: Likewise.
74750         * modules/strings-tests: Likewise.
74751         * modules/sys_select-tests: Likewise.
74752         * modules/sys_socket-tests: Likewise.
74753         * modules/sys_stat-tests: Likewise.
74754         * modules/sys_time-tests: Likewise.
74755         * modules/sys_utsname-tests: Likewise.
74756         * modules/sysexits-tests: Likewise.
74757         * modules/time-tests: Likewise.
74758         * modules/trunc-tests: Likewise.
74759         * modules/truncf-tests: Likewise.
74760         * modules/truncl-tests: Likewise.
74761         * modules/tsearch-tests: Likewise.
74762         * modules/unistd-tests: Likewise.
74763         * modules/wchar-tests: Likewise.
74764         * modules/wctype-tests: Likewise.
74766         tests: fix license on several tests
74767         * tests/test-des.c: Update to GPLv3+.
74768         * tests/test-flock.c: Likewise.
74769         * tests/test-fsync.c: Likewise.
74770         * tests/test-futimens.h: Likewise.
74771         * tests/test-gc-arcfour.c: Likewise.
74772         * tests/test-gc-arctwo.c: Likewise.
74773         * tests/test-gc-des.c: Likewise.
74774         * tests/test-gc-hmac-md5.c: Likewise.
74775         * tests/test-gc-hmac-sha1.c: Likewise.
74776         * tests/test-gc-md2.c: Likewise.
74777         * tests/test-gc-md4.c: Likewise.
74778         * tests/test-gc-md5.c: Likewise.
74779         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74780         * tests/test-gc-rijndael.c: Likewise.
74781         * tests/test-gc-sha1.c: Likewise.
74782         * tests/test-gc.c: Likewise.
74783         * tests/test-getcwd.c: Likewise.
74784         * tests/test-link.c: Likewise.
74785         * tests/test-link.h: Likewise.
74786         * tests/test-lutimens.h: Likewise.
74787         * tests/test-md2.c: Likewise.
74788         * tests/test-md4.c: Likewise.
74789         * tests/test-mkdir.h: Likewise.
74790         * tests/test-rename.c: Likewise.
74791         * tests/test-rename.h: Likewise.
74792         * tests/test-safe-alloc.c: Likewise.
74793         * tests/test-utimens-common.h: Likewise.
74794         * tests/test-utimens.h: Likewise.
74796         maint: sync license texts
74797         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74798         * doc/gpl-3.0.texi: Revert copyright year update.
74799         * doc/lgpl-3.0.texi: Likewise.
74801 2009-12-29  Jim Meyering  <meyering@redhat.com>
74803         update nearly all FSF copyright year lists to include 2009
74804         The files named by the following are exempted:
74805             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74806               test -f "$dst" && { echo "$dst"; continue; }
74807               test -d "$dst" || continue
74808               echo "$dst"/$(basename "$src")
74809             done > exempt
74810             git ls-files tests/unictype >> exempt
74811         In the remaining files, convert to all-interval notation if
74812         - there is already at least one year interval like 2000-2003
74813         - the file is maintained by me
74814         - the file is in lib/uni*/, where that style already prevails
74815         Otherwise, use update-copyright's default.
74817 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74818         and Eric Blake  <ebb9@byu.net>
74820         tests: don't require debug system() to pass
74821         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74822         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74823         * tests/test-unlink.h (test_unlink_func): Likewise.
74824         * tests/test-fstatat.c (main): ...into callers.
74825         * tests/test-lstat.c (main): Likewise.
74826         * tests/test-rmdir.c (main): Likewise.
74827         * tests/test-unlink.c (main): Likewise.
74828         * tests/test-unlinkat.c (main): Likewise.
74829         * tests/test-areadlink-with-size.c (main): Don't require a
74830         debug-only system call to pass, aiding cross-testing to mingw.
74831         * tests/test-areadlink.c (main): Likewise.
74832         * tests/test-areadlinkat-with-size.c (main): Likewise.
74833         * tests/test-areadlinkat.c (main): Likewise.
74834         * tests/test-canonicalize-lgpl.c (main): Likewise.
74835         * tests/test-canonicalize.c (main): Likewise.
74836         * tests/test-chown.c (main): Likewise.
74837         * tests/test-fchownat.c (main): Likewise.
74838         * tests/test-lchown.c (main): Likewise.
74839         * tests/test-fdutimensat.c (main): Likewise.
74840         * tests/test-futimens.c (main): Likewise.
74841         * tests/test-link.c (main): Likewise.
74842         * tests/test-linkat.c (main): Likewise.
74843         * tests/test-mkdir.c (main): Likewise.
74844         * tests/test-mkdirat.c (main): Likewise.
74845         * tests/test-mkfifo.c (main): Likewise.
74846         * tests/test-mkfifoat.c (main): Likewise.
74847         * tests/test-mknod.c (main): Likewise.
74848         * tests/test-readlink.c (main): Likewise.
74849         * tests/test-remove.c (main): Likewise.
74850         * tests/test-rename.c (main): Likewise.
74851         * tests/test-renameat.c (main): Likewise.
74852         * tests/test-symlink.c (main): Likewise.
74853         * tests/test-symlinkat.c (main): Likewise.
74854         * tests/test-utimens.c (main): Likewise.
74855         * tests/test-utimensat.c (main): Likewise.
74857 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74859         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74860         on $(UNUSED_PARAMETER_H) to avoid build failure.
74862 2009-12-28  Jim Meyering  <meyering@redhat.com>
74864         update-copyright: you may specify a max. line length other than 72
74865         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74867         maint: use consistent FSF copyright line syntax
74868         * lib/posixtm.c: Add missing comma in FSF copyright line.
74869         * lib/posixtm.h: Likewise.
74870         * lib/getugroups.c: Add missing ", Inc.".
74872         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74873         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74874         FSF copyright line.  Remove trailing blanks.
74876 2009-12-28  Eric Blake  <ebb9@byu.net>
74878         test-dup2: reduce dependencies
74879         * modules/cloexec (Configure.ac): Set witness.
74880         * modules/dup2-tests (Depends-on): Drop cloexec.
74881         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74882         not present.
74883         Suggested by Bruno Haible.
74885 2009-12-26  Bruno Haible  <bruno@clisp.org>
74887         Remove an unneeded dependency.
74888         * modules/fseterr (Depends-on): Remove dup2.
74890 2009-12-26  Eric Blake  <ebb9@byu.net>
74892         tests: use macros.h in more places
74893         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74894         (ASSERT_STREAM): Provide default of stderr.
74895         * tests/test-dirent-safer.c: Include macros.h, using alternate
74896         stream for assertions.
74897         * tests/test-dup-safer.c: Likewise.
74898         * tests/test-freopen-safer.c: Likewise.
74899         * tests/test-getopt.c: Likewise.
74900         * tests/test-openat-safer.c: Likewise.
74901         * tests/test-pipe.c: Likewise.
74902         * tests/test-popen-safer.c: Likewise.
74903         * modules/dirent-safer-tests (Files): Include macros.h.
74904         * modules/unistd-safer-tests (Files): Likewise.
74905         * modules/freopen-safer-tests (Files): Likewise.
74906         * modules/getopt-posix-tests (Files): Likewise.
74907         * modules/openat-safer-tests (Files): Likewise.
74908         * modules/pipe-tests (Files): Likewise.
74910 2009-12-26  Bruno Haible  <bruno@clisp.org>
74912         javacomp-script: Portability fix.
74913         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74914         that it also works on Solaris.
74916 2009-12-26  Bruno Haible  <bruno@clisp.org>
74918         localename: Fix storage allocation of gl_locale_name_thread's result.
74919         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74920         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74921         all platforms that have 'uselocale'.
74922         (gl_locale_name_thread_unsafe): New function, extracted from
74923         gl_locale_name_thread.
74924         (gl_locale_name_thread): Call struniq on all platforms that have
74925         'uselocale'.
74926         * tests/test-localename.c (test_locale_name_thread): Check that the
74927         resulting strings are permanently allocated.
74928         * modules/localename-tests (Depends-on): Add strdup.
74930 2009-12-26  Bruno Haible  <bruno@clisp.org>
74932         * tests/test-localename.c (categories): Fill in the strings.
74934 2009-12-26  Jim Meyering  <meyering@redhat.com>
74936         isdir: complete the removal of m4/isdir.m4
74937         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74939         isdir: clean up, since at least grep still uses it
74940         * lib/isdir.c: Include "isdir.h".
74941         (S_ISDIR): Remove now-unneeded definition.
74942         * modules/isdir (Files): Add lib/isdir.h.
74943         * lib/isdir.h: New file, with declaration.
74944         * m4/isdir.m4: Remove file -- unneeded.
74946 2009-12-25  Bruno Haible  <bruno@clisp.org>
74948         selinux-h: Make generated .h files standalone.
74949         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74950         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74951         * lib/se-selinux.in.h: Likewise.
74952         * modules/selinux-h (Depends-on): Add unused-parameter.
74953         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74954         selinux/selinux.h and selinux/context.h.
74955         Suggested by Eric Blake.
74957 2009-12-25  Bruno Haible  <bruno@clisp.org>
74959         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74960         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74961         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74962         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74963         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74965 2009-12-24  Bruno Haible  <bruno@clisp.org>
74967         openat: Fix warning.
74968         * lib/openat-proc.c: Include <unistd.h>.
74970 2009-12-24  Bruno Haible  <bruno@clisp.org>
74972         New module 'unused-parameter'.
74973         * build-aux/unused-parameter.h: New file, extracted from earlier
74974         gnulib-common.m4.
74975         * modules/unused-parameter: New file.
74976         * lib/unistr.h: Include unused-parameter.h.
74977         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74978         _GL_UNUSED.
74979         * modules/unistr/base (Depends-on): Add unused-parameter.
74981 2009-12-24  Bruno Haible  <bruno@clisp.org>
74983         Add missing dependencies to 'extensions' module.
74984         * m4/extensions.m4: Add comment.
74985         * modules/accept4 (Depends-on): Add extensions.
74986         * modules/dup3 (Depends-on): Likewise.
74987         * modules/fcntl (Depends-on): Likewise.
74988         * modules/futimens (Depends-on): Likewise.
74989         * modules/mknod (Depends-on): Likewise.
74990         * modules/pipe2 (Depends-on): Likewise.
74991         * modules/stat-time (Depends-on): Likewise.
74992         * modules/strcasestr-simple (Depends-on): Likewise.
74993         * modules/strsignal (Depends-on): Likewise.
74994         * modules/utimensat (Depends-on): Likewise.
74995         * modules/localcharset (Depends-on): Likewise. Needed because of
74996         gl_FCNTL_O_FLAGS.
74997         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74998         AC_TYPE_MBSTATE_T.
74999         * modules/wcsnrtombs (Depends-on): Likewise.
75000         * modules/wcsrtombs (Depends-on): Likewise.
75002 2009-12-24  Bruno Haible  <bruno@clisp.org>
75004         binary-io: Avoid gcc warning due to SET_BINARY.
75005         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75006         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75008 2009-12-24  Bruno Haible  <bruno@clisp.org>
75010         Avoid future namespace pollution on glibc systems.
75011         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75012         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75013         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75014         glibc systems.
75016 2009-12-24  Bruno Haible  <bruno@clisp.org>
75018         Refactor common macros used in tests.
75019         * tests/macros.h: New file.
75020         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75021         and/or <stdlib.h>, if appropriate.
75022         (ASSERT, SIZEOF): Remove macros.
75023         * tests/test-areadlink-with-size.c: Likewise.
75024         * tests/test-areadlinkat.c: Likewise.
75025         * tests/test-areadlinkat-with-size.c: Likewise.
75026         * tests/test-argmatch.c: Likewise.
75027         * tests/test-argv-iter.c: Likewise.
75028         * tests/test-array-mergesort.c: Likewise.
75029         * tests/test-array_list.c: Likewise.
75030         * tests/test-array_oset.c: Likewise.
75031         * tests/test-avltree_list.c: Likewise.
75032         * tests/test-avltree_oset.c: Likewise.
75033         * tests/test-avltreehash_list.c: Likewise.
75034         * tests/test-base64.c: Likewise.
75035         * tests/test-binary-io.c: Likewise.
75036         * tests/test-bitrotate.c: Likewise.
75037         * tests/test-btowc.c: Likewise.
75038         * tests/test-byteswap.c: Likewise.
75039         * tests/test-c-ctype.c: Likewise.
75040         * tests/test-c-stack.c: Likewise.
75041         * tests/test-c-strcasecmp.c: Likewise.
75042         * tests/test-c-strcasestr.c: Likewise.
75043         * tests/test-c-strncasecmp.c: Likewise.
75044         * tests/test-c-strstr.c: Likewise.
75045         * tests/test-canonicalize-lgpl.c: Likewise.
75046         * tests/test-canonicalize.c: Likewise.
75047         * tests/test-carray_list.c: Likewise.
75048         * tests/test-ceilf1.c: Likewise.
75049         * tests/test-ceilf2.c: Likewise.
75050         * tests/test-ceill.c: Likewise.
75051         * tests/test-chown.c: Likewise.
75052         * tests/test-cloexec.c: Likewise.
75053         * tests/test-copy-acl.c: Likewise.
75054         * tests/test-copy-file.c: Likewise.
75055         * tests/test-count-one-bits.c: Likewise.
75056         * tests/test-dprintf-posix.c: Likewise.
75057         * tests/test-dup2.c: Likewise.
75058         * tests/test-dup3.c: Likewise.
75059         * tests/test-duplocale.c: Likewise.
75060         * tests/test-fbufmode.c: Likewise.
75061         * tests/test-fchdir.c: Likewise.
75062         * tests/test-fchownat.c: Likewise.
75063         * tests/test-fcntl-safer.c: Likewise.
75064         * tests/test-fcntl.c: Likewise.
75065         * tests/test-fdopendir.c: Likewise.
75066         * tests/test-fdutimensat.c: Likewise.
75067         * tests/test-fflush2.c: Likewise.
75068         * tests/test-file-has-acl.c: Likewise.
75069         * tests/test-filevercmp.c: Likewise.
75070         * tests/test-flock.c: Likewise.
75071         * tests/test-floorf1.c: Likewise.
75072         * tests/test-floorf2.c: Likewise.
75073         * tests/test-floorl.c: Likewise.
75074         * tests/test-fnmatch.c: Likewise.
75075         * tests/test-fopen.h: Likewise.
75076         * tests/test-fpending.c: Likewise.
75077         * tests/test-fprintf-posix.c: Likewise.
75078         * tests/test-fpurge.c: Likewise.
75079         * tests/test-freadable.c: Likewise.
75080         * tests/test-freadahead.c: Likewise.
75081         * tests/test-freading.c: Likewise.
75082         * tests/test-freadptr.c: Likewise.
75083         * tests/test-freadptr2.c: Likewise.
75084         * tests/test-freadseek.c: Likewise.
75085         * tests/test-freopen.c: Likewise.
75086         * tests/test-frexp.c: Likewise.
75087         * tests/test-frexpl.c: Likewise.
75088         * tests/test-fseek.c: Likewise.
75089         * tests/test-fseeko.c: Likewise.
75090         * tests/test-fstatat.c: Likewise.
75091         * tests/test-fstrcmp.c: Likewise.
75092         * tests/test-fsync.c: Likewise.
75093         * tests/test-ftell.c: Likewise.
75094         * tests/test-ftello.c: Likewise.
75095         * tests/test-func.c: Likewise.
75096         * tests/test-futimens.c: Likewise.
75097         * tests/test-fwritable.c: Likewise.
75098         * tests/test-fwriting.c: Likewise.
75099         * tests/test-getcwd.c: Likewise.
75100         * tests/test-getdate.c: Likewise.
75101         * tests/test-getdelim.c: Likewise.
75102         * tests/test-getdtablesize.c: Likewise.
75103         * tests/test-getgroups.c: Likewise.
75104         * tests/test-getline.c: Likewise.
75105         * tests/test-getndelim2.c: Likewise.
75106         * tests/test-glob.c: Likewise.
75107         * tests/test-hash.c: Likewise.
75108         * tests/test-i-ring.c: Likewise.
75109         * tests/test-iconv-utf.c: Likewise.
75110         * tests/test-iconv.c: Likewise.
75111         * tests/test-idpriv-drop.c: Likewise.
75112         * tests/test-idpriv-droptemp.c: Likewise.
75113         * tests/test-inet_ntop.c: Likewise.
75114         * tests/test-inet_pton.c: Likewise.
75115         * tests/test-isblank.c: Likewise.
75116         * tests/test-isfinite.c: Likewise.
75117         * tests/test-isinf.c: Likewise.
75118         * tests/test-isnan.c: Likewise.
75119         * tests/test-isnand.h: Likewise.
75120         * tests/test-isnanf.h: Likewise.
75121         * tests/test-isnanl.h: Likewise.
75122         * tests/test-lchown.c: Likewise.
75123         * tests/test-ldexpl.c: Likewise.
75124         * tests/test-link.c: Likewise.
75125         * tests/test-linkat.c: Likewise.
75126         * tests/test-linked_list.c: Likewise.
75127         * tests/test-linkedhash_list.c: Likewise.
75128         * tests/test-localename.c: Likewise.
75129         * tests/test-lseek.c: Likewise.
75130         * tests/test-lstat.c: Likewise.
75131         * tests/test-mbmemcasecmp.c: Likewise.
75132         * tests/test-mbmemcasecoll.c: Likewise.
75133         * tests/test-mbrtowc.c: Likewise.
75134         * tests/test-mbscasecmp.c: Likewise.
75135         * tests/test-mbscasestr1.c: Likewise.
75136         * tests/test-mbscasestr2.c: Likewise.
75137         * tests/test-mbscasestr3.c: Likewise.
75138         * tests/test-mbscasestr4.c: Likewise.
75139         * tests/test-mbschr.c: Likewise.
75140         * tests/test-mbscspn.c: Likewise.
75141         * tests/test-mbsinit.c: Likewise.
75142         * tests/test-mbsncasecmp.c: Likewise.
75143         * tests/test-mbsnrtowcs.c: Likewise.
75144         * tests/test-mbspbrk.c: Likewise.
75145         * tests/test-mbspcasecmp.c: Likewise.
75146         * tests/test-mbsrchr.c: Likewise.
75147         * tests/test-mbsrtowcs.c: Likewise.
75148         * tests/test-mbsspn.c: Likewise.
75149         * tests/test-mbsstr1.c: Likewise.
75150         * tests/test-mbsstr2.c: Likewise.
75151         * tests/test-mbsstr3.c: Likewise.
75152         * tests/test-memchr.c: Likewise.
75153         * tests/test-memchr2.c: Likewise.
75154         * tests/test-memcmp.c: Likewise.
75155         * tests/test-memmem.c: Likewise.
75156         * tests/test-memrchr.c: Likewise.
75157         * tests/test-mkdir.c: Likewise.
75158         * tests/test-mkdirat.c: Likewise.
75159         * tests/test-mkfifo.c: Likewise.
75160         * tests/test-mkfifoat.c: Likewise.
75161         * tests/test-mknod.c: Likewise.
75162         * tests/test-nanosleep.c: Likewise.
75163         * tests/test-nl_langinfo.c: Likewise.
75164         * tests/test-obstack-printf.c: Likewise.
75165         * tests/test-open.c: Likewise.
75166         * tests/test-openat.c: Likewise.
75167         * tests/test-pipe-filter-gi1.c: Likewise.
75168         * tests/test-pipe-filter-gi2-main.c: Likewise.
75169         * tests/test-pipe-filter-ii1.c: Likewise.
75170         * tests/test-pipe-filter-ii2-main.c: Likewise.
75171         * tests/test-pipe2.c: Likewise.
75172         * tests/test-popen.h: Likewise.
75173         * tests/test-posixtm.c: Likewise.
75174         * tests/test-pread.c: Likewise.
75175         * tests/test-printf-frexp.c: Likewise.
75176         * tests/test-printf-frexpl.c: Likewise.
75177         * tests/test-printf-posix.c: Likewise.
75178         * tests/test-priv-set.c: Likewise.
75179         * tests/test-quotearg.c: Likewise.
75180         * tests/test-random_r.c: Likewise.
75181         * tests/test-rawmemchr.c: Likewise.
75182         * tests/test-rbtree_list.c: Likewise.
75183         * tests/test-rbtree_oset.c: Likewise.
75184         * tests/test-rbtreehash_list.c: Likewise.
75185         * tests/test-readlink.c: Likewise.
75186         * tests/test-remove.c: Likewise.
75187         * tests/test-rename.c: Likewise.
75188         * tests/test-renameat.c: Likewise.
75189         * tests/test-rmdir.c: Likewise.
75190         * tests/test-round1.c: Likewise.
75191         * tests/test-roundf1.c: Likewise.
75192         * tests/test-roundl.c: Likewise.
75193         * tests/test-safe-alloc.c: Likewise.
75194         * tests/test-sameacls.c: Likewise.
75195         * tests/test-set-mode-acl.c: Likewise.
75196         * tests/test-setenv.c: Likewise.
75197         * tests/test-sigaction.c: Likewise.
75198         * tests/test-signbit.c: Likewise.
75199         * tests/test-sleep.c: Likewise.
75200         * tests/test-snprintf-posix.c: Likewise.
75201         * tests/test-snprintf.c: Likewise.
75202         * tests/test-sprintf-posix.c: Likewise.
75203         * tests/test-stat-time.c: Likewise.
75204         * tests/test-stat.c: Likewise.
75205         * tests/test-strcasestr.c: Likewise.
75206         * tests/test-strchrnul.c: Likewise.
75207         * tests/test-strerror.c: Likewise.
75208         * tests/test-striconv.c: Likewise.
75209         * tests/test-striconveh.c: Likewise.
75210         * tests/test-striconveha.c: Likewise.
75211         * tests/test-strsignal.c: Likewise.
75212         * tests/test-strstr.c: Likewise.
75213         * tests/test-strtod.c: Likewise.
75214         * tests/test-strverscmp.c: Likewise.
75215         * tests/test-symlink.c: Likewise.
75216         * tests/test-symlinkat.c: Likewise.
75217         * tests/test-trunc1.c: Likewise.
75218         * tests/test-trunc2.c: Likewise.
75219         * tests/test-truncf1.c: Likewise.
75220         * tests/test-truncf2.c: Likewise.
75221         * tests/test-truncl.c: Likewise.
75222         * tests/test-uname.c: Likewise.
75223         * tests/test-unlink.c: Likewise.
75224         * tests/test-unlinkat.c: Likewise.
75225         * tests/test-unsetenv.c: Likewise.
75226         * tests/test-usleep.c: Likewise.
75227         * tests/test-utimens.c: Likewise.
75228         * tests/test-utimensat.c: Likewise.
75229         * tests/test-vasnprintf-posix.c: Likewise.
75230         * tests/test-vasnprintf-posix2.c: Likewise.
75231         * tests/test-vasnprintf.c: Likewise.
75232         * tests/test-vasprintf-posix.c: Likewise.
75233         * tests/test-vasprintf.c: Likewise.
75234         * tests/test-vdprintf-posix.c: Likewise.
75235         * tests/test-vfprintf-posix.c: Likewise.
75236         * tests/test-vprintf-posix.c: Likewise.
75237         * tests/test-vsnprintf-posix.c: Likewise.
75238         * tests/test-vsnprintf.c: Likewise.
75239         * tests/test-vsprintf-posix.c: Likewise.
75240         * tests/test-wcrtomb.c: Likewise.
75241         * tests/test-wcsnrtombs.c: Likewise.
75242         * tests/test-wcsrtombs.c: Likewise.
75243         * tests/test-wctype.c: Likewise.
75244         * tests/test-wcwidth.c: Likewise.
75245         * tests/test-xfprintf-posix.c: Likewise.
75246         * tests/test-xmemdup0.c: Likewise.
75247         * tests/test-xprintf-posix.c: Likewise.
75248         * tests/test-xvasprintf.c: Likewise.
75249         * tests/unicase/test-locale-language.c: Likewise.
75250         * tests/unicase/test-mapping-part1.h: Likewise.
75251         * tests/unicase/test-predicate-part1.h: Likewise.
75252         * tests/unicase/test-u8-casecmp.c: Likewise.
75253         * tests/unicase/test-u8-casecoll.c: Likewise.
75254         * tests/unicase/test-u8-casefold.c: Likewise.
75255         * tests/unicase/test-u8-is-cased.c: Likewise.
75256         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75257         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75258         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75259         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75260         * tests/unicase/test-u8-tolower.c: Likewise.
75261         * tests/unicase/test-u8-totitle.c: Likewise.
75262         * tests/unicase/test-u8-toupper.c: Likewise.
75263         * tests/unicase/test-u16-casecmp.c: Likewise.
75264         * tests/unicase/test-u16-casecoll.c: Likewise.
75265         * tests/unicase/test-u16-casefold.c: Likewise.
75266         * tests/unicase/test-u16-is-cased.c: Likewise.
75267         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75268         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75269         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75270         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75271         * tests/unicase/test-u16-tolower.c: Likewise.
75272         * tests/unicase/test-u16-totitle.c: Likewise.
75273         * tests/unicase/test-u16-toupper.c: Likewise.
75274         * tests/unicase/test-u32-casecmp.c: Likewise.
75275         * tests/unicase/test-u32-casecoll.c: Likewise.
75276         * tests/unicase/test-u32-casefold.c: Likewise.
75277         * tests/unicase/test-u32-is-cased.c: Likewise.
75278         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75279         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75280         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75281         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75282         * tests/unicase/test-u32-tolower.c: Likewise.
75283         * tests/unicase/test-u32-totitle.c: Likewise.
75284         * tests/unicase/test-u32-toupper.c: Likewise.
75285         * tests/unicase/test-ulc-casecmp.c: Likewise.
75286         * tests/unicase/test-ulc-casecoll.c: Likewise.
75287         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75288         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75289         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75290         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75291         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75292         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75293         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75294         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75295         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75296         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75297         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75298         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75299         * tests/unictype/test-bidi_byname.c: Likewise.
75300         * tests/unictype/test-bidi_name.c: Likewise.
75301         * tests/unictype/test-bidi_of.c: Likewise.
75302         * tests/unictype/test-bidi_test.c: Likewise.
75303         * tests/unictype/test-block_list.c: Likewise.
75304         * tests/unictype/test-block_of.c: Likewise.
75305         * tests/unictype/test-block_test.c: Likewise.
75306         * tests/unictype/test-categ_and.c: Likewise.
75307         * tests/unictype/test-categ_and_not.c: Likewise.
75308         * tests/unictype/test-categ_byname.c: Likewise.
75309         * tests/unictype/test-categ_name.c: Likewise.
75310         * tests/unictype/test-categ_none.c: Likewise.
75311         * tests/unictype/test-categ_of.c: Likewise.
75312         * tests/unictype/test-categ_or.c: Likewise.
75313         * tests/unictype/test-categ_test_withtable.c: Likewise.
75314         * tests/unictype/test-combining.c: Likewise.
75315         * tests/unictype/test-decdigit.c: Likewise.
75316         * tests/unictype/test-digit.c: Likewise.
75317         * tests/unictype/test-mirror.c: Likewise.
75318         * tests/unictype/test-numeric.c: Likewise.
75319         * tests/unictype/test-pr_byname.c: Likewise.
75320         * tests/unictype/test-pr_test.c: Likewise.
75321         * tests/unictype/test-predicate-part1.h: Likewise.
75322         * tests/unictype/test-scripts.c: Likewise.
75323         * tests/unictype/test-sy_c_ident.c: Likewise.
75324         * tests/unictype/test-sy_java_ident.c: Likewise.
75325         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75326         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75327         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75328         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75329         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75330         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75331         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75332         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75333         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75334         * tests/uninorm/test-compat-decomposition.c: Likewise.
75335         * tests/uninorm/test-composition.c: Likewise.
75336         * tests/uninorm/test-decomposing-form.c: Likewise.
75337         * tests/uninorm/test-decomposition.c: Likewise.
75338         * tests/uninorm/test-u8-nfc.c: Likewise.
75339         * tests/uninorm/test-u8-nfd.c: Likewise.
75340         * tests/uninorm/test-u8-nfkc.c: Likewise.
75341         * tests/uninorm/test-u8-nfkd.c: Likewise.
75342         * tests/uninorm/test-u8-normcmp.c: Likewise.
75343         * tests/uninorm/test-u8-normcoll.c: Likewise.
75344         * tests/uninorm/test-u16-nfc.c: Likewise.
75345         * tests/uninorm/test-u16-nfd.c: Likewise.
75346         * tests/uninorm/test-u16-nfkc.c: Likewise.
75347         * tests/uninorm/test-u16-nfkd.c: Likewise.
75348         * tests/uninorm/test-u16-normcmp.c: Likewise.
75349         * tests/uninorm/test-u16-normcoll.c: Likewise.
75350         * tests/uninorm/test-u32-nfc.c: Likewise.
75351         * tests/uninorm/test-u32-nfd.c: Likewise.
75352         * tests/uninorm/test-u32-nfkc.c: Likewise.
75353         * tests/uninorm/test-u32-nfkd.c: Likewise.
75354         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75355         * tests/uninorm/test-u32-normcmp.c: Likewise.
75356         * tests/uninorm/test-u32-normcoll.c: Likewise.
75357         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75358         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75359         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75360         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75361         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75362         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75363         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75364         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75365         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75366         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75367         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75368         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75369         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75370         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75371         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75372         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75373         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75374         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75375         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75376         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75377         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75378         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75379         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75380         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75381         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75382         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75383         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75384         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75385         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75386         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75387         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75388         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75389         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75390         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75391         * tests/uniwidth/test-u8-width.c: Likewise.
75392         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75393         * tests/uniwidth/test-u16-width.c: Likewise.
75394         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75395         * tests/uniwidth/test-u32-width.c: Likewise.
75396         * tests/uniwidth/test-uc_width.c: Likewise.
75397         * tests/uniwidth/test-uc_width2.c: Likewise.
75398         * modules/acl-tests (Files): Add tests/macros.h.
75399         * modules/areadlink-tests (Files): Likewise.
75400         * modules/areadlink-with-size-tests (Files): Likewise.
75401         * modules/areadlinkat-tests (Files): Likewise.
75402         * modules/areadlinkat-with-size-tests (Files): Likewise.
75403         * modules/argmatch-tests (Files): Likewise.
75404         * modules/argv-iter-tests (Files): Likewise.
75405         * modules/array-list-tests (Files): Likewise.
75406         * modules/array-mergesort-tests (Files): Likewise.
75407         * modules/array-oset-tests (Files): Likewise.
75408         * modules/avltree-list-tests (Files): Likewise.
75409         * modules/avltree-oset-tests (Files): Likewise.
75410         * modules/avltreehash-list-tests (Files): Likewise.
75411         * modules/base64-tests (Files): Likewise.
75412         * modules/binary-io-tests (Files): Likewise.
75413         * modules/bitrotate-tests (Files): Likewise.
75414         * modules/btowc-tests (Files): Likewise.
75415         * modules/byteswap-tests (Files): Likewise.
75416         * modules/c-ctype-tests (Files): Likewise.
75417         * modules/c-stack-tests (Files): Likewise.
75418         * modules/c-strcase-tests (Files): Likewise.
75419         * modules/c-strcasestr-tests (Files): Likewise.
75420         * modules/c-strstr-tests (Files): Likewise.
75421         * modules/canonicalize-lgpl-tests (Files): Likewise.
75422         * modules/canonicalize-tests (Files): Likewise.
75423         * modules/carray-list-tests (Files): Likewise.
75424         * modules/ceilf-tests (Files): Likewise.
75425         * modules/ceill-tests (Files): Likewise.
75426         * modules/chown-tests (Files): Likewise.
75427         * modules/cloexec-tests (Files): Likewise.
75428         * modules/copy-file-tests (Files): Likewise.
75429         * modules/count-one-bits-tests (Files): Likewise.
75430         * modules/dprintf-posix-tests (Files): Likewise.
75431         * modules/dup2-tests (Files): Likewise.
75432         * modules/dup3-tests (Files): Likewise.
75433         * modules/duplocale-tests (Files): Likewise.
75434         * modules/fbufmode-tests (Files): Likewise.
75435         * modules/fchdir-tests (Files): Likewise.
75436         * modules/fcntl-safer-tests (Files): Likewise.
75437         * modules/fcntl-tests (Files): Likewise.
75438         * modules/fdopendir-tests (Files): Likewise.
75439         * modules/fdutimensat-tests (Files): Likewise.
75440         * modules/fflush-tests (Files): Likewise.
75441         * modules/filevercmp-tests (Files): Likewise.
75442         * modules/flock-tests (Files): Likewise.
75443         * modules/floorf-tests (Files): Likewise.
75444         * modules/floorl-tests (Files): Likewise.
75445         * modules/fnmatch-tests (Files): Likewise.
75446         * modules/fopen-safer-tests (Files): Likewise.
75447         * modules/fopen-tests (Files): Likewise.
75448         * modules/fpending-tests (Files): Likewise.
75449         * modules/fprintf-posix-tests (Files): Likewise.
75450         * modules/fpurge-tests (Files): Likewise.
75451         * modules/freadable-tests (Files): Likewise.
75452         * modules/freadahead-tests (Files): Likewise.
75453         * modules/freading-tests (Files): Likewise.
75454         * modules/freadptr-tests (Files): Likewise.
75455         * modules/freadseek-tests (Files): Likewise.
75456         * modules/freopen-tests (Files): Likewise.
75457         * modules/frexp-nolibm-tests (Files): Likewise.
75458         * modules/frexp-tests (Files): Likewise.
75459         * modules/frexpl-nolibm-tests (Files): Likewise.
75460         * modules/frexpl-tests (Files): Likewise.
75461         * modules/fseek-tests (Files): Likewise.
75462         * modules/fseeko-tests (Files): Likewise.
75463         * modules/fstrcmp-tests (Files): Likewise.
75464         * modules/fsync-tests (Files): Likewise.
75465         * modules/ftell-tests (Files): Likewise.
75466         * modules/ftello-tests (Files): Likewise.
75467         * modules/func-tests (Files): Likewise.
75468         * modules/futimens-tests (Files): Likewise.
75469         * modules/fwritable-tests (Files): Likewise.
75470         * modules/fwriting-tests (Files): Likewise.
75471         * modules/getcwd-tests (Files): Likewise.
75472         * modules/getdate-tests (Files): Likewise.
75473         * modules/getdelim-tests (Files): Likewise.
75474         * modules/getdtablesize-tests (Files): Likewise.
75475         * modules/getgroups-tests (Files): Likewise.
75476         * modules/getline-tests (Files): Likewise.
75477         * modules/getndelim2-tests (Files): Likewise.
75478         * modules/glob-tests (Files): Likewise.
75479         * modules/hash-tests (Files): Likewise.
75480         * modules/i-ring-tests (Files): Likewise.
75481         * modules/iconv-tests (Files): Likewise.
75482         * modules/iconv_open-utf-tests (Files): Likewise.
75483         * modules/idpriv-drop-tests (Files): Likewise.
75484         * modules/idpriv-droptemp-tests (Files): Likewise.
75485         * modules/inet_ntop-tests (Files): Likewise.
75486         * modules/inet_pton-tests (Files): Likewise.
75487         * modules/isblank-tests (Files): Likewise.
75488         * modules/isfinite-tests (Files): Likewise.
75489         * modules/isinf-tests (Files): Likewise.
75490         * modules/isnan-tests (Files): Likewise.
75491         * modules/isnand-nolibm-tests (Files): Likewise.
75492         * modules/isnand-tests (Files): Likewise.
75493         * modules/isnanf-nolibm-tests (Files): Likewise.
75494         * modules/isnanf-tests (Files): Likewise.
75495         * modules/isnanl-nolibm-tests (Files): Likewise.
75496         * modules/isnanl-tests (Files): Likewise.
75497         * modules/lchown-tests (Files): Likewise.
75498         * modules/ldexpl-tests (Files): Likewise.
75499         * modules/link-tests (Files): Likewise.
75500         * modules/linkat-tests (Files): Likewise.
75501         * modules/linked-list-tests (Files): Likewise.
75502         * modules/linkedhash-list-tests (Files): Likewise.
75503         * modules/localename-tests (Files): Likewise.
75504         * modules/lseek-tests (Files): Likewise.
75505         * modules/lstat-tests (Files): Likewise.
75506         * modules/mbmemcasecmp-tests (Files): Likewise.
75507         * modules/mbmemcasecoll-tests (Files): Likewise.
75508         * modules/mbrtowc-tests (Files): Likewise.
75509         * modules/mbscasecmp-tests (Files): Likewise.
75510         * modules/mbscasestr-tests (Files): Likewise.
75511         * modules/mbschr-tests (Files): Likewise.
75512         * modules/mbscspn-tests (Files): Likewise.
75513         * modules/mbsinit-tests (Files): Likewise.
75514         * modules/mbsncasecmp-tests (Files): Likewise.
75515         * modules/mbsnrtowcs-tests (Files): Likewise.
75516         * modules/mbspbrk-tests (Files): Likewise.
75517         * modules/mbspcasecmp-tests (Files): Likewise.
75518         * modules/mbsrchr-tests (Files): Likewise.
75519         * modules/mbsrtowcs-tests (Files): Likewise.
75520         * modules/mbsspn-tests (Files): Likewise.
75521         * modules/mbsstr-tests (Files): Likewise.
75522         * modules/memchr-tests (Files): Likewise.
75523         * modules/memchr2-tests (Files): Likewise.
75524         * modules/memcmp-tests (Files): Likewise.
75525         * modules/memmem-tests (Files): Likewise.
75526         * modules/memrchr-tests (Files): Likewise.
75527         * modules/mkdir-tests (Files): Likewise.
75528         * modules/mkfifo-tests (Files): Likewise.
75529         * modules/mkfifoat-tests (Files): Likewise.
75530         * modules/mknod-tests (Files): Likewise.
75531         * modules/nanosleep-tests (Files): Likewise.
75532         * modules/nl_langinfo-tests (Files): Likewise.
75533         * modules/obstack-printf-tests (Files): Likewise.
75534         * modules/open-tests (Files): Likewise.
75535         * modules/openat-tests (Files): Likewise.
75536         * modules/pipe-filter-gi-tests (Files): Likewise.
75537         * modules/pipe-filter-ii-tests (Files): Likewise.
75538         * modules/pipe2-tests (Files): Likewise.
75539         * modules/popen-safer-tests (Files): Likewise.
75540         * modules/popen-tests (Files): Likewise.
75541         * modules/posixtm-tests (Files): Likewise.
75542         * modules/pread-tests (Files): Likewise.
75543         * modules/printf-frexp-tests (Files): Likewise.
75544         * modules/printf-frexpl-tests (Files): Likewise.
75545         * modules/printf-posix-tests (Files): Likewise.
75546         * modules/priv-set-tests (Files): Likewise.
75547         * modules/quotearg-tests (Files): Likewise.
75548         * modules/random_r-tests (Files): Likewise.
75549         * modules/rawmemchr-tests (Files): Likewise.
75550         * modules/rbtree-list-tests (Files): Likewise.
75551         * modules/rbtree-oset-tests (Files): Likewise.
75552         * modules/rbtreehash-list-tests (Files): Likewise.
75553         * modules/readlink-tests (Files): Likewise.
75554         * modules/remove-tests (Files): Likewise.
75555         * modules/rename-tests (Files): Likewise.
75556         * modules/renameat-tests (Files): Likewise.
75557         * modules/rmdir-tests (Files): Likewise.
75558         * modules/round-tests (Files): Likewise.
75559         * modules/roundf-tests (Files): Likewise.
75560         * modules/roundl-tests (Files): Likewise.
75561         * modules/safe-alloc-tests (Files): Likewise.
75562         * modules/setenv-tests (Files): Likewise.
75563         * modules/sigaction-tests (Files): Likewise.
75564         * modules/signbit-tests (Files): Likewise.
75565         * modules/sleep-tests (Files): Likewise.
75566         * modules/snprintf-posix-tests (Files): Likewise.
75567         * modules/snprintf-tests (Files): Likewise.
75568         * modules/sprintf-posix-tests (Files): Likewise.
75569         * modules/stat-tests (Files): Likewise.
75570         * modules/stat-time-tests (Files): Likewise.
75571         * modules/strcasestr-tests (Files): Likewise.
75572         * modules/strchrnul-tests (Files): Likewise.
75573         * modules/strerror-tests (Files): Likewise.
75574         * modules/striconv-tests (Files): Likewise.
75575         * modules/striconveh-tests (Files): Likewise.
75576         * modules/striconveha-tests (Files): Likewise.
75577         * modules/strsignal-tests (Files): Likewise.
75578         * modules/strstr-tests (Files): Likewise.
75579         * modules/strtod-tests (Files): Likewise.
75580         * modules/strverscmp-tests (Files): Likewise.
75581         * modules/symlink-tests (Files): Likewise.
75582         * modules/symlinkat-tests (Files): Likewise.
75583         * modules/trunc-tests (Files): Likewise.
75584         * modules/truncf-tests (Files): Likewise.
75585         * modules/truncl-tests (Files): Likewise.
75586         * modules/uname-tests (Files): Likewise.
75587         * modules/unicase/cased-tests (Files): Likewise.
75588         * modules/unicase/ignorable-tests (Files): Likewise.
75589         * modules/unicase/locale-language-tests (Files): Likewise.
75590         * modules/unicase/tolower-tests (Files): Likewise.
75591         * modules/unicase/totitle-tests (Files): Likewise.
75592         * modules/unicase/toupper-tests (Files): Likewise.
75593         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75594         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75595         * modules/unicase/u8-casefold-tests (Files): Likewise.
75596         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75597         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75598         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75599         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75600         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75601         * modules/unicase/u8-tolower-tests (Files): Likewise.
75602         * modules/unicase/u8-totitle-tests (Files): Likewise.
75603         * modules/unicase/u8-toupper-tests (Files): Likewise.
75604         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75605         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75606         * modules/unicase/u16-casefold-tests (Files): Likewise.
75607         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75608         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75609         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75610         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75611         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75612         * modules/unicase/u16-tolower-tests (Files): Likewise.
75613         * modules/unicase/u16-totitle-tests (Files): Likewise.
75614         * modules/unicase/u16-toupper-tests (Files): Likewise.
75615         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75616         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75617         * modules/unicase/u32-casefold-tests (Files): Likewise.
75618         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75619         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75620         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75621         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75622         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75623         * modules/unicase/u32-tolower-tests (Files): Likewise.
75624         * modules/unicase/u32-totitle-tests (Files): Likewise.
75625         * modules/unicase/u32-toupper-tests (Files): Likewise.
75626         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75627         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75628         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75629         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75630         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75631         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75632         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75633         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75634         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75635         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75636         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75637         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75638         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75639         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75640         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75641         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75642         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75643         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75644         * modules/unictype/block-list-tests (Files): Likewise.
75645         * modules/unictype/block-of-tests (Files): Likewise.
75646         * modules/unictype/block-test-tests (Files): Likewise.
75647         * modules/unictype/category-C-tests (Files): Likewise.
75648         * modules/unictype/category-Cc-tests (Files): Likewise.
75649         * modules/unictype/category-Cf-tests (Files): Likewise.
75650         * modules/unictype/category-Cn-tests (Files): Likewise.
75651         * modules/unictype/category-Co-tests (Files): Likewise.
75652         * modules/unictype/category-Cs-tests (Files): Likewise.
75653         * modules/unictype/category-L-tests (Files): Likewise.
75654         * modules/unictype/category-Ll-tests (Files): Likewise.
75655         * modules/unictype/category-Lm-tests (Files): Likewise.
75656         * modules/unictype/category-Lo-tests (Files): Likewise.
75657         * modules/unictype/category-Lt-tests (Files): Likewise.
75658         * modules/unictype/category-Lu-tests (Files): Likewise.
75659         * modules/unictype/category-M-tests (Files): Likewise.
75660         * modules/unictype/category-Mc-tests (Files): Likewise.
75661         * modules/unictype/category-Me-tests (Files): Likewise.
75662         * modules/unictype/category-Mn-tests (Files): Likewise.
75663         * modules/unictype/category-N-tests (Files): Likewise.
75664         * modules/unictype/category-Nd-tests (Files): Likewise.
75665         * modules/unictype/category-Nl-tests (Files): Likewise.
75666         * modules/unictype/category-No-tests (Files): Likewise.
75667         * modules/unictype/category-P-tests (Files): Likewise.
75668         * modules/unictype/category-Pc-tests (Files): Likewise.
75669         * modules/unictype/category-Pd-tests (Files): Likewise.
75670         * modules/unictype/category-Pe-tests (Files): Likewise.
75671         * modules/unictype/category-Pf-tests (Files): Likewise.
75672         * modules/unictype/category-Pi-tests (Files): Likewise.
75673         * modules/unictype/category-Po-tests (Files): Likewise.
75674         * modules/unictype/category-Ps-tests (Files): Likewise.
75675         * modules/unictype/category-S-tests (Files): Likewise.
75676         * modules/unictype/category-Sc-tests (Files): Likewise.
75677         * modules/unictype/category-Sk-tests (Files): Likewise.
75678         * modules/unictype/category-Sm-tests (Files): Likewise.
75679         * modules/unictype/category-So-tests (Files): Likewise.
75680         * modules/unictype/category-Z-tests (Files): Likewise.
75681         * modules/unictype/category-Zl-tests (Files): Likewise.
75682         * modules/unictype/category-Zp-tests (Files): Likewise.
75683         * modules/unictype/category-Zs-tests (Files): Likewise.
75684         * modules/unictype/category-and-not-tests (Files): Likewise.
75685         * modules/unictype/category-and-tests (Files): Likewise.
75686         * modules/unictype/category-byname-tests (Files): Likewise.
75687         * modules/unictype/category-name-tests (Files): Likewise.
75688         * modules/unictype/category-none-tests (Files): Likewise.
75689         * modules/unictype/category-of-tests (Files): Likewise.
75690         * modules/unictype/category-or-tests (Files): Likewise.
75691         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75692         * modules/unictype/combining-class-tests (Files): Likewise.
75693         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75694         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75695         * modules/unictype/ctype-blank-tests (Files): Likewise.
75696         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75697         * modules/unictype/ctype-digit-tests (Files): Likewise.
75698         * modules/unictype/ctype-graph-tests (Files): Likewise.
75699         * modules/unictype/ctype-lower-tests (Files): Likewise.
75700         * modules/unictype/ctype-print-tests (Files): Likewise.
75701         * modules/unictype/ctype-punct-tests (Files): Likewise.
75702         * modules/unictype/ctype-space-tests (Files): Likewise.
75703         * modules/unictype/ctype-upper-tests (Files): Likewise.
75704         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75705         * modules/unictype/decimal-digit-tests (Files): Likewise.
75706         * modules/unictype/digit-tests (Files): Likewise.
75707         * modules/unictype/mirror-tests (Files): Likewise.
75708         * modules/unictype/numeric-tests (Files): Likewise.
75709         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75710         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75711         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75712         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75713         Likewise.
75714         * modules/unictype/property-bidi-block-separator-tests (Files):
75715         Likewise.
75716         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75717         Likewise.
75718         * modules/unictype/property-bidi-common-separator-tests (Files):
75719         Likewise.
75720         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75721         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75722         Likewise.
75723         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75724         Likewise.
75725         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75726         Likewise.
75727         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75728         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75729         Likewise.
75730         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75731         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75732         Likewise.
75733         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75734         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75735         * modules/unictype/property-bidi-segment-separator-tests (Files):
75736         Likewise.
75737         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75738         * modules/unictype/property-byname-tests (Files): Likewise.
75739         * modules/unictype/property-combining-tests (Files): Likewise.
75740         * modules/unictype/property-composite-tests (Files): Likewise.
75741         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75742         * modules/unictype/property-dash-tests (Files): Likewise.
75743         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75744         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75745         Likewise.
75746         * modules/unictype/property-deprecated-tests (Files): Likewise.
75747         * modules/unictype/property-diacritic-tests (Files): Likewise.
75748         * modules/unictype/property-extender-tests (Files): Likewise.
75749         * modules/unictype/property-format-control-tests (Files): Likewise.
75750         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75751         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75752         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75753         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75754         * modules/unictype/property-hyphen-tests (Files): Likewise.
75755         * modules/unictype/property-id-continue-tests (Files): Likewise.
75756         * modules/unictype/property-id-start-tests (Files): Likewise.
75757         * modules/unictype/property-ideographic-tests (Files): Likewise.
75758         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75759         * modules/unictype/property-ids-trinary-operator-tests (Files):
75760         Likewise.
75761         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75762         * modules/unictype/property-iso-control-tests (Files): Likewise.
75763         * modules/unictype/property-join-control-tests (Files): Likewise.
75764         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75765         * modules/unictype/property-line-separator-tests (Files): Likewise.
75766         * modules/unictype/property-logical-order-exception-tests (Files):
75767         Likewise.
75768         * modules/unictype/property-lowercase-tests (Files): Likewise.
75769         * modules/unictype/property-math-tests (Files): Likewise.
75770         * modules/unictype/property-non-break-tests (Files): Likewise.
75771         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75772         * modules/unictype/property-numeric-tests (Files): Likewise.
75773         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75774         * modules/unictype/property-other-default-ignorable-code-point-tests
75775         (Files): Likewise.
75776         * modules/unictype/property-other-grapheme-extend-tests (Files):
75777         Likewise.
75778         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75779         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75780         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75781         * modules/unictype/property-other-math-tests (Files): Likewise.
75782         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75783         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75784         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75785         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75786         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75787         * modules/unictype/property-private-use-tests (Files): Likewise.
75788         * modules/unictype/property-punctuation-tests (Files): Likewise.
75789         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75790         * modules/unictype/property-radical-tests (Files): Likewise.
75791         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75792         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75793         * modules/unictype/property-space-tests (Files): Likewise.
75794         * modules/unictype/property-terminal-punctuation-tests (Files):
75795         Likewise.
75796         * modules/unictype/property-test-tests (Files): Likewise.
75797         * modules/unictype/property-titlecase-tests (Files): Likewise.
75798         * modules/unictype/property-unassigned-code-value-tests (Files):
75799         Likewise.
75800         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75801         * modules/unictype/property-uppercase-tests (Files): Likewise.
75802         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75803         * modules/unictype/property-white-space-tests (Files): Likewise.
75804         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75805         * modules/unictype/property-xid-start-tests (Files): Likewise.
75806         * modules/unictype/property-zero-width-tests (Files): Likewise.
75807         * modules/unictype/scripts-tests (Files): Likewise.
75808         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75809         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75810         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75811         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75812         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75813         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75814         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75815         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75816         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75817         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75818         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75819         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75820         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75821         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75822         * modules/uninorm/composition-tests (Files): Likewise.
75823         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75824         * modules/uninorm/decomposition-tests (Files): Likewise.
75825         * modules/uninorm/filter-tests (Files): Likewise.
75826         * modules/uninorm/nfc-tests (Files): Likewise.
75827         * modules/uninorm/nfd-tests (Files): Likewise.
75828         * modules/uninorm/nfkc-tests (Files): Likewise.
75829         * modules/uninorm/nfkd-tests (Files): Likewise.
75830         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75831         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75832         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75833         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75834         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75835         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75836         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75837         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75838         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75839         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75840         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75841         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75842         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75843         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75844         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75845         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75846         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75847         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75848         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75849         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75850         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75851         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75852         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75853         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75854         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75855         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75856         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75857         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75858         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75859         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75860         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75861         * modules/uniwidth/u8-width-tests (Files): Likewise.
75862         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75863         * modules/uniwidth/u16-width-tests (Files): Likewise.
75864         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75865         * modules/uniwidth/u32-width-tests (Files): Likewise.
75866         * modules/uniwidth/width-tests (Files): Likewise.
75867         * modules/unlink-tests (Files): Likewise.
75868         * modules/unsetenv-tests (Files): Likewise.
75869         * modules/usleep-tests (Files): Likewise.
75870         * modules/utimens-tests (Files): Likewise.
75871         * modules/utimensat-tests (Files): Likewise.
75872         * modules/vasnprintf-posix-tests (Files): Likewise.
75873         * modules/vasnprintf-tests (Files): Likewise.
75874         * modules/vasprintf-posix-tests (Files): Likewise.
75875         * modules/vasprintf-tests (Files): Likewise.
75876         * modules/vdprintf-posix-tests (Files): Likewise.
75877         * modules/vfprintf-posix-tests (Files): Likewise.
75878         * modules/vprintf-posix-tests (Files): Likewise.
75879         * modules/vsnprintf-posix-tests (Files): Likewise.
75880         * modules/vsnprintf-tests (Files): Likewise.
75881         * modules/vsprintf-posix-tests (Files): Likewise.
75882         * modules/wcrtomb-tests (Files): Likewise.
75883         * modules/wcsnrtombs-tests (Files): Likewise.
75884         * modules/wcsrtombs-tests (Files): Likewise.
75885         * modules/wctype-tests (Files): Likewise.
75886         * modules/wcwidth-tests (Files): Likewise.
75887         * modules/xmemdup0-tests (Files): Likewise.
75888         * modules/xprintf-posix-tests (Files): Likewise.
75889         * modules/xvasprintf-tests (Files): Likewise.
75891 2009-12-24  Eric Blake  <ebb9@byu.net>
75893         test-nanosleep: fix typo
75894         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75895         patch.
75896         Reported by Bruno Haible.
75898 2009-12-24  Bruno Haible  <bruno@clisp.org>
75900         Reduce namespace pollution on glibc systems.
75901         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75902         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75903         systems.
75904         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75905         <getopt.h> on glibc systems.
75906         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75907         systems.
75908         * lib/fcntl.c: Include <unistd.h> here instead.
75910 2009-12-24  Bruno Haible  <bruno@clisp.org>
75912         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75914 2009-12-24  Eric Blake  <ebb9@byu.net>
75916         tests: add signature checks
75917         * tests/signature.h (SIGNATURE_CHECK): New file.
75918         * modules/atexit-tests (Files): Use it.
75919         * modules/btowc-tests (Files): Likewise.
75920         * modules/canonicalize-lgpl-tests (Files): Likewise.
75921         * modules/ceilf-tests (Files): Likewise.
75922         * modules/ceill-tests (Files): Likewise.
75923         * modules/chown-tests (Files): Likewise.
75924         * modules/dprintf-posix-tests (Files): Likewise.
75925         * modules/dup2-tests (Files): Likewise.
75926         * modules/dup3-tests (Files): Likewise.
75927         * modules/duplocale-tests (Files): Likewise.
75928         * modules/fchdir-tests (Files): Likewise.
75929         * modules/fcntl-tests (Files): Likewise.
75930         * modules/fdopendir-tests (Files): Likewise.
75931         * modules/fflush-tests (Files): Likewise.
75932         * modules/flock-tests (Files): Likewise.
75933         * modules/floorf-tests (Files): Likewise.
75934         * modules/floorl-tests (Files): Likewise.
75935         * modules/fnmatch-tests (Files): Likewise.
75936         * modules/fopen-tests (Files): Likewise.
75937         * modules/fprintf-posix-tests (Files): Likewise.
75938         * modules/freopen-tests (Files): Likewise.
75939         * modules/frexp-nolibm-tests (Files): Likewise.
75940         * modules/frexp-tests (Files): Likewise.
75941         * modules/frexpl-nolibm-tests (Files): Likewise.
75942         * modules/frexpl-tests (Files): Likewise.
75943         * modules/fseek-tests (Files): Likewise.
75944         * modules/fseeko-tests (Files): Likewise.
75945         * modules/fsync-tests (Files): Likewise.
75946         * modules/ftell-tests (Files): Likewise.
75947         * modules/ftello-tests (Files): Likewise.
75948         * modules/futimens-tests (Files): Likewise.
75949         * modules/getaddrinfo-tests (Files): Likewise.
75950         * modules/getcwd-tests (Files): Likewise.
75951         * modules/getdelim-tests (Files): Likewise.
75952         * modules/getdtablesize-tests (Files): Likewise.
75953         * modules/getgroups-tests (Files): Likewise.
75954         * modules/gethostname-tests (Files): Likewise.
75955         * modules/getline-tests (Files): Likewise.
75956         * modules/getopt-posix-tests (Files): Likewise.
75957         * modules/gettimeofday-tests (Files): Likewise.
75958         * modules/glob-tests (Files): Likewise.
75959         * modules/iconv-tests (Files): Likewise.
75960         * modules/inet_ntop-tests (Files): Likewise.
75961         * modules/inet_pton-tests (Files): Likewise.
75962         * modules/isblank-tests (Files): Likewise.
75963         * modules/lchown-tests (Files): Likewise.
75964         * modules/ldexpl-tests (Files): Likewise.
75965         * modules/link-tests (Files): Likewise.
75966         * modules/linkat-tests (Files): Likewise.
75967         * modules/lseek-tests (Files): Likewise.
75968         * modules/lstat-tests (Files): Likewise.
75969         * modules/mbrtowc-tests (Files): Likewise.
75970         * modules/mbsinit-tests (Files): Likewise.
75971         * modules/mbsnrtowcs-tests (Files): Likewise.
75972         * modules/mbsrtowcs-tests (Files): Likewise.
75973         * modules/memchr-tests (Files): Likewise.
75974         * modules/memcmp-tests (Files): Likewise.
75975         * modules/memmem-tests (Files): Likewise.
75976         * modules/memrchr-tests (Files): Likewise.
75977         * modules/mkdir-tests (Files): Likewise.
75978         * modules/mkfifo-tests (Files): Likewise.
75979         * modules/mkfifoat-tests (Files): Likewise.
75980         * modules/mknod-tests (Files): Likewise.
75981         * modules/nanosleep-tests (Files): Likewise.
75982         * modules/nl_langinfo-tests (Files): Likewise.
75983         * modules/obstack-printf-tests (Files): Likewise.
75984         * modules/open-tests (Files): Likewise.
75985         * modules/openat-tests (Files): Likewise.
75986         * modules/perror-tests (Files): Likewise.
75987         * modules/pipe2-tests (Files): Likewise.
75988         * modules/poll-tests (Files): Likewise.
75989         * modules/popen-tests (Files): Likewise.
75990         * modules/posix_spawn-tests (Files): Likewise.
75991         * modules/posix_spawnp-tests (Files): Likewise.
75992         * modules/pread-tests (Files): Likewise.
75993         * modules/printf-posix-tests (Files): Likewise.
75994         * modules/pty-tests (Files): Likewise.
75995         * modules/random_r-tests (Files): Likewise.
75996         * modules/rawmemchr-tests (Files): Likewise.
75997         * modules/readlink-tests (Files): Likewise.
75998         * modules/remove-tests (Files): Likewise.
75999         * modules/rename-tests (Files): Likewise.
76000         * modules/renameat-tests (Files): Likewise.
76001         * modules/rmdir-tests (Files): Likewise.
76002         * modules/round-tests (Files): Likewise.
76003         * modules/roundf-tests (Files): Likewise.
76004         * modules/roundl-tests (Files): Likewise.
76005         * modules/select-tests (Files): Likewise.
76006         * modules/setenv-tests (Files): Likewise.
76007         * modules/sigaction-tests (Files): Likewise.
76008         * modules/sleep-tests (Files): Likewise.
76009         * modules/snprintf-posix-tests (Files): Likewise.
76010         * modules/snprintf-tests (Files): Likewise.
76011         * modules/sprintf-posix-tests (Files): Likewise.
76012         * modules/stat-tests (Files): Likewise.
76013         * modules/strcasestr-tests (Files): Likewise.
76014         * modules/strchrnul-tests (Files): Likewise.
76015         * modules/strerror-tests (Files): Likewise.
76016         * modules/strsignal-tests (Files): Likewise.
76017         * modules/strstr-tests (Files): Likewise.
76018         * modules/strtod-tests (Files): Likewise.
76019         * modules/strverscmp-tests (Files): Likewise.
76020         * modules/symlink-tests (Files): Likewise.
76021         * modules/symlinkat-tests (Files): Likewise.
76022         * modules/times-tests (Files): Likewise.
76023         * modules/trunc-tests (Files): Likewise.
76024         * modules/truncf-tests (Files): Likewise.
76025         * modules/truncl-tests (Files): Likewise.
76026         * modules/tsearch-tests (Files): Likewise.
76027         * modules/uname-tests (Files): Likewise.
76028         * modules/unlink-tests (Files): Likewise.
76029         * modules/unsetenv-tests (Files): Likewise.
76030         * modules/usleep-tests (Files): Likewise.
76031         * modules/utimensat-tests (Files): Likewise.
76032         * modules/vasprintf-tests (Files): Likewise.
76033         * modules/vdprintf-posix-tests (Files): Likewise.
76034         * modules/vfprintf-posix-tests (Files): Likewise.
76035         * modules/vprintf-posix-tests (Files): Likewise.
76036         * modules/vsnprintf-posix-tests (Files): Likewise.
76037         * modules/vsnprintf-tests (Files): Likewise.
76038         * modules/vsprintf-posix-tests (Files): Likewise.
76039         * modules/wcrtomb-tests (Files): Likewise.
76040         * modules/wcsnrtombs-tests (Files): Likewise.
76041         * modules/wcsrtombs-tests (Files): Likewise.
76042         * modules/wcwidth-tests (Files): Likewise.
76043         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76044         * tests/test-isinf.c (isinf): Likewise.
76045         * tests/test-isnan.c (isnan): Likewise.
76046         * tests/test-signbit.c (signbit): Likewise.
76047         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76048         declaration, either as macro or with correct signature.
76049         (select): Ensure function under test is declared with correct
76050         signature in correct header.
76051         * tests/test-atexit.c (atexit): Likewise.
76052         * tests/test-btowc.c (btowc): Likewise.
76053         * tests/test-canonicalize-lgpl.c (realpath)
76054         (canonicalize_file_name): Likewise.
76055         * tests/test-ceilf1.c (ceilf): Likewise.
76056         * tests/test-ceill.c (ceill): Likewise.
76057         * tests/test-chown.c (chown): Likewise.
76058         * tests/test-dprintf-posix.c (dprintf): Likewise.
76059         * tests/test-dup2.c (dup2): Likewise.
76060         * tests/test-dup3.c (dup3): Likewise.
76061         * tests/test-duplocale.c (duplocale): Likewise.
76062         * tests/test-fchdir.c (fchdir): Likewise.
76063         * tests/test-fchownat.c (fchownat): Likewise.
76064         * tests/test-fcntl.c (fcntl): Likewise.
76065         * tests/test-fdopendir.c (fdopendir): Likewise.
76066         * tests/test-fflush.c (fflush): Likewise.
76067         * tests/test-flock.c (flock): Likewise.
76068         * tests/test-floorf1.c (floorf): Likewise.
76069         * tests/test-floorl.c (floorl): Likewise.
76070         * tests/test-fnmatch.c (fnmatch): Likewise.
76071         * tests/test-fopen.c (fopen): Likewise.
76072         * tests/test-fprintf-posix.c (fprintf): Likewise.
76073         * tests/test-freopen.c (freopen): Likewise.
76074         * tests/test-frexp.c (frexp): Likewise.
76075         * tests/test-frexpl.c (frexpl): Likewise.
76076         * tests/test-fseek.c (fseek): Likewise.
76077         * tests/test-fseeko.c (fseeko): Likewise.
76078         * tests/test-fstatat.c (fstatat): Likewise.
76079         * tests/test-fsync.c (fsync): Likewise.
76080         * tests/test-ftell.c (ftell): Likewise.
76081         * tests/test-ftello.c (ftello): Likewise.
76082         * tests/test-futimens.c (futimens): Likewise.
76083         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76084         (gai_strerror): Likewise.
76085         * tests/test-getcwd.c (getcwd): Likewise.
76086         * tests/test-getdelim.c (getdelim): Likewise.
76087         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76088         * tests/test-getgroups.c (getgroups): Likewise.
76089         * tests/test-gethostname.c (gethostname): Likewise.
76090         * tests/test-getline.c (getline): Likewise.
76091         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76092         Likewise.
76093         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76094         * tests/test-glob.c (glob, globfree): Likewise.
76095         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76096         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76097         * tests/test-inet_pton.c (inet_pton): Likewise.
76098         * tests/test-isblank.c (isblank): Likewise.
76099         * tests/test-lchown.c (lchown): Likewise.
76100         * tests/test-ldexpl.c (ldexpl): Likewise.
76101         * tests/test-link.c (link): Likewise.
76102         * tests/test-linkat.c (linkat): Likewise.
76103         * tests/test-lseek.c (lseek): Likewise.
76104         * tests/test-lstat.c (lstat): Likewise.
76105         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76106         * tests/test-mbsinit.c (mbsinit): Likewise.
76107         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76108         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76109         * tests/test-memchr.c (memchr): Likewise.
76110         * tests/test-memcmp.c (memcmp): Likewise.
76111         * tests/test-memmem.c (memmem): Likewise.
76112         * tests/test-memrchr.c (memrchr): Likewise.
76113         * tests/test-mkdir.c (mkdir): Likewise.
76114         * tests/test-mkdirat.c (mkdirat): Likewise.
76115         * tests/test-mkfifo.c (mkfifo): Likewise.
76116         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76117         * tests/test-mknod.c (mknod): Likewise.
76118         * tests/test-nanosleep.c (nanosleep): Likewise.
76119         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76120         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76121         Likewise.
76122         * tests/test-open.c (open): Likewise.
76123         * tests/test-openat.c (openat): Likewise.
76124         * tests/test-perror.c (perror): Likewise.
76125         * tests/test-pipe2.c (pipe2): Likewise.
76126         * tests/test-poll.c (poll): Likewise.
76127         * tests/test-popen.c (popen, pclose): Likewise.
76128         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76129         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76130         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76131         (posix_spawn_file_actions_destroy)
76132         (posix_spawn_file_actions_addclose)
76133         (posix_spawn_file_actions_addopen)
76134         (posix_spawn_file_actions_adddup2): Likewise.
76135         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76136         * tests/test-pread.c (pread): Likewise.
76137         * tests/test-printf-posix.c (printf): Likewise.
76138         * tests/test-pty.c (openpty, forkpty): Likewise.
76139         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76140         (random_r): Likewise.
76141         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76142         * tests/test-readlink.c (readlink): Likewise.
76143         * tests/test-remove.c (remove): Likewise.
76144         * tests/test-rename.c (rename): Likewise.
76145         * tests/test-renameat.c (renameat): Likewise.
76146         * tests/test-rmdir.c (rmdir): Likewise.
76147         * tests/test-round1.c (round): Likewise.
76148         * tests/test-roundf1.c (roundf): Likewise.
76149         * tests/test-roundl.c (roundl): Likewise.
76150         * tests/test-setenv.c (setenv): Likewise.
76151         * tests/test-sigaction.c (sigaction): Likewise.
76152         * tests/test-sleep.c (sleep): Likewise.
76153         * tests/test-snprintf.c (snprintf): Likewise.
76154         * tests/test-sprintf-posix.c (sprintf): Likewise.
76155         * tests/test-stat.c (stat): Likewise.
76156         * tests/test-stpncpy.c (stpncpy): Likewise.
76157         * tests/test-strcasestr.c (strcasestr): Likewise.
76158         * tests/test-strchrnul.c (strchrnul): Likewise.
76159         * tests/test-strerror.c (strerror): Likewise.
76160         * tests/test-strsignal.c (strsignal): Likewise.
76161         * tests/test-strstr.c (strstr): Likewise.
76162         * tests/test-strtod.c (strtod): Likewise.
76163         * tests/test-strverscmp.c (strverscmp): Likewise.
76164         * tests/test-symlink.c (symlink): Likewise.
76165         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76166         * tests/test-times.c (times): Likewise.
76167         * tests/test-trunc1.c (trunc): Likewise.
76168         * tests/test-truncf1.c (truncf): Likewise.
76169         * tests/test-truncl.c (truncl): Likewise.
76170         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76171         Likewise.
76172         * tests/test-uname.c (uname): Likewise.
76173         * tests/test-unlink.c (unlink): Likewise.
76174         * tests/test-unlinkat.c (unlinkat): Likewise.
76175         * tests/test-unsetenv.c (unsetenv): Likewise.
76176         * tests/test-usleep.c (usleep): Likewise.
76177         * tests/test-utimensat.c (utimensat): Likewise.
76178         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76179         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76180         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76181         * tests/test-vprintf-posix.c (vprintf): Likewise.
76182         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76183         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76184         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76185         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76186         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76187         * tests/test-wcwidth.c (wcwidth): Likewise.
76189         build: pull in conditional headers during GNULIB_POSIXCHECK
76190         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76191         definitions from any conditionally-included headers.
76192         * lib/stdlib.in.h (includes): Likewise.
76193         * lib/unistd.in.h (includes): Likewise.
76195 2009-12-24  Bruno Haible  <bruno@clisp.org>
76197         * tests/test-argv-iter.c: Include header file being tested immediately
76198         after config.h.
76199         * tests/test-base64.c: Likewise.
76200         * tests/test-flock.c: Likewise.
76201         * tests/test-fsync.c: Likewise.
76202         * tests/test-getdate.c: Likewise.
76203         * tests/test-getndelim2.c: Likewise.
76204         * tests/test-isfinite.c: Likewise.
76205         * tests/test-isinf.c: Likewise.
76206         * tests/test-strerror.c: Likewise.
76207         * tests/test-strsignal.c: Likewise.
76209 2009-12-23  Eric Blake  <ebb9@byu.net>
76211         unistd: work around cygwin bug
76212         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76213         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76214         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76216 2009-12-23  Bruno Haible  <bruno@clisp.org>
76218         localename: More tests.
76219         * tests/test-localename.c (SIZEOF): New macro.
76220         (categories): New variable.
76221         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76222         test_locale_name_default): Add test w.r.t. thread locale.
76223         (test_locale_name_thread): New function.
76224         (main): Invoke it.
76226         localename: Make aware of thread locale.
76227         * lib/localename.h (gl_locale_name_thread): New declaration.
76228         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76229         behaviour with respect to thread locale.
76230         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76231         <langinfo.h>, glthread/lock.h.
76232         (SIZE_BITS): New macro.
76233         (string_hash): New function.
76234         (struct hash_node): New type.
76235         (HASH_TABLE_SIZE): New macro.
76236         (struniq_hash_table, struniq_lock): New variables.
76237         (struniq): New function.
76238         (gl_locale_name_thread): New function.
76239         (gl_locale_name): Invoke it.
76240         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76241         * modules/localename (Depends-on): Add lock.
76242         Reported by Mike Gran <spk121@yahoo.com>.
76244 2009-12-23  Eric Blake  <ebb9@byu.net>
76246         va-args: new module
76247         * modules/va-args: New file.
76248         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76249         * MODULES.html.sh (Core language properties): Mention it.
76251         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76252         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76253         named alias for __attribute__((__unused__)).
76254         * lib/chown.c: Update client.
76255         * lib/fchmodat.c: Likewise.
76256         * lib/fts.c: Likewise.
76257         * lib/getdate.y: Likewise.
76258         * lib/getgroups.c: Likewise.
76259         * lib/getopt.c: Likewise.
76260         * lib/getugroups.c: Likewise.
76261         * lib/mkdir.c: Likewise.
76262         * lib/mkfifo.c: Likewise.
76263         * lib/mkfifoat.c: Likewise.
76264         * lib/mknod.c: Likewise.
76265         * lib/mknodat.c: Likewise.
76266         * lib/readlink.c: Likewise.
76267         * lib/se-context.in.h: Likewise.
76268         * lib/se-selinux.in.h: Likewise.
76269         * lib/sockets.c: Likewise.
76270         * lib/symlink.c: Likewise.
76271         * lib/symlinkat.c: Likewise.
76272         * lib/unicodeio.c: Likewise.
76273         * lib/unistr.h: Likewise.
76274         * tests/test-areadlink.c: Likewise.
76275         * tests/test-areadlinkat.c: Likewise.
76276         * tests/test-filenamecat.c: Likewise.
76277         * tests/test-fseeko.c: Likewise.
76278         * tests/test-ftello.c: Likewise.
76279         * tests/test-getdate.c: Likewise.
76280         * tests/test-getgroups.c: Likewise.
76281         * tests/test-gethostname.c: Likewise.
76282         * tests/test-quotearg.c: Likewise.
76283         * tests/test-version-etc.c: Likewise.
76284         * tests/test-xalloc-die.c: Likewise.
76285         * tests/test-xfprintf-posix.c: Likewise.
76286         * tests/test-xprintf-posix.c: Likewise.
76287         * tests/test-xvasprintf.c: Likewise.
76289         tests: avoid compiler warnings
76290         * tests/test-fcntl.c (main): Delete unused parameters.
76291         * tests/test-freopen-safer.c (main): Likewise.
76292         * tests/test-xalloc-die.c (main): Mark unused parameters.
76293         * tests/test-fseeko.c (main): Likewise.
76294         * tests/test-ftello.c (main): Likewise.
76295         * tests/test-nanosleep.c (main): Avoid declaration warning.
76296         * tests/test-sleep.c (main): Likewise.
76297         * tests/test-unsetenv.c (main): Silence warning about string
76298         literal.
76299         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76301 2009-12-23  Bruno Haible  <bruno@clisp.org>
76303         * tests/test-localename.c (test_locale_name): New function, extracted
76304         from main. Also test mixed situations.
76305         (test_locale_name_posix, test_locale_name_environ,
76306         test_locale_name_default): New functions.
76307         (main): Invoke them all.
76308         * modules/localename-tests (configure.ac): Test for newlocale.
76310 2009-12-23  Bruno Haible  <bruno@clisp.org>
76312         unistd: Ensure getcwd gets declared before being overridden.
76313         * lib/unistd.in.h: Conditionally include <io.h>.
76315 2009-12-22  Bruno Haible  <bruno@clisp.org>
76317         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76318         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76319         (gl_WCHAR_H): Invoke it.
76320         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76321         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76322         Reported by Karl Berry <karl@freefriends.org>.
76324 2009-12-22  Eric Blake  <ebb9@byu.net>
76326         math, unistd: avoid redundant includes
76327         * lib/math.in.h (isnan): No need to re-include <math.h>.
76328         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76330         getsubopt: work around cygwin bug
76331         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76332         avoid conflicting with system getsubopt.
76333         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76334         bug.
76336         getopt: synchronize from glibc
76337         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76338         parameter order.  Adjust all callers.
76339         (_getopt_internal_r, main): Adjust quoting in error messages.
76340         Drop considerations for outdated POSIX 1003.2 error message.
76341         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76342         callers.
76343         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76345         test-getopt: test stderr behavior
76346         * modules/getopt-posix-tests (Depends-on): Add dup2.
76347         * tests/test-getopt.c (ASSERT): Avoid stderr.
76348         (main): Move stderr to a temporary file.
76349         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76350         Instead, add parameter to inform caller if output occurred.
76351         (test_getopt): Adjust all existing tests to expect silence, and
76352         add new tests of leading ":".
76353         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76354         glibc shortcomings with leading "-:" or "+:" in optstring.
76355         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76356         Likewise.
76357         * doc/posix-functions/getopt.texi (getopt): Likewise.
76359         test-getopt: enhance test
76360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76361         supports optind=0.
76362         * tests/test-getopt.c (OPTIND_MIN): Move...
76363         * tests/test-getopt.h (OPTIND_MIN): ...here.
76364         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76365         Require that optind=0 works, since modern BSD supports it in
76366         addition to optreset, and since coreutils expects it.
76367         (test_getopt_long_only): New test.
76368         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76369         glibc shortcomings with 'W;', and enforcement of optind=0.
76370         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76371         Likewise.
76373 2009-12-21  Bruno Haible  <bruno@clisp.org>
76375         localename: Improvements for MacOS X and Cygwin.
76376         * lib/localename.h (gl_locale_name_environ): New declaration.
76377         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76378         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76379         (gl_locale_name_posix): Invoke it.
76380         (gl_locale_name_default): Add comments. Use Windows native API also on
76381         Cygwin.
76383 2009-12-21  Bruno Haible  <bruno@clisp.org>
76385         Update list of Win32 locale ids.
76386         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76387         (LANG_SAMI): Renamed from LANG_SAAMI.
76388         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76389         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76390         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76391         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76392         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76393         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76394         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76395         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76396         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76397         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76398         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76399         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76400         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76401         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76402         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76403         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76404         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76405         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76406         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76407         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76408         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76409         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76410         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76411         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76412         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76413         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76414         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76415         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76416         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76417         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76418         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76419         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76420         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76421         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76422         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76423         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76424         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76425         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76426         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76427         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76428         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76429         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76430         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76431         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76432         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76433         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76434         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76435         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76436         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76437         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76438         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76439         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76440         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76441         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76442         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76443         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76444         Add more languages and countries for Sami, Sorbian. Add more countries
76445         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76446         for Pashto. Change country for Syriac, Tswana.
76448 2009-12-21  Eric Blake  <ebb9@byu.net>
76450         test-utimens: avoid spurious failure
76451         * tests/test-chown.h (nap): Factor...
76452         * tests/nap.h: ...into new file.
76453         * tests/test-lchown.h (nap): Avoid duplication.
76454         * tests/test-utimens-common.h (nap): Use shared implementation,
76455         necessary on file systems with 1-second resolution.
76456         * modules/chown-tests (Files): Include new file.
76457         * modules/fdutimensat-tests (Files): Likewise.
76458         * modules/futimens-tests (Files): Likewise.
76459         * modules/lchown-tests (Files): Likewise.
76460         * modules/openat-tests (Files): Likewise.
76461         * modules/utimens-tests (Files): Likewise.
76462         * modules/utimensat-tests (Files): Likewise.
76464 2009-12-19  Eric Blake  <ebb9@byu.net>
76466         futimens, utimensat: work around Linux bug
76467         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76468         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76469         * lib/utimensat.c (rpl_utimensat): Work around it.
76470         * lib/futimens.c (rpl_futimens): Adjust comment.
76472         utimens: work around Linux ctime bug
76473         * lib/utimens.c (detect_ctime_bug): New helper function.
76474         (update_timespec): Differentiate between workaround needed for
76475         this bug vs. what is needed for systems that lack utimensat.
76476         (fdutimens, lutimens): Work around bug.
76478         utimens: check for ctime update
76479         * tests/test-utimens-common.h (check_ctime): Define.
76480         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76481         * tests/test-futimens.h (test_futimens): Likewise.
76482         * tests/test-lutimens.h (test_lutimens): Likewise.
76483         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76484         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76486 2009-12-19  Bruno Haible  <bruno@clisp.org>
76488         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76489         * tests/test-dprintf-posix2.sh: New file.
76490         * tests/test-dprintf-posix2.c: New file.
76491         * modules/dprintf-posix-tests (Files): Add them.
76492         (configure.ac): Check for getrlimit and setrlimit.
76493         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76495 2009-12-19  Bruno Haible  <bruno@clisp.org>
76497         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76498         * tests/test-fprintf-posix3.sh: New file.
76499         * tests/test-fprintf-posix3.c: New file.
76500         * modules/fprintf-posix-tests (Files): Add them.
76501         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76503 2009-12-19  Eric Blake  <ebb9@byu.net>
76505         dirfd: fix prototype
76506         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76507         * lib/dirfd.c (dirfd): Likewise.
76509         canonicalize: reduce memory usage
76510         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76511         allocation to size.
76512         Reported by Solar Designer <solar@openwall.com>.
76514 2009-12-19  Bruno Haible  <bruno@clisp.org>
76516         New module attribute 'Applicability'.
76517         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76518         * gnulib-tool: New option --extract-applicability.
76519         (func_usage): Document it.
76520         (sed_extract_prog): Recognize it.
76521         (func_get_applicability): New function.
76522         (func_import): Generalize handling of 'link-warning' module.
76523         * modules/link-warning (Applicability): New section.
76524         * modules/arg-nonnull (Applicability): New section.
76525         Repoted by Simon Josefsson <simon@josefsson.org>.
76527 2009-12-19  Bruno Haible  <bruno@clisp.org>
76529         fflush: tweak
76530         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76531         * lib/fseeko.c (rpl_fseeko): Likewise.
76533 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76535         * lib/gl_list.h: Fix typo in comment.
76537 2009-12-16  Eric Blake  <ebb9@byu.net>
76539         fcntl: use to simplify other modules
76540         * modules/cloexec (Depends-on): Add fcntl.
76541         * modules/fchdir (Depends-on): Likewise.
76542         * modules/fd-safer-flag (Depends-on): Likewise.
76543         * modules/unistd-safer (Depends-on): Likewise.
76544         * modules/dup3 (configure.ac): Set module indicator.
76545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76546         missing.
76547         * lib/fchdir.c (_gl_register_dup): Fix comment.
76548         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76549         * lib/dup-safer.c (dup_safer): Likewise.
76550         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76551         * lib/dup3.c (dup3): Likewise.
76552         * tests/test-fchdir.c (main): Enhance test.
76553         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76555         fcntl: port portions of fcntl to mingw
76556         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76557         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76558         replacement for mingw.
76559         * modules/fcntl (Description): Update.
76560         (Depends-on): Add dup2.
76561         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76562         * modules/fcntl-h (Makefile.am): Substitute it.
76563         * lib/fcntl.in.h (fcntl): Update declaration.
76564         (F_DUPFD, F_GETFD): New macros, when needed.
76565         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76566         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76567         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76568         we now guarantee.
76570         fcntl: work around cygwin bug in F_DUPFD
76571         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76572         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76573         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76574         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76575         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76577         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76578         * modules/fcntl (Files): List new files.
76579         (configure.ac): Run a test.
76580         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76581         * lib/fcntl.c (rpl_fcntl): Likewise.
76582         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76583         (gl_FCNTL_H): Always replace fcntl.h.
76584         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76585         * lib/fcntl.in.h (fcntl): Declare replacement.
76586         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76587         needed, plus a witness.
76588         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76589         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76590         * tests/test-fcntl.c: New file.
76591         * modules/fcntl-tests: Likewise.
76593         binary-io: avoid potential compilation warning
76594         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76595         directives.
76597         fflush: avoid compilation error on NetBSD
76598         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76599         between off_t and fpos_t, since the latter is sometimes a struct.
76600         * lib/fseeko.c (rpl_fseeko): Likewise.
76601         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76603 2009-12-15  Eric Blake  <ebb9@byu.net>
76605         fcntl-h, stdio, sys_ioctl: fix declarations
76606         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76607         function must not take arguments.
76608         * lib/sys_ioctl.in.h (ioctl): Likewise.
76609         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76610         (open): Add a link warning.
76612 2009-12-15  Jim Meyering  <meyering@redhat.com>
76614         areadlink, areadlink-with-size: relax license to LGPLv2+
76615         * modules/areadlink (License): Relax to LGPLv2+.
76616         * modules/areadlink-with-size (License): Likewise.
76618 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76619             Bruno Haible  <bruno@clisp.org>
76621         *printf: Fix memory leak.
76622         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76623         * lib/vfprintf.c (vfprintf): Likewise.
76624         * lib/dprintf.c (dprintf): Likewise.
76625         * lib/vdprintf.c (vdprintf): Likewise.
76627 2009-12-14  Eric Blake  <ebb9@byu.net>
76629         accept4: adjust module dependencies
76630         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76632         utimens: one more try at avoiding compiler warning
76633         * lib/utimens.c (lutimens): Lower scope of result.
76635 2009-12-13  Bruno Haible  <bruno@clisp.org>
76637         Move the malloc checking from module 'list' to new module 'xlist'.
76638         * modules/xlist: New file.
76639         * lib/gl_xlist.h: New file.
76640         * lib/gl_xlist.c: New file.
76641         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76642         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76643         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76644         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76645         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76646         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76647         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76648         gl_sortedlist_nx_add): New declarations.
76649         (struct gl_list_implementation): Rename and change methods accordingly.
76650         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76651         (gl_list_nx_create): Renamed from gl_list_create.
76652         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76653         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76654         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76655         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76656         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76657         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76658         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76659         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76660         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76661         gl_list_create_empty.
76662         (gl_list_nx_create): Renamed from gl_list_create.
76663         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76664         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76665         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76666         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76667         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76668         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76669         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76670         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76671         * lib/gl_array_list.c: Don't include xalloc.h.
76672         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76673         NULL upon out-of-memory.
76674         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76675         out-of-memory.
76676         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76677         Change return type to 'int'.
76678         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76679         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76680         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76681         upon out-of-memory.
76682         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76683         upon out-of-memory.
76684         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76685         upon out-of-memory.
76686         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76687         upon out-of-memory.
76688         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76689         out-of-memory.
76690         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76691         Update.
76692         (gl_array_list_implementation): Update.
76693         * lib/gl_carray_list.c: Don't include xalloc.h.
76694         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76695         Return NULL upon out-of-memory.
76696         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76697         out-of-memory.
76698         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76699         Change return type to 'int'.
76700         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76701         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76702         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76703         upon out-of-memory.
76704         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76705         upon out-of-memory.
76706         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76707         out-of-memory.
76708         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76709         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76710         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76711         Update.
76712         (gl_carray_list_implementation): Update.
76713         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76714         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76715         gl_linked_create_empty. Return NULL upon out-of-memory.
76716         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76717         out-of-memory.
76718         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76719         Change return type to 'int'. Return -1 upon out-of-memory.
76720         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76721         out-of-memory.
76722         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76723         upon out-of-memory.
76724         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76725         upon out-of-memory.
76726         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76727         NULL upon out-of-memory.
76728         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76729         upon out-of-memory.
76730         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76731         out-of-memory.
76732         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76733         Update.
76734         * lib/gl_linked_list.c: Don't include xalloc.h.
76735         (gl_linked_list_implementation): Update.
76736         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76737         (add_to_bucket): Change return type to 'int'.
76738         (gl_linkedhash_list_implementation): Update.
76739         * lib/gl_anytree_list1.h (free_subtree): New function.
76740         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76741         gl_tree_create_empty. Return NULL upon out-of-memory.
76742         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76743         Change return type to 'int'. Return -1 upon out-of-memory.
76744         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76745         out-of-memory.
76746         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76747         (gl_tree_remove_node): New function, moved here from
76748         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76749         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76750         Update.
76751         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76752         malloc, not xmalloc. Return NULL upon out-of-memory.
76753         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76754         out-of-memory.
76755         (gl_tree_remove_node_from_tree): New function, extracted from
76756         gl_tree_remove_node.
76757         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76758         upon out-of-memory.
76759         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76760         out-of-memory.
76761         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76762         upon out-of-memory.
76763         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76764         upon out-of-memory.
76765         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76766         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76767         not xmalloc. Return NULL upon out-of-memory.
76768         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76769         out-of-memory.
76770         (gl_tree_remove_node_from_tree): New function, extracted from
76771         gl_tree_remove_node.
76772         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76773         upon out-of-memory.
76774         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76775         out-of-memory.
76776         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76777         upon out-of-memory.
76778         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76779         upon out-of-memory.
76780         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76781         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76782         gl_anytree_list1.h before gl_anyavltree_list2.h.
76783         (gl_avltree_list_implementation): Update.
76784         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76785         gl_anytree_list1.h before gl_anyavltree_list2.h.
76786         (gl_rbtree_list_implementation): Update.
76787         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76788         Change return type to 'int'. Return -1 upon out-of-memory. Use
76789         __builtin_expect.
76790         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76791         (gl_avltreehash_list_implementation): Update.
76792         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76793         (gl_rbtreehash_list_implementation): Update.
76794         * modules/array-list (Depends-on): Remove xalloc.
76795         * modules/carray-list (Depends-on): Likewise.
76796         * modules/linked-list (Depends-on): Likewise.
76797         * modules/linkedhash-list (Depends-on): Likewise.
76798         * modules/avltree-list (Depends-on): Likewise.
76799         * modules/rbtree-list (Depends-on): Likewise.
76800         * modules/avltreehash-list (Depends-on): Likewise.
76801         * modules/rbtreehash-list (Depends-on): Likewise.
76803         * modules/xsublist: New file.
76804         * lib/gl_xsublist.h: New file.
76805         * lib/gl_xsublist.c: New file.
76806         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76807         (gl_sublist_nx_create): New declaration.
76808         * lib/gl_sublist.c: Don't include xalloc.h.
76809         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76810         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76811         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76812         Change return type to 'int'. Return -1 upon out-of-memory.
76813         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76814         upon out-of-memory.
76815         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76816         NULL upon out-of-memory.
76817         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76818         upon out-of-memory.
76819         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76820         NULL upon out-of-memory.
76821         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76822         NULL upon out-of-memory.
76823         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76824         upon out-of-memory.
76825         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76826         (gl_sublist_list_implementation): Update.
76827         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76828         upon out-of-memory.
76829         * modules/sublist (Depends-on): Remove xalloc.
76831         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76832         * tests/test-carray_list.c: Likewise.
76833         * tests/test-linked_list.c: Likewise.
76834         * tests/test-linkedhash_list.c: Likewise.
76835         * tests/test-avltree_list.c: Likewise.
76836         * tests/test-rbtree_list.c: Likewise.
76837         * tests/test-avltreehash_list.c: Likewise.
76838         * tests/test-rbtreehash_list.c: Likewise.
76839         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76840         * modules/carray-list-tests (Makefile.am): Likewise.
76841         * modules/linked-list-tests (Makefile.am): Likewise.
76842         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76843         * modules/avltree-list-tests (Makefile.am): Likewise.
76844         * modules/rbtree-list-tests (Makefile.am): Likewise.
76845         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76846         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76848         * NEWS: Mention the changes.
76850         * lib/clean-temp.c: Include gl_xlist.h.
76851         * modules/clean-temp (Depends-on): Add xlist.
76853         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76854         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76856         * tests/test-array_oset.c: Include gl_xlist.h.
76857         * modules/array-oset-tests (Depends-on): Add xlist.
76859         Reported by José E. Marchesi <jemarch@gnu.org>.
76861 2009-12-13  Bruno Haible  <bruno@clisp.org>
76863         Move the malloc checking from module 'oset' to new module 'xoset'.
76864         * modules/xoset: New file.
76865         * lib/gl_xoset.h: New file.
76866         * lib/gl_xoset.c: New file.
76867         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76868         declarations.
76869         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76870         (struct gl_oset_implementation): Rename and change methods accordingly.
76871         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76872         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76873         'int'. Mark as __warn_unused_result__.
76874         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76875         gl_oset_create_empty.
76876         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76877         'int'.
76878         * lib/gl_array_oset.c: Don't include xalloc.h.
76879         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76880         malloc, not xmalloc.
76881         (grow): Change return type to 'int'. Don't call xalloc_die.
76882         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76883         to 'int'.
76884         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76885         'int'.
76886         (gl_array_oset_implementation): Update.
76887         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76888         gl_tree_create_empty.
76889         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76890         'int'.
76891         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76892         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76893         xmalloc.
76894         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76895         not xmalloc.
76896         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76897         xmalloc.
76898         (gl_avltree_oset_implementation): Update.
76899         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76900         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76901         xmalloc.
76902         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76903         not xmalloc.
76904         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76905         xmalloc.
76906         (gl_rbtree_oset_implementation): Update.
76907         * modules/array-oset (Depends-on): Remove xalloc.
76908         * modules/avltree-oset (Depends-on): Likewise.
76909         * modules/rbtree-oset (Depends-on): Likewise.
76910         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76911         * tests/test-avltree_oset.c: Likewise.
76912         * tests/test-rbtree_oset.c: Likewise.
76913         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76914         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76915         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76916         * NEWS: Mention the change.
76918 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76920         maint.mk: allow a project to override release-prep commands
76921         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76922         commands into a new rule.
76923         (release-prep): New rule.
76924         (release-prep-hook): New overridable variable.
76926 2009-12-13  Bruno Haible  <bruno@clisp.org>
76928         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76930 2009-12-13  Jim Meyering  <meyering@redhat.com>
76932         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76933         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76935 2009-12-12  Bruno Haible  <bruno@clisp.org>
76937         duplocale: Tweak.
76938         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76940 2009-12-12  Karl Berry  <karl@gnu.org>
76942         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76944 2009-12-12  Bruno Haible  <bruno@clisp.org>
76946         * m4/po.m4: Undo incorrect untabification.
76948 2009-12-12  Bruno Haible  <bruno@clisp.org>
76950         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76951         * modules/c-strtod (Depends-on): Add locale.
76952         * modules/c-strtold (Depends-on): Likewise.
76954 2009-12-12  Bruno Haible  <bruno@clisp.org>
76956         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76958 2009-12-11  Eric Blake  <ebb9@byu.net>
76960         setenv: relax requirement in light of POSIX ruling
76961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76962         not NULL.
76963         * tests/test-setenv.c (main): Relax test.
76964         * tests/test-unsetenv.c (main): Likewise.
76965         * doc/posix-functions/setenv.texi (setenv): Document this.
76966         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76968 2009-12-11  Bruno Haible  <bruno@clisp.org>
76970         New module 'fd-safer-flag'.
76971         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76972         * lib/dup-safer.c (dup_safer_flag): Remove function.
76973         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76974         * lib/fd-safer.c (fd_safer_flag): Remove function.
76975         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76976         * modules/cloexec (configure.ac): Drop indicator macro.
76977         * modules/fd-safer-flag: New file.
76978         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76979         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76980         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76982 2009-12-11  Bruno Haible  <bruno@clisp.org>
76984         Tests for module 'nl_langinfo'.
76985         * modules/nl_langinfo-tests: New file.
76986         * tests/test-nl_langinfo.sh: New file.
76987         * tests/test-nl_langinfo.c: New file.
76989         New module 'nl_langinfo'.
76990         * lib/nl_langinfo.c: New file.
76991         * m4/nl_langinfo.m4: New file.
76992         * modules/nl_langinfo: New file.
76993         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76995 2009-12-11  Bruno Haible  <bruno@clisp.org>
76997         Tests for module 'langinfo'.
76998         * modules/langinfo-tests: New file.
76999         * tests/test-langinfo.c: New file.
77001         New module 'langinfo'.
77002         * lib/langinfo.in.h: New file.
77003         * m4/langinfo_h.m4: New file.
77004         * modules/langinfo: New file.
77005         * doc/posix-headers/langinfo.texi: Mention the new module.
77007 2009-12-11  Bruno Haible  <bruno@clisp.org>
77009         * lib/config.charset: Untabify.
77011 2009-12-11  Bruno Haible  <bruno@clisp.org>
77013         * modules/unistd-safer (configure.ac): Drop indicator macro.
77015 2009-12-11  Bruno Haible  <bruno@clisp.org>
77017         Move pipe2-safer code to its own file.
77018         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77019         * lib/pipe-safer.c (pipe2_safer): Remove function.
77020         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77021         (Makefile.am): Add it to lib_SOURCES.
77023 2009-12-10  Bruno Haible  <bruno@clisp.org>
77025         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77027 2009-12-10  Bruno Haible  <bruno@clisp.org>
77029         Declare which arguments expect non-NULL values, for GCC and clang.
77030         * build-aux/arg-nonnull.h: New file.
77031         * modules/arg-nonnull: New file.
77032         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77033         (inet_ntop, inet_pton): Use it.
77034         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77035         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77036         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77037         (open, openat): Use it.
77038         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77039         (fnmatch): Use it.
77040         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77041         (getopt, getopt_long, getopt_long_only): Use it.
77042         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77043         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77044         Use it.
77045         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77046         (iconv_open): Use it.
77047         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77048         (strtoimax, strtoumax): Use it.
77049         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77050         (duplocale): Use it.
77051         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77052         (frexp, frexpl): Use it.
77053         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77054         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77055         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77056         (tsearch, tfind, tdelete, twalk): Use it.
77057         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77058         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77059         sigpending): Use it.
77060         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77061         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77062         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77063         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77064         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77065         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77066         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77067         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77068         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77069         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77070         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77071         Use it.
77072         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77073         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77074         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77075         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77076         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77077         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77078         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77079         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77080         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77081         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77082         strtoull, unsetenv): Use it.
77083         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77084         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77085         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77086         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77087         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77088         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77089         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77090         (strcasecmp, strncasecmp): Use it.
77091         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77092         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77093         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77094         rpl_setsockopt): Use it.
77095         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77096         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77097         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77098         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77099         (gettimeofday): Use it.
77100         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77101         (times): Use it.
77102         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77103         (uname): Use it.
77104         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77105         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77106         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77107         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77108         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77109         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77110         unlinkat, write): Use it.
77111         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77112         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77113         * lib/argv-iter.h: Include arg-nonnull.h.
77114         (_ATTRIBUTE_NONNULL_): Remove macro.
77115         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77116         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77117         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77118         optimization.
77119         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77120         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77121         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77122         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77123         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77124         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77125         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77126         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77127         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77128         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77129         * modules/dirent (Depends-on): Add arg-nonnull.
77130         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77131         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77132         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77133         * modules/fnmatch (Depends-on): Add arg-nonnull.
77134         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77135         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77136         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77137         * modules/glob (Depends-on): Add arg-nonnull.
77138         (Makefile.am): Insert arg-nonnull.h into glob.h.
77139         * modules/iconv_open (Depends-on): Add arg-nonnull.
77140         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77141         * modules/inttypes (Depends-on): Add arg-nonnull.
77142         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77143         * modules/locale (Depends-on): Add arg-nonnull.
77144         (Makefile.am): Insert arg-nonnull.h into locale.h.
77145         * modules/math (Depends-on): Add arg-nonnull.
77146         (Makefile.am): Insert arg-nonnull.h into math.h.
77147         * modules/netdb (Depends-on): Add arg-nonnull.
77148         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77149         * modules/search (Depends-on): Add arg-nonnull.
77150         (Makefile.am): Insert arg-nonnull.h into search.h.
77151         * modules/signal (Depends-on): Add arg-nonnull.
77152         (Makefile.am): Insert arg-nonnull.h into signal.h.
77153         * modules/spawn (Depends-on): Add arg-nonnull.
77154         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77155         * modules/stdio (Depends-on): Add arg-nonnull.
77156         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77157         * modules/stdlib (Depends-on): Add arg-nonnull.
77158         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77159         * modules/string (Depends-on): Add arg-nonnull.
77160         (Makefile.am): Insert arg-nonnull.h into string.h.
77161         * modules/strings (Depends-on): Add arg-nonnull.
77162         (Makefile.am): Insert arg-nonnull.h into strings.h.
77163         * modules/sys_socket (Depends-on): Add arg-nonnull.
77164         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77165         * modules/sys_stat (Depends-on): Add arg-nonnull.
77166         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77167         * modules/sys_time (Depends-on): Add arg-nonnull.
77168         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77169         * modules/sys_times (Depends-on): Add arg-nonnull.
77170         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77171         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77172         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77173         * modules/time (Depends-on): Add arg-nonnull.
77174         (Makefile.am): Insert arg-nonnull.h into time.h.
77175         * modules/unistd (Depends-on): Add arg-nonnull.
77176         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77177         * modules/wchar (Depends-on): Add arg-nonnull.
77178         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77179         * modules/argv-iter (Depends-on): Add arg-nonnull.
77180         * tests/test-canonicalize.c (null_ptr): New function.
77181         (main): Use it.
77182         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77183         (main): Use it.
77184         * tests/test-memmem.c (null_ptr): New function.
77185         (main): Use it.
77186         Reported by Jim Meyering.
77188 2009-12-10  Bruno Haible  <bruno@clisp.org>
77190         Use spaces for indentation, not tabs.
77191         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77192         * m4/*.m4: Untabify.
77193         * build-aux/*.h: Untabify.
77194         * tests/**/*.[hc]: Untabify.
77195         * README: New section "Indent with spaces, not TABs", based on
77196         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77197         * NEWS: Mention the change.
77199 2009-12-10  Bruno Haible  <bruno@clisp.org>
77201         pty test: Fix link error.
77202         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77203         test_pty_LDADD.
77205 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77207         * modules/pty: New file.
77208         * modules/pty-tests: New file.
77209         * m4/pty.m4: New file.
77210         * tests/test-pty.c: New file.
77211         * doc/glibc-headers/pty.texi: Modified.
77212         * doc/glibc-functions/forkpty.texi: Modified.
77213         * doc/glibc-functions/openpty.texi: Modified.
77215 2009-12-10  Bruno Haible  <bruno@clisp.org>
77217         Avoid syntax error in C++ mode.
77218         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77220 2009-12-10  Bruno Haible  <bruno@clisp.org>
77222         Use sed with option -e.
77223         * gnulib-tool (func_version, func_emit_copyright_notice,
77224         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77225         option -e to sed.
77226         * modules/link-warning (Makefile.am): Likewise.
77228 2009-12-10  Jim Meyering  <meyering@redhat.com>
77230         mgetgroups: do not write bytes beyond end of malloc'd buffer
77231         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77232         username, we call getgroups with a one-element-shorter buffer,
77233         but still told it the length was original, max_n_groups.
77235 2009-12-09  Eric Blake  <ebb9@byu.net>
77237         cloexec: relax license
77238         * modules/cloexec (Maintainer): Add myself.
77239         (License): Use LGPL, not GPL.
77241         link-warning: optimize generation
77242         * modules/link-warning (Makefile.am): Reduce process usage.
77244 2009-12-09  Bruno Haible  <bruno@clisp.org>
77246         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77247         workaround was added on 2009-11-17.
77249 2009-12-09  Jim Meyering  <meyering@redhat.com>
77250             Bruno Haible  <bruno@clisp.org>
77252         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77253         * modules/link-warning (Makefile.am): Make the comment-removing sed
77254         command more robust in the face of bootstrap-prepended comment lines.
77256 2009-12-09  Bruno Haible  <bruno@clisp.org>
77258         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77259         most one group.
77261 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77262             Bruno Haible  <bruno@clisp.org>
77264         * build-aux/link-warning.h: Add copyright notice.
77265         * modules/link-warning (Makefile.am): Generate link-warning.h from
77266         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77267         * NEWS: Mention change in link-warning module.
77268         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77269         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77270         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77271         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77272         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77273         * modules/math (Makefile.am): Add dependency to math.h.
77274         * modules/search (Makefile.am): Add dependency to search.h.
77275         * modules/signal (Makefile.am): Add dependency to signal.h.
77276         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77277         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77278         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77279         * modules/string (Makefile.am): Add dependency to string.h.
77280         * modules/strings (Makefile.am): Add dependency to strings.h.
77281         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77282         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77283         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77284         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77285         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77286         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77287         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77288         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77289         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77291 2009-12-09  Bruno Haible  <bruno@clisp.org>
77293         fchdir: Optimize away rpl_fstat when possible.
77294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77295         REPLACE_OPEN_DIRECTORY.
77296         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77298 2009-12-09  Bruno Haible  <bruno@clisp.org>
77300         * lib/fchdir.c: Update comment.
77302 2009-12-09  Bruno Haible  <bruno@clisp.org>
77304         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77306 2009-12-08  Eric Blake  <ebb9@byu.net>
77308         fchdir: avoid memory leak on re-registration.
77309         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77311 2009-12-08  Jim Meyering  <meyering@redhat.com>
77313         init.sh: avoid Solaris 10 /bin/sh portability problem
77314         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77315         sourced script:
77316           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77317           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77318           bar
77319         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77320         and two tests used that idiom.
77321         * tests/init.sh: Update suggested usage comments.
77322         (path_prepend_): New function, to be used in place
77323         of the --src-path=DIR option.
77324         (setup_): Move PATH-prepending code into path_prepend_.
77325         * tests/test-pread.sh: Adapt to new usage.
77326         * tests/test-xalloc-die.sh: Likewise.
77328 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77330         * doc/gnulib.texi (Glibc pty.h): Add.
77331         * doc/glibc-functions/forkpty.texi: Add.
77332         * doc/glibc-functions/openpty.texi: Add.
77333         Suggested by Bruno Haible.
77335 2009-12-08  Eric Blake  <ebb9@byu.net>
77337         fchdir: fix logic bugs
77338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77339         * tests/test-fchdir.c (main): Enhance test.
77340         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77341         is in use.
77343         dup2: fix logic bugs
77344         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77345         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77346         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77347         exists.
77348         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77350 2009-12-07  Eric Blake  <ebb9@byu.net>
77352         unlink: fix m4 detection
77353         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77355         unistd-safer: add unit test
77356         * modules/unistd-safer-tests: New file.
77357         * tests/test-dup-safer.c: Likewise.
77358         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77359         * tests/test-dup2.c (setmode): Likewise.
77360         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77362         cloexec: preserve text vs. binary across dup_cloexec
77363         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77364         mode.
77365         * modules/dup2-tests (Depends-on): Add binary-io.
77366         * modules/cloexec-tests (Depends-on): Likewise.
77367         * tests/test-dup2.c (setmode, is_mode): New helpers.
77368         (main): Add tests that translation mode is preserved.
77369         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77370         Reported by Bruno Haible.
77372         mgetgroups: reduce duplicate listings
77373         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77374         resulting array.
77375         * tests/test-chown.h (test_chown): Simplify client.
77376         * tests/test-lchown.h (test_lchown): Likewise.
77378 2009-12-06  Bruno Haible  <bruno@clisp.org>
77380         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77381         value.
77383 2009-12-06  Bruno Haible  <bruno@clisp.org>
77385         * lib/progname.c: Include stdio.h, stdlib.h.
77386         (set_program_name): Reject a NULL argument.
77388 2009-12-05  Eric Blake  <ebb9@byu.net>
77390         pipe2-safer: new module
77391         * modules/pipe2-safer: New file.
77392         * lib/unistd-safer.h (pipe2_safer): New prototype.
77393         * lib/unistd--.h (pipe2): New wrapper.
77394         * lib/pipe-safer.c (pipe2_safer): New function.
77395         * modules/pipe (Depends-on): Add pipe2-safer.
77396         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77398         stdlib-safer: preserve cloexec flag for mkostemp[s]
77399         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77400         fd_safer_flag.
77402         unistd-safer: allow preservation of cloexec status via flag
77403         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77404         prototypes.
77405         * lib/dup-safer.c (dup_safer_flag): New function.
77406         * lib/fd-safer.c (fd_safer_flag): Likewise.
77407         * modules/cloexec (configure.ac): Set witness.
77409         test-dup2: enhance test
77410         * modules/dup2-tests (Depends-on): Add cloexec.
77411         * tests/test-dup2.c (main): Enhance test.
77413         cloexec: add dup_cloexec
77414         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77415         header and comments.
77416         * lib/cloexec.c (set_cloexec_flag): Add comments.
77417         (dup_cloexec): New function, with mingw implementation borrowed
77418         from...
77419         * lib/w32spawn.h (dup_noinherit): ...here.
77420         * modules/execute (Depends-on): Add cloexec.
77421         * modules/pipe (Depends-on): Likewise.
77422         * modules/cloexec (Depends-on): Add dup2.
77423         * modules/cloexec-tests (Files): New file.
77424         * tests/test-cloexec.c: Likewise.
77426         test-xalloc-die: fix test for mingw
77427         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77428         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77429         directory and .exe suffix off argv[0] output.
77431         test-fseeko: fix test for mingw
77432         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77433         than undefining fseek, so test will pass on mingw.
77435 2009-12-05  Bruno Haible  <bruno@clisp.org>
77437         * lib/progname.h (set_program_name): Clarify specification.
77438         * lib/progname.c (set_program_name): Likewise.
77439         Reported by Jim Meyering.
77441 2009-12-05  Jim Meyering  <meyering@redhat.com>
77443         maint.mk: backslash-escape parens in default regexp
77444         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77445         backslash-escape the literal parentheses.
77447         maint.mk: news-date-check: use grep -E
77448         * top/maint.mk (today): Define a Make variable, not a...
77449         (news-date-check): ...shell variable.
77450         (news-date-regexp): Use the Make variable.
77451         Use grep's -E option.  Change the failing diagnostic to mention
77452         the variable, $(news-date-regexp).
77454 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77456         maintainer-makefile: allow customization of NEWS entry format
77457         * top/maint.mk (news-date-regexp): New overridable variable.
77458         (news-date-check): Use it.
77460 2009-12-04  Eric Blake  <ebb9@byu.net>
77462         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77463         * lib/mgetgroups.h (xgetgroups): New prototype.
77464         * lib/mgetgroups.c (xgetgroups): New wrapper.
77465         (mgetgroups): Handle ENOSYS.
77466         * modules/mgetgroups (Depends-on): Add realloc.
77467         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77469         mgetgroups: avoid argument promotion issues with -1
77470         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77471         for invalid gid_t.
77472         * tests/test-chown.h (getegid, test_chown): Likewise.
77473         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77475 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77477         exclude: Fix header file problems.
77478         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77480 2009-12-01  Jim Meyering  <meyering@redhat.com>
77482         fts: fts_open: do not let an empty string cause immediate failure
77483         This is required in support of GNU rm, for which the command
77484         "rm A '' B" must process and remove both A and B, in spite of
77485         the empty string argument.
77486         * lib/fts.c (fts_open): Do not let the presence of an empty string
77487         cause fts_open to fail immediately.  Most fts-using tools must be
77488         able to process all arguments, in order, and can be expected to
77489         diagnose such arguments themselves.
77491 2009-11-30  Eric Blake  <ebb9@byu.net>
77493         utimens: fix compilation error
77494         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77495         Declare variable at right scope.
77497 2009-11-29  Jim Meyering  <meyering@redhat.com>
77499         bootstrap: handle perl-5.11's changed --version output
77500         * build-aux/bootstrap (get_version): Handle perl separately,
77501         since perl-5.11's --version output is different.
77503 2009-11-28  Jim Meyering  <meyering@redhat.com>
77505         userspec: depend on the inttostr module, too
77506         * modules/userspec (Depends-on): Add inttostr.
77508         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77509         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77510         number of MAXUID when it evaluates to (uid_t) -1.
77511         Likewise for group ID.  Reported by Matt McCutchen in
77512         <http://savannah.gnu.org/bugs/?28113>
77514         userspec: reformat to use spaces, not TABs
77515         * lib/userspec.c: Expand TABs to spaces.
77516         Add Emacs' "indent-tabs-mode: nil" hint.
77518 2009-11-27  Eric Blake  <ebb9@byu.net>
77520         getopt-gnu: flush out another BSD bug
77521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77522         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77523         flush out BSD bug.
77524         * tests/test-getopt.h (test_getopt): End lists with NULL.
77525         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77526         (test_getopt_long_posix): Enhance test.
77527         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77528         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77529         getopt-gnu.
77530         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77531         Likewise.
77533 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77535         * modules/idpriv-droptemp-tests (Notice): Fix text.
77537 2009-11-27  Jim Meyering  <meyering@redhat.com>
77539         test-xalloc-die: avoid spurious failure due to libtool argv difference
77540         In a libtool-enabled project, this test would fail due to a difference
77541         in the emitted program name, e.g.,
77542         -test-xalloc-die: memory exhausted
77543         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77544         Use program to avoid that.
77545         * modules/xalloc-die-tests (Depends-on): Add progname.
77546         * tests/test-xalloc-die.c: Include progname.h".
77547         (program_name): Remove decl.
77548         (main): Call set_program_name.
77549         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77551 2009-11-26  Richard Jones  <rjones@redhat.com>
77553         w32sock: leave win32 error in place.
77554         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77556 2009-11-26  Eric Blake  <ebb9@byu.net>
77558         init.sh: suggest to use skip_ and fail_ functions in comments
77559         * tests/init.sh: Add a sentence.
77561 2009-11-25  Bruno Haible  <bruno@clisp.org>
77563         init.sh: add documentation in comments
77564         * tests/init.sh: Add some developer and user documentation.
77566 2009-11-26  Jim Meyering  <meyering@redhat.com>
77568         init.sh: accommodate even those who specify bogus srcdir manually
77569         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77570         configure-time tests to be sanitized, so that there is no need to
77571         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77572         (with no double quotes) suffices.  However, since tests may be
77573         invoked manually, and since you may explicitly set srcdir to the
77574         name of a directory containing spaces, do quote its uses here.
77575         * tests/test-pread.sh: Likewise.
77576         Suggested by Bruno Haible.
77578         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77579         * tests/test-pread.sh: Write no data into the pipe, because
77580         test-pread actually reads none.  This avoids a diagnostic,
77581         "bash: echo: write error: Broken pipe", that arises in the unusual
77582         event something is ignoring SIGPIPE, and might be interpreted
77583         as some sort of failure.  Reported by Bruno Haible.
77585 2009-11-25  Jim Meyering  <meyering@redhat.com>
77587         test-pread: cover failure with ESPIPE and EINVAL
77588         * tests/test-pread.c (main): Test for failure, too.
77589         * tests/test-pread.sh: Invoke with stdin on a pipe.
77590         Suggested by Eric Blake.
77592         pread: improvement and fix
77593         * modules/pread (Depends-on): Depend on lseek, for portability to
77594         e.g., mingw.  Suggested by Eric Blake.
77595         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77597         unistd.in.h: correct declaration of pread
77598         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77599         Reported by Richard W.M. Jones.
77601         test-pread.sh: distribute the test script
77602         * modules/pread-tests (Files): Include test-pread.sh.
77604         test-pread.sh: clean up
77605         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77606         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77607         That is unnecessary, since it's always ".".
77608         Suggestion from Eric Blake.
77610         test-pread.sh: make executable
77611         * tests/test-pread.sh: Set executable bit.
77612         Reported by Eric Blake.
77614         correct typo in test-pread.sh
77615         * tests/test-pread.sh: Add #! line.
77617         test pread
77618         * tests/test-pread.c: New file.
77619         * tests/test-pread.sh: Likewise.
77620         * modules/pread-tests: Likewise.
77622         pread: new module
77623         * modules/pread: New file.
77624         * lib/unistd.in.h (pread): Define/declare.
77625         * lib/pread.c (pread): New file.
77626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77627         * modules/unistd (Makefile.am): Substitute witnesses.
77628         * doc/posix-functions/pread.texi (pread): Update.
77629         * MODULES.html.sh: Add pread.
77631 2009-11-25  Jim Meyering  <meyering@redhat.com>
77633         tests/init.sh: new file to be used via most *.sh tests
77634         * tests/init.sh: New file.
77636 2009-11-25  Eric Blake  <ebb9@byu.net>
77638         utimens: work around older Linux failure with symlinks
77639         * lib/utimens.c (lutimensat_works_really): New variable.
77640         (fdutimens, lutimens): Use it to manage kernels that support
77641         nanosecond times on files, but not on symlinks.
77642         Reported by Ondřej Vašík.
77644         utimes: fix configure grammar
77645         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77647 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77649         regex: Fix fastmap for multibyte character ranges.
77650         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77651         characters when a multibyte character range is included.
77653 2009-11-22  Andy Wingo  <wingo@pobox.com>
77655         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77656         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77658 2009-11-24  Bruno Haible  <bruno@clisp.org>
77660         doc: Most *_l functions exist in MacOS X 10.5.
77661         * doc/posix-functions/duplocale.texi: Update platforms list.
77662         * doc/posix-functions/freelocale.texi: Likewise.
77663         * doc/posix-functions/newlocale.texi: Likewise.
77664         * doc/posix-functions/uselocale.texi: Likewise.
77665         * doc/posix-functions/isalnum_l.texi: Likewise.
77666         * doc/posix-functions/isalpha_l.texi: Likewise.
77667         * doc/posix-functions/isblank_l.texi: Likewise.
77668         * doc/posix-functions/iscntrl_l.texi: Likewise.
77669         * doc/posix-functions/isdigit_l.texi: Likewise.
77670         * doc/posix-functions/isgraph_l.texi: Likewise.
77671         * doc/posix-functions/islower_l.texi: Likewise.
77672         * doc/posix-functions/isprint_l.texi: Likewise.
77673         * doc/posix-functions/ispunct_l.texi: Likewise.
77674         * doc/posix-functions/isspace_l.texi: Likewise.
77675         * doc/posix-functions/isupper_l.texi: Likewise.
77676         * doc/posix-functions/iswalnum_l.texi: Likewise.
77677         * doc/posix-functions/iswalpha_l.texi: Likewise.
77678         * doc/posix-functions/iswblank_l.texi: Likewise.
77679         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77680         * doc/posix-functions/iswctype_l.texi: Likewise.
77681         * doc/posix-functions/iswdigit_l.texi: Likewise.
77682         * doc/posix-functions/iswgraph_l.texi: Likewise.
77683         * doc/posix-functions/iswlower_l.texi: Likewise.
77684         * doc/posix-functions/iswprint_l.texi: Likewise.
77685         * doc/posix-functions/iswpunct_l.texi: Likewise.
77686         * doc/posix-functions/iswspace_l.texi: Likewise.
77687         * doc/posix-functions/iswupper_l.texi: Likewise.
77688         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77689         * doc/posix-functions/isxdigit_l.texi: Likewise.
77690         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77691         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77692         * doc/posix-functions/strcoll_l.texi: Likewise.
77693         * doc/posix-functions/strfmon_l.texi: Likewise.
77694         * doc/posix-functions/strftime_l.texi: Likewise.
77695         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77696         * doc/posix-functions/strxfrm_l.texi: Likewise.
77697         * doc/posix-functions/tolower_l.texi: Likewise.
77698         * doc/posix-functions/toupper_l.texi: Likewise.
77699         * doc/posix-functions/towctrans_l.texi: Likewise.
77700         * doc/posix-functions/towlower_l.texi: Likewise.
77701         * doc/posix-functions/towupper_l.texi: Likewise.
77702         * doc/posix-functions/wcscoll_l.texi: Likewise.
77703         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77704         * doc/posix-functions/wctrans_l.texi: Likewise.
77705         * doc/posix-functions/wctype_l.texi: Likewise.
77706         * doc/glibc-functions/strptime_l.texi: Likewise.
77707         * doc/glibc-functions/strtod_l.texi: Likewise.
77708         * doc/glibc-functions/strtof_l.texi: Likewise.
77709         * doc/glibc-functions/strtol_l.texi: Likewise.
77710         * doc/glibc-functions/strtold_l.texi: Likewise.
77711         * doc/glibc-functions/strtoll_l.texi: Likewise.
77712         * doc/glibc-functions/strtoul_l.texi: Likewise.
77713         * doc/glibc-functions/strtoull_l.texi: Likewise.
77714         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77715         * doc/glibc-functions/wcstod_l.texi: Likewise.
77716         * doc/glibc-functions/wcstof_l.texi: Likewise.
77717         * doc/glibc-functions/wcstol_l.texi: Likewise.
77718         * doc/glibc-functions/wcstold_l.texi: Likewise.
77719         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77720         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77721         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77723 2009-11-24  Bruno Haible  <bruno@clisp.org>
77725         duplocale: Fix logic bug.
77726         * lib/duplocale.c: Don't include <langinfo.h>.
77727         (_NL_LOCALE_NAME): Remove macro.
77728         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77729         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77731 2009-11-23  Jim Meyering  <meyering@redhat.com>
77733         test-update-copyright: don't hard-code /usr/bin/perl
77734         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77735         perl to print the current year.  Gilles Espinasse reported that
77736         the replaced use of perl was hard-coded as /usr/bin/perl.
77738 2009-11-23  Bruno Haible  <bruno@clisp.org>
77740         duplocale: Add support for glibc 2.3.x.
77741         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77743 2009-11-22  Bruno Haible  <bruno@clisp.org>
77745         vasnprintf: Tiny optimization.
77746         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77747         MacOS X.
77749 2009-11-22  Bruno Haible  <bruno@clisp.org>
77751         Tests for module 'duplocale'.
77752         * modules/duplocale-tests: New file.
77753         * tests/test-duplocale.c: New file.
77755         New module 'duplocale'.
77756         * m4/duplocale.m4: New file.
77757         * lib/locale.in.h (duplocale): New declaration.
77758         * lib/duplocale.c: New file.
77759         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77760         gl_LOCALE_H_DEFAULTS): New macros.
77761         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77762         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77763         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77764         REPLACE_DUPLOCALE.
77765         * modules/duplocale: New file.
77766         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77768 2009-11-22  Bruno Haible  <bruno@clisp.org>
77770         * modules/locale-tests (configure.ac): Test for newlocale function.
77771         * tests/test-locale.c: When the system has extended locale functions,
77772         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77774         locale: Make locale_t available when possible.
77775         * lib/locale.in.h: Include <xlocale.h> when it exists.
77776         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77777         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77778         * modules/locale (Depends-on): Add extensions.
77779         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77780         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77782 2009-11-22  Bruno Haible  <bruno@clisp.org>
77784         Add comments.
77785         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77786         invocation.
77787         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77788         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77789         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77791 2009-11-22  Bruno Haible  <bruno@clisp.org>
77793         error: account for the possibility of freopen (stdout).
77794         * lib/error.c: Include <unistd.h>.
77795         (flush_stdout): New function, extracted from error and error_at_line.
77796         Determine stdout's fd dynamically.
77797         (error, error_at_line): Invoke flush_stdout.
77798         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77799         * modules/error (Depends-on): Add unistd.
77801 2009-11-22  Bruno Haible  <bruno@clisp.org>
77803         diffseq: Add comment.
77804         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77806 2009-11-22  Jim Meyering  <meyering@redhat.com>
77808         c-stack: avoid defining an unused static function
77809         * lib/c-stack.c (find_stack_direction): Do not define this function
77810         when it will not be used.
77812         diffseq: avoid spurious gcc warnings
77813         * lib/diffseq.h (IF_LINT2): Define.
77814         (compareseq): Use it to initialize two members of "part".
77815         This avoids two used-uninitialized warnings.
77817 2009-11-21  Jim Meyering  <meyering@redhat.com>
77819         c-stack: avoid "ignoring return value of `write'" warning
77820         * lib/c-stack.c: Include "ignore-value.h".
77821         (die): Explicitly ignore each write return value.
77822         * modules/c-stack (Depends-on): Add ignore-value.
77824 2009-11-21  Bruno Haible  <bruno@clisp.org>
77826         diffseq: reduce scope of variable 'best'.
77827         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77828         variable, earlier used for two different purposes.
77830 2009-11-21  Jim Meyering  <meyering@redhat.com>
77832         diffseq: remove useless assignment to "best"
77833         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77834         assignment.  At that point "best" is already guaranteed to be zero.
77836 2009-11-20  Eric Blake  <ebb9@byu.net>
77838         build: mention ftp redirector in release announcements
77839         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77840         values that used to come from cfg.mk; mention FTP redirect URL.
77841         * build-aux/announce-gen: Mention the mirror list.
77842         Suggested by Karl Berry.
77844         nanosleep: improve port to mingw
77845         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77847         LIB_NANOSLEEP, but only when needed.
77848         * modules/select (Link): Document LIBSOCKET.
77849         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77850         enough.
77852         nanosleep: work around cygwin bug
77853         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77854         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77855         bug.
77856         (getnow): Delete, not needed.
77857         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77858         LIB_CLOCK_GETTIME.
77859         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77860         clock-time, gettime.
77861         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77862         bug.
77863         * modules/nanosleep-tests: New test.
77864         * tests/test-nanosleep.c: New file.
77866         sleep: work around cygwin bug
77867         * lib/sleep.c (rpl_sleep): Work around the bug.
77868         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77869         (gl_PREREQ_SLEEP): Delete unused macro.
77870         * modules/sleep (Depends-on): Add verify.
77871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77872         * modules/unistd (Makefile.am): Substitute witness.
77873         * lib/unistd.in.h (sleep): Update prototype.
77874         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77875         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77876         * modules/sleep-tests (Depends-on): Check for alarm.
77878 2009-11-20  Jim Meyering  <meyering@redhat.com>
77880         maint.mk: improve sc_prohibit_magic_number_exit
77881         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77882         so it does not match uses like System.exit(1).
77883         Add comments showing how to correct all offenders.
77885 2009-11-19  Eric Blake  <ebb9@byu.net>
77887         xalloc-die-tests: add missing library
77888         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77890         test-xvasprintf: silence compiler warnings
77891         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77892         empty string from gcc.
77894 2009-11-19  Jim Meyering  <meyering@redhat.com>
77896         xfreopen: new module, from coreutils
77897         * modules/xfreopen: New module.
77898         * lib/xfreopen.c: New file.
77899         * lib/xfreopen.h: New file.
77900         * MODULES.html.sh (File stream based Input/Output"): Add it.
77902 2009-11-19  Eric Blake  <ebb9@byu.net>
77904         manywarnings: depend on warnings
77905         * modules/manywarnings (Depends-on): Add warnings.
77907         build: avoid compiler warnings
77908         * lib/select.c (rpl_select): Delete unused variable.
77909         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77911 2009-11-18  Eric Blake  <ebb9@byu.net>
77913         tests: avoid false negative with --with-packager
77914         * tests/test-version-etc.sh: Discard packager information.
77915         * tests/test-argp-version-etc-1.sh: Likewise.
77916         Reported by Mike Frysinger.
77918         utimens: fix regression on Solaris
77919         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77920         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77921         can only change fd timestamps via futimesat.  Instead, use an
77922         additional witness macro to avoid BSD bug.
77923         Reported by Jim Meyering.
77925 2009-11-17  Eric Blake  <ebb9@byu.net>
77927         usleep: use it to simplify tests
77928         * modules/stat-time-tests (Depends-on): Add usleep.
77929         (configure.ac): Drop usleep check.
77930         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77931         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77932         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77933         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77934         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77935         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77936         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77937         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77938         Likewise.
77939         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77940         * tests/test-lchown.h (nap): Likewise.
77941         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77942         * tests/test-stat-time.c (nap): Likewise.
77943         * tests/test-utimens-common.h (nap): Update comments.
77945         usleep: new module
77946         * modules/usleep: New file.
77947         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77948         * lib/usleep.c (usleep): Likewise.
77949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77950         * modules/unistd (Makefile.am): Substitute witnesses.
77951         * lib/unistd.in.h (usleep): Add declaration.
77952         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77953         * MODULES.html.sh (Date and time): Likewise.
77954         * modules/usleep-tests (Depends-on): New test.
77955         * tests/test-usleep.c: New file.
77957         chown: work around OpenBSD bug
77958         * lib/chown.c (rpl_chown): Work around the bug.
77959         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77960         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77962         * modules/chown (Depends-on): Add stdbool.
77963         * modules/lchown (Depends-on): Likewise.
77964         * doc/posix-functions/chown.texi (chown): Document the bug.
77965         * doc/posix-functions/lchown.texi (lchown): Likewise.
77966         * tests/test-lchown.h (test_chown): Relax test.
77968         mkstemp: avoid conflict with C++ keyword template
77969         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77970         * lib/mkostemp.c (mkostemp): Likewise.
77971         * lib/mkostemps.c (mkostemps): Likewise.
77972         * lib/mkstemp.c (mkstemp): Likewise.
77973         * lib/mkstemps.c (mkstemps): Likewise.
77975         xalloc-die-tests: optimize
77976         * tests/test-xalloc-die.sh: Reduce number of processes.
77978 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77980         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77981         patch from ludo@gnu.org (Ludovic Courtès).
77983 2009-11-17  Jim Meyering  <meyering@redhat.com>
77985         version-etc: use proper license string
77986         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77987         * modules/version-etc-fsf: Likewise.
77989 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77991         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77992         printed to stdout.  Deal with EOL differences.
77994 2009-11-17  Eric Blake  <ebb9@byu.net>
77996         unsetenv: work around Solaris bug
77997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77998         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77999         Reported by Jim Meyering.
78001         vasnprintf: avoid compiler warnings
78002         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78003         variables.
78004         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78006 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78008         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78009         settings since xalloc-die is no longer the self test,
78010         xalloc-die.sh is.
78012 2009-11-17  Jim Meyering  <meyering@redhat.com>
78014         test-xalloc-die.sh: make the code agree with the commit log
78015         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78016         at the end, just in case you happen to have a test-xalloc-die
78017         program in some other PATH directory.
78019         test-xalloc-die.sh: fix a portability bug
78020         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78021         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78022         Otherwise, argv[0] (as often seen in diagnostics) would be too
78023         system-dependent, sometimes with, and sometimes without the leading "./".
78025         version-etc-fsf: relax license to LGPLv3+
78026         * modules/version-etc-fsf (License): Relax license.
78028 2009-11-16  Eric Blake  <ebb9@byu.net>
78030         xalloc-die-tests: avoid printing null pointer
78031         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78032         shell script.
78033         * tests/test-xalloc-die.c (program_name): Declare.
78034         * tests/test-xalloc-die.sh (tmpfiles): New file.
78036         setenv, unsetenv: work around various bugs
78037         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78038         (setenv) [HAVE_SETENV]: Work around bugs.
78039         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78041         for bugs.
78042         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78043         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78045         * modules/stdlib (Makefile.am): Update substitutions.
78046         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78047         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78048         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78049         * modules/setenv-tests: New test.
78050         * modules/unsetenv-tests: Likewise.
78051         * tests/test-setenv.c: New file.
78052         * tests/test-unsetenv.c: Likewise.
78054 2009-11-16  Jim Meyering  <meyering@redhat.com>
78056         version-etc: relax license to LGPLv3+
78057         * modules/version-etc (License): Relax license.
78059         better AC_REQUIRE expanded-before-required-warning avoidance
78060         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78061         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78062         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78063         which is no longer needed.
78065 2009-11-16  Eric Blake  <ebb9@byu.net>
78067         test-freading: clean up temporary file
78068         * tests/test-freading.c (main): Remove file on success, and use
78069         ASSERT more liberally.
78070         Reported by Jim Meyering.
78072 2009-11-16  Jim Meyering  <meyering@redhat.com>
78074         avoid new AC_REQUIRE expanded-before-required warnings
78075         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78076         merely using it.
78077         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78078         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78080 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78082         * tests/test-xalloc-die.c: New file.
78083         * modules/xalloc-die-tests: New file.
78084         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78085         XFAIL_TESTS so it can be appended by modules.
78087 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78089         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78090         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78092 2009-11-14  Eric Blake  <ebb9@byu.net>
78094         fnmatch: avoid compiler warning
78095         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78096         to silence compiler warning about mismatch signedness in ?:.
78097         Reported by Robert Millan.
78099         intprops: add double-inclusion guard
78100         * lib/intprops.h: Allow idempotent includes.
78101         Suggested by Bruce Korb.
78103         openat: detect Solaris fchownat bug
78104         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78105         penalizing glibc chownat when only lchownat is broken.
78106         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78107         trailing slash bugs.
78108         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78109         * modules/openat-tests (Files): Include more files.
78110         (Depends-on): Add mgetgroups, sleep, stat-time.
78111         (configure.ac): Add additional checks.
78112         (Makefile.am): Build new test.
78113         * tests/test-fchownat.c: New file.
78115         lchown: detect Solaris and FreeBSD bug
78116         * lib/lchown.c (rpl_lchown): Work around bug.
78117         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78119         * modules/unistd (Makefile.am): Populate it.
78120         * lib/unistd.in.h (lchown): Update declaration.
78121         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78122         * modules/lchown-tests: New file.
78123         * tests/test-lchown.h (test_lchown): Likewise.
78124         * tests/test-lchown.c (main): Likewise.
78126         chown: detect Solaris and FreeBSD bug
78127         * lib/chown.c (rpl_chown): Work around bug.
78128         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78129         (gl_PREREQ_CHOWN): Delete.
78130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78131         * modules/unistd (Makefile.am): Populate it.
78132         * lib/unistd.in.h (chown): Update declaration.
78133         * lib/lchown.c (chown): Update client.
78134         * modules/lchown (Depends-on): Add lstat.
78135         * doc/posix-functions/chown.texi (chown): Document the bug.
78136         * doc/posix-functions/getgroups.texi (getgroups): Document
78137         getgroups pitfall.
78138         * modules/chown-tests: New file.
78139         * tests/test-chown.h (test_chown): Likewise.
78140         * tests/test-chown.c (main): Likewise.
78142 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78144         gnulib-tool: correctly detect absence of m4 directories
78145         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78147 2009-11-14  Jim Meyering  <meyering@redhat.com>
78149         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78150         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78152 2009-11-14  John W. Eaton  <jwe@gnu.org>
78154         strftime.h: wrap function declaration in extern "C" block
78155         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78157 2009-11-13  Eric Blake  <ebb9@byu.net>
78159         getgroups: avoid compiler warning
78160         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78162         getgroups: work around FreeBSD bug
78163         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78164         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78165         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78166         * tests/test-getgroups.c (main): Fix buffer overrun.
78168         getgroups: avoid compilation failure
78169         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78170         * modules/getgroups (Depends-on): Add stdint.
78172 2009-11-13  Jim Meyering  <meyering@redhat.com>
78174         test-getgroups: avoid compilation failure
78175         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78177 2009-11-13  Eric Blake  <ebb9@byu.net>
78179         mgetgroups: new module, taken from coreutils
78180         * modules/mgetgroups: New file.
78181         * lib/mgetgroups.h: Likewise.
78182         * lib/mgetgroups.c (mgetgroups): Likewise.
78183         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78184         * MODULES.html.sh (Users and groups): Mention it.
78186         getgroups: don't expose GETGROUPS_T to user
78187         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78188         an element at a time if GETGROUPS_T is wrong size.
78189         * lib/getugroups.h (getugroups): Change signature.
78190         * lib/unistd.in.h (getgroups): Likewise.
78191         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78192         signature needs fixing.
78193         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78194         AC_TYPE_GETGROUPS.
78195         * modules/group-member (Depends-on): Add getgroups.
78196         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78197         (group_member): Rely on getgroups replacement.
78198         * lib/getugroups.c (getugroups): Use gid_t.
78199         * tests/test-getgroups.c (main): Likewise.
78200         * NEWS: Mention the signature change.
78201         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78202         problem with signature.
78203         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78204         GETGROUPS_T is still useful for setgroups.
78206         getgroups, getugroups: provide stubs for mingw
78207         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78208         * lib/getugroups.c (getugroups): Likewise.
78209         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78210         function.  Modernize replacement scheme.
78211         (gl_PREREQ_GETGROUPS): Delete.
78212         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78213         * modules/getgroups (configure.ac): Declare witness.
78214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78215         * modules/unistd (Depends-on): Substitute witness.
78216         * lib/unistd.in.h (getgroups): Declare replacement.
78218         getgroups: avoid calling exit
78219         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78220         drop xalloc.
78221         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78222         dependencies.
78223         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78224         exiting, in the rare case of malloc failure.
78226         getgroups: fix logic error
78227         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78228         has more than 20 groups.
78229         * modules/getgroups-tests: New test.
78230         * tests/test-getgroups.c: New file.
78232 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78234         * tests/test-base64.c: Improve.
78236 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78238         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78239         Blake <ebb9@byu.net>.
78241 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78243         * tests/test-xvasprintf.c: Add %s%s related checks.
78245 2009-11-12  Eric Blake  <ebb9@byu.net>
78247         version-etc: match standards.texi style
78248         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78249         and use <> only for URLs.
78251 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78253         fts: do not fail on a submount during traversal
78254         * lib/fts.c (fts_build): Read the stat info again after opening
78255         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78256         Original report at http://bugzilla.redhat.com/501848.
78258 2009-11-12  Jim Meyering  <meyering@redhat.com>
78260         bootstrap: sync from coreutils
78261         * build-aux/bootstrap (bootstrap_epilogue): New function.
78262         Use git_modules_config in one more place.  This make bootstrap's
78263         --gnulib-srcdir option more useful for testing.
78265         bootstrap: generalize autoheader check
78266         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78267         AC_CONFIG_HEADERS.
78269 2009-11-11  Eric Blake  <ebb9@byu.net>
78271         mkfifoat: use new modules for Solaris and BSD bugs
78272         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78273         * lib/mkfifoat.c (mknodat): Split...
78274         * lib/mknodat.c (mknodat): ...into new file.
78275         * modules/mkfifoat (Files): Ship new file.
78276         (Depends-on): Add mkfifo, mknod.
78277         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78278         (Depends-on): Add symlink.
78279         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78280         redundant with test_mkfifo.h.
78281         (do_mkfifoat, do_mknodat): New helpers.
78283         mknod: new module
78284         * modules/mknod: New file.
78285         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78286         * lib/mknod.c (mknod): Likewise.
78287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78288         defaults.
78289         * modules/sys_stat (Makefile.am): Substitute them.
78290         * lib/sys_stat.in.h (mknod): Declare replacement.
78291         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78292         Document it.
78293         * doc/posix-functions/mknod.texi (mknod): Likewise.
78294         * modules/mknod-tests: New test.
78295         * tests/test-mknod.c: Likewise.
78297         mkfifo: new module
78298         * modules/mkfifo: New file.
78299         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78300         * lib/mkfifo.c (mkfifo): Likewise.
78301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78302         defaults.
78303         * modules/sys_stat (Makefile.am): Substitute them.
78304         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78305         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78306         Document it.
78307         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78308         * modules/mkfifo-tests: New test.
78309         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78310         from test-mkfifoat.c.
78311         * tests/test-mkfifo.c: New file.
78313         readlink: detect FreeBSD bug
78314         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78315         slash on symlink.
78316         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78317         * tests/test-readlink.h (test_readlink): Enhance test.
78319         symlink: detect FreeBSD bug
78320         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78321         slash on symlink.
78322         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78323         * tests/test-symlink.h (test_symlink): Enhance test.
78325 2009-11-10  Eric Blake  <ebb9@byu.net>
78327         link: detect FreeBSD bug
78328         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78329         symlink.
78330         * doc/posix-functions/link.texi (link): Document the bug.
78331         * tests/test-link.h (test_link): Enhance test.
78332         * tests/test-linkat.c (main): Update caller.
78334         unlink, remove: detect FreeBSD bug
78335         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78336         slash on symlink.
78337         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78338         * doc/posix-functions/remove.texi (remove): Likewise.
78339         * tests/test-unlink.h (test_unlink): Enhance test.
78340         * tests/test-remove.c (main): Likewise.
78342 2009-11-09  Eric Blake  <ebb9@byu.net>
78344         rename: detect FreeBSD bug
78345         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78346         slash on symlink.
78347         * modules/renameat-tests (Depends-on): Add filenamecat.
78348         * tests/test-rename.h (test_rename): Allow one more errno.
78349         * tests/test-renameat.c (main): Likewise.
78350         * doc/posix-functions/rename.texi (rename): Document the bug.
78352         open: detect FreeBSD bug
78353         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78354         symlink.
78355         * doc/posix-functions/open.texi (open): Document the bug.
78356         * doc/posix-functions/utimes.texi (utimes): Likewise.
78357         * tests/test-open.h (test_open): Add parameters, and test symlink
78358         handling.
78359         * tests/test-open.c (main): Adjust caller.
78360         * tests/test-fcntl-safer.c (main): Likewise.
78361         * modules/open-tests (Depends-on): Add stdbool, symlink.
78362         * modules/fcntl-safer-tests (Depends-on): Likewise.
78363         * tests/test-openat.c (main): Add test-open tests.
78365         stat: detect FreeBSD bug
78366         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78367         symlink.
78368         * doc/posix-functions/stat.texi (stat): Document the bug.
78369         * tests/test-stat.h (test_stat_func): Add argument.
78370         * tests/test-stat.c (main): Adjust caller.
78371         * tests/test-fstatat.c (main): Likewise.
78372         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78373         Reported by Jim Meyering.
78375 2009-11-09  James Youngman  <jay@gnu.org>
78377         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78378         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78380 2009-11-08  Jim Meyering  <meyering@redhat.com>
78382         utimens: remove invalid futimesat call
78383         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78384         It used the file descriptor of the target file as the DIR_FD
78385         parameter and NULL as the file name.  That caused failure with
78386         errno == EFAULT on FreeBSD-8.0-rc2
78388 2009-11-07  Eric Blake  <ebb9@byu.net>
78390         fflush, freadseek: use fseeko, not fseek
78391         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78392         (clear_ungetc_buffer): Avoid potential problems on large files.
78393         * lib/freadseek.c (freadseek): Likewise.
78394         * modules/freadseek (Depends-on): Add fseeko.
78395         * modules/fseek (configure.ac): Set a witness.
78396         * tests/test-fflush.c (main): Use fseeko.
78397         * tests/test-fpurge.c (fseek): Disable link warning.
78398         * tests/test-freadable.c (fseek): Likewise.
78399         * tests/test-freading.c (fseek): Likewise.
78400         * tests/test-fseeko.c (fseek): Likewise.
78401         * tests/test-ftell.c (fseek): Likewise.
78402         * tests/test-ftello.c (fseek): Likewise.
78403         * tests/test-fwritable.c (fseek): Likewise.
78404         * tests/test-fwriting.c (fseek): Likewise.
78406 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78408         * modules/memchr (Depends-on): Drop getpagesize dependency.
78410 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78412         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78413         Reported by Ludovic Courtès.
78414         * build-aux/pmccabe2html: Improve example usage.
78415         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78417 2009-11-06  Jim Meyering  <meyering@redhat.com>
78419         do-release-commit-and-tag: New module.
78420         Automate the release-commit and tag process.
78421         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78422         * modules/do-release-commit-and-tag: New file.
78423         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78427         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78428         because test-select.c uses inet_pton.
78430 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78432         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78433         GETADDRINFO_LIB.  Bump serial number.
78434         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78435         Suggested by Eric Blake <ebb9@byu.net>.
78437 2009-11-05  Eric Blake  <ebb9@byu.net>
78439         strtod: detect darwin bug
78440         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78441         Reported by Leo Davis.
78443         freopen-safer: new module
78444         * modules/freopen-safer: New module.
78445         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78446         * lib/freopen-safer.c (freopen_safer): New file.
78447         * lib/stdio-safer.h (freopen_safer): New declaration.
78448         * lib/stdio--.h (freopen): New override.
78449         * MODULES.html.sh (File stream based Input/Output): Mention it.
78450         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78451         freopen-safer module.
78452         * doc/posix-functions/stderr.texi (stderr): Likewise.
78453         * doc/posix-functions/stdin.texi (stdin): Likewise.
78454         * doc/posix-functions/stdout.texi (stdout): Likewise.
78455         * modules/freopen-safer-tests: New test.
78456         * tests/test-reopen-safer.c: New file.
78458 2009-11-05  Jim Meyering  <meyering@redhat.com>
78460         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78461         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78465         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78467 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78469         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78471 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78473         Fix link error.
78474         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78475         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78477 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78479         * tests/test-func.c: Also test value of __func__.
78481 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78483         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78484         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78486 2009-11-05  Bruno Haible  <bruno@clisp.org>
78488         Fix link error.
78489         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78490         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78491         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78493 2009-11-05  Bruno Haible  <bruno@clisp.org>
78495         Tests for module 'inet_pton'.
78496         * modules/inet_pton-tests: New file.
78497         * tests/test-inet_pton.c: New file.
78499 2009-11-05  Bruno Haible  <bruno@clisp.org>
78501         Tests for module 'inet_ntop'.
78502         * modules/inet_ntop-tests: New file.
78503         * tests/test-inet_ntop.c: New file.
78505 2009-11-04  Eric Blake  <ebb9@byu.net>
78507         stdlib-safer: wrap all mkstemp variants
78508         * modules/mkostemp (configure.ac): Set witness.
78509         * modules/mkostemps (configure.ac): Likewise.
78510         * modules/mkstemps (configure.ac): Likewise.
78511         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78512         (mkstemps_safer): Wrap more functions.
78513         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78514         wrapping.
78515         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78516         (mkstemps_safer): Implement the wrappers.
78518         mkstemps, mkostemps: new modules
78519         * modules/mkostemps: New module.
78520         * modules/mkstemps: Likewise.
78521         * lib/mkostemps.c (mkostemps): New file.
78522         * lib/mkstemps.c (mkstemps): Likewise.
78523         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78524         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78526         * modules/stdlib (Makefile.am): Substitute them.
78527         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78528         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78529         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78530         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78531         * MODULES.html.sh (File system functions): Mention them.
78533         tempname: resync from glibc
78534         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78535         same values for __GT_FILE as glibc.  Abort even when assertions
78536         are disabled.
78537         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78538         match its value otherwise.  Allow idempotent inclusion.
78539         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78540         * lib/mkostemp.c (mkostemp): Likewise.
78541         * lib/mkstemp.c (mkstemp): Likewise.
78542         * lib/tmpfile.c (tmpfile): Likewise.
78543         * NEWS: Document this.
78545         utimens: fix use of futimens on older Linux
78546         * lib/utimens.c (fdutimens): Use updated, rather than original,
78547         timespec to avoid bug in older Linux kernel.
78548         Reported by Simon Josefsson.
78550 2009-11-04  Bruno Haible  <bruno@clisp.org>
78552         Make num_processors more flexible and consistent.
78553         * lib/nproc.h (enum nproc_query): New type.
78554         (num_processors): Add a 'query' argument.
78555         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78556         (num_processors): Add a 'query' argument. Test the value of the
78557         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78558         mingw, count the number of CPUs available for the current process.
78559         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78560         Check for sched_getaffinity and sched_getaffinity_np.
78561         * modules/nproc (Depends-on): Add c-ctype, extensions.
78562         * NEWS: Mention the change.
78564 2009-11-03  Bruno Haible  <bruno@clisp.org>
78566         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78568 2009-11-03  Jim Meyering  <meyering@redhat.com>
78570         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78571         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78572         if it is defined.
78574 2009-11-02  Eric Blake  <ebb9@byu.net>
78576         mktime, timegm: share common declaration
78577         * lib/mktime-internal.h: New file.
78578         * lib/mktime.c: Use it rather than open-coding a declaration.
78579         * lib/timegm.c: Likewise.
78580         * modules/mktime (Files): Ship it.
78581         * modules/timegm (Files): Likewise.
78582         Suggested by Bruno Haible.
78584         test-update-copyright: update test to match script changes
78585         * tests/test-update-copyright.sh: Avoid hard-coding perl
78586         location.  Don't update *.bak created by earlier runs.
78588 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78589             Simon Josefsson  <simon@josefsson.org>
78590             Bruno Haible  <bruno@clisp.org>
78592         Fix link error on Solaris 8.
78593         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78594         also in libnsl. Define also INET_PTON_LIB.
78595         * modules/inet_pton (Link): New section.
78597 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78598             Bruno Haible  <bruno@clisp.org>
78600         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78601         * modules/inet_ntop (Link): New section.
78602         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78604 2009-11-02  Eric Blake  <ebb9@byu.net>
78606         maint: avoid compiler warnings in m4 macros
78607         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78608         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78610 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78612         * m4/pmccabe2html.m4: Remove file.
78613         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78614         function.  Change maintainer.
78615         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78616         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78617         Courtès).
78619 2009-10-31  Eric Blake  <ebb9@byu.net>
78621         fseeko: fix m4 regression
78622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78623         regression from 2009-10-27.
78624         Reported by Ralf Wildenhues.
78626 2009-10-31  Jim Meyering  <meyering@redhat.com>
78628         inttostr: aesthetics and improved (compile-time) safety
78629         Define inttype_is_signed rather than inttype_is_unsigned,
78630         since the sole use is via "#if inttype_is_signed".
78631         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78632         inttype_is_unsigned.
78633         * lib/offtostr.c (inttype_is_signed): Likewise.
78634         * lib/uinttostr.c (inttype_is_signed): Likewise.
78635         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78636         * lib/inttostr.c (inttostr): Use verify to cross-check the
78637         inttype_is_signed value and the signedness of the actual type.
78638         * modules/inttostr (Depends-on): Add verify.
78640 2009-10-30  Eric Blake  <ebb9@byu.net>
78642         build: avoid compiler warnings
78643         * lib/fchmodat.c (lchmod): Mark unused variables.
78644         * lib/getopt.c (_getopt_initialize): Likewise.
78645         * lib/mktime.c (__mktime_internal): Provide prototype.
78646         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78647         older gcc that do not understand #pragma GCC diagnostic.
78648         * lib/uinttostr.c (inttype_is_unsigned): Define.
78649         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78651 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78653         stat: fix compilation on AIX
78654         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78655         only see struct stat64.
78657 2009-10-30  Eric Blake  <ebb9@byu.net>
78659         exclude: make more robust
78660         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78661         rather than masking a coding bug.
78662         Suggested by Bruno Haible.
78664 2009-10-30  Jim Meyering  <meyering@redhat.com>
78666         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78667         Rather than putting #!/usr/bin/perl on the first line,
78668         start with a variant of what's recommended by "man perlrun" that
78669         invokes the first "perl" program from your shell's search path.
78670         * build-aux/gitlog-to-changelog: Replace #!... as above.
78671         Add a "Local Variables" perl mode setting.
78672         Prompted by a patch from Ludovic Courtès.
78673         Improved by Eric Blake.
78674         * build-aux/useless-if-before-free: Likewise.
78675         * build-aux/announce-gen: Likewise.
78676         * build-aux/update-copyright: Likewise.
78678 2009-10-29  Eric Blake  <ebb9@byu.net>
78680         filenamecat-lgpl: adjust clients
78681         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78682         filenamecat.
78683         * modules/renameat (Depends-on): Likewise.
78685         filenamecat: split into filenamecat-lgpl
78686         * modules/filenamecat-lgpl: New module.
78687         * modules/filenamecat (Files): Move library-safe files into
78688         filenamecat-lgpl.
78689         (Depends-on): Add filenamecat-lgpl.
78690         (configure.ac): Declare witness.
78691         * lib/filenamecat.h (file_name_concat): Only declare when using
78692         GPL module.
78693         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78694         Move...
78695         * lib/filenamecat-lgpl.c: ...into new file.
78696         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78697         (gl_FILE_NAME_CONCAT): Use it.
78698         * MODULES.html.sh (File system functions): Mention new module.
78700         argp: avoid memory leak
78701         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78702         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78703         base_name, since the latter malloc()s and can call exit().
78704         Leak introduced 2006-07-03.
78706         dirname-lgpl: adjust clients that don't need full dirname
78707         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78708         * modules/filenamecat (Depends-on): Likewise.
78709         * modules/linkat (Depends-on): Likewise.
78710         * modules/mkancesdirs (Depends-on): Likewise.
78711         * modules/mkdir (Depends-on): Likewise.
78712         * modules/openat (Depends-on): Likewise.
78713         * modules/savewd (Depends-on): Likewise.
78714         * modules/rename (Depends-on): Likewise.
78715         (License): Relax license.
78716         * modules/mkdir-tests (Depends-on): Drop progname.
78717         (Makefile.am): Delete unneeded LDADD.
78718         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78720         dirname: split into dirname-lgpl
78721         * modules/dirname-lgpl: New module.
78722         * modules/dirname (Files): Move library-safe files into
78723         dirname-lgpl.
78724         (Depends-on): Add dirname-lgpl.
78725         (configure.ac): Declare witness.
78726         * modules/double-slash-root (License): Relax license.
78727         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78728         module.
78729         * lib/dirname.c (dir_len, mdir_name): Move...
78730         * lib/dirname-lgpl.c: ...into new file.
78731         * lib/basename.c (last_component, base_len): Move...
78732         * lib/basename-lgpl.c: ...into new file.
78733         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78734         (gl_DIRNAME): Use it.
78735         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78736         Mention new module.
78737         * modules/dirname-tests (Depends-on): Add progname.
78738         * tests/test-dirname.c (program_name): Delete.
78740         mkdir: make safe for libraries
78741         * modules/mkdir (Depends-on): Drop xalloc.
78742         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78743         exit.
78745         tests: avoid some compiler warnings
78746         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78747         literals.
78748         * tests/test-memchr.c (main): Avoid type mismatch.
78749         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78750         * tests/test-base64.c (main): Likewise.
78751         * tests/test-getdelim.c (main): Likewise.
78752         * tests/test-gethostname.c (main): Likewise.
78753         * tests/test-getline.c (main): Likewise.
78754         * tests/test-netinet_in.c (main): Likewise.
78755         * tests/test-select.c (open_server_socket, main): Likewise.
78756         * tests/test-select-stdin.c (main): Likewise.
78757         * tests/test-sockets.c (main): Likewise.
78758         * tests/test-strsignal.c (main): Likewise.
78759         * tests/test-sys_select.c (main): Likewise.
78760         * tests/test-sys_socket.c (main): Likewise.
78761         * tests/test-u64.c (main): Likewise.
78762         * tests/test-xfprintf-posix.c (main): Likewise.
78763         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78765         sockets: avoid compiler warning
78766         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78768         maint: detect usage(1) and other suspicious exits
78769         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78771 2009-10-29  Jim Meyering  <meyering@redhat.com>
78773         timespec: long-to-int truncation could make timespec_cmp malfunction
78774         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78775         a multiple of 2^32 nanoseconds as no difference.
78777 2009-10-28  Jim Meyering  <meyering@redhat.com>
78779         fprintftime: wrap macro code argument in "do {...} while(0)"
78780         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78781         cpy macro must be a statement that can be followed by a semicolon.
78782         Now that the else clause contains a comment and is hence longer
78783         than one line, I require curly braces.  That in turn requires
78784         that we wrap this code block in the standard do...while(0).
78786         fprintftime: remove stray semicolon from previous change
78787         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78789         fprintftime: avoid a warning about ignored fwrite return value
78790         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78791         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78792         that is unsafe.
78793         * modules/fprintftime (Depends-on): Add ignore-value.
78795         exclude: avoid an unwarranted warning
78796         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78798 2009-10-27  Eric Blake  <ebb9@byu.net>
78800         fseek: avoid compilation failure when fflush is replaced
78801         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78802         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78803         module is in use.
78804         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78805         module is not in use; since REPLACE_FSEEK worked otherwise.
78806         (GNULIB_FTELLO): Likewise for ftell.
78807         Reported by Ian Beckwith and others.
78809 2009-10-27  Bruno Haible  <bruno@clisp.org>
78811         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78812         Reported by Jim Meyering.
78814 2009-10-27  Jim Meyering  <jim@meyering.net>
78815             Bruno Haible  <bruno@clisp.org>
78817         Avoid warning despite dropping the return value of fwrite.
78818         * lib/unicodeio.c: Include ignore-value.h.
78819         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78820         * modules/unicodeio (Depends-on): Add ignore-value.
78822 2009-10-26  Eric Blake  <ebb9@byu.net>
78824         areadlinkat: fix fallback path
78825         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78826         pointer and zero.
78828 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78830         Use a better IO block size for modern systems
78831         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78832         * lib/md2.c: Likewise.
78833         * lib/md4.c: Likewise.
78834         * lib/md5.c: Likewise.
78835         * lib/sha1.c: Likewise.
78836         * lib/sha256.c: Likewise.
78837         * lib/sha512.c: Likewise.
78839 2009-10-22  Eric Blake  <ebb9@byu.net>
78841         tests: avoid several compiler warnings
78842         * tests/test-getcwd.c (main): Avoid buffer underflow.
78843         * tests/test-getdate.c (main): String literals are not safe with
78844         putenv, so use setenv.  Declare unused argument.
78845         * modules/getdate-tests (Depends-on): Add setenv.
78846         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78847         problems with string literals in char *.
78848         * tests/test-hash.c (main): Avoid shadowing declaration.
78849         (insert_new): Treat string literals as char const *.
78850         * tests/test-getopt.h (test_getopt): Likewise.
78851         (getopt_loop): Alter types to minimize casting elsewhere.
78852         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78853         (test_getopt_long_posix): Likewise.
78854         (do_getopt_long): Add wrapper to minimize casting.
78855         * tests/test-atexit.c (clear_temp_file): Use void.
78856         * tests/test-areadlink-with-size.c (main): Declare unused
78857         arguments.
78858         * tests/test-areadlink.c (main): Likewise.
78859         * tests/test-areadlinkat-with-size.c (main): Likewise.
78860         * tests/test-areadlinkat.c (main): Likewise.
78861         * tests/test-canonicalize-lgpl.c (main): Likewise.
78862         * tests/test-canonicalize.c (main): Likewise.
78863         * tests/test-dirent-safer.c (main): Likewise.
78864         * tests/test-dirname.c (main): Likewise.
78865         * tests/test-dup2.c (main): Likewise.
78866         * tests/test-fchdir.c (main): Likewise.
78867         * tests/test-fcntl-h.c (main): Likewise.
78868         * tests/test-fcntl-safer.c (main): Likewise.
78869         * tests/test-fdopendir.c (main): Likewise.
78870         * tests/test-fdutimensat.c (main): Likewise.
78871         * tests/test-fflush.c (main): Likewise.
78872         * tests/test-filenamecat.c (main): Likewise.
78873         * tests/test-filevercmp.c (main): Likewise.
78874         * tests/test-fopen-safer.c (main): Likewise.
78875         * tests/test-fopen.c (main): Likewise.
78876         * tests/test-fpending.c (main): Likewise.
78877         * tests/test-fpurge.c (main): Likewise.
78878         * tests/test-freading.c (main): Likewise.
78879         * tests/test-fstatat.c (main): Likewise.
78880         * tests/test-fsync.c (main): Likewise.
78881         * tests/test-futimens.c (main): Likewise.
78882         * tests/test-getndelim2.c (main): Likewise.
78883         * tests/test-gettimeofday.c (main): Likewise.
78884         * tests/test-getopt.c (main): Likewise.
78885         * tests/test-i-ring.c (main): Likewise.
78886         * tests/test-inttypes.c (main): Likewise.
78887         * tests/test-link.c (main): Likewise.
78888         * tests/test-lstat.c (main): Likewise.
78889         * tests/test-math.c (main): Likewise.
78890         * tests/test-md5.c (main): Likewise.
78891         * tests/test-memchr2.c (main): Likewise.
78892         * tests/test-memrchr.c (main): Likewise.
78893         * tests/test-mkdir.c (main): Likewise.
78894         * tests/test-mkdirat.c (main): Likewise.
78895         * tests/test-mkfifoat.c (main): Likewise.
78896         * tests/test-open.c (main): Likewise.
78897         * tests/test-openat-safer.c (main): Likewise.
78898         * tests/test-openat.c (main): Likewise.
78899         * tests/test-quotearg.c (main): Likewise.
78900         * tests/test-rawmemchr.c (main): Likewise.
78901         * tests/test-readlink.c (main): Likewise.
78902         * tests/test-remove.c (main): Likewise.
78903         * tests/test-rename.c (main): Likewise.
78904         * tests/test-renameat.c (main): Likewise.
78905         * tests/test-rmdir.c (main): Likewise.
78906         * tests/test-sha1.c (main): Likewise.
78907         * tests/test-signal.c (main): Likewise.
78908         * tests/test-sigaction.c (main): Likewise.
78909         * tests/test-stat.c (main): Likewise.
78910         * tests/test-stat-time.c (main): Likewise.
78911         * tests/test-stddef.c (main): Likewise.
78912         * tests/test-stdint.c (main): Likewise.
78913         * tests/test-stdio.c (main): Likewise.
78914         * tests/test-stdlib.c (main): Likewise.
78915         * tests/test-strchrnul.c (main): Likewise.
78916         * tests/test-strerror.c (main): Likewise.
78917         * tests/test-string.c (main): Likewise.
78918         * tests/test-strtod.c (main): Likewise.
78919         * tests/test-strverscmp.c (main): Likewise.
78920         * tests/test-symlink.c (main): Likewise.
78921         * tests/test-symlinkat.c (main): Likewise.
78922         * tests/test-sys_stat.c (main): Likewise.
78923         * tests/test-sys_time.c (main): Likewise.
78924         * tests/test-time.c (main): Likewise.
78925         * tests/test-unistd.c (main): Likewise.
78926         * tests/test-unlink.c (main): Likewise.
78927         * tests/test-unlinkat.c (main): Likewise.
78928         * tests/test-utimens.c (main): Likewise.
78929         * tests/test-utimensat.c (main): Likewise.
78930         * tests/test-version-etc.c (main): Likewise.
78931         * tests/test-wchar.c (main): Likewise.
78932         * tests/test-wctype.c (main): Likewise.
78933         * tests/test-xprintf-posix.c (main): Likewise.
78934         * tests/test-posixtm.c (main): Likewise.
78935         (STREQ): Delete unused macro.
78936         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78937         shadowed variables.
78938         * tests/test-memchr.c (main): Likewise.
78940 2009-10-21  Eric Blake  <ebb9@byu.net>
78942         areadlinkat: avoid failure on older glibc
78943         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78944         rather than mis-comparing 0 against FUNC_RESULT of char*.
78946 2009-10-21  Bruno Haible  <bruno@clisp.org>
78948         * modules/stpncpy (License): Relicense under LGPLv2+.
78949         Reported by David Lutterkort <lutter@redhat.com>.
78951 2009-10-20  Eric Blake  <ebb9@byu.net>
78953         utimensat: work around Solaris 9 bug
78954         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78955         has trailing slash bugs.
78956         * tests/test-lutimens.h (test_lutimens): Enhance test.
78957         * tests/test-utimens.h (test_utimens): Likewise.
78958         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78959         * doc/posix-functions/utimes.texi (utimes): Likewise.
78960         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78961         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78962         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78963         * doc/posix-functions/futimens.texi (futimens): Likewise.
78965         fdutimensat: new module
78966         * modules/fdutimensat: New file.
78967         * lib/fdutimensat.c (fdutimensat): Likewise.
78968         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78969         * MODULES.html.sh (File system functions): Mention module.
78970         * modules/fdutimensat-tests: New test.
78971         * tests/test-fdutimensat.c: Likewise.
78973         doc: regenerate INSTALL
78974         * doc/INSTALL: Reflect recent autoconf update.
78975         * doc/INSTALL.ISO: Likewise.
78976         * doc/INSTALL.UTF-8: Likewise.
78978 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78980         acl: warn if ACL support is not detected
78981         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78983 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78985         * lib/nproc.h: Add extern "C" block for C++.
78987 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78988             Bruno Haible  <bruno@clisp.org>
78990         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78991         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78992         * doc/posix-functions/isalpha.texi: Likewise.
78993         * doc/posix-functions/isblank.texi: Likewise.
78994         * doc/posix-functions/iscntrl.texi: Likewise.
78995         * doc/posix-functions/isdigit.texi: Likewise.
78996         * doc/posix-functions/isgraph.texi: Likewise.
78997         * doc/posix-functions/islower.texi: Likewise.
78998         * doc/posix-functions/isprint.texi: Likewise.
78999         * doc/posix-functions/ispunct.texi: Likewise.
79000         * doc/posix-functions/isspace.texi: Likewise.
79001         * doc/posix-functions/isupper.texi: Likewise.
79002         * doc/posix-functions/isxdigit.texi: Likewise.
79004 2009-10-18  Bruno Haible  <bruno@clisp.org>
79006         Tests for module 'isblank'.
79007         * modules/isblank-tests: New file.
79008         * tests/test-isblank.c: New file.
79010         New module 'isblank'.
79011         * lib/isblank.c: New file.
79012         * m4/isblank.m4: New file.
79013         * modules/isblank: New file.
79014         * doc/posix-functions/isblank.texi: Mention the new module.
79016 2009-10-18  Bruno Haible  <bruno@clisp.org>
79018         New module 'ctype'.
79019         * lib/ctype.in.h: New file.
79020         * m4/ctype.m4: New file.
79021         * modules/ctype: New file.
79022         * doc/posix-headers/ctype.texi: Mention the new module.
79024 2009-10-18  Jim Meyering  <meyering@redhat.com>
79026         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79027         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79028         right after its initialization, rather than farther down.
79029         Keeping these in close proximity makes it easier to ensure
79030         that each such variable is initialized.  E.g.,
79032             LIB_CLOCK_GETTIME=
79033             AC_SUBST([LIB_CLOCK_GETTIME])
79035         This change also increments these serial numbers.
79036         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79037         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79040 2009-10-18  Bruno Haible  <bruno@clisp.org>
79042         Don't let environment variables perturb build.
79043         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79044         (gl_PREREQ_GETHRXTIME): ... not here.
79046 2009-10-18  Bruno Haible  <bruno@clisp.org>
79048         Avoid symlink attack in localcharset module.
79049         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79050         (O_NOFOLLOW): Define fallback.
79051         (get_charset_aliases): Don't open the file if it is a symbolic link.
79052         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79053         gl_FCNTL_H.
79054         (gl_FCNTL_H): Require it.
79055         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79056         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79057         Reported by Fergal Glynn <fglynn@veracode.com>.
79059 2009-10-18  Bruno Haible  <bruno@clisp.org>
79061         Implement nproc for mingw.
79062         * lib/nproc.c: Include <windows.h>
79063         (num_processors): On native Windows platforms, try GetSystemInfo.
79065 2009-10-18  Bruno Haible  <bruno@clisp.org>
79067         Implement nproc for IRIX.
79068         * lib/nproc.c: Include <sys/sysmp.h>.
79069         (num_processors): On IRIX systems, try sysmp.
79070         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79072 2009-10-18  Bruno Haible  <bruno@clisp.org>
79074         Implement nproc for HP-UX.
79075         * lib/nproc.c: Include <sys/pstat.h>
79076         (num_processors): On HP-UX systems, try pstat_getdynamic.
79077         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79078         pstat_getdynamic.
79080 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79081             Bruno Haible  <bruno@clisp.org>
79083         Implement nproc for NetBSD, OpenBSD.
79084         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79085         (ARRAY_SIZE): New macro.
79086         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79087         * m4/nproc.m4: New file.
79088         * modules/nproc (Files): Add m4/nproc.m4.
79089         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79090         (Makefile.am): Instead, augment lib_SOURCES.
79092 2009-10-18  Bruno Haible  <bruno@clisp.org>
79094         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79095         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79096         sys/param.h.
79098 2009-10-16  Eric Blake  <ebb9@byu.net>
79100         utimensat: new module
79101         * modules/utimensat: New file.
79102         * lib/utimensat.c (utimensat): Likewise.
79103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79104         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79105         so we can work around Linux bugs.
79106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79107         * modules/sys_stat (Makefile.am): Substitute them.
79108         * lib/sys_stat.in.h (utimensat): Declare it.
79109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79110         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79111         * modules/utimensat-tests: New test.
79112         * tests/test-utimensat.c: Likewise.
79114         utimens: let lutimens work on non-symlinks
79115         * lib/utimens.c (lutimens): Fall back to utimens rather than
79116         failing with ENOSYS, when file is not a symlink.
79117         (utimens): Reduce redirection.
79118         * tests/test-lutimens.h (test_lutimens): Update test to cover
79119         non-symlinks.
79120         * tests/test-utimens.h (test_utimens): Update test to cover
79121         symlinks.
79122         * tests/test-utimens.c (main): Update caller.
79124         utimens: cache whether utimensat syscall works
79125         * lib/utimens.c (utimensat_works_really): New cache variable.
79126         (fdutimens, lutimens): Use it to avoid failing syscall.
79128         test-stat-time, test-utimens: improve portability
79129         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79130         ext4 on alpha, and for cygwin.
79131         * tests/test-utimens-common.h: New file.
79132         (nap): Factor delays into single function.
79133         * tests/test-lutimens.h (test_lutimens): Use new header.
79134         * tests/test-futimens.h (test_futimens): Likewise.
79135         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79136         timestamps to occur from same machine, as was done previously for
79137         test_utimens.
79138         * modules/utimens-tests (Files): Ship new file.
79139         * modules/futimens-tests (Files): Likewise.
79140         Reported in part by Jim Meyering.
79142         sys_stat: sort replacement declarations
79143         * lib/sys_stat.in.h: Sort declarations.
79144         * lib/futimens.c (futimens): Fix typo.
79146 2009-10-15  Jim Meyering  <meyering@redhat.com>
79148         don't let environment settings perturb build
79149         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79150         could cause a configure-time and/or build-time malfunction.
79151         Typically, a configure-time function-in-library test is performed
79152         via code like this:
79154           LIB_VAR=
79155           AC_SUBST([LIB_VAR])
79156           prefix_saved_LIBS=$LIBS
79157             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79158                        [test "$ac_cv_search_FUNC" = "none required" ||
79159                         LIB_VAR=$ac_cv_search_FUNC])
79160           LIBS=$prefix_saved_LIBS
79162         However, in each of the files affected by this change, the LIB_VAR=
79163         initialization was omitted.  Thus, when set in the environment, its
79164         value would propagate into generated Makefiles when FUNC is not found
79165         in LIB_NAME.
79166         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79167         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79170 2009-10-14  Eric Blake  <ebb9@byu.net>
79172         fchdir: avoid infinite recursion in mingw
79173         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79174         recursing.
79176         test-stat-time: port to mingw
79177         * tests/test-stat-time.c (force_unlink): Return a value.
79178         (test_ctime) [W32]: Fix compilation error.
79179         (nap): Don't call usleep with too large an argument.  Use
79180         force_unlink.
79181         * doc/pastposix-functions/usleep.texi (usleep): Document the
79182         portability issue.
79184 2009-10-13  Jim Meyering  <meyering@redhat.com>
79186         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79187         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79188         * modules/pipe-filter-ii: Likewise.
79189         * modules/sys_socket-tests: Likewise.
79190         * modules/tsearch-tests: Likewise.
79191         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79192         (check): Depend on it.
79194 2009-10-12  Eric Blake  <ebb9@byu.net>
79196         utimens-tests: port to NFS file systems
79197         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79198         comparisons to avoid spurious failures from timestamp drift
79199         between NFS machines.
79201 2009-10-12  Eric Blake  <ebb9@byu.net>
79203         stat-time-tests: minor cleanups
79204         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79205         * tests/test-stat-time.c (nap): Separate assignment from call.
79206         Suggested by Paolo Bonzini and Bruno Haible.
79208         sys_stat: guarantee struct timespec
79209         * lib/sys_stat.in.h (includes): Always include <time.h>
79210         * modules/sys_stat (Depends-on): Add time.
79211         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79212         mode_t permission values.
79213         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79214         get at subsecond timestamps.
79216 2009-10-10  Eric Blake  <ebb9@byu.net>
79218         futimens: new module
79219         * modules/futimens: New file.
79220         * lib/futimens.c (futimens): Likewise.
79221         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79222         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79223         we can work around Linux bugs.
79224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79225         * modules/sys_stat (Makefile.am): Substitute them.
79226         * lib/sys_stat.in.h (futimens): Declare it.
79227         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79228         * doc/posix-functions/futimens.texi (futimens): Likewise.
79229         * modules/futimens-tests: New test.
79230         * tests/test-futimens.c: Likewise.
79232         utimens: introduce fdutimens
79233         * lib/utimens.h (fdutimens): New prototype.
79234         * lib/utimens.c (gl_futimens): Move guts...
79235         (fdutimens): ...to new interface.
79236         * tests/test-utimens.c (do_fdutimens): Use it.
79238         utimens: add UTIME_NOW and UTIME_OMIT support
79239         * lib/utimens.c (validate_timespec, update_timespec): New helper
79240         functions.
79241         (gl_futimens, lutimens): Use them.
79242         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79243         stdbool, sys_stat.
79244         (Link): Mention resulting library dependency.
79245         * modules/utimecmp (Link): Likewise.
79246         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79247         (Makefile.am): Pick up library dependency.
79248         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79249         definition.
79250         * tests/test-sys_stat.c: Test the definitions.
79251         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79252         * NEWS: Document library dependency.
79254         utimecmp: support symlink timestamps
79255         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79256         hashing when possible.  Use pathconf when available.
79257         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79258         * modules/utimecmp (Depends-on): Add lstat.
79260         utimens: add lutimens interface
79261         * lib/utimens.c (lutimens): New function.
79262         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79263         * lib/utimens.h (lutimens): Declare new interface.
79264         * tests/test-utimens.c (main): Enhance test.
79265         * tests/test-lutimens.h (test_lutimens): New file.
79266         * modules/utimens-tests (Files): Distribute it.
79267         (Depends-on): Add symlink.
79268         (configure.ac): Check for usleep.
79270         utimens: validate futimens usage
79271         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79272         fewer syscalls on failure later on.  Avoid compiler warning on
79273         mingw.
79274         * modules/utimens (Depends-on): Add dup2.
79276         utimens: add test
79277         * modules/utimens-tests: New test.
79278         * tests/test-utimens.h: New file.
79279         * tests/test-futimens.h: Likewise.
79280         * tests/test-utimens.c: Likewise.
79282         doc: mention timestamp portability issues
79283         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79284         instead.
79285         * doc/posix-functions/utime.texi (utime): Likewise.
79286         * doc/posix-functions/utimes.texi (utimes): Likewise.
79287         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79288         instead.
79289         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79290         module.
79291         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79292         Mention weakness with symlink timestamps.
79293         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79294         to utimensat/futimens instead.
79295         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79297         test-dup2: enhance test
79298         * tests/test-dup2.c (main): Also check AT_FDCWD.
79300         test-stat-time: avoid more spurious failures
79301         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79302         xfs; and avoid race if the two timestamps cross quantization edge.
79304         relocatable: prefer 'file system' over 'filesystem'
79305         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79306         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79307         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79308         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79309         * lib/relocatable.c (compute_curr_prefix): Likewise.
79311 2009-10-10  Jim Meyering  <meyering@redhat.com>
79313         stat-time-tests: check for the usleep function
79314         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79316 2009-10-10  Bruno Haible  <bruno@clisp.org>
79318         * modules/xnanosleep: Put the Link section after the Include section.
79320 2009-10-09  Eric Blake  <ebb9@byu.net>
79322         dup2: work around FreeBSD 6.1 bug
79323         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79324         * doc/posix-functions/dup2.texi (dup2): Document it.
79325         Reported by Nelson H. F. Beebe and Jim Meyering.
79327         test-stat-time: port to buggy NFS clients
79328         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79329         (test_ctime): Also skip test if mtime and ctime are skewed.
79331         maint: prefer 'file system' over 'filesystem'
79332         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79333         * doc/posix-functions/lstat.texi (lstat): Likewise.
79334         * lib/file-has-acl.c (file_has_acl): Likewise.
79335         * lib/fwriteerror.c [TEST]: Likewise.
79336         * tests/test-areadlink.h (test_areadlink): Likewise.
79337         * tests/test-areadlinkat-with-size.c (main): Likewise.
79338         * tests/test-areadlinkat.c (main): Likewise.
79339         * tests/test-canonicalize-lgpl.c (main): Likewise.
79340         * tests/test-canonicalize.c (main): Likewise.
79341         * tests/test-fstatat.c (main): Likewise.
79342         * tests/test-linkat.c (main): Likewise.
79343         * tests/test-lstat.h (test_lstat_func): Likewise.
79344         * tests/test-mkdir.h (test_mkdir): Likewise.
79345         * tests/test-readlink.h (test_readlink): Likewise.
79346         * tests/test-remove.c (main): Likewise.
79347         * tests/test-rename.h (test_rename): Likewise.
79348         * tests/test-renameat.c (main): Likewise.
79349         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79350         * tests/test-symlink.h (test_symlink): Likewise.
79351         * tests/test-symlinkat.c (main): Likewise.
79352         * tests/test-unlink.h (test_unlink_func): Likewise.
79353         * tests/test-unlinkat.c (main): Likewise.
79355         maint: make realtime library usage explicit
79356         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79357         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79358         * modules/settime (Link): Likewise.
79359         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79361         test-stat-time: speed up execution
79362         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79363         warning on mingw.
79364         (nap): New helper function.
79365         (prepare_test): Use it to reduce sleep time.
79366         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79367         execution.
79368         * modules/stat-time-tests (configure.ac): Check for usleep.
79370 2009-10-09  Jim Meyering  <meyering@redhat.com>
79372         selinux-h: always use getfilecon wrappers
79373         * lib/getfilecon.c: New file.
79374         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79375         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79376         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79377         (fgetfilecon): Provide a stub.
79378         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79379         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79380         file unconditionally.
79381         When <selinux/selinux.h> is found, arrange to use wrappers.
79382         * modules/selinux-h (Files): Add getfilecon.c.
79383         (Makefile.am): Substitute include-next-related bits
79384         into the now-always-generated selinux/selinux.h file.
79385         * doc/glibc-functions/lgetfilecon.texi: New file.
79386         * doc/glibc-functions/fgetfilecon.texi: New file.
79387         * doc/glibc-functions/getfilecon.texi: New file.
79388         * doc/glibc-functions/getfilecon-desc.texi: New file.
79389         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79390         which to pull in the new files.
79391         * MODULES.html.sh (Misc): Add selinux-h.
79393 2009-10-08  Jim Meyering  <meyering@redhat.com>
79395         unistd: fix comment typo
79396         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79398 2009-10-08  Eric Blake  <ebb9@byu.net>
79400         areadlink: use SIZE_MAX consistently
79401         * modules/areadlink (Depends-on): Add stdint.
79402         * modules/areadlink-with-size (Depends-on): Likewise.
79403         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79404         gives NULL; drop sys/types, since unistd gives size_t; and add
79405         stdint for SIZE_MAX.
79406         (SIZE_MAX): Rely on headers.
79407         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79408         and add stdint.
79409         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79410         (SIZE_MAX): Likewise.
79411         (INITIAL_BUF_SIZE): Turn into enum.
79412         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79414 2009-10-08  Jim Meyering  <meyering@redhat.com>
79416         areadlinkat: avoid compilation failure
79417         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79418         Fix typo in comment.
79420 2009-10-07  Eric Blake  <ebb9@byu.net>
79422         areadlinkat-with-size: new module
79423         * modules/areadlinkat-with-size: New module.
79424         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79425         * lib/areadlink.h (areadlinkat): Declare it.
79426         * MODULES.html.sh (File system functions): Mention it.
79427         * modules/areadlinkat-with-size-tests: New test.
79428         * tests/test-areadlinkat-with-size.c: New file.
79430         xreadlinkat: new module
79431         * modules/xreadlinkat: New module.
79432         * lib/xreadlinkat.c (xreadlinkat): New file.
79433         * lib/xreadlink.h (xreadlinkat): Declare it.
79434         * MODULES.html.sh (File system functions): Mention it.
79436         areadlinkat: new module
79437         * lib/at-func.c (FUNC_FAIL): New define.
79438         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79439         * modules/areadlinkat: New module.
79440         * lib/linkat.c (areadlinkat): Move...
79441         * lib/areadlinkat.c (areadlinkat): ...to new file.
79442         * lib/areadlink.h (areadlinkat): Declare it.
79443         * modules/linkat (Depends-on): Add areadlinkat.
79444         * MODULES.html.sh (File system functions): Mention it.
79445         * modules/areadlinkat-tests: New test.
79446         * tests/test-areadlinkat.c: New file.
79448         areadlink, areadlink-with-size: add tests
79449         * modules/areadlink-tests: New test.
79450         * modules/areadlink-with-size-tests: Likewise.
79451         * tests/test-areadlink.h: New file.
79452         * tests/test-areadlink.c: Likewise.
79453         * tests/test-areadlink-with-size.c: Likewise.
79455         maint: minor cleanups
79456         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79457         _UNUSED_PARAMETER_ instead.
79458         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79459         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79460         * modules/linkat-tests (Files): Distribute test-link.h.
79462         openat, utimens: whitespace cleanup
79463         * lib/openat.c: Prefer space throughout, rather than mix of 8
79464         spaces vs. tabs.
79465         * lib/at-func.c: Likewise.
79466         * lib/utimens.c: Likewise.
79468         openat: avoid using wrong fd
79469         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79470         working directory chooses same fd.
79471         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79473         mkdir, mkdirat: fix cygwin 1.5.x bug
79474         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79475         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79476         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79477         bug.
79478         (gl_PREREQ_MKDIR): Delete unused macro.
79479         * modules/mkdir (Files): Track file rename.
79480         (configure.ac): Update macro name.
79481         * modules/openat (Depends-on): Add mkdir.
79482         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79484         mkdir, mkdirat: add tests
79485         * modules/mkdir-tests: New test.
79486         * tests/test-mkdir.h: New file.
79487         * tests/test-mkdir.c: Likewise.
79488         * tests/test-mkdirat.c: Likewise.
79489         * modules/openat-tests (Files): Add new files.
79490         (Makefile.am): Run new test.
79492 2009-10-06  Eric Blake  <ebb9@byu.net>
79494         doc: tweak *at function documentation
79495         * doc/posix-functions/faccessat.texi (faccessat): Mention
79496         known issue with replacement.
79497         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79498         * doc/posix-functions/linkat.texi (linkat): Likewise.
79499         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79500         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79501         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79502         * doc/posix-functions/renameat.texi (renameat): Likewise.
79503         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79505         openat: fix GNU/Hurd bug in unlinkat
79506         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79507         broken.
79508         * doc/posix-functions/unlink.texi (unlink): Document this.
79509         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79511         fdopendir: fix GNU/Hurd bug
79512         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79513         allowing non-directory fds.
79514         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79515         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79516         * modules/dirent (Makefile.am): Substitute it.
79517         * lib/dirent.in.h (fdopendir): Declare replacement.
79518         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79519         * tests/test-fdopendir.c (main): Test something other than
79520         /dev/null, since on Hurd that behaves like a directory.
79522         test-symlink: port to GNU/Hurd
79523         * tests/test-symlink.h (test_symlink): Relax expected errno.
79525         doc: tweak more cygwin information
79526         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79527         now compatible with glibc.
79528         * doc/posix-functions/getopt.texi (getopt): Likewise.
79530         getopt-gnu: add another test
79531         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79532         guarantee behavior relied on by m4.
79533         * tests/test-getopt.c (main): Use it.
79534         * modules/getopt-posix-tests (Depends-on): Add setenv.
79535         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79537         getopt: fix compilation on darwin
79538         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79539         include.
79540         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79541         Reported by Ludovic Courtès.
79543 2009-10-06  Bruno Haible  <bruno@clisp.org>
79545         * modules/size_max (Description): Discourage its use.
79546         Reported by Simon Josefsson.
79548 2009-10-06  Jim Meyering  <meyering@redhat.com>
79550         linkat: avoid compilation failure
79551         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79553 2009-10-05  Eric Blake  <ebb9@byu.net>
79555         linkat: support Linux 2.6.17
79556         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79557         linkat on Linux, but allow cache variable override.
79558         * lib/linkat.c (rpl_linkat): Define override.
79559         * modules/linkat (Depends-on): Add symlinkat.
79560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79561         * modules/unistd (Makefile.am): Substitute it.
79562         * lib/unistd.in.h (linkat): Declare replacement.
79563         Reported by Pádraig Brady.
79565         quotearg: port test to systems with C.UTF-8 locale
79566         * tests/test-quotearg.c (struct result_strings): Add another
79567         member, differentiating between C.ASCII and C.UTF-8 handling.
79568         (compare_strings): Add parameter.
79569         (main): Adjust all callers.
79571         getopt: avoid clash with FreeBSD _getopt_internal
79572         * lib/getopt.in.h (_getopt_internal): Override the name.
79573         * lib/getopt_int.h (includes): Pick up any overrides.
79574         Reported by Reuben Thomas.
79576         hash: allow C89 compilation
79577         * lib/hash.c (check_tuning): Move declaration before statement.
79578         Reported by Reuben Thomas.
79580 2009-10-05  Karl Berry  <karl@gnu.org>
79582         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79584 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79585             Bruno Haible  <bruno@clisp.org>
79587         * lib/uname.c (uname): Use a table-driven algorithm to compute
79588         Windows NT versions.
79590 2009-10-04  Bruno Haible  <bruno@clisp.org>
79592         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79593         program_invocation_short_name.
79594         * modules/progname (configure.ac): Test for presence of
79595         program_invocation_short_name.
79596         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79598 2009-10-04  Bruno Haible  <bruno@clisp.org>
79600         * lib/progname.c (set_program_name): Fix comment.
79601         Reported by Jim Meyering.
79603 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79604             Bruno Haible  <bruno@clisp.org>
79606         * lib/uname.c: Include <string.h>.
79607         (uname): Do only one call to GetVersionEx in the common case.
79609 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79610             Bruno Haible  <bruno@clisp.org>
79612         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79613         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79614         (uname): Add support for Windows CE and various non-x86 CPU types.
79616 2009-10-03  Bruno Haible  <bruno@clisp.org>
79618         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79619         invocation to tests/configure.ac.
79620         Reported by Ian Beckwith <ianb@erislabs.net>.
79622 2009-10-02  Eric Blake  <ebb9@byu.net>
79624         fchdir: avoid compiler warning
79625         * lib/fchdir.c (canonicalize_file_name)
79626         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79628         test-open: support mingw errno values
79629         * tests/test-open.h (test_open): Relax test.
79630         * tests/test-fopen.h (test_fopen): Likewise.
79631         * tests/test-openat-safer.c (main): Likewise.
79633         open: fix opening directory on mingw
79634         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79636         test-open: on GNU/Hurd, /dev/null is a directory
79637         * tests/test-fopen.h (main): Rename...
79638         (test_fopen): ...to this.  Use a guaranteed non-directory when
79639         confirming open behavior on trailing slash.
79640         * tests/test-openat-safer.c (main): Likewise.
79641         * tests/test-open.h (main): Likewise....
79642         (test_open): ...to this.
79643         * tests/test-fopen.c (main): Adjust caller.
79644         * tests/test-fopen-safer.c (main): Likewise.
79645         * tests/test-open.c (main): Likewise.
79646         * tests/test-fcntl-safer.c (main): Likewise.
79647         Reported by Samuel Thibault.
79649         rename, fchdir: don't ignore chdir failure
79650         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79651         * lib/rename.c (rpl_rename) [W32]: Likewise.
79652         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79653         an empty destination directory if source cannot be renamed,
79654         although there is still possibility for failure.
79655         * doc/posix-functions/rename.texi (rename): Document the race.
79656         Reported by Jim Meyering.
79658         maint: cleanup whitespace in recent commits
79659         * lib/rename.c (rpl_rename): Remove tabs.
79660         * tests/test-link.h (test_link): Likewise.
79661         * lib/fchdir.c (get_name): Likewise.
79662         Reported by Jim Meyering.
79664 2009-10-02  Ben Pfaff  <blp@gnu.org>
79666         relocatable-prog-wrapper: Add missing dependency on
79667         double-slash-root.
79668         * modules/relocatable-prog-wrapper: Add dependency.
79669         Reported by Ian Beckwith <ianb@erislabs.net>.
79671 2009-10-02  Eric Blake  <ebb9@byu.net>
79673         renameat: fix Solaris bugs
79674         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79675         needed fixing.
79676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79677         * modules/stdio (Makefile.am): Substitute it.
79678         * lib/stdio.in.h (renameat): Declare replacement.
79679         * lib/renameat.c (rpl_renameat): Implement fix.
79681         renameat: new module
79682         * modules/renameat: New file.
79683         * lib/renameat.c (renameat): Likewise.
79684         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79686         * modules/stdio (Makefile.am): Substitute them.
79687         * lib/stdio.in.h (renameat): Declare it.
79688         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79689         * doc/posix-functions/renameat.texi (renameat): Likewise.
79690         * modules/renameat-tests: New test.
79691         * tests/test-renameat.c: Likewise.
79693         rename: fix mingw bugs
79694         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79695         directory overwrite bugs.
79697         rename: fix another cygwin 1.5 bug
79698         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79699         checks.
79700         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79701         unnecessary cygwin workarounds.  Also work around bug with moving
79702         full directory onto an empty one.
79703         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79705         rename-dest-slash: merge into rename module
79706         * modules/rename-dest-slash (Status): Mark obsolete.
79707         (Depends-on): Add rename.
79708         (Files): Let rename do it all.
79709         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79710         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79711         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79712         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79713         * lib/rename.c (rpl_rename): Update comments.
79715         rename: fix cygwin 1.5.x bugs
79716         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79717         * lib/rename.c (rpl_rename): Work around them.
79718         * modules/rename (Depends-on): Add same-inode.
79720         rename: fix Solaris 10 bug
79721         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79722         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79723         was the only bug.
79725         rename: fix Solaris 9 bug
79726         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79727         on non-directory.  Avoid calling exit.
79728         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79729         strdup.
79730         * modules/rename-tests (Depends-on): Drop lstat.
79731         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79732         (gl_PREREQ_RENAME): Delete unused macro.
79734         rename-dest-slash: fix NetBSD bug
79735         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79736         links.
79737         * modules/rename-dest-slash (Depends-on): Add same-inode.
79739         rename-tests: new test, exposes several platform bugs
79740         * modules/rename-tests: New file.
79741         * tests/test-rename.h: Likewise.
79742         * tests/test-rename.c: Likewise.
79743         * doc/posix-functions/rename.texi (rename): Improve documentation,
79744         including bugs that will eventually be fixed in gnulib.
79746 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79748         * lib/uname.c: Include <stdlib.h>
79749         (uname): Assume version info is available.
79751 2009-10-02  Jim Meyering  <meyering@redhat.com>
79753         gnu-web-doc-update: correct --help output
79754         * build-aux/gnu-web-doc-update: Make --help output relevant.
79756         gnu-web-doc-update: add standard options
79757         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79759         gnu-web-doc-update: New module.
79760         Use this script to automatically update the on-line web documentation
79761         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79762         * modules/gnu-web-doc-update: New file, from coreutils.
79763         * build-aux/gnu-web-doc-update: New script.
79765 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79767         link: LoadLibrary is not needed.
79768         * lib/link.c: Use GetModuleHandle.
79770 2009-10-01  Eric Blake  <ebb9@byu.net>
79772         getopt: bump serial number
79773         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79774         change.
79776         tests: tighten link, rmdir, and remove tests
79777         * tests/test-link.h (includes): No need to use <config.h> here.
79778         Clean up if directory hard link was created, otherwise test for
79779         trailing '.'.
79780         * tests/test-linkat.c (main): Simplify.
79781         * tests/test-remove.c (main): Enhance test for trailing '.'.
79782         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79784 2009-10-01  Jim Meyering  <meyering@redhat.com>
79786         maint.mk: requiring "make major" was annoying, for a "minor" release.
79787         What is intended is "stable", to contrast with alpha and beta,
79788         so require "make stable", not "make major".
79789         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79790         (get_tool_versions): Likewise.
79791         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79793 2009-09-30  Ben Pfaff  <blp@gnu.org>
79795         Fix broken build of replacement for Windows tmpfile().
79796         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79797         flags argument added along with the 'mkostemp' module.
79799 2009-09-28  Bruno Haible  <bruno@clisp.org>
79801         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79802         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79803         to 'remove_elt'.
79804         (gl_list_remove): Update.
79805         * lib/gl_list.c (gl_list_remove): Update.
79806         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79807         to 'remove_elt'.
79808         (gl_oset_remove): Update.
79809         * lib/gl_list.c (gl_oset_remove): Update.
79810         Reported by Eric Blake.
79812 2009-09-28  Eric Blake  <ebb9@byu.net>
79814         doc: mention yet more cygwin 1.7 status
79815         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79816         cygwin.
79817         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79818         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79820         argp: fix test failure
79821         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79822         that are not upper-case.  Pass correct range to tolower.
79824 2009-09-27  Jim Meyering  <meyering@redhat.com>
79826         test-yesno: work around sparc-dash here-document infelicity
79827         Without this change, the literal \177 byte in a here document
79828         would make dash 0.5.5.1-3 access uninitialized memory.
79829         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79830         Instead, use a marker, "@", and filter through tr to create the desired
79831         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79833 2009-09-27  Bruno Haible  <bruno@clisp.org>
79835         Disable untested support for new flavours of ACLs on AIX.
79836         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79837         progress.
79838         * lib/set-mode-acl.c (qset_acl): Likewise.
79840 2008-12-07  Bruno Haible  <bruno@clisp.org>
79842         Add support for new flavours of ACLs on AIX. (Untested.)
79843         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79844         (file_has_acl): Add support for newer AIX.
79845         * lib/set-mode-acl.c (qset_acl): Likewise.
79846         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79847         Rainer Tammer <tammer@tammer.net>.
79849 2009-09-26  Eric Blake  <ebb9@byu.net>
79851         argp: fix compilation of getopt
79852         * lib/getopt.in.h (includes): Use different guard than glibc.
79853         Reported by Sergey Poznyakoff.
79855         doc: mention more cygwin 1.7 status
79856         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79857         bug.
79858         * doc/posix-functions/execl.texi (execl): Likewise.
79859         * doc/posix-functions/execle.texi (execle): Likewise.
79860         * doc/posix-functions/execlp.texi (execlp): Likewise.
79861         * doc/posix-functions/execv.texi (execv): Likewise.
79862         * doc/posix-functions/execve.texi (execve): Likewise.
79863         * doc/posix-functions/execvp.texi (execvp): Likewise.
79864         * doc/glibc-functions/canonicalize_file_name.texi
79865         (canonicalize_file_name): Cygwin 1.7 now provides this.
79866         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79867         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79868         on AT_SYMLINK_NOFOLLOW.
79870 2009-09-24  Eric Blake  <ebb9@byu.net>
79872         test-linkat: make test more robust
79873         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79875         getopt: fix inclusion guards for cygwin
79876         * modules/getopt-posix (Depends-on): Add include-next.
79877         (Makefile.am): Substitute more items in replacement header.
79878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79879         <getopt.h>.
79880         * lib/getopt.in.h (includes): Use split inclusion guard, and
79881         prefer <getopt.h> over include <unistd.h> when one is present.
79882         (option): Also override name of 'struct option'.
79884         same-inode: revert prior change; it is not yet ready
79885         * NEWS: Undo mention of this change.
79886         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79887         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79888         * lib/cycle-check.c (cycle_check): Likewise.
79889         * lib/same.c (same_name): Likewise.
79890         * lib/at-func2.c (at_func2): Likewise.
79892 2009-09-23  Eric Blake  <ebb9@byu.net>
79894         linkat: new module
79895         * modules/linkat: New file.
79896         * lib/at-func2.c (at_func2): Likewise.
79897         * lib/linkat.c (linkat): Likewise.
79898         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79899         * lib/openat-priv.h (at_func2): Add declaration.
79900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79901         * modules/unistd (Makefile.am): Substitute them.
79902         * lib/unistd.in.h (linkat): Declare it.
79903         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79904         * doc/posix-functions/linkat.texi (linkat): Likewise.
79905         * doc/posix-functions/link.texi (link): Tweak wording.
79906         * tests/test-link.c (main): Move guts...
79907         * tests/test-link.h (test_link): ...into new file.
79908         * modules/linkat-tests: New test.
79909         * tests/test-linkat.c: Likewise.
79910         * modules/link-tests (Files): Ship new file.
79911         (Depends-on): Add stdbool.
79913         dirname: add library-safe mdir_name
79914         * lib/dirname.h (mdir_name): New prototype.
79915         * lib/dirname.c (dir_name): Move guts...
79916         (mdir_name): ...to new function that avoids xalloc_die.
79918         fchdir: another mingw fix
79919         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79920         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79921         on mingw (where it has not yet been ported), and make it optional
79922         elsewhere.
79923         (_gl_register_fd): Use it.
79925         same-inode: make SAME_INODE tri-state, to port to mingw
79926         * NEWS: Mention this change.
79927         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79928         st_ino always being 0.
79929         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79930         * lib/cycle-check.c (cycle_check): Likewise.
79931         * lib/same.c (same_name): Likewise.
79933         lstat: avoid mingw compilation error
79934         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79935         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79936         lstat ourselves.
79937         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79938         was adequate.
79939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79940         the checks for lstat.
79941         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79943         link: fix test failure on Solaris 9
79944         * lib/link.c (rpl_link): Don't assume link will catch bogus
79945         trailing slash on source.
79947         test-symlinkat: enhance test
79948         * tests/test-readlink.c (main): Move guts...
79949         * tests/test-readlink.h (test_readlink): ...into new file.
79950         * tests/test-symlink.c (main): Move guts...
79951         * tests/test-symlink.h (test_symlink): ...into new file.
79952         * tests/test-symlinkat.c (main): Use new files for further
79953         coverage.
79954         (do_symlink, do_readlink): New helper functions.
79955         * modules/symlink-tests (Files): Ship new file.
79956         (Depends-on): Add stdbool.
79957         * modules/readlink-tests (Files): Ship new file.
79958         (Depends-on): Add stdbool.
79959         * modules/symlinkat-tests (Files): Use new files.
79961 2009-09-23  Eric Blake  <ebb9@byu.net>
79963         readlink: document portability issue with symlink length
79964         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79965         systems have bogus st_size on symlinks, and mention the
79966         areadlink-with-size module.
79967         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79968         * doc/posix-functions/readlink.texi (readlink): Mention the
79969         areadlink module, and ERANGE failure.
79970         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79971         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79973         readlink: fix Solaris 9 bug with trailing slash
79974         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79975         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79976         * doc/posix-functions/readlink.texi (readlink): Document this.
79977         * modules/readlink-tests: New test.
79978         * tests/test-readlink.c: Likewise.
79980         readlink: fix cygwin 1.5.x bug with return type
79981         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79982         * lib/unistd.in.h (readlink): Use ssize_t.
79983         * lib/readlink.c (readlink): Likewise.
79984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79985         * modules/unistd (Makefile.am): Substitute it.
79986         * lib/unistd.in.h (readlink): Declare replacement.
79987         * doc/posix-functions/readlink.texi (readlink): Document this.
79989         symlink: use throughout gnulib
79990         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79991         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79992         symlink is not used.
79993         * modules/symlinkat (Depends-on): Add symlink.
79994         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79995         * modules/canonicalize-tests (Depends-on): Likewise.
79996         * modules/lstat-tests (Depends-on): Likewise.
79997         * modules/openat-tests (Depends-on): Likewise.
79998         * modules/remove-tests (Depends-on): Likewise.
79999         * modules/rmdir-tests (Depends-on): Likewise.
80000         * modules/unlink-tests (Depends-on): Likewise.
80001         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80002         * tests/test-canonicalize.c (symlink): Likewise.
80003         * tests/test-fstatat.c (symlink): Likewise.
80004         * tests/test-lstat.c (symlink): Likewise.
80005         * tests/test-remove.c (symlink): Likewise.
80006         * tests/test-rmdir.c (symlink): Likewise.
80007         * tests/test-unlink.c (symlink): Likewise.
80008         * tests/test-unlinkat.c (symlink): Likewise.
80010         symlink: new module, for Solaris 9 bug
80011         * modules/symlink: New file.
80012         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80013         * lib/symlink.c: Likewise.
80014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80015         * modules/unistd (Makefile.am): Substitute them.
80016         * lib/unistd.in.h (symlink): Declare replacement.
80017         * MODULES.html.sh (File system functions): Mention it.
80018         * doc/posix-functions/symlink.texi (symlink): Likewise.
80019         * modules/symlink-tests: New test.
80020         * tests/test-symlink.c: Likewise.
80022 2009-09-23  Bruno Haible  <bruno@clisp.org>
80024         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80025         when needed.
80026         Test case: gnulib-tool --import --with-tests atexit inttypes.
80027         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80029 2009-09-23  Bruno Haible  <bruno@clisp.org>
80031         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80032         subcommand, not in a subshell.
80034 2009-09-22  Eric Blake  <ebb9@byu.net>
80036         unistd: sort replacement declarations
80037         * lib/unistd.in.h: Sort declarations.
80039         open, openat: minor optimization
80040         * lib/open.c (open): If open succeeded, len is non-zero.
80041         * lib/openat.c (rpl_openat): Likewise.
80043         link-follow: ensure correct result
80044         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80045         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80046         distinguish between possible failures.
80048 2009-09-21  Eric Blake  <ebb9@byu.net>
80050         fts: avoid compiler warning
80051         * lib/fts.c (dirent_inode_sort_may_be_useful)
80052         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80054 2009-09-19  Bruno Haible  <bruno@clisp.org>
80056         * lib/progreloc.c (canonicalize_file_name): New declaration.
80058 2009-09-19  Eric Blake  <ebb9@byu.net>
80060         link: fix quoting
80061         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80063         openat: fix openat bugs on Solaris 9
80064         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80065         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80066         * modules/openat (Depends-on): Add open.
80067         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80068         * modules/fcntl-h (Makefile.am): Substitute it.
80069         * lib/fcntl.in.h (openat): Declare replacement.
80070         * doc/posix-functions/openat.texi (openat): Document this.
80072         openat: move fstatat and unlinkat into correct files
80073         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80074         compiled.
80075         * lib/openat.c (fstatat, unlinkat): Move...
80076         * lib/fstatat.c (fstatat): ...into correct files.
80077         * lib/unlinkat.c (unlinkat): Likewise.
80079         openat: fix unlinkat bugs on Solaris 9
80080         * lib/unlinkat.c (unlinkat): New file.
80081         * modules/openat (Depends-on): Add unlink.
80082         (Files): Distribute it.
80083         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80084         trailing slash behavior is broken.
80085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80086         * modules/unistd (Makefile.am): Substitute it.
80087         * lib/unistd.in.h (unlinkat): Declare replacement.
80088         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80090         openat: fix fstatat bugs on Solaris 9
80091         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80092         stat.
80093         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80095         test-unlinkat: enhance test, to expose Solaris 9 bug
80096         * tests/test-unlink.c (main): Factor guts...
80097         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80098         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80099         * tests/test-rmdir.c (main): Adjust caller.
80100         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80101         (unlinker): New helper function.
80102         (rmdirat): Enhance check.
80103         * modules/rmdir-tests (Depends-on): Add stdbool.
80104         * modules/unlink-tests (Depends-on): Likewise.
80105         (Files): Add test-unlink.h.
80106         * modules/openat-tests (Files): Likewise.
80107         (Depends-on): Add unlinkdir.
80109         test-fstatat: new test, to expose Solaris 9 bugs
80110         * tests/test-stat.c (main): Factor guts...
80111         * tests/test-stat.h (test_stat_func): ...into new file.
80112         * tests/test-lstat.c (main): Factor guts...
80113         * tests/test-lstat.h (test_lstat_func): ...into new file.
80114         * tests/test-fstatat.c: New file.
80115         * modules/stat-tests (Files): Add test-stat.h.
80116         * modules/lstat-tests (Files): Add test-lstat.h.
80117         (Depends-on): Add stdbool.
80118         * modules/openat-tests (Depends-on): Add pathmax.
80119         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80120         (Makefile.am): Run new test.
80122         remove: new module, for mingw and Solaris 9 bugs
80123         * modules/remove: New file.
80124         * lib/remove.c: Likewise.
80125         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80127         * modules/stdio (Makefile.am): Use them.
80128         * lib/stdio.in.h (remove): Declare replacement.
80129         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80130         * doc/posix-functions/remove.texi (remove): Likewise.
80131         * modules/remove-tests: New test.
80132         * tests/test-remove.c: Likewise.
80134         unlink: new module, for Solaris 9 bug
80135         * modules/unlink: New file.
80136         * lib/unlink.c: Likewise.
80137         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80139         * modules/unistd (Makefile.am): Use them.
80140         * lib/unistd.in.h (stat): Declare replacement.
80141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80142         * doc/posix-functions/unlink.texi (unlink): Likewise.
80143         * modules/unlink-tests: New test.
80144         * tests/test-unlink.c: Likewise.
80146         lstat: fix Solaris 9 bug
80147         * lib/lstat.c (lstat): Also check for trailing slash on
80148         non-symlink, non-directories.  Use stat module to simplify logic.
80149         * doc/posix-functions/lstat.texi (lstat): Document it.
80150         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80151         (configure.ac): Check for symlink.
80152         * tests/test-lstat.c (main): Add more tests.
80154         stat: add as dependency to other modules
80155         * modules/chown (Depends-on): Add stat.
80156         * modules/euidaccess (Depends-on): Likewise.
80157         * modules/fchdir (Depends-on): Likewise.
80158         * modules/isdir (Depends-on): Likewise.
80159         * modules/link (Depends-on): Likewise.
80160         * modules/lstat (Depends-on): Likewise.
80161         * modules/mkdir-p (Depends-on): Likewise.
80162         * modules/modechange (Depends-on): Likewise.
80163         * modules/open (Depends-on): Likewise.
80164         * modules/readlink (Depends-on): Likewise.
80165         * modules/same (Depends-on): Likewise.
80167         stat: fix Solaris 9 bug
80168         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80169         slash.
80170         * lib/stat.c (rpl_stat): Work around it.
80171         * doc/posix-functions/stat.texi (stat): Update documentation.
80173         stat: new module, for mingw bug
80174         * modules/stat: New file.
80175         * lib/stat.c: Likewise.
80176         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80177         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80178         * modules/sys_stat (Makefile.am): Use them.
80179         * lib/sys_stat.in.h (stat): Declare replacement.
80180         * lib/openat.c (fstatat): Deal with lstat and stat being function
80181         macros.
80182         * modules/openat (Depends-on): Add inline.
80183         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80184         * doc/posix-functions/stat.texi (stat): Likewise.
80185         * modules/stat-tests: New test.
80186         * tests/test-stat.c: Likewise.
80188 2009-09-19  Jim Meyering  <meyering@redhat.com>
80190         syntax-check: detect unnecessary inclusion of canonicalize.h
80191         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80193 2009-09-19  Eric Blake  <ebb9@byu.net>
80195         canonicalize-lgpl: adjust clients to use correct header
80196         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80197         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80198         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80199         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80200         * lib/progreloc.c (includes): Likewise.
80202 2009-09-19  Jim Meyering  <meyering@redhat.com>
80204         test-posixtm.c: correct a comment
80205         * tests/test-posixtm.c: Correct first-line comment.
80206         Spotted by Eric Blake.
80208 2009-09-16  Jim Meyering  <meyering@redhat.com>
80210         posixtm-tests: make T const-correct; add a test case
80211         * tests/test-posixtm.c (T): Declare const.
80212         Add a test for -(2^31+1).
80213         Remove useless can-succeed-only-in-2002 test.
80215         posixtm-tests: adjust the sole failing test
80216         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80217         expected output matches what mktime now produces.  Cross-checked via
80218         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80220         posixtm: move #ifdef'd tests into a new module
80221         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80222         * tests/test-posixtm.c: ... this new file.
80223         * modules/posixtm-tests: New module.
80225 2009-09-19  Eric Blake  <ebb9@byu.net>
80227         openat: simplify use of at-func.c
80228         * lib/at-func.c (includes): Include prerequisites here, to
80229         simplify requirements on client files.
80230         * lib/openat-priv.h: Add double-inclusion guard.
80231         * lib/faccessat.c (includes): Simplify.
80232         * lib/fchmodat.c (includes): Likewise.
80233         * lib/fchownat.c (includes): Likewise.
80234         * lib/mkdirat.c (includes): Likewise.
80235         * lib/mkfifoat.c (includes): Likewise.
80236         * lib/symlinkat.c (includes): Likewise.
80238         openat: allow return of fd 0
80239         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80240         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80241         unistd-safer.
80242         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80243         <fcntl.h>; this module does not leak fds.
80244         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80245         must be allowed to return 0, leaving openat_safer to add the
80246         safety.
80247         (openat_permissive): Avoid writing to just-opened fd 2 if
80248         restoring the current directory fails.
80249         * lib/openat-die.c (openat_restore_fail): Add comment.
80250         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80251         (save_cwd): Guarantee safe fd, but without use of open_safer.
80252         * tests/test-openat.c: New test.
80253         * modules/openat-tests (Files, Makefile.am): Distribute and build
80254         new file.
80256         relocatable-prog-wrapper: fix build
80257         * modules/relocatable-prog-wrapper (Files): Update name of
80258         canonicalize m4 file, broken on 2009-09-17.
80259         Reported by emad hajjar <aleppos@hotmail.com>.
80261 2009-09-19  Bruno Haible  <bruno@clisp.org>
80263         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80264         * lib/safe-alloc.c: Likewise.
80265         Reported by Ian Beckwith <ianb@erislabs.net>.
80267 2009-09-18  Bruno Haible  <bruno@clisp.org>
80269         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80270         Reported by <erobles@sensacd.com.mx>.
80272 2009-09-17  Eric Blake  <ebb9@byu.net>
80274         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80275         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80276         slashes when checking if last component is missing.
80277         * tests/test-canonicalize.c (main): Test this.
80279         canonicalize, canonicalize-lgpl: honor // if distinct from /
80280         * modules/canonicalize (Files): Add double-slash-root.m4.
80281         * modules/canonicalize-lgpl (Files): Likewise.
80282         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80283         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80284         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80285         fallback definition.
80286         (canonicalize_filename_mode): Use it to protect //.
80287         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80288         (__realpath): Likewise.
80289         * tests/test-canonicalize.c (main): Test this.
80290         * tests/test-canonicalize-lgpl.c (main): Likewise.
80291         * modules/canonicalize-tests (Depends-on): Add same-inode.
80292         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80294         canonicalize-lgpl: fix glibc bug with trailing slash
80295         * m4/canonicalize-lgpl.m4: Move contents...
80296         * m4/canonicalize.m4: ...here.
80297         (gl_CANONICALIZE_LGPL): Factor realpath check...
80298         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80299         glibc 2.3.5 bug, fixed 2005-04-27.
80300         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80301         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80302         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80303         * modules/canonicalize-lgpl (Files): Manage file rename.
80304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80305         * modules/stdlib (Makefile.am): Substitute witness.
80306         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80307         is needed.
80308         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80309         replacement is required.
80310         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80311         * doc/glibc-functions/canonicalize_file_name.texi
80312         (canonicalize_file_name): Document this.
80313         * doc/posix-functions/realpath.texi (realpath): Likewise.
80315         canonicalize-lgpl: reject non-directory with trailing slash
80316         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80317         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80318         catches failures in glibc 2.3.5.
80319         * tests/test-canonicalize.c (main): Likewise.
80321         canonicalize-lgpl: use native realpath if it works
80322         * lib/canonicalize-lgpl.c (realpath): Guard with
80323         FUNC_REALPATH_WORKS.
80324         * lib/stdlib.in.h (realpath): Make declaration optional based on
80325         HAVE_REALPATH.
80326         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80327         native realpath works.
80328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80329         * modules/stdlib (Makefile.am): Substitute witness.
80331         canonicalize, canonicalize-lgpl: use <stdlib.h>
80332         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80333         (Include): Mention <stdlib.h>.
80334         (configure.ac): Mention functions we provide.
80335         * modules/canonicalize (configure.ac): Likewise.
80336         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80337         realpath if canonicalize_file_name is missing.
80338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80339         * modules/stdlib (Makefile.am): Substitute witnesses.
80340         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80341         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80342         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80343         * NEWS: Document this.
80344         * doc/glibc-functions/canonicalize_file_name.texi
80345         (canonicalize_file_name): Likewise.
80346         * doc/posix-functions/realpath.texi (realpath): Likewise.
80347         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80349         test-canonicalize: consolidate into single C program
80350         * tests/test-canonicalize.sh: Delete; move setup into...
80351         * tests/test-canonicalize.c (main): ...the program, making it
80352         easier to run in debugger.  Add some tests.
80353         * modules/canonicalize-tests (Files): Remove unused file.
80354         (Depends-on): Add progname.
80355         (configure.ac, Makefile.am): Simplify.
80357         test-canonicalize-lgpl: consolidate into single C program
80358         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80359         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80360         easier to run in debugger.  Add some tests.
80361         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80362         (configure.ac, Makefile.am): Simplify.
80364         canonicalize: avoid resolvepath
80365         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80366         unnecessary checks.
80367         * lib/canonicalize.c (includes): Simplify.
80368         (canonicalize_file_name): Drop resolvepath implementation.
80369         * modules/canonicalize (Depends-on): Drop filenamecat.
80371         canonicalize: don't lose errno
80372         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80373         over calls to free.
80375         canonicalize: simplify errno handling
80376         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80377         assignment.
80379         canonicalize, canonicalize-lgpl: update module dependencies
80380         * modules/canonicalize (Depends-on): Add extensions, lstat,
80381         pathmax, stdlib.
80382         (Files): Drop pathmax.h.
80383         (configure.ac): Adjust macro name.
80384         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80385         lstat, stdlib, sys_stat.
80386         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80387         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80388         extensions.
80389         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80390         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80391         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80392         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80393         declaration, if available.
80394         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80395         we can rely on the readlink module.
80396         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80397         (includes): Use <unistd.h> unconditionally.
80399 2009-09-17  Eric Blake  <ebb9@byu.net>
80401         maint: make Include sections of modules consistent
80402         * modules/alloca: Use only header name; no need to list #include.
80403         * modules/alloca-opt: Likewise.
80404         * modules/arpa_inet: Likewise.
80405         * modules/canon-host: Likewise.
80406         * modules/configmake: Likewise.
80407         * modules/dirent: Likewise.
80408         * modules/eealloc: Likewise.
80409         * modules/environ: Likewise.
80410         * modules/fchdir: Likewise.
80411         * modules/fcntl: Likewise.
80412         * modules/fcntl-h: Likewise.
80413         * modules/gethrxtime: Likewise.
80414         * modules/gettime: Likewise.
80415         * modules/ignore-value: Likewise.
80416         * modules/inet_ntop: Likewise.
80417         * modules/inet_pton: Likewise.
80418         * modules/inttypes: Likewise.
80419         * modules/isnand-nolibm: Likewise.
80420         * modules/isnanf-nolibm: Likewise.
80421         * modules/mbchar: Likewise.
80422         * modules/mbfile: Likewise.
80423         * modules/mbiter: Likewise.
80424         * modules/mbuiter: Likewise.
80425         * modules/netdb: Likewise.
80426         * modules/netinet_in: Likewise.
80427         * modules/nproc: Likewise.
80428         * modules/pagealign_alloc: Likewise.
80429         * modules/poll: Likewise.
80430         * modules/printf-frexp: Likewise.
80431         * modules/pthread: Likewise.
80432         * modules/putenv: Likewise.
80433         * modules/random_r: Likewise.
80434         * modules/relocatable-prog: Likewise.
80435         * modules/search: Likewise.
80436         * modules/select: Likewise.
80437         * modules/selinux-h: Likewise.
80438         * modules/settime: Likewise.
80439         * modules/signal: Likewise.
80440         * modules/size_max: Likewise.
80441         * modules/socklen: Likewise.
80442         * modules/ssize_t: Likewise.
80443         * modules/stdarg: Likewise.
80444         * modules/stdbool: Likewise.
80445         * modules/stddef: Likewise.
80446         * modules/stdint: Likewise.
80447         * modules/stdio: Likewise.
80448         * modules/stdlib: Likewise.
80449         * modules/string: Likewise.
80450         * modules/strings: Likewise.
80451         * modules/sys_file: Likewise.
80452         * modules/sys_ioctl: Likewise.
80453         * modules/sys_select: Likewise.
80454         * modules/sys_socket: Likewise.
80455         * modules/sys_stat: Likewise.
80456         * modules/sys_time: Likewise.
80457         * modules/sys_times: Likewise.
80458         * modules/sys_utsname: Likewise.
80459         * modules/sys_wait: Likewise.
80460         * modules/sysexits: Likewise.
80461         * modules/time: Likewise.
80462         * modules/times: Likewise.
80463         * modules/tmpfile: Likewise.
80464         * modules/trim: Likewise.
80465         * modules/unistd: Likewise.
80466         * modules/wchar: Likewise.
80467         * modules/wctype: Likewise.
80469 2009-09-17  Bruno Haible  <bruno@clisp.org>
80471         Make getdate.y compile on QNX and NetBSD 5 / i386.
80472         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80473         TIME_T_FITS_IN_LONG_INT.
80474         * lib/getdate.y (long_time_t): New type.
80475         (relative_time): Change type of 'seconds' field to long_time_t.
80476         (get_date): Update types of local variables. Check against overflow
80477         during conversion from long_time_t to time_t.
80478         Reported by Matt Kraai <kraai@ftbfs.org>
80479         and Hasso Tepper <hasso@netbsd.org>.
80481 2009-09-17  Bruno Haible  <bruno@clisp.org>
80483         * modules/COPYING: Update copyright years.
80484         * modules/README: Likeiwse.
80485         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80486         Reported by Ian Beckwith <ianb@erislabs.net>.
80488 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80490         * users.txt: Update references for gnuit package.
80492 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80494         * m4/getdelim.m4: Fix typo in copyright line.
80496 2009-09-17  Bruno Haible  <bruno@clisp.org>
80498         * lib/atoll.c: Use the standard header with GPL copyright.
80499         * lib/argz.in.h: Likewise.
80500         * lib/glob.c: Likewise.
80501         * lib/glob-libc.h: Likewise.
80502         * lib/random_r.c: Likewise.
80503         * lib/siglist.h: Likewise.
80504         * lib/strsignal.c: Likewise.
80505         Reported by Ian Beckwith <ianb@erislabs.net>.
80507 2009-09-17  Eric Blake  <ebb9@byu.net>
80509         rmdir: ensure correct dependency order
80510         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80512 2009-09-17  Bruno Haible  <bruno@clisp.org>
80514         Disable assertion that fails on NetBSD 5 / i386.
80515         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80516         Reported by Sam Steingold <sds@gnu.org>
80517         and Hasso Tepper <hasso@netbsd.org>.
80519 2009-09-16  Eric Blake  <ebb9@byu.net>
80521         unlinkdir: port to mingw
80522         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80523         on which no one can unlink a directory.
80525         stdlib: sort witness names
80526         * modules/stdlib (Makefile.am): Sort replacements.
80527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80528         * lib/stdlib.in.h: Likewise.
80530         parse-duration-tests: avoid link failure
80531         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80532         LIBINTL.
80533         Reported by Tom G. Christensen.
80535         openat-tests: ensure unlinkat behaves like rmdir
80536         * tests/test-rmdir.c (main): Factor guts...
80537         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80538         * modules/rmdir-tests (Files): Ship new file.
80539         * modules/openat-tests: New test.
80540         * tests/test-unlinkat.c: Likewise.
80542         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80543         * modules/rmdir-errno (Status, Notice): Now obsolete.
80545         rmdir: work around cygwin 1.5.x and mingw bugs
80546         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80547         * lib/rmdir.c (rmdir): Work around it.
80548         * modules/rmdir (Status, Notice): No longer obsolete.
80549         (Files): Add dos.m4.
80550         (Depends-on): Add unistd.
80551         (configure.ac): Set witnesses.
80552         (License): Relax to LGPLv2+.
80553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80554         * modules/unistd (Makefile.am): Substitute witnesses.
80555         * lib/unistd.in.h (rmdir): Declare replacement.
80556         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80557         * modules/rmdir-tests: New tests.
80558         * tests/test-rmdir.c: Likewise.
80560 2009-09-15  Eric Blake  <ebb9@byu.net>
80562         fchdir: improve use of replacement functions
80563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80564         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80565         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80566         REPLACE_CLOSEDIR.
80567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80568         * modules/sys_stat (Makefile.am): Substitute correct witness.
80569         * modules/dirent (Makefile.am): Likewise.
80570         * modules/unistd (Makefile.am): Likewise.
80571         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80572         * lib/unistd.in.h (dup): Likewise.
80573         * lib/sys_stat.in.h (fstat): Likewise.
80575         maint: ignore gnulib-tool temp files
80576         * .gitignore: Ignore files created during gnulib-tool --test.
80578 2009-09-13  Jim Meyering  <meyering@redhat.com>
80580         posixtm: don't reject a time that specify "60" as the number of seconds
80581         * lib/posixtm.c (posixtime): The code to reject invalid dates
80582         would also reject a time specified with the .60 suffix.
80583         But POSIX allows that, in order to accommodate leap seconds.
80584         So don't reject it.
80585         (main): Adjust tests accordingly.
80586         * modules/posixtm (Depends-on): Add stpcpy.
80588 2009-09-11  Jim Meyering  <meyering@redhat.com>
80590         announce-gen: include [$release_type] in emitted Subject:
80591         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80592         e.g., [stable] in the emitted Subject: line.
80594 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80596         Remove obsolete macros from several modules.
80597         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80598         obsolete Autoconf macros with their modern counterparts.
80599         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80600         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80602         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80603         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80604         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80606         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80607         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80608         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80609         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80610         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80611         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80612         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80613         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80614         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80615         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80616         * m4/time_r.m4 (gl_TIME_R): Likewise.
80617         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80618         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80619         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80621         Fix copyright header in build-aux scripts.
80622         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80623         recommendation.
80624         * build-aux/ncftpput-ftp: Likewise.
80625         * build-aux/update-copyright: Likewise.
80627 2009-09-09  Eric Blake  <ebb9@byu.net>
80629         test-link: allow Linux choice of errno
80630         * tests/test-link.c (main): Relax test for alternate error.
80632         strndup: fix improper m4 caching
80633         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80634         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80635         (gl_PREREQ_STRNDUP): Delete.
80636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80637         * modules/string (Makefile.am): Substitute it.
80638         * lib/string.in.h (strndup): Modernize prototype.
80640         getcwd: port to mingw
80641         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80642         different from the POSIX assumptions made throughout the getcwd
80643         module; fortunately, the mingw getcwd does not need replacement.
80644         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80645         * modules/getcwd-tests: New test.
80646         * tests/test-getcwd.c: Likewise.
80648         link: fix platform bugs
80649         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80650         * lib/link.c (link): Work around them.  Fix related mingw bug.
80651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80652         * modules/unistd (Makefile.am): Substitute it.
80653         * lib/unistd.in.h (link): Declare replacement.
80654         * doc/posix-functions/link.texi (link): Document this.
80655         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80657         test-link: consolidate into single C program, test more cases
80658         * tests/test-link.sh: Delete.
80659         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80660         at least Cygwin and Solaris.
80661         * modules/link-tests (Files): Remove unused file.
80662         (Depends-on): Add errno, sys_stat.
80663         (Makefile.am): Simplify.
80665 2009-09-08  Bruno Haible  <bruno@clisp.org>
80667         Work around towlower, towupper bug on mingw.
80668         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80669         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80670         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80671         * doc/posix-functions/towupper.texi: Likewise.
80672         Reported by Eric Blake.
80674 2009-09-08  Jim Meyering  <meyering@redhat.com>
80676         build: don't try to run autoheader if we don't use it
80677         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80678         is not used in configure.ac.
80680 2009-09-08  Eric Blake  <ebb9@byu.net>
80682         euidaccess: fix compilation error
80683         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80685         rawmemchr: relax license
80686         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80687         okay.
80688         Reported by Jim Meyering.
80690         mkfifoat: new module
80691         * modules/mkfifoat: New file.
80692         * lib/mkfifoat.c: Likewise.
80693         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80695         * modules/sys_stat (Makefile.am): Use them.
80696         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80697         * MODULES.html.sh (File system functions): Mention module.
80698         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80699         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80700         * modules/mkfifoat-tests: New test.
80701         * tests/test-mkfifoat.c: Likewise.
80703         strchrnul: relax license
80704         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80705         okay.
80706         Reported by Jim Meyering.
80708 2009-09-08  Eric Blake  <ebb9@byu.net>
80710         fstatat: fix compilation on Solaris
80711         * lib/fstatat.c (includes): Add fcntl.h.
80712         Reported by Pádraig Brady.
80714 2009-09-07  Eric Blake  <ebb9@byu.net>
80716         rename: modernize replacement
80717         * modules/rename (Depends-on): Add stdio.
80718         (configure.ac): Declare witness.
80719         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80720         stdio take care of replacement.
80721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80722         * modules/stdio (Makefile.am): Substitute them.
80723         * lib/stdio.in.h (rename): Declare replacement.
80724         * lib/rename.c (includes): Allow cross-compilation to non-windows
80725         machines.
80726         * doc/posix-functions/rename.texi (rename): Improve
80727         documentation.
80729         stdio: sort witness names
80730         * modules/stdio (Makefile.am): Sort replacements.
80731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80732         * lib/stdio.in.h: Likewise.
80734         getcwd: minor cleanups
80735         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80736         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80738         openat: provide more convenience names
80739         * modules/faccessat (configure.ac): Add C witness.
80740         * lib/unistd.in.h (readlinkat): Fix typo.
80741         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80742         convenience wrappers.
80743         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80744         wrappers in syntax checks.
80746 2009-09-06  Eric Blake  <ebb9@byu.net>
80748         doc: fix comments in recent patches
80749         * lib/faccessat.c: Mention correct function.
80750         * lib/fchmodat.c: Likewise.
80751         * lib/fchownat.c: Likewise.
80752         * lib/symlinkat.c: Likewise.
80753         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80754         constants.
80756         faccessat, symlinkat: continue cleanup of previous patch
80757         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80758         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80759         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80761         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80762         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80763         set.
80765 2009-09-06  Bruno Haible  <bruno@clisp.org>
80767         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80768         (fstatat): Declare if GNULIB_FSTATAT is set.
80769         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80770         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80771         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80772         * modules/fcntl-h (Files): Remove m4/openat.m4.
80773         * modules/sys_stat (Files): Remove m4/openat.m4.
80774         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80775         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80776         * modules/unistd (Files): Remove m4/openat.m4.
80777         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80778         GNULIB_OPENAT.
80779         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80780         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80782         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80783         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80784         gl_OPENAT_DEFAULTS.
80785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80786         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80787         Don't require gl_OPENAT_DEFAULTS.
80788         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80789         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80790         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80791         (gl_OPENAT_DEFAULTS): Remove macro.
80793 2009-09-06  Bruno Haible  <bruno@clisp.org>
80795         * modules/openat (configure.ac): Remove unneeded witness.
80797 2009-09-06  Bruno Haible  <bruno@clisp.org>
80799         Set errno to ENOSYS when a function is entirely unsupported.
80800         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80801         EOPNOTSUPP.
80802         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80803         * modules/chown (Depends-on): Remove errno.
80805 2009-09-06  Bruno Haible  <bruno@clisp.org>
80807         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80809 2009-09-06  Bruno Haible  <bruno@clisp.org>
80811         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80813 2009-09-06  Ben Pfaff  <blp@gnu.org>
80814             Bruno Haible  <bruno@clisp.org>
80816         Work around a glibc bug in strtok_r.
80817         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80818         Undefine if UNDEFINE_STRTOK_R is set.
80819         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80821         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80822         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80823         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80824         UNDEFINE_STRTOK_R.
80825         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80827 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80829         exclude: minor fix
80830         * lib/exclude.c: Include wctype.h
80832 2009-09-06  Akim Demaille  <demaille@gostai.com>
80834         bootstrap: improve error message
80835         * build-aux/bootstrap (find_tool): Upon failure, report the list
80836         of candidates.
80837         Honor the initial value of the envvar.
80839 2009-09-05  Eric Blake  <ebb9@byu.net>
80841         symlinkat: new module
80842         * modules/symlinkat: New file.
80843         * lib/symlinkat.c: Likewise.
80844         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80846         * modules/unistd (Makefile.am): Use them.
80847         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80848         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80849         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80850         * MODULES.html.sh (File system functions): Mention module.
80851         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80852         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80853         * modules/symlinkat-tests: New test.
80854         * tests/test-symlinkat.c: Likewise.
80856         test-openat-safer: add more checks
80857         * tests/test-openat-safer.c (main): Check more code paths.
80859 2009-09-05  Jim Meyering  <meyering@redhat.com>
80861         syntax-check: detect unnecessary inclusion of openat.h
80862         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80864 2009-09-05  Bruno Haible  <bruno@clisp.org>
80866         Support towlower, towupper.
80867         * doc/posix-functions/towlower.texi: Mention module wctype.
80868         * doc/posix-functions/towupper.texi: Likewise.
80869         * lib/wctype.in.h (towlower, towupper): New functions.
80870         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80871         (ASSERT): New macro.
80872         (e): New variable.
80873         (main): Test also towlower, towupper. Test WEOF argument.
80874         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80876 2009-09-05  Bruno Haible  <bruno@clisp.org>
80878         Fix conversion behaviour when the input is invalid.
80879         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80880         mark occurring in first pass of indirect conversion.
80881         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80882         input.
80883         Found by clang's static analyzer.
80885 2009-09-05  Bruno Haible  <bruno@clisp.org>
80887         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80888         where direct conversion is possible.
80890 2009-09-04  Eric Blake  <ebb9@byu.net>
80892         openat: fail with ENOENT on empty name
80893         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80894         buffer.
80896         link-follow: fix logic bug in prior patch
80897         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80898         reversed sense of yes and no in prior patch.  Avoid confusing
80899         compilation failure with desired semantics.
80901         link-follow: accommodate mingw and cross-compilation
80902         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80903         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80904         cross-compilation results to -1, to make linkat easier to
80905         implement when cross-compiling.  Trivially support mingw.
80906         * modules/link-follow (configure.ac): Call new name.
80907         * NEWS: Mention this.
80909 2009-09-03  Eric Blake  <ebb9@byu.net>
80911         faccessat: compile replacement
80912         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80913         needed.
80915         fts: fix compilation error
80916         * lib/fts.c (includes): Re-add "openat.h", for
80917         openat_needs_fchdir.
80919         faccessat: new module
80920         * modules/faccessat: New file.
80921         * lib/faccessat.c: Likewise.
80922         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80924         * modules/unistd (Makefile.am): Use it.
80925         * lib/unistd.in.h (faccessat): Declare it.
80926         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80927         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80928         * MODULES.html.sh (File system functions): Mention it.
80929         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80930         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80932         euidaccess: prefer POSIX over non-standard implementation
80933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80934         * lib/euidaccess.c (euidaccess): Use it if available.
80936         openat: make template easier to use
80937         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80938         AT_FUNC_F2 to be undefined.
80939         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80940         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80941         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80942         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80943         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80944         Likewise.
80945         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80946         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80947         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80948         Likewise.
80950         openat: declare in POSIX headers
80951         * NEWS: Mention this.
80952         * modules/openat (configure.ac): Declare witnesses.
80953         (Depends-on): Add fcntl-h, sys_stat, unistd.
80954         (Include): Mention correct headers.
80955         * modules/fcntl-h (Depends-on): Add link-warning.
80956         (Files): Add openat.m4.
80957         (Makefile.am): Substitute witnesses.
80958         * modules/sys_stat (Files, Makefile.am): Likewise.
80959         * modules/unistd (Files, Makefile.am): Likewise.
80960         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80961         (gl_OPENAT_DEFAULTS): New macro.
80962         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80965         (SYS_STAT_H): Remove unused variable.
80966         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80967         * lib/fcntl--.h (includes): Remove unneeded header.
80968         * lib/openat-safer.c (includes): Likewise.
80969         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80970         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80971         appropriate headers.
80972         (__OPENAT_PREFIX): Delete.
80973         * lib/fcntl.in.h (openat): Provide declaration.
80974         (AT_FDCWD): Fix Solaris bug.
80975         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80976         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80977         * lib/fchmodat.c (includes):  Adjust to find declaration.
80978         * lib/fchownat.c (includes): Likewise.
80979         * lib/mkdirat.c (includes): Likewise.
80980         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80981         still visible.
80983 2009-09-02  Eric Blake  <ebb9@byu.net>
80985         errno: use consistently
80986         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80987         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80988         * lib/canonicalize.c (ELOOP): Likewise.
80989         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80990         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80991         * lib/lchown.c (EOPNOTSUPP): Likewise.
80992         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80993         * lib/savewd.c (ESTALE): Likewise.
80994         * lib/settime.c (ENOSYS): Likewise.
80995         * lib/utimens.c (ENOSYS): Likewise.
80996         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80997         * lib/chdir-safer.c (ELOOP): Likewise.
80998         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80999         * modules/c-stack (Depends-on): Add errno.
81000         * modules/canonicalize (Depends-on): Likewise.
81001         * modules/chdir-safer (Depends-on): Likewise.
81002         * modules/fdopendir (Depends-on): Likewise.
81003         * modules/inet_ntop (Depends-on): Likewise.
81004         * modules/inet_pton (Depends-on): Likewise.
81005         * modules/lchown (Depends-on): Likewise.
81006         * modules/openat (Depends-on): Likewise.
81007         * modules/savewd (Depends-on): Likewise.
81008         * modules/settime (Depends-on): Likewise.
81009         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81011         fts: avoid leaking fds
81012         * modules/fts (Depends-on): Add cloexec.
81013         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81014         flag.
81016         fts: make directory fds more robust
81017         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81018         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81020         backupfile, chdir-long, fts, savedir: make safer
81021         * lib/backupfile.c (includes): Use "dirent--.h", since
81022         numbered_backup can write to stderr during readdir.
81023         * lib/savedir.c (includes): Likewise.
81024         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81025         emulation can write to stderr on failure.
81026         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81027         * lib/getcwd.c: Document why opendir_safer is unused.
81028         * lib/glob.c: Likewise.
81029         * lib/scandir.c: Likewise.
81030         * lib/openat-proc.c: Likewise, for open_safer.
81031         * modules/backupfile (Depends-on): Add dirent-safer.
81032         * modules/savedir (Depends-on): Likewise.
81033         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81034         * modules/chdir-long (Depends-on): Add openat-safer.
81036         openat-safer: new module
81037         * modules/openat-safer: New file.
81038         * lib/openat-safer.c: Likewise.
81039         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81040         * lib/fcntl-safer.h (openat_safer): Declare.
81041         * lib/fcntl--.h (openat): Override.
81042         * MODULES.html.sh (File descriptor based I/O): Mention it.
81043         * lib/openat.h: Add double-inclusion guards.
81044         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81045         "fcntl--.h", so we can implement openat.
81046         * modules/openat-safer-tests: New test.
81047         * tests/test-openat-safer.c: New file.
81049         dirent-safer: new module
81050         * modules/dirent-safer: New file.
81051         * lib/dirent--.h: Likewise.
81052         * lib/dirent-safer.h: Likewise.
81053         * lib/opendir-safer.c: Likewise.
81054         * m4/dirent-safer.m4: Likewise.
81055         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81056         * modules/dirent-safer-tests: New test.
81057         * tests/test-dirent-safer.c: New file.
81058         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81060         fdopendir: optimize on mingw
81061         * lib/unistd.in.h (_gl_directory_name): New prototype.
81062         * lib/fchdir.c (_gl_directory_name): Implement it.
81063         (fchdir): Use it to simplify implementation.
81064         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81065         fchdir, when available, to avoid calling [f]chdir().
81067         fdopendir: split into its own module
81068         * lib/openat.c (fdopendir): Move...
81069         * lib/fdopendir.c: ...into new file.
81070         * modules/fdopendir: New module.
81071         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81072         * modules/openat (Depends-on): Add fdopendir.
81073         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81074         fdopendir here.
81075         * modules/savedir (Depends-on): Only need fdopendir, not full
81076         openat.
81077         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81078         * lib/openat.h (fdopendir): Drop prototype.
81079         * lib/dirent.in.h (fdopendir): Provide prototype.
81080         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81081         * modules/dirent (Makefile.am): Substitute them.
81082         * MODULES.html.sh (File system functions): Mention it.
81083         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81084         * modules/fdopendir-tests: New file.
81085         * tests/test-fdopendir.c: Likewise.
81087         fchdir: use more consistent macro convention
81088         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81089         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81090         REPLACE_FCHDIR, rather than relying on config.h macros.
81091         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81092         inside a single make-time REPLACE_FCHDIR block, rather than using
81093         the config.h FCHDIR_REPLACEMENT.
81094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81095         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81096         Manage fstat replacement.
81097         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81098         REPLACE_FCHDIR.
81099         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81100         (Makefile.am): Substitute REPLACE_FCHDIR.
81101         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81102         FCHDIR_REPLACEMENT.
81103         * lib/dup-safer.c (dup_safer): Likewise.
81104         * lib/dup2.c (rpl_dup2): Likewise.
81105         * lib/dup3.c (rpl_dup3): Likewise.
81106         * lib/open.c (rpl_open): Likewise.
81108         fchdir: simplify error handling, and support dup3
81109         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81110         stdbool, malloc-posix, realloc-posix.
81111         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81112         (ensure_dirs_slot): Return false on allocation failure.
81113         (rpl_dup2): Delete.
81114         (_gl_register_dup): New function.
81115         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81116         (_gl_register_fd): Close fd on allocation failure.
81117         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81118         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81119         prototype.
81120         (rpl_dup2_fchdir): Delete prototype.
81121         * lib/open.c (open): Update caller.
81122         * lib/dup2.c (dup2): Track fchdir metadata.
81123         * lib/dup3.c (dup3): Likewise.
81124         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81127 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81129         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81130         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81131         don't pass arguments to AC_OUTPUT.
81133 2009-09-02  Bruno Haible  <bruno@clisp.org>
81135         * modules/mkdtemp (License): Relicense under LGPLv2+.
81136         Reported by Paolo Bonzini.
81138 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81140         Replace uses of obsolete autoconf macros in Jim's modules.
81141         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81142         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81143         can evoke a warning from autoconf when run with -Wobsolete
81144         enabled.  They were declared obsolete for good reasons (see
81145         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81146         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81147         should not continue using the deprecated macros.
81148         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81149         obsolete Autoconf macros with modern counterparts.
81150         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81151         * m4/dos.m4 (gl_AC_DOS): Likewise.
81152         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81153         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81154         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81155         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81157         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81158         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81159         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81160         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81161         Likewise.
81162         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81163         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81164         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81165         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81166         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81167         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81169 2009-09-01  Eric Blake  <ebb9@byu.net>
81171         fchdir: fix off-by-one bug in previous patch
81172         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81173         (_gl_unregister_fd): Delete useless if.
81175 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81177         maint.mk: sort the list of syntax-check rules
81178         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81179         easier to get a sense of progress when the rules are run sequentially
81180         and take a long time.
81182 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81184         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81185         * modules/netinet_in: Likewise.
81186         * modules/sys_file: Likewise.
81187         * modules/sys_ioctl: Likewise.
81188         * modules/sys_select: Likewise.
81189         * modules/sys_socket: Likewise.
81190         * modules/sys_stat: Likewise.
81191         * modules/sys_time: Likewise.
81192         * modules/sys_times: Likewise.
81193         * modules/sys_utsname: Likewise.
81194         * modules/sys_wait: Likewise.
81196 2009-09-01  Jim Meyering  <meyering@redhat.com>
81198         fts: help ensure that return values are not ignored
81199         * lib/fts_.h (__GNUC_PREREQ): Define.
81200         (__attribute_warn_unused_result__): Define.
81201         (fts_children, fts_close, fts_open, fts_read): Declare with
81202         __attribute_warn_unused_result__.
81204         fts: fts_close now fails also when closing a dir file descriptor fails
81205         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81206         and propagate to caller, along with errno.
81208         announce-gen: correct formatting in --help output
81209         * build-aux/announce-gen (usage): Move the one-line description in
81210         --help output "up", to where it belongs, just after Usage:.
81212 2009-08-31  Eric Blake  <ebb9@byu.net>
81214         fchdir: port to mingw
81215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81216         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81217         opened, then use a substitute.
81218         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81219         replacement.
81220         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81221         (_gl_register_fd): No need to check stat if open already filters
81222         all directories.
81223         (fchdir): Fix error condition to match POSIX.
81224         * modules/fchdir (Depends-on): Add sys_stat.
81225         * doc/posix-functions/open.texi (open): Document the limitation.
81226         * modules/fchdir-tests: New file.
81227         * tests/test-fchdir.c: Likewise.
81229         canonicalize: allow cross-testing from cygwin to mingw
81230         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81231         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81232         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81233         Likewise.
81234         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81235         target does not support symlinks.
81236         * tests/test-canonicalize-lgpl.sh: Likewise.
81238         chown: avoid compilation warning on mingw
81239         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81240         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81241         mingw.
81242         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81243         * modules/chown (Depends-on): Add errno.
81245 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81247         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81248         command.
81250 2009-08-31  Jim Meyering  <meyering@redhat.com>
81252         canonicalize: remove useless initialization
81253         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81254         initialization of local, "end".
81256 2009-08-30  Bruno Haible  <bruno@clisp.org>
81258         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81259         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81260         ENOSYS.
81262 2009-08-30  Bruno Haible  <bruno@clisp.org>
81264         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81265         /usr/xpg4/bin/tr when it exists.
81266         * tests/test-pipe-filter-gi1.sh: Likewise.
81268 2009-08-30  Bruno Haible  <bruno@clisp.org>
81270         Work around deficient /usr/bin/id program on Solaris.
81271         * tests/test-file-has-acl.sh (ID): New variable.
81272         * tests/test-set-mode-acl.sh (ID): Likewise.
81273         * tests/test-copy-acl.sh (ID): Likewise.
81274         * tests/test-copy-file.sh (ID): Likewise.
81276 2009-08-30  Bruno Haible  <bruno@clisp.org>
81278         New module 'xstriconveh'.
81279         * lib/xstriconveh.h: New file.
81280         * lib/xstriconveh.c: New file.
81281         * modules/xstriconveh: New file.
81283 2009-08-30  Bruno Haible  <bruno@clisp.org>
81285         Make it easier to use mem_cd_iconveh.
81286         * lib/striconveh.h (iconveh_t): New type.
81287         (iconveh_open, iconveh_close): New declarations.
81288         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81289         with a single 'const iconveh_t *' argument.
81290         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81291         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81292         with a single 'const iconveh_t *' argument.
81293         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81294         * tests/test-striconveh.c (main): Update.
81295         * NEWS: Mention the change.
81297 2009-08-30  Bruno Haible  <bruno@clisp.org>
81299         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81300         problem.
81302 2009-08-30  Bruno Haible  <bruno@clisp.org>
81304         Work around iconv_open problem on Solaris.
81305         * lib/iconv_open-solaris.gperf: New file.
81306         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81307         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81308         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81309         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81310         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81311         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81313 2009-08-29  Jim Meyering  <meyering@redhat.com>
81315         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81316         * top/maint.mk (cvs-check): Remove target; it was just an alias
81317         to the better-named vc-diff-check.
81318         (maintainer-distcheck): Remove rule.  It was used only from
81319         the (alpha/beta/major) target, and all of its commands but one
81320         were coreutils-specific.
81321         (vc-dist): Remove rule.
81322         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81323         Run vc-diff-check, not vc-dist.
81324         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81326 2009-08-27  Bruno Haible  <bruno@clisp.org>
81328         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81329         of 0.
81331 2009-08-27  Bruno Haible  <bruno@clisp.org>
81333         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81334         compilers.
81335         * doc/func.texi: Document the SunPRO C bug.
81337 2009-08-27  Bruno Haible  <bruno@clisp.org>
81339         Fix link error on Solaris.
81340         * tests/test-parse-duration.c (xstrdup): Remove function.
81342 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81344         ignore-value: handle pointer types, too
81345         * lib/ignore-value.h (__attribute__): Remove definition.
81346         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81347         of a more concise and more-often effective "(void) i" statement.
81348         (ignore_ptr): New function to suppress warnings from functions that
81349         return pointers, and to make it explicit that one function doesn't
81350         handle all cases.
81352 2009-08-25  Bruno Haible  <bruno@clisp.org>
81354         dup2: work around a Linux bug.
81355         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81356         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81357         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81358         Reported by Simon Josefsson.
81360 2009-08-25  Jim Meyering  <meyering@redhat.com>
81362         libguestfs uses gnulib
81363         * users.txt: Add libguestfs.
81365 2009-08-24  Eric Blake  <ebb9@byu.net>
81367         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81368         * lib/pipe2.c (includes): Add binary-io.h.
81369         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81371 2009-08-24  Bruno Haible  <bruno@clisp.org>
81373         Tolerate declared but missing accept4 syscall.
81374         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81375         available.
81376         * lib/sys_socket.in.h (accept4): If the function is already present,
81377         override it.
81378         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81379         * modules/accept4 (Makefile.am): Compile accept4.c always.
81380         Reported by Paolo Bonzini and Eric Blake.
81382 2009-08-23  Bruno Haible  <bruno@clisp.org>
81384         New module 'accept4'.
81385         * lib/sys_socket.in.h (accept4): New declaration.
81386         * lib/accept4.c: New file.
81387         * m4/accept4.m4: New file.
81388         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81389         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81390         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81391         HAVE_ACCEPT4.
81392         * modules/accept4: New file.
81393         * doc/glibc-functions/accept4.texi: Mention the new module.
81395 2009-08-24  Jim Meyering  <meyering@redhat.com>
81397         progname: also set global program_invocation_name, when possible
81398         Before this change, a libtool-enabled program that calls glibc's
81399         error function would report the program name as
81400         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81401         * modules/progname (configure.ac): Check for a declaration of
81402         program_invocation_name.
81403         * lib/progname.c:  Include <errno.h>.
81404         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81405         Set program_invocation_name.
81407 2009-08-23  Bruno Haible  <bruno@clisp.org>
81409         * lib/dup3.c: Include <string.h>.
81411 2009-08-23  Bruno Haible  <bruno@clisp.org>
81413         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81414         * lib/pipe2.c (pipe2): Likewise.
81415         Suggested by Eric Blake.
81417 2009-08-23  Bruno Haible  <bruno@clisp.org>
81419         Tolerate declared but missing dup3 syscall.
81420         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81421         * lib/unistd.in.h (dup3): If the function is already present,
81422         override it.
81423         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81424         * modules/dup3 (Makefile.am): Compile dup3.c always.
81425         Reported by Paolo Bonzini.
81427 2009-08-23  Bruno Haible  <bruno@clisp.org>
81429         Tolerate declared but missing pipe2 syscall.
81430         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81431         available.
81432         * lib/unistd.in.h (pipe2): If the function is already present,
81433         override it.
81434         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81435         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81436         Reported by Paolo Bonzini.
81438 2009-08-23  Bruno Haible  <bruno@clisp.org>
81440         * lib/pipe2.c (pipe2): Move #ifs inside function.
81442 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81444         quotearg: document limitations of quote_these_too
81445         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81446         those limitations are created.
81447         * lib/quotearg.h (set_char_quoting): Document that digits and
81448         letters that are special after backslash are not permitted.
81449         (quotearg_char): Cross-reference set_char_quoting documentation.
81451 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81453         quotearg: implement custom_quoting_style
81454         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81455         right_quote fields.
81456         (set_custom_quoting): New public function.
81457         (quotearg_buffer_restyled): Add left_quote and right_quote
81458         arguments, handle them very much like locale quoting, and update
81459         all uses.
81460         (quotearg_n_custom): New public function.
81461         (quotearg_n_custom_mem): New public function.
81462         (quotearg_custom): New public function.
81463         (quotearg_custom_mem): New public function.
81464         * lib/quotearg.h: Prototype and document new public functions.
81465         (enum quoting_style): For escape_quoting_style and
81466         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81467         ignored even though they're otherwise like c_quoting_style.
81468         Add custom_quoting_style member and document with comparison to
81469         clocale_quoting_style.
81470         * tests/test-quotearg.c (custom_quotes): New array.
81471         (custom_results): New array.
81472         (main): Extend to test custom quoting.
81474 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81476         quotearg: fix right quote escaping when it's in quote_these_too
81477         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81478         quote, be sure to prepend only one backslash.
81479         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81480         (main): Test it.
81482 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81484         quotearg-tests: test escaping of embedded locale quotes
81485         * tests/test-quotearg.c (struct result_strings): Add member for
81486         new input.
81487         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81488         (inputs): Add new input.
81489         (results_g): Add expected results.
81490         (flag_results): Likewise.
81491         (locale_results): Likewise.
81492         (compare_strings): Check those.
81494 2009-08-23  Bruno Haible  <bruno@clisp.org>
81496         Tests for module 'dup3'.
81497         * modules/dup3-tests: New file.
81498         * tests/test-dup3.c: New file.
81500         New module 'dup3'.
81501         * lib/unistd.in.h (dup3): New declaration.
81502         * lib/dup3.c: New file.
81503         * m4/dup3.m4: New file.
81504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81505         HAVE_DUP3.
81506         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81507         * modules/dup3: New file.
81508         * doc/glibc-functions/dup3.texi: Mention the new module.
81510 2009-08-23  Bruno Haible  <bruno@clisp.org>
81512         Tweak the dup2 test.
81513         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81514         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81515         the test file is still empty. Fix argument order of lseek.
81517 2009-08-23  Bruno Haible  <bruno@clisp.org>
81519         Avoid test link errors when the modules getopt-gnu, gettext are used.
81520         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81523 2009-08-23  Bruno Haible  <bruno@clisp.org>
81525         Fix getdtablesize() on mingw.
81526         * lib/getdtablesize.c (getdtablesize): Implement differently.
81527         * lib/unistd.in.h (getdtablesize): Improve comment.
81529 2009-08-23  Bruno Haible  <bruno@clisp.org>
81531         New module 'mkostemp'.
81532         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81533         * lib/stdlib.in.h (mksotemp): New declaration.
81534         * lib/mkostemp.c: New file, from glibc with modifications.
81535         * lib/tempname.h (GT_FILE): Remove outdated comment.
81536         (gen_tempname): Add flags argument.
81537         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81538         (__GT_FILE): Map to 1.
81539         (small_open, large_open): Remove macros.
81540         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81541         * lib/mkstemp.c (mkstemp): Update.
81542         * lib/mkdtemp.c (mkdtemp): Likewise.
81543         * m4/mkostemp.m4: New file.
81544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81545         HAVE_MKOSTEMP.
81546         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81547         HAVE_MKOSTEMP.
81548         * modules/mkostemp: New file, based on modules/mkstemp.
81549         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81550         * NEWS: Mention the change.
81552 2009-08-23  Bruno Haible  <bruno@clisp.org>
81554         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81555         Reported by Eric Blake.
81557 2009-08-23  Bruno Haible  <bruno@clisp.org>
81559         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81560         Reported by Eric Blake.
81562 2009-08-23  Bruno Haible  <bruno@clisp.org>
81564         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81565         * modules/pipe2 (Depends-on): Likewise.
81567 2009-08-23  Eric Blake  <ebb9@byu.net>
81569         fcntl-h: add O_TTY_INIT support
81570         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81571         * tests/test-fcntl-h.c (o): Test it.
81572         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81574         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81575         * modules/fcntl: Move <fcntl.h> header replacement...
81576         * modules/fcntl-h: ...to new name, so as not to collide with
81577         like-named function.
81578         * tests/test-fcntl.c: Rename...
81579         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81580         * modules/fcntl-tests: Rename...
81581         * modules/fcntl-h-tests: ...to this.  Update test file name.
81582         * modules/chdir-long (Depends-on): Update clients.
81583         * modules/chdir-safer (Depends-on): Likewise.
81584         * modules/fcntl-safer (Depends-on): Likewise.
81585         * modules/fts (Depends-on): Likewise.
81586         * modules/mkancesdirs (Depends-on): Likewise.
81587         * modules/mkdir-p (Depends-on): Likewise.
81588         * modules/open (Depends-on): Likewise.
81589         * modules/savewd (Depends-on): Likewise.
81590         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81591         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81593 2009-08-22  Bruno Haible  <bruno@clisp.org>
81595         * modules/binary-io (License): Relicense under LGPL.
81596         * modules/pipe2 (License): Likewise.
81598 2009-08-22  Bruno Haible  <bruno@clisp.org>
81600         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81601         return value.
81602         * lib/pipe-filter-gi.c (filter_init): Likewise.
81603         Reported by Eric Blake.
81605 2009-08-22  Bruno Haible  <bruno@clisp.org>
81607         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81608         * modules/pipe (Depends-on): Add pipe2.
81610 2009-08-22  Bruno Haible  <bruno@clisp.org>
81612         Tests for module 'pipe2'.
81613         * modules/pipe2-tests: New file.
81614         * tests/test-pipe2.c: New file.
81616         New module 'pipe2'.
81617         * lib/unistd.in.h (pipe2): New declaration.
81618         * lib/pipe2.c: New file.
81619         * m4/pipe2.m4: New file.
81620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81621         HAVE_PIPE2.
81622         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81623         * modules/pipe2: New file.
81624         * doc/glibc-functions/pipe2.texi: Mention the new module.
81626 2009-08-22  Bruno Haible  <bruno@clisp.org>
81628         Reference some new glibc functions.
81629         * doc/glibc-functions/accept4.texi: New file.
81630         * doc/glibc-functions/dup3.texi: New file.
81631         * doc/glibc-functions/mkostemp.texi: New file.
81632         * doc/glibc-functions/pipe2.texi: New file.
81633         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81634         (Glibc sys/socket.h): Refer to accept4.
81635         (Glibc unistd.h): Refer to dup3, pipe2.
81636         Reported by Eric Blake.
81638 2009-08-22  Jim Meyering  <meyering@redhat.com>
81639             Bruno Haible  <bruno@clisp.org>
81641         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81642         This makes it so packages using automake-1.11's silent-rules option
81643         can print e.g., a single "GEN    configmake.h" line, rather than
81644         the 30+ statements that perform the job.  If you want to see the
81645         actual commands, you can still run "make V=1".
81646         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81647         so that make output is abbreviated when those variables are defined
81648         appropriately.
81649         * modules/argz: Likewise.
81650         * modules/arpa_inet: Likewise.
81651         * modules/byteswap: Likewise.
81652         * modules/configmake: Likewise.
81653         * modules/dirent: Likewise.
81654         * modules/errno: Likewise.
81655         * modules/fcntl: Likewise.
81656         * modules/float: Likewise.
81657         * modules/fnmatch: Likewise.
81658         * modules/getopt-posix: Likewise.
81659         * modules/glob: Likewise.
81660         * modules/iconv_open: Likewise.
81661         * modules/inttypes: Likewise.
81662         * modules/localcharset: Likewise.
81663         * modules/locale: Likewise.
81664         * modules/math: Likewise.
81665         * modules/netdb: Likewise.
81666         * modules/netinet_in: Likewise.
81667         * modules/poll: Likewise.
81668         * modules/posix_spawnp-tests: Likewise.
81669         * modules/sched: Likewise.
81670         * modules/search: Likewise.
81671         * modules/selinux-h: Likewise.
81672         * modules/signal: Likewise.
81673         * modules/spawn: Likewise.
81674         * modules/stdarg: Likewise.
81675         * modules/stdbool: Likewise.
81676         * modules/stddef: Likewise.
81677         * modules/stdint: Likewise.
81678         * modules/stdio: Likewise.
81679         * modules/stdlib: Likewise.
81680         * modules/string: Likewise.
81681         * modules/strings: Likewise.
81682         * modules/sys_file: Likewise.
81683         * modules/sys_ioctl: Likewise.
81684         * modules/sys_select: Likewise.
81685         * modules/sys_socket: Likewise.
81686         * modules/sys_stat: Likewise.
81687         * modules/sys_time: Likewise.
81688         * modules/sys_times: Likewise.
81689         * modules/sys_utsname: Likewise.
81690         * modules/sys_wait: Likewise.
81691         * modules/sysexits: Likewise.
81692         * modules/time: Likewise.
81693         * modules/unistd: Likewise.
81694         * modules/wchar: Likewise.
81695         * modules/wctype: Likewise.
81697 2009-08-22  Jim Meyering  <meyering@redhat.com>
81699         announce-gen: detect write failure
81700         * build-aux/announce-gen: Add Coda at end.
81701         Remove equivalent-but-more-verbose block at top.
81703 2009-08-19  Akim Demaille  <demaille@gostai.com>
81705         bootstrap: --help to stdout.
81706         * bootstrap (usage): Don't send --help to stderr.
81707         Use a here doc instead of a long string.
81709 2009-08-21  Eric Blake  <ebb9@byu.net>
81711         test-popen-safer: split from test-popen
81712         * tests/test-popen.c (main): Move...
81713         * tests/test-popen.h: ...into new file.
81714         * tests/test-popen-safer2.c: New file.
81715         * modules/popen-tests (Files): Add test-popen.h.
81716         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81717         Suggested by Bruno Haible.
81719         test-fcntl-safer: split from test-open
81720         * tests/test-open.c (main): Move...
81721         * tests/test-open.h: ...into new file.
81722         * tests/test-fcntl-safer.c: New file.
81723         * modules/open-tests (Files): Add test-open.h.
81724         * modules/fcntl-safer-tests: New file.
81725         Suggested by Bruno Haible.
81727         test-fopen-safer: split from test-fopen
81728         * tests/test-fopen.c (main): Move...
81729         * tests/test-fopen.h: ...into new file.
81730         * tests/test-fopen-safer.c: New file.
81731         * modules/fopen-tests (Files): Add test-fopen.h.
81732         * modules/fopen-safer-tests: New file.
81733         Suggested by Bruno Haible.
81735 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81737         popen-safer: test O_CLOEXEC at run-time.
81738         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81740 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81742         fcntl: move more flags to the header
81743         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81744         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81745         * lib/fcntl.in.h: Do both things here.
81747 2009-08-21  Jim Meyering  <meyering@redhat.com>
81749         consistently remove $@-t before redirecting to it
81750         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81751         * modules/alloca-opt: Likewise.
81752         * modules/byteswap: Likewise.
81753         * modules/fnmatch: Likewise.
81754         * modules/getopt-posix: Likewise.
81755         * modules/glob: Likewise.
81756         * modules/poll: Likewise.
81757         * modules/posix_spawnp-tests: Likewise.
81758         * modules/sys_socket: Likewise.
81759         * modules/sysexits: Likewise.
81761 2009-08-21  Eric Blake  <ebb9@byu.net>
81763         popen: simplify access to original popen
81764         * lib/popen.c (rpl_popen): No need to worry about popen being a
81765         macro.
81766         Reported by Bruno Haible.
81768 2009-08-20  Eric Blake  <ebb9@byu.net>
81770         build: avoid some compiler warnings
81771         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81772         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81773         type.
81774         (new_exclude_segment, excluded_file_pattern_p)
81775         (excluded_file_name_p): Reduce scope.
81776         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81777         old-style declaration.
81779 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81781         * tests/test-exclude1.sh: Handle Windows EOL.
81782         * tests/test-exclude2.sh: Likewise.
81783         * tests/test-exclude3.sh: Likewise.
81784         * tests/test-exclude4.sh: Likewise.
81785         * tests/test-exclude5.sh: Likewise.
81786         * tests/test-exclude6.sh: Likewise.
81787         * tests/test-exclude7.sh: Likewise.
81789 2009-08-19  Akim Demaille  <demaille@gostai.com>
81791         bootstrap: find sha1sum when named gsha1sum.
81792         * bootstrap (find_tool): New.
81793         ($SHA1SUM): New.
81794         Use it.
81796 2009-08-20  Jim Meyering  <meyering@redhat.com>
81798         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81799         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81800         expression that converts "." in a file name to "\." in the resulting
81801         regexp.  Start with a dummy statement, so that prior shell variable
81802         definitions are expanded portably.  Reported by Simon Josefsson.
81804 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81806         Fix polling for writeability of a screen buffer.
81807         * lib/poll.c: Distinguish input and screen buffers for the
81808         Win32 implementation.
81809         * lib/select.c: Likewise.
81811 2009-08-19  Eric Blake  <ebb9@byu.net>
81813         popen-safer: prevent popen from clobbering std descriptors
81814         * modules/popen-safer: New file.
81815         * lib/popen-safer.c: Likewise.
81816         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81817         * lib/stdio--.h (popen): Provide override.
81818         * lib/stdio-safer.h (popen_safer): Provide declaration.
81819         * tests/test-popen.c (includes): Partially test this.
81820         * modules/popen-safer-tests: New file, for more tests.
81821         * tests/test-popen-safer.c: Likewise.
81822         * MODULES.html.sh (file stream based Input/Output): Mention it.
81824         tests: test some of the *-safer modules
81825         * modules/fopen-safer (Depends-on): Add fopen.
81826         * modules/fcntl-safer (Depends-on): Add fcntl.
81827         * modules/stdlib-safer (Depends-on): Add stdlib.
81828         (configure.ac): Set indicator.
81829         * modules/unistd-safer (configure.ac): Likewise.
81830         * modules/tmpfile-safer (configure.ac): Likewise.
81831         (Depends-on): Add tmpfile.
81832         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81833         active.
81834         * tests/test-fopen.c (includes): Test safer versions when they are
81835         in use.
81836         * tests/test-open.c (includes): Likewise.
81838         popen: fix cygwin 1.5 bug when stdin closed
81839         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81840         * modules/popen: New file.
81841         * modules/popen-tests: Likewise.
81842         * tests/test-popen.c: Likewise.
81843         * m4/popen.m4: Likewise.
81844         * lib/popen.c: Likewise.
81845         * lib/stdio.in.h (popen): New declaration.
81846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81847         * modules/stdio (Makefile.am): Likewise.
81848         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81850 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81852         maint.mk: give full control over update-copyright exclusions
81853         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81854         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81855         (update-copyright): Don't force inclusion of top-level
81856         ChangeLog.  Don't force exclusion of all COPYING files, but make
81857         them the default exclusion instead.
81859 2009-08-16  Bruno Haible  <bruno@clisp.org>
81861         Fix test failures on Solaris 10.
81862         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81863         tests when Solaris iconv() is used.
81864         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81865         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81866         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81867         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81868         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81870 2009-08-16  Bruno Haible  <bruno@clisp.org>
81872         Fix test failures on Solaris 10.
81873         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81874         'tr' program and pass it as first argument.
81875         * tests/test-pipe-filter-gi1.sh: Likewise.
81876         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81877         program as first argument.
81878         * tests/test-pipe-filter-gi1.c (main): Likewise.
81880 2009-08-16  Eric Blake  <ebb9@byu.net>
81882         fpurge: fix previous commits
81883         * modules/fpurge (Makefile.am): Make replacement conditional,
81884         partially reverting 2007-04-29 change; missed in previous
81885         attempt.
81886         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81887         is missing.
81889 2009-08-16  Bruno Haible  <bruno@clisp.org>
81891         Clarify fpurge's effect on the file position.
81892         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81893         * tests/test-fpurge.c (main): Make a second pass for checking the file
81894         position.
81896 2009-08-16  Bruno Haible  <bruno@clisp.org>
81898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81899         declaration of fpurge is missing.
81900         * tests/test-fpurge.c (main): Check that the file has not more contents
81901         than expected. Close the file before removing it.
81903 2009-08-15  Eric Blake  <ebb9@byu.net>
81905         fpurge: don't wrap working cygwin implementation
81906         * lib/fpurge.c (fpurge): Fix comment typo.
81907         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81908         1.7 to avoid replacement.
81909         * tests/test-fpurge.c (main): Enhance test.
81911 2009-08-15  Eric Blake  <ebb9@byu.net>
81912         and Jim Meyering  <meyering@redhat.com>
81914         test-update-copyright: skip if perl is insufficient
81915         * tests/test-update-copyright.sh: Failure to run maintainer tool
81916         should not cause testsuite failure on cygwin 1.5.
81918 2009-08-14  Eric Blake  <ebb9@byu.net>
81920         doc: mention more functions added in cygwin 1.7.0
81921         * doc/posix-headers/limits.texi (limits.h): Update for recent
81922         cygwin additions.
81923         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81924         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81925         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81926         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81927         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81929 2009-08-14  Eric Blake  <ebb9@byu.net>
81931         maint.mk: simplify update-copyright rule
81932         * top/maint.mk (update-copyright-local): Delete, and document how
81933         to do it in cfg.mk instead.
81934         (update-copyright-exclude-regexp): Delete, and document how to do
81935         it in .x-update-copyright instead.
81936         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81937         exclude ChangeLog.
81939 2009-08-14  Bruno Haible  <bruno@clisp.org>
81941         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81943 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81945         maint.mk: support update-copyright-env
81946         * top/maint.mk (update-copyright-env): Define place-holder.
81947         (update-copyright): Expand $(update-copyright-env) before
81948         invoking update-copyright.
81950 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81952         update-copyright: implement forced reformatting
81953         * build-aux/update-copyright: Implement and document
81954         UPDATE_COPYRIGHT_FORCE.
81955         * tests/test-update-copyright.sh: Test it.
81957 2009-08-14  Eric Blake  <ebb9@byu.net>
81958         and Bruno Haible  <bruno@clisp.org>
81960         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81961         * tests/test-locale.c: Revert previous patch related to NULL.
81962         * tests/test-stdio.c: Likewise.
81963         * tests/test-stdlib.c: Likewise.
81964         * tests/test-string.c: Likewise.
81965         * tests/test-unistd.c: Likewise.
81966         * modules/time-tests (Depends-on): Add verify.
81967         * modules/wchar-tests (Depends-on): Likewise.
81968         * tests/test-time.c: Test for NULL compliance.
81969         * tests/test-wchar.c: Likewise.
81970         * modules/locale (Depends-on): Add stddef.
81971         * modules/stdio (Depends-on): Likewise.
81972         * modules/stdlib (Depends-on): Likewise.
81973         * modules/string (Depends-on): Likewise.
81974         * modules/time (Depends-on): Likewise.
81975         * modules/unistd (Depends-on): Likewise.
81976         * modules/wchar (Depends-on): Likewise.
81977         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81978         * lib/stdlib.in.h (includes): Likewise.
81979         * lib/string.in.h (includes): Likewise.
81980         * lib/time.in.h (includes): Likewise.
81981         * lib/unistd.in.h (includes): Likewise.
81982         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81983         replaced.
81984         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81985         * m4/stddef_h.m4: New file.
81986         * modules/stddef: Likewise.
81987         * lib/stddef.in.h: Likewise.
81988         * modules/stddef-tests: Likewise.
81989         * tests/test-stddef.c: Likewise.
81990         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81991         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81992         * doc/posix-headers/locale.texi (locale.h): Likewise.
81993         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81994         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81995         * doc/posix-headers/string.texi (string.h): Likewise.
81996         * doc/posix-headers/time.texi (time.h): Likewise.
81997         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81998         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82000 2009-08-14  Eric Blake  <ebb9@byu.net>
82002         doc: improve git diff of texinfo files
82003         * .gitattributes: Add rule for *.texi files, with hint on how to
82004         use it.
82005         Copied from m4, and based on a report by Bruno Haible.
82007 2009-08-14  Bruno Haible  <bruno@clisp.org>
82009         Disable multithread support by default on Cygwin 1.5.x for real.
82010         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82012 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82014         update-copyright: much ado about intervals
82015         * build-aux/update-copyright: Implement and document
82016         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82017         of copyright year intervals.
82018         Also, document UPDATE_COPYRIGHT_YEAR.
82019         * tests/test-update-copyright.sh: Test it.
82021         update-copyright: convert 2-digit to 4-digit years
82022         * build-aux/update-copyright: Implement and document.
82023         * tests/test-update-copyright.sh: Update.
82025 2009-08-14  Jim Meyering  <meyering@redhat.com>
82027         test-exclude: avoid coreutils "make check" failure
82028         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82029         just as in test-argmatch.c.
82031 2009-08-13  Eric Blake  <ebb9@byu.net>
82033         test-dup2: fix bad assumption
82034         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82035         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82037         test-version-etc: fix CRLF portability issue
82038         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82039         recognize \r.
82040         * tests/test-argp-version-etc-1.sh: Likewise.
82042         getopt: update client modules
82043         * modules/argp (Depends-on): Use getopt-gnu.
82044         * modules/git-merge-changelog (Depends-on): Likewise.
82045         * modules/long-options (Depends-on): Likewise.
82046         * modules/xstrtol (Depends-on): Likewise.
82048 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82050         * tests/test-version-etc.sh: Don't fail on different
82051         project/version.  Don't fail on CRLF differences.  Rewrite to use
82052         multiple -e instead of multiple sed forks, suggested by Eric Blake
82053         <ebb9@byu.net>.
82054         * tests/test-argp-version-etc-1.sh: Likewise.
82056 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82058         * tests/test-version-etc.sh: Don't fail on different
82059         project/version.
82061 2009-08-12  Bruno Haible  <bruno@clisp.org>
82063         Tests for modules 'getopt-posix', 'getopt-gnu'.
82064         * modules/getopt-posix-tests: New file.
82065         * tests/test-getopt.c: New file.
82066         * tests/test-getopt.h: New file.
82067         * tests/test-getopt_long.h: New file.
82069         New modules 'getopt-posix', 'getopt-gnu'.
82070         * modules/getopt-gnu: New file, renamed from modules/getopt.
82071         * modules/getopt-posix: New file.
82072         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82073         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82074         (gl_GETOPT): Remove macro.
82075         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82076         Disable the test against BSD systems that declare optreset. Test
82077         against mingw bug. Test against lack of support of optional arguments
82078         on many platforms.
82079         * doc/glibc-headers/getopt.texi: Update module name and list of
82080         relevant platforms.
82081         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82082         'getopt-gnu' and more portability problems.
82083         * NEWS: Mention the changes.
82085 2009-08-12  Bruno Haible  <bruno@clisp.org>
82087         Ensure that optarg etc. get declared by <unistd.h>.
82088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82089         AC_USE_SYSTEM_EXTENSIONS.
82090         * modules/getopt (Depends-on): Add 'extensions'.
82092 2009-08-12  Bruno Haible  <bruno@clisp.org>
82094         Avoid test link errors.
82095         * modules/pipe-filter-ii-tests (Makefile.am): Define
82096         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82097         * modules/pipe-filter-gi-tests (Makefile.am): Define
82098         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82101 2009-08-12  Bruno Haible  <bruno@clisp.org>
82103         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82104         gl_GETOPT_SUBSTITUTE before.
82105         (gl_GETOPT): Use it.
82106         * m4/argp.m4 (gl_ARGP): Update.
82107         Reported by Sergey Poznyakoff.
82109         * m4/getopt.m4: Reorder macros.
82110         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82111         (gl_GETOPT_SUBSTITUTE): Remove macro.
82113 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82115         Minor improvement in gitlog-to-changelog
82117         * build-aux/gitlog-to-changelog: New option `--format' makes
82118         output format string configurable.
82120 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82122         Optimize exclude: use hash tables for non-wildcard patterns.
82124         * lib/exclude.c: Include hash.h and mbuiter.h
82125         (struct exclude_pattern, exclude_segment): New data types.
82126         (struct exclude): Rewrite.
82127         (fnmatch_pattern_has_wildcards): New function.
82128         (new_exclude_segment, free_exclude_segment): New functions.
82129         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82130         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82131         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82132         * modules/exclude: Depend on hash and mbuiter.
82134         * modules/exclude-tests: New file.
82135         * tests/test-exclude.c: New file.
82136         * tests/test-exclude1.sh: New file.
82137         * tests/test-exclude2.sh: New file.
82138         * tests/test-exclude3.sh: New file.
82139         * tests/test-exclude4.sh: New file.
82140         * tests/test-exclude5.sh: New file.
82141         * tests/test-exclude6.sh: New file.
82142         * tests/test-exclude7.sh: New file.
82144 2009-08-12  Bruno Haible  <bruno@clisp.org>
82146         Ensure that getopt() gets declared by <unistd.h>.
82147         * lib/unistd.in.h: Conditionally include getopt.h.
82148         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82149         Set GNULIB_UNISTD_H_GETOPT.
82150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82151         GNULIB_UNISTD_H_GETOPT.
82152         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82154 2009-08-12  Bruno Haible  <bruno@clisp.org>
82156         Clarify logic.
82157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82158         gl_replace_getopt instead of GETOPT_H.
82160 2009-08-12  Bruno Haible  <bruno@clisp.org>
82162         * m4/getopt.m4: Add comments.
82164 2009-08-12  Bruno Haible  <bruno@clisp.org>
82166         Disable multithread support by default on Cygwin 1.5.x.
82167         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82168         set gl_use_threads=no if not specified otherwise.
82170 2009-08-11  Bruno Haible  <bruno@clisp.org>
82172         Avoid compilation error on NetBSD 5.0.
82173         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82174         * tests/test-stdio.c: Likewise.
82175         * tests/test-stdlib.c: Likewise.
82176         * tests/test-string.c: Likewise.
82177         * tests/test-unistd.c: Likewise.
82178         Reported by Greg Troxel <gdt@ir.bbn.com>
82179         at <https://savannah.gnu.org/support/?106973>.
82181 2009-08-11  Bruno Haible  <bruno@clisp.org>
82183         * modules/dup2-tests (Depends-on): Remove close.
82185         Undo 2009-07-19 commit.
82186         * modules/acl-tests (Depends-on): Remove close.
82187         * modules/binary-io-tests (Depends-on): Likewise.
82188         * modules/closein-tests (Depends-on): Likewise.
82189         * modules/flock-tests (Depends-on): Likewise.
82190         * modules/fsync-tests (Depends-on): Likewise.
82191         * modules/lseek-tests (Depends-on): Likewise.
82192         * modules/pipe-tests (Depends-on): Likewise.
82193         * modules/posix_spawn-tests (Depends-on): Likewise.
82194         * modules/posix_spawnp-tests (Depends-on): Likewise.
82195         * modules/stat-time-tests (Depends-on): Likewise.
82196         * modules/yesno-tests (Depends-on): Likewise.
82198 2009-08-10  Bruno Haible  <bruno@clisp.org>
82200         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82202 2009-08-10  Bruno Haible  <bruno@clisp.org>
82204         Fix a gcc warning.
82205         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82207 2009-08-10  Bruno Haible  <bruno@clisp.org>
82209         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82210         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82211         not only the first time.
82212         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82213         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82214         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82215         is 1, not only the first time.
82217 2009-08-10  Bruno Haible  <bruno@clisp.org>
82219         Make it possible to use module 'gethostname' without module 'close'.
82220         * lib/unistd.in.h (close): Evoke a link error only if
82221         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82223         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82224         * modules/unistd (Makefile.am): Substitute
82225         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82226         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82227         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82228         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82230         * modules/sys_ioctl (Makefile.am): Substitute
82231         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82232         * modules/socket (configure.ac): On native Windows, set
82233         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82234         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82235         Reported by Sam Steingold <sds@gnu.org>.
82237 2009-08-10  Bruno Haible  <bruno@clisp.org>
82239         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82240         * modules/ioctl (configure.ac): Likewise.
82242 2009-08-10  Bruno Haible  <bruno@clisp.org>
82244         Avoid collision between gnulib wrapper and libintl wrapper.
82245         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82246         already defined in intl/printf.c.
82247         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82248         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82250 2009-08-09  Bruno Haible  <bruno@clisp.org>
82252         Make <sys/select.h> really self-contained, also on Solaris 10.
82253         * lib/sys_select.in.h: Include <string.h>.
82254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82255         Solaris 10 problem.
82256         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82257         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82258         Reported by Jim Meyering.
82260 2009-08-09  Bruno Haible  <bruno@clisp.org>
82262         Avoid warnings from 'aclocal' that are due to a use of macro name
82263         AM_XGETTEXT_OPTION that is not defined in automake.
82264         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82265         automake.
82266         * modules/error (configure.ac): Likewise.
82267         * modules/propername (configure.ac): Likewise.
82268         * modules/vasprintf (configure.ac): Likewise.
82269         * modules/verror (configure.ac): Likewise.
82270         * modules/xprintf (configure.ac): Likewise.
82271         * modules/xvasprintf (configure.ac): Likewise.
82273 2009-08-08  Bruno Haible  <bruno@clisp.org>
82275         Avoid compilation error in C++ mode.
82276         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82277         Reported by Sam Steingold <sds@gnu.org>.
82279 2009-08-08  Bruno Haible  <bruno@clisp.org>
82281         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82282         for the various Unix platforms.
82283         * doc/posix-headers/limits.texi: Update platforms list regarding
82284         HOST_NAME_MAX.
82285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82287 2009-08-07  Jim Meyering  <meyering@redhat.com>
82289         selinux-at: fix typo in a comment
82290         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82291         Spotted by Paolo Bonzini.
82293         selinux-at: remove redundant m4 code, add documentation
82294         * modules/selinux-at (configure.ac): Remove redundant code.
82295         LIB_SELINUX is already set via the dependent module, selinux-h.
82296         (Include): Add quotes around selinux-at.h.
82297         * lib/selinux-at.h: Add documentation.
82298         Reported by Bruno Haible in
82299         http://marc.info/?l=gnulib-bug&m=124958988300749
82301 2009-08-07  Bruno Haible  <bruno@clisp.org>
82303         Avoid link error on MacOS X 10.3 and 10.4.
82304         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82305         on non-ELF systems.
82306         * lib/argp-pv.c (argp_program_version): Likewise.
82307         Reported by Simon Josefsson.
82309 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82311         * tests/test-version-etc.sh: Use $EXEEXT.
82313 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82315         update-copyright: update documentation to point to maint.mk
82316         * build-aux/update-copyright: Here.
82318 2009-08-06  Jim Meyering  <meyering@redhat.com>
82320         maint.mk: support update-copyright-local
82321         * top/maint.mk (update-copyright-local): Define place-holder.
82322         (update-copyright): Depend on $(update-copyright-local).
82324 2009-08-06  Jim Meyering  <meyering@redhat.com>
82326         selinux-at: new module
82327         Initially written for coreutils, this module will soon be
82328         used by findutils, too.
82329         * MODULES.html.sh [Misc]: Add selinux-at.
82330         * lib/selinux-at.h: New file, from coreutils.
82331         * lib/selinux-at.c: Likewise.
82332         * modules/selinux-at: Likewise.
82333         (License): Change from LGPL to GPL, since it depends
82334         on the GPL'd openat module.
82336         doc: update README
82337         * README: Remove references to cogito.
82338         Remove cvs-repo-updating instructions from 2007.
82339         Don't imply that CVS is better if you have limited disk space.
82341 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82343         update-copyright: support C-style comments
82344         * build-aux/update-copyright: Implement and document.
82345         * tests/test-update-copyright.sh: Test.
82347 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82349         update-copyright: support omitted "(C)"
82350         * build-aux/update-copyright: Implement and document.  Also,
82351         allow variable whitespace before "(C)".
82352         * tests/test-update-copyright.sh: Test.
82354 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82356         update-copyright: don't trip on non-FSF copyright statements
82357         * build-aux/update-copyright: Fix so that the first correctly
82358         formatted FSF copyright statement is recognized no matter what
82359         appears before it.  Update documentation.
82360         * tests/test-update-copyright.sh: Test that.
82362 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82364         update-copyright: clean up code a little
82365         * build-aux/update-copyright: Append "_re" to the name of any
82366         variable holding a regular expression.
82367         Replace "old" and "new" with "stmt" in variable names.
82368         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82369         handled correctly.
82370         Format code more consistently.
82372 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82374         update-copyright-tests: improve portability
82375         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82376         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82378 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82380         update-copyright: support @copyright{} and &copy;
82381         * build-aux/update-copyright: Implement and document.
82382         * tests/test-update-copyright.sh: Test.
82384 2009-08-04  Jim Meyering  <meyering@redhat.com>
82386         update-copyright-tests: correctly test EOL=\r\n handling
82387         * tests/test-update-copyright.sh: Put \r at the end of some lines
82388         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82390         maint.mk: make update-copyright exclusion list more configurable
82391         * top/maint.mk (update-copyright): Default to excluding COPYING,
82392         but allow an override, in case someone does want to update that file.
82394         maint.mk: don't update copyright date in COPYING
82395         * top/maint.mk (update-copyright): Exclude COPYING.
82397         maint.mk: add a copyright-updating rule
82398         * top/maint.mk (update-copyright): New rule.
82399         Derived from coreutils/Makefile.am.
82401         update-copyright: rename some variables
82402         * build-aux/update-copyright: Rename a few variables for clarity.
82403         Tweak syntax.  List Joel E. Denny as coauthor.
82405 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82407         update-copyright: fix bug for 2-digit last year and add tests
82408         * build-aux/update-copyright: Fix bug.
82409         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82410         specified.
82411         * modules/update-copyright-tests: New
82412         * tests/test-update-copyright.sh: New.
82414 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82416         update-copyright: handle leading tabs in line prefix
82417         * build-aux/update-copyright: Count leading tabs as 8 spaces
82418         when computing margin.  This helps with the formatting of
82419         ChangeLogs, for example.
82420         Fix documentation a little.
82422 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82424         update-copyright: support EOL=\r\n
82425         * build-aux/update-copyright: Implement that.
82427 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82429         update-copyright: automatically format copyright statements
82430         * build-aux/update-copyright: Implement that.
82431         Also, be a little more predictable and safer by always failing
82432         when the full copyright format is not perfectly recognized as an
82433         unbroken whole.  Discussed at
82434         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82435         Rewrite documentation.
82437 2009-08-03  Bruno Haible  <bruno@clisp.org>
82439         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82441 2009-08-02  Bruno Haible  <bruno@clisp.org>
82443         Tests for module 'uname'.
82444         * modules/uname-tests: New file.
82445         * tests/test-uname.c: New file.
82447         New module 'uname'.
82448         * lib/uname.c: New file.
82449         * m4/uname.m4: New file.
82450         * modules/uname: New file.
82451         * doc/posix-functions/uname.texi: Mention the new module.
82453 2009-08-02  Bruno Haible  <bruno@clisp.org>
82455         Tests for module 'sys_utsname'.
82456         * modules/sys_utsname-tests: New file.
82457         * tests/test-sys_utsname.c: New file.
82459         New module 'sys_utsname'.
82460         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82461         * m4/sys_utsname_h.m4: New file.
82462         * modules/sys_utsname: New file.
82463         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82465 2009-08-02  Bruno Haible  <bruno@clisp.org>
82467         Implicitly initialize the sockets library.
82468         * lib/gethostname.c: Include sockets.h.
82469         (rpl_gethostname): Invoke gl_sockets_startup.
82470         * lib/socket.c: Include sockets.h.
82471         (rpl_socket): Invoke gl_sockets_startup.
82472         * modules/gethostname (Depends-on): Add sockets.
82473         * modules/socket (Depends-on): Likewise.
82474         * tests/test-poll.c: Don't include sockets.h.
82475         (main): Don't invoke gl_sockets_startup.
82476         * tests/test-select.c: Don't include sockets.h.
82477         (main): Don't invoke gl_sockets_startup.
82479 2009-08-02  Bruno Haible  <bruno@clisp.org>
82481         Allow multiple calls to gl_sockets_startup.
82482         * lib/sockets.c (initialized_sockets_version): New variable.
82483         (gl_sockets_startup): Do nothing if already called for this or a higher
82484         version.
82485         (gl_sockets_cleanup): Reset initialized_sockets_version.
82487 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82489         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82490         different project/version.
82492 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82493             Bruno Haible  <bruno@clisp.org>
82495         Tests for module 'pipe-filter-gi'.
82496         * modules/pipe-filter-gi-tests: New file.
82497         * tests/test-pipe-filter-gi1.sh: New file.
82498         * tests/test-pipe-filter-gi1.c: New file.
82499         * tests/test-pipe-filter-gi2.sh: New file.
82500         * tests/test-pipe-filter-gi2-main.c: New file.
82501         * tests/test-pipe-filter-gi2-child.c: New file.
82503         New module 'pipe-filter-gi'.
82504         * lib/pipe-filter-gi.c: New file.
82505         * modules/pipe-filter-gi: New file.
82507 2009-08-02  Bruno Haible  <bruno@clisp.org>
82508             Paolo Bonzini  <bonzini@gnu.org>
82510         Tests for module 'pipe-filter-ii'.
82511         * modules/pipe-filter-ii-tests: New file.
82512         * tests/test-pipe-filter-ii1.sh: New file.
82513         * tests/test-pipe-filter-ii1.c: New file.
82514         * tests/test-pipe-filter-ii2.sh: New file.
82515         * tests/test-pipe-filter-ii2-main.c: New file.
82516         * tests/test-pipe-filter-ii2-child.c: New file.
82518         New module 'pipe-filter-ii'.
82519         * lib/pipe-filter.h: New file.
82520         * lib/pipe-filter-ii.c: New file.
82521         * lib/pipe-filter-aux.h: New file.
82522         * modules/pipe-filter-ii: New file.
82524 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82526         * lib/gc-libgcrypt.c: Change copyright to FSF.
82527         * lib/gc-gnulib.c: Likewise.
82529 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82531         * lib/gethostname.c: Include limits.h.
82533 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82534             Bruno Haible  <bruno@clisp.org>
82536         Ensure HOST_NAME_MAX as part of the gethostname module.
82537         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82538         define also HOST_NAME_MAX.
82539         * tests/test-gethostname.c: Include <limits.h>.
82540         (main): Check also HOST_NAME_MAX.
82541         * doc/posix-headers/limits.texi: Document the mingw problem.
82543 2009-08-02  Bruno Haible  <bruno@clisp.org>
82545         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82546         Add comments.
82548 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82550         * lib/gethostname.c: Add Windows wrapper.
82551         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82552         * modules/gethostname: Depend on sys_socket & errno, for also
82553         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82554         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82556 2009-07-31  Jim Meyering  <meyering@redhat.com>
82558         getloadavg: fix symbol name in comment
82559         * lib/getloadavg.c: Correct a typo I introduced when adding
82560         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82561         Matt Kraai spotted the problem.
82563 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82565         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82566         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82567         code also if ! defined N_NAME_POINTER.
82568         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82569         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82570         but the n_name member is a 12-byte array.
82572 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82574         update-copyright: generalize comment handling
82575         * build-aux/update-copyright: Handle copyright statements
82576         within more comment styles.
82577         Document usage.
82578         Report any file with an external copyright holder or parse failure.
82580 2009-07-29  Jim Meyering  <meyering@redhat.com>
82582         mktime: correct setting of REPLACE_MKTIME
82583         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82585         update-copyright: new module
82586         * modules/update-copyright: New file.
82587         * build-aux/update-copyright: New file.
82588         * MODULES.html.sh (maint+release support): Add update-copyright.
82590 2009-07-27  Bruno Haible  <bruno@clisp.org>
82592         Fix compilation error when <ctime> is used and mktime is replaced.
82593         * lib/time.in.h (mktime): New declaration.
82594         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82595         REPLACE_MKTIME instead of defining mktime in config.h.
82596         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82597         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82598         Reported by Ross McFarland <rwmcfa1@neces.com>.
82600 2009-07-27  Bruno Haible  <bruno@clisp.org>
82602         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82603         Reported by Matt Kraai <mkraai@beckman.com>.
82605 2009-07-25  Jim Meyering  <meyering@redhat.com>
82607         maint.mk: avoid warnings about missing files
82608         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82609         diagnostic when .prev-version does not exist.
82610         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82611         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82612         nonexistent cfg.mk.
82613         Suggestions from Simon Josefsson.
82615 2009-07-25  Bruno Haible  <bruno@clisp.org>
82617         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82618         defined as macros. Needed on QNX 6.4.1.
82619         Reported by Matt Kraai <mkraai@beckman.com>.
82621 2009-07-23  Jim Meyering  <meyering@redhat.com>
82623         maint.mk: invoke "make dist" with a working value of XZ_OPT
82624         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82626 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82628         Make fseeko.c compile on QNX.
82629         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82631 2009-07-22  Peter Simons  <simons@cryp.to>
82633         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82634         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82635         * lib/md4.h: Likewise.
82636         * lib/md5.h: Likewise.
82637         * lib/sha1.h: Likewise.
82638         * lib/sha256.h: Likewise.
82639         * lib/sha512.h: Likewise.
82641         tests-sha1: don't assign literal string to 'char *' variable
82642         * tests/test-sha1.c (main): Declare locals with "const" to match
82643         attributes of the right hand side.
82645 2009-07-21  Eric Blake  <ebb9@byu.net>
82647         dup2: fix more mingw problems
82648         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82649         fd to itself.
82650         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82651         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82652         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82653         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82654         care of mingw bugs.
82656 2009-07-21  Jim Meyering  <meyering@redhat.com>
82658         vc-list-files: avoid failure when /bin/sh is dash
82659         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82660         On some Debian based systems, /bin/sh is a symlink to dash, and running
82661         this command would omit the "/" following each 'tests' prefix:
82662           dash -x build-aux/vc-list-files -C . tests
82663         That is because bash and dash work differently:
82664           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82665           bash ok
82666           dash odd
82668 2009-07-21  Eric Blake  <ebb9@byu.net>
82670         dup2-tests: test previous patch
82671         * modules/dup2-tests: New file.
82672         * tests/test-dup2.c: Likewise.
82673         * tests/test-open.c (main): Avoid unspecified behavior.
82674         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82675         test.
82677         dup2: work around mingw and cygwin 1.5 bug
82678         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82680         * modules/unistd (Makefile.am): Substitute it.
82681         * lib/unistd.in.h (dup2): Declare the replacement.
82682         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82683         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82684         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82685         * modules/execute (Depends-on): Add dup2.
82686         * modules/fseterr (Depends-on): Likewise.
82687         * modules/pipe (Depends-on): Likewise.
82688         * modules/posix_spawn-internal (Depends-on): Likewise.
82690 2009-07-21  Bruno Haible  <bruno@clisp.org>
82692         * modules/.gitattributes: New file.
82694 2009-07-20  Bruno Haible  <bruno@clisp.org>
82696         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82697         (main): Use it.
82699 2009-07-20  Eric Blake  <ebb9@byu.net>
82701         test-pipe: make a bit more robust.
82702         * tests/test-pipe.c (myerr): Allow error messages regardless of
82703         what we do to stderr.
82704         (test_pipe): Rearrange to avoid deadlock.
82705         (child_main): Try a larger read, to ensure we avoided deadlock.
82706         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82707         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82708         if misused.
82710 2009-07-19  Jim Meyering  <meyering@redhat.com>
82712         fts: avoid false-positive cycle-detection
82713         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82714         for each new command line argument.
82716 2009-07-19  Bruno Haible  <bruno@clisp.org>
82718         Fix build error on mingw with the modules sys_select and unistd.
82719         * modules/acl-tests (Depends-on): Add close.
82720         * modules/binary-io-tests (Depends-on): Likewise.
82721         * modules/closein-tests (Depends-on): Likewise.
82722         * modules/flock-tests (Depends-on): Likewise.
82723         * modules/fsync-tests (Depends-on): Likewise.
82724         * modules/lseek-tests (Depends-on): Likewise.
82725         * modules/pipe-tests (Depends-on): Likewise.
82726         * modules/posix_spawn-tests (Depends-on): Likewise.
82727         * modules/posix_spawnp-tests (Depends-on): Likewise.
82728         * modules/stat-time-tests (Depends-on): Likewise.
82729         * modules/yesno-tests (Depends-on): Likewise.
82731 2009-07-19  Bruno Haible  <bruno@clisp.org>
82733         Unify conditionals.
82734         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82735         macros, not at the compiler macros.
82736         * lib/pipe.c: Likewise.
82737         * lib/execute.c: Likewise.
82738         * lib/spawni.c: Likewise.
82740 2009-07-19  Bruno Haible  <bruno@clisp.org>
82742         Fix handling of closed stdin/stdout/stderr on mingw.
82743         * lib/w32spawn.h: Include unistd.h.
82744         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82745         file descriptor with O_NOINHERIT flag.
82746         (fd_safer_noinherit): New function, based on fd-safer.c.
82747         (dup_safer_noinherit): New function, based on dup-safer.c.
82748         (undup_safer_noinherit): New function.
82749         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82750         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82751         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82752         instead of fd_safer.
82753         * tests/test-pipe.c: Include <windows.h>.
82754         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82755         result.
82757         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82758         from main.
82759         (test_pipe): Pass an extra argument for disambiguation.
82760         (main): Invoke parent_main or child_main.
82762         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82763         consistently.
82765 2009-07-18  Eric Blake  <ebb9@byu.net>
82767         test-pipe: fix mingw build
82768         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82770 2009-07-18  Bruno Haible  <bruno@clisp.org>
82772         * modules/pipe-tests (Makefile.am): Fix typo.
82774 2009-07-18  Eric Blake  <ebb9@byu.net>
82776         error: fix mingw build
82777         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82778         Reported by Bruno Haible.
82780         error: avoid undefined use of stdout
82781         * lib/error.c (error, error_at_line): Check that fd 1 is open
82782         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82783         is handling faults and the close_stdout module wants to report the
82784         detection of closed stdout as an error.
82786 2009-07-17  Eric Blake  <ebb9@byu.net>
82788         pipe: be robust in face of closed fds
82789         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82790         should cause child to misbehave.
82791         * modules/pipe-tests: New module.
82792         * tests/test-pipe.c: New file.
82793         * tests/test-pipe.sh: New file.
82794         Reported by Akim Demaille.
82796 2009-07-14  Bruno Haible  <bruno@clisp.org>
82798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82799         Reported by anonymous kc.
82801 2009-07-07  Jim Meyering  <meyering@redhat.com>
82803         maint.mk: don't look for translatable strings in *.m4 or *.mk
82804         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82805         when searching for translatable strings.
82807 2009-07-05  Jim Meyering  <meyering@redhat.com>
82809         remove superfluous parentheses in STREQ definition
82810         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82811         * lib/getugroups.c (STREQ): Likewise.
82812         * lib/fnmatch.c (STREQ): Likewise.
82813         Spotted by Bruno Haible.
82815 2009-07-04  Jim Meyering  <meyering@redhat.com>
82817         argv-iter: new module
82818         * MODULES.html.sh: Add argv-iter.
82819         * lib/argv-iter.c, lib/argv-iter.h: New files.
82820         * modules/argv-iter: New file.
82821         * modules/argv-iter-tests: New file.
82822         * tests/test-argv-iter.c: Test it.
82824 2009-07-04  Bruno Haible  <bruno@clisp.org>
82826         Fix assertion.
82827         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82828         contains more exact copies of a given entry than file2, leave the extra
82829         copies unpaired rather than aborting.
82830         Reported by Eric Blake.
82832 2009-07-02  Bruno Haible  <bruno@clisp.org>
82834         Speedup git-merge-changelog for git cherry-pick.
82835         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82836         (entries_mapping_get): New function, extracted from compute_mapping.
82837         (entries_mapping_reverse_get): New function.
82838         (compute_mapping): Add a 'full' argument. Return the result in a
82839         'struct entries_mapping'.
82840         (main): Update. Access the mappings through entries_mapping_get.
82841         Reported by Eric Blake.
82843 2009-07-02  Bruno Haible  <bruno@clisp.org>
82845         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82846         best_i.
82848 2009-07-02  Bruno Haible  <bruno@clisp.org>
82850         Speed up approximate search for matching ChangeLog entries.
82851         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82852         argument. Call fstrcmp_bounded instead of fstrcmp.
82853         (compute_mapping, try_split_merged_entry, main): Update callers.
82855 2009-07-02  Bruno Haible  <bruno@clisp.org>
82857         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82859 2009-06-30  Bruno Haible  <bruno@clisp.org>
82861         Reduce the number of uc_is_cased calls.
82862         * lib/unicase.h (casing_suffix_context_t): Add
82863         'first_char_except_ignorable' field.
82864         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82865         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82866         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82867         Update initializer.
82868         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82869         case-ignorable characters.
82870         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82871         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82872         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82873         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82874         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82876 2009-06-30  Bruno Haible  <bruno@clisp.org>
82878         Tests for module 'unicase/ignorable'.
82879         * modules/unicase/ignorable-tests: New file.
82880         * tests/unicase/test-ignorable.c: New file, generated by
82881         gen-uni-tables.
82883         Tests for module 'unicase/cased'.
82884         * modules/unicase/cased-tests: New file.
82885         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82886         * tests/unicase/test-predicate-part1.h: New file, derived from
82887         tests/unictype/test-predicate-part1.h.
82888         * tests/unicase/test-predicate-part2.h: New file, same as
82889         tests/unictype/test-predicate-part2.h.
82891         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82892         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82893         (output_casing_properties): New function.
82894         (main): Call it.
82895         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82896         * lib/unicase/cased.c: Include unictype/bitmap.h.
82897         (uc_is_cased): Define through a bitmap lookup.
82898         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82899         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82900         (uc_is_case_ignorable): Define through a bitmap lookup.
82901         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82902         lib/unictype/bitmap.h.
82903         (Depends-on): Add inline. Clean up.
82904         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82905         lib/unictype/bitmap.h.
82906         (Depends-on): Add inline. Clean up.
82907         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82908         recognition.
82909         * tests/unicase/test-u16-tolower.c (main): Likewise.
82910         * tests/unicase/test-u32-tolower.c (main): Likewise.
82912 2009-06-30  Bruno Haible  <bruno@clisp.org>
82914         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82915         * lib/unicase/u16-casemap.c: Likewise.
82916         * lib/unicase/u32-casemap.c: Likewise.
82918 2009-06-29  Bruno Haible  <bruno@clisp.org>
82920         Define u32_casefold as a wrapper around u32_ct_casefold.
82921         * lib/unicase/u32-casefold.c: Update.
82922         * modules/unicase/u32-casefold (Depends-on): Add
82923         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82924         unicase/empty-suffix-context. Clean up.
82926         Define u16_casefold as a wrapper around u16_ct_casefold.
82927         * lib/unicase/u16-casefold.c: Update.
82928         * modules/unicase/u16-casefold (Depends-on): Add
82929         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82930         unicase/empty-suffix-context. Clean up.
82932         Define u8_casefold as a wrapper around u8_ct_casefold.
82933         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82934         * lib/unicase/u8-casefold.c: Update.
82935         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82936         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82938         Define u32_totitle as a wrapper around u32_ct_totitle.
82939         * lib/unicase/u32-totitle.c: Update.
82940         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82941         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82943         Define u16_totitle as a wrapper around u16_ct_totitle.
82944         * lib/unicase/u16-totitle.c: Update.
82945         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82946         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82948         Define u8_totitle as a wrapper around u8_ct_totitle.
82949         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82950         functions.
82951         (FUNC): Delegate to U_CT_TOTITLE.
82952         * lib/unicase/u8-totitle.c: Update.
82953         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82954         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82956         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82957         invocation.
82958         * modules/unicase/u32-tolower (Depends-on): Add
82959         unicase/empty-prefix-context, unicase/empty-suffix-context.
82961         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82962         invocation.
82963         * modules/unicase/u16-tolower (Depends-on): Add
82964         unicase/empty-prefix-context, unicase/empty-suffix-context.
82966         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82967         * modules/unicase/u8-tolower (Depends-on): Add
82968         unicase/empty-prefix-context, unicase/empty-suffix-context.
82970         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82971         invocation.
82972         * modules/unicase/u32-toupper (Depends-on): Add
82973         unicase/empty-prefix-context, unicase/empty-suffix-context.
82975         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82976         invocation.
82977         * modules/unicase/u16-toupper (Depends-on): Add
82978         unicase/empty-prefix-context, unicase/empty-suffix-context.
82980         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82981         * modules/unicase/u8-toupper (Depends-on): Add
82982         unicase/empty-prefix-context, unicase/empty-suffix-context.
82984         New module 'unicase/u32-ct-casefold'.
82985         * lib/unicase/u32-ct-casefold.c: New file.
82986         * modules/unicase/u32-ct-casefold: New file.
82988         New module 'unicase/u16-ct-casefold'.
82989         * lib/unicase/u16-ct-casefold.c: New file.
82990         * modules/unicase/u16-ct-casefold: New file.
82992         New module 'unicase/u8-ct-casefold'.
82993         * lib/unicase/u8-ct-casefold.c: New file.
82994         * lib/unicase/u-ct-casefold.h: New file, derived from
82995         lib/unicase/u-casefold.h.
82996         * modules/unicase/u8-ct-casefold: New file.
82998         New module 'unicase/u32-ct-totitle'.
82999         * lib/unicase/u32-ct-totitle.c: New file.
83000         * modules/unicase/u32-ct-totitle: New file.
83002         New module 'unicase/u16-ct-totitle'.
83003         * lib/unicase/u16-ct-totitle.c: New file.
83004         * modules/unicase/u16-ct-totitle: New file.
83006         New module 'unicase/u8-ct-totitle'.
83007         * lib/unicase/u8-ct-totitle.c: New file.
83008         * lib/unicase/u-ct-totitle.h: New file, derived from
83009         lib/unicase/u-totitle.h.
83010         * modules/unicase/u8-ct-totitle: New file.
83012         New module 'unicase/u32-ct-tolower'.
83013         * lib/unicase/u32-ct-tolower.c: New file.
83014         * modules/unicase/u32-ct-tolower: New file.
83016         New module 'unicase/u16-ct-tolower'.
83017         * lib/unicase/u16-ct-tolower.c: New file.
83018         * modules/unicase/u16-ct-tolower: New file.
83020         New module 'unicase/u8-ct-tolower'.
83021         * lib/unicase/u8-ct-tolower.c: New file.
83022         * modules/unicase/u8-ct-tolower: New file.
83024         New module 'unicase/u32-ct-toupper'.
83025         * lib/unicase/u32-ct-toupper.c: New file.
83026         * modules/unicase/u32-ct-toupper: New file.
83028         New module 'unicase/u16-ct-toupper'.
83029         * lib/unicase/u16-ct-toupper.c: New file.
83030         * modules/unicase/u16-ct-toupper: New file.
83032         New module 'unicase/u8-ct-toupper'.
83033         * lib/unicase/u8-ct-toupper.c: New file.
83034         * modules/unicase/u8-ct-toupper: New file.
83036         Add context arguments to u*_casemap functions.
83037         * lib/unicase/unicasemap.h: Include unicase.h.
83038         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83039         suffix_context arguments.
83040         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83041         functions.
83042         (FUNC): Add prefix_context and suffix_context arguments. Use
83043         uc_is_cased and uc_is_case_ignorable.
83044         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83045         * lib/unicase/u16-casemap.c: Likewise.
83046         * lib/unicase/u32-casemap.c: Likewise.
83047         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83048         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83049         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83050         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83051         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83052         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83054         New module 'unicase/u32-suffix-context'.
83055         * lib/unicase/u32-suffix-context.c: New file.
83056         * modules/unicase/u32-suffix-context: New file.
83058         New module 'unicase/u16-suffix-context'.
83059         * lib/unicase/u16-suffix-context.c: New file.
83060         * modules/unicase/u16-suffix-context: New file.
83062         New module 'unicase/u8-suffix-context'.
83063         * lib/unicase/u8-suffix-context.c: New file.
83064         * lib/unicase/u-suffix-context.h: New file.
83065         * modules/unicase/u8-suffix-context: New file.
83067         New module 'unicase/empty-suffix-context'.
83068         * lib/unicase/empty-suffix-context.c: New file.
83069         * modules/unicase/empty-suffix-context: New file.
83071         New module 'unicase/u32-prefix-context'.
83072         * lib/unicase/u32-prefix-context.c: New file.
83073         * modules/unicase/u32-prefix-context: New file.
83075         New module 'unicase/u16-prefix-context'.
83076         * lib/unicase/u16-prefix-context.c: New file.
83077         * modules/unicase/u16-prefix-context: New file.
83079         New module 'unicase/u8-prefix-context'.
83080         * lib/unicase/u8-prefix-context.c: New file.
83081         * lib/unicase/u-prefix-context.h: New file.
83082         * lib/unicase/context.h: New file.
83083         * modules/unicase/u8-prefix-context: New file.
83085         New module 'unicase/empty-prefix-context'.
83086         * lib/unicase/empty-prefix-context.c: New file.
83087         * modules/unicase/empty-prefix-context: New file.
83089         New module 'unicase/ignorable'.
83090         * lib/unicase/ignorable.c: New file.
83091         * modules/unicase/ignorable: New file.
83093         New module 'unicase/cased'.
83094         * lib/unicase/caseprop.h: New file.
83095         * lib/unicase/cased.c: New file.
83096         * modules/unicase/cased: New file.
83098         New functions for case mapping of substrings.
83099         * lib/unicase.h (casing_prefix_context_t): New type.
83100         (unicase_empty_prefix_context): New variable.
83101         (u8_casing_prefix_context, u16_casing_prefix_context,
83102         u32_casing_prefix_context, u8_casing_prefixes_context,
83103         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83104         declarations.
83105         (casing_suffix_context_t): New type.
83106         (unicase_empty_suffix_context): New variable.
83107         (u8_casing_suffix_context, u16_casing_suffix_context,
83108         u32_casing_suffix_context, u8_casing_suffixes_context,
83109         u16_casing_suffixes_context, u32_casing_suffixes_context,
83110         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83111         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83112         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83113         declarations.
83115 2009-06-28  Jim Meyering  <meyering@redhat.com>
83117         boostrap: indent only with spaces
83118         * build-aux/bootstrap: Indent only with spaces, never TABs.
83120         bootstrap: split long lines
83121         * build-aux/bootstrap: Keep line length < 80.
83123         bootstrap: sync from coreutils
83124         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83125         just as autoreconf does.  Verify a list of prerequisite
83126         package-name,version-number pairs if defined in bootstrap.conf.
83127         Refer to README-prereq, if prerequisites are not satisfied.
83129 2009-06-27  Eric Blake  <ebb9@byu.net>
83131         tests: add test for bogus NULL definition
83132         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83133         * tests/test-stdlib.c: Likewise.
83134         * tests/test-string.c: Likewise.
83135         * tests/test-locale.c: Likewise.
83136         * tests/test-unistd.c: Likewise.
83137         * modules/stdio-tests (Depends-on): Add verify.
83138         * modules/stdlib-tests (Depends-on): Likewise.
83139         * modules/string-tests (Depends-on): Likewise.
83140         * modules/locale-tests (Depends-on): Likewise.
83141         * modules/unistd-tests (Depends-on): Likewise.
83143 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83145         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83146         self-explaining comment.
83147         * m4/selinux-selinux-h: Update serial.
83148         (gl_LIBSELINUX): New macro, adding a warning for missing development
83149         packages to code extracted from...
83150         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83151         Add warning for missing development packages here, too.
83153 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83155         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83157 2009-06-25  Eric Blake  <ebb9@byu.net>
83159         version-etc: fix regression
83160         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83161         gcc.
83162         (version_etc): Use it, to catch bugs with trailing NULL.
83163         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83164         (version_etc_va): Fix logic bug.
83165         * modules/version-etc-tests: Add test.
83166         * tests/test-version-etc.c: New file.
83167         * tests/test-version-etc.sh: Likewise.
83169 2009-06-25  Sam Steingold  <sds@gnu.org>
83171         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83172         mbtowc declaration.
83174 2009-06-25  Eric Blake  <ebb9@byu.net>
83176         fpurge: migrate into <stdio.h>
83177         * lib/fpurge.h: Delete...
83178         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83179         * lib/fpurge.c (fpurge): Change declaring header.
83180         * modules/fpurge (Files): Drop deleted file.
83181         (Depends-on): Add stdio.
83182         (configure.ac): Set witness.
83183         * modules/stdio (Makefile.am): Support fpurge macros.
83184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83185         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83186         * lib/fflush.c: Update client.
83187         * tests/test-fpurge.c: Likewise.
83188         * NEWS: Mention the change.
83190 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83192         * lib/argp-version-etc.c (program_authors): Add const
83193         qualifier.
83194         * lib/version-etc.c: Fix typos in the comments.
83195         * modules/argp-version-etc: Depends on version-etc.
83197 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83199         argp-version-etc: new module.
83201         * lib/argp-version-etc.c: New file.
83202         * lib/argp-version-etc.h: New file.
83203         * modules/argp-version-etc: New file.
83204         * modules/argp-version-etc-tests: New file.
83205         * tests/test-argp-version-etc.c: New test.
83206         * tests/test-argp-version-etc-1.sh: New test.
83208 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83210         Provide additional interfaces and documentation for version-etc
83211         module.
83213         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83214         interfaces.
83215         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83216         prototypes.
83218 2009-06-24  Bruno Haible  <bruno@clisp.org>
83220         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83221         HAVE_LIB${NAME} macro.
83222         Reported by Sam Steingold <sds@gnu.org>.
83224 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83226         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83227         needed.
83229 2009-06-21  Bruno Haible  <bruno@clisp.org>
83231         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83232         work.
83233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83234         together with LIB${NAME}, LTLIB${NAME}.
83235         Reported by Sam Steingold <sds@gnu.org>.
83237 2009-06-20  Jim Meyering  <meyering@redhat.com>
83239         tests: make sc_require_test_exit_idiom more generic
83240         * top/maint.mk (Exit_witness_file): New overridable variable.
83241         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83242         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83244 2009-06-19  Jim Meyering  <meyering@redhat.com>
83246         hash: reverse order of src/dst parameters in an internal interface
83247         * lib/hash.c (transfer_entries): Reverse order of parameters to
83248         put DST before SRC.  Adjust callers.
83250         tests: test-hash: avoid wholesale duplication
83251         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83252         Instead, use a loop and add a single conditional.
83254         tests: test-hash: allow seed selection via a command line argument
83255         * tests/test-hash.c (get_seed): New function.
83256         (main): Use it.
83258 2009-06-19  Eric Blake  <ebb9@byu.net>
83260         hash: avoid memory leak on allocation failure
83261         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83262         failure.  Factor repeated algorithm...
83263         (transfer_entries): ...into new helper routine.
83264         (hash_delete): React to hash_rehash return value.
83266         hash: reduce memory pressure in hash_rehash no-op case
83267         * lib/hash.c (next_prime): Avoid overflow.
83268         (hash_initialize): Factor bucket size computation...
83269         (compute_bucket_size): ...into new helper function.
83270         (hash_rehash): Use new function and open coding to reduce memory
83271         pressure, and avoid a memory leak in USE_OBSTACK code.
83272         Reported by Jim Meyering.
83274 2009-06-18  Eric Blake  <ebb9@byu.net>
83276         hash: make rotation more obvious
83277         * modules/hash (Depends-on): Add bitrotate and stdint.
83278         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83279         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83280         (SIZE_MAX): Rely on headers for definition.
83281         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83282         (raw_hasher): Use rotr_sz.
83283         Suggested by Jim Meyering.
83285         hash: fix memory leak in last patch
83286         * lib/hash.c (hash_rehash): Avoid memory leak.
83288         hash: avoid no-op rehashing
83289         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83291         hash: provide default callback functions
83292         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83293         (hash_initialize): Use them as defaults.
83294         * tests/test-hash.c (main): Test this.
83296         hash: minor optimization
83297         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83298         when possible.
83299         (hash_initialize): Document this promise.
83300         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83301         * tests/test-hash.c (hash_compare_strings): Test this.
83303 2009-06-18  Bruno Haible  <bruno@clisp.org>
83305         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83306         going to be replaced anyway.
83308 2009-06-18  Bruno Haible  <bruno@clisp.org>
83310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83311         in one place.
83312         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83313         be replaced anyway.
83315 2009-06-18  Eric Blake  <ebb9@byu.net>
83317         hash: check for resize before insertion
83318         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83319         threshold before insertion, so that a pathological hash_rehash
83320         that fills every bucket can still trigger another rehash.
83322 2009-06-18  Jim Meyering  <meyering@redhat.com>
83324         hash-tests: add a loop around the small tests
83325         * tests/test-hash.c (main): Repeat small tests with selected
83326         small initial table sizes.
83328 2009-06-17  Eric Blake  <ebb9@byu.net>
83330         hash: minor cleanups
83331         * lib/hash.h (hash_entry): Make opaque, by moving...
83332         * lib/hash.c (hash_entry): ...here.
83333         (hash_insert): Clarify restrictions on what can be inserted.
83334         (hash_get_next): Clarify when it is safe to remove an element
83335         during traversal.
83336         (check_tuning): Skip verification when tuning is known safe.
83337         (hash_initialize): Clarify restrictions on tuning.
83339 2009-06-17  Jim Meyering  <jim@meyering.net>
83340         and Eric Blake  <ebb9@byu.net>
83342         hash-tests: new module
83343         * modules/hash-tests: New file.
83344         * tests/test-hash.c: New file.
83346 2009-06-17  Eric Blake  <ebb9@byu.net>
83348         strstr-simple: document new module
83349         * MODULES.html.sh: Document new module.
83351         strstr, strcasestr: replace on platforms with broken memchr
83352         * modules/strstr: Split into...
83353         * modules/strstr-simple: ...new module that does not care about
83354         performance, but does care about glibc bug.
83355         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83356         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83357         if platform memchr is broken, per Debian bug 521737.
83358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83359         memchr.
83360         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83361         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83362         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83363         * modules/mountlist (Depends-on): Add strstr-simple.
83364         * modules/gen-uni-tables (Depends-on): Likewise.
83365         * modules/argz (Depends-on): Add strstr.
83367 2009-06-17  Bruno Haible  <bruno@clisp.org>
83369         * modules/posix_spawn-internal (Depends-on): Add errno.
83371 2009-06-17  Bruno Haible  <bruno@clisp.org>
83373         Define missing ESTALE on Interix 3.5.
83374         * lib/errno.in.h (ESTALE): Assign a value if missing.
83375         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83377         missing.
83378         * doc/posix-headers/errno.texi: Mention the Interix bug.
83379         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83381 2009-06-15  Eric Blake  <ebb9@byu.net>
83383         memchr, memchr2: add valgrind exception
83384         * lib/memchr.valgrind: New file.
83385         * lib/memchr2.valgrind: New file.
83386         * modules/memchr (Files): Distribute valgrind file.
83387         * modules/memchr2 (Files): Likewise.
83389         docs: memchr is no longer obsolete
83390         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83391         * lib/string.in.h (memchr): Simplify logic.
83393 2009-06-14  Jim Meyering  <meyering@redhat.com>
83395         link-follow: fix the "checking..." message to not mention trailing slash
83396         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83397         never considered trailing slashes.
83399 2009-06-14  Bruno Haible  <bruno@clisp.org>
83401         * m4/memchr.m4: Mention also the bug on IA-64.
83402         * doc/posix-functions/memchr.texi: Likewise.
83404 2009-06-12  Eric Blake  <ebb9@byu.net>
83406         memchr: detect broken x86_64 and alpha implementations
83407         * modules/memchr-tests (Depends-on): Move mmap detection...
83408         * modules/memchr (Depends-on): ...here.
83409         (configure.ac): Set indicator.
83410         * lib/string.in.h (memchr): Declare replacement.
83411         * modules/string (Makefile.am): Trigger replacement.
83412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83413         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83414         bugs.
83415         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83416         * modules/getpagesize (License): Relax license.
83418 2009-06-11  Bruno Haible  <bruno@clisp.org>
83420         * lib/idpriv.h: Add more references.
83422 2009-06-08  Bruno Haible  <bruno@clisp.org>
83424         Tests for module 'idpriv-droptemp'.
83425         * modules/idpriv-droptemp-tests: New file.
83426         * tests/test-idpriv-droptemp.sh: New file.
83427         * tests/test-idpriv-droptemp.su.sh: New file.
83428         * tests/test-idpriv-droptemp.c: New file.
83430         New module 'idpriv-droptemp'.
83431         * lib/idpriv-droptemp.c: New file.
83432         * modules/idpriv-droptemp: New file.
83434 2009-06-08  Bruno Haible  <bruno@clisp.org>
83436         Tests for module 'idpriv-drop'.
83437         * modules/idpriv-drop-tests: New file.
83438         * tests/test-idpriv-drop.sh: New file.
83439         * tests/test-idpriv-drop.su.sh: New file.
83440         * tests/test-idpriv-drop.c: New file.
83442         New module 'idpriv-drop'.
83443         * lib/idpriv.h: New file.
83444         * lib-idpriv-drop.c: New file.
83445         * m4/idpriv.m4: New file.
83446         * modules/idpriv-drop: New file.
83448 2009-06-08  Bruno Haible  <bruno@clisp.org>
83450         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83451         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83452         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83453         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83454         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83455         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83456         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83458 2009-06-08  Eric Blake  <ebb9@byu.net>
83460         test-strstr: use memory fence, when possible
83461         * tests/test-strstr.c (main): Use memory fence, in order to be
83462         more likely to trigger Debian bug 521737.
83463         * modules/strstr-tests (Files): Pull in additional files.
83465         memchr: no longer obsolete, for wider field testing
83466         * modules/memchr (Status, Notice): Delete, this module is no
83467         longer obsolete.
83468         * modules/vasnprintf (Depends-on): Add memchr.
83470 2009-06-07  Jim Meyering  <meyering@redhat.com>
83472         hash: declare some functions with the warn_unused_result attribute
83473         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83475 2009-06-07  Bruno Haible  <bruno@clisp.org>
83477         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83478         Reported by Eric Blake.
83480 2009-06-06  Eric Blake  <ebb9@byu.net>
83482         test-alignof: fix typo with long double
83483         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83484         compiler error.
83486 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83488         Escape non-texinfo { and }s.
83489         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83490         markup error.
83492 2009-06-04  Jim Meyering  <meyering@redhat.com>
83494         gitlog-to-changelog: don't infloop on an empty commit log
83495         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83496         Reported by Boris Petersen <transacid@centerim.org>.
83498 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83500         version-etc: extend for packagers
83501         Add three new configure options, intended for packagers:
83502           --with-packager="packager name"
83503           --with-packager-version="packager-specific version"
83504           --with-packager-bug-reports="packager bug reporting"
83505         An example with coreutils:
83506           $ ./configure \
83507             --with-packager=Gentoo \
83508             --with-packager-bug-report=http://bugs.gentoo.org/ \
83509             --with-packager-version="patchset 1.6"
83510           $ ./src/ls --version | head -n2
83511           ls (GNU coreutils) 7.1-dirty
83512           Packaged by Gentoo (patchset 1.6)
83513         Note that the bug reporting info via --help doesn't show up because
83514         coreutils uses its own custom emit_bug_reporting_address() implementation
83515         in src/system.h.  If it didn't, it'd look like:
83516           $ ./src/ls --help | tail -n4
83517           Report bugs to <bug-coreutils@gnu.org>.
83518           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83519           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83520           General help using GNU software: <http://www.gnu.org/gethelp/>.
83521         * lib/version-etc.c: Print new information, if provided.
83522         * m4/version-etc.m4: New file.
83523         * modules/version-etc (Files): Add m4/version-etc.m4.
83524         (configure.ac): Add gl_VERSION_ETC.
83526 2009-05-31  Bruno Haible  <bruno@clisp.org>
83528         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83529         and 'int64_t'.
83530         * modules/alignof-tests (Dependencies): Add stdint.
83531         Reported by Eric Blake.
83533 2009-05-31  Bruno Haible  <bruno@clisp.org>
83535         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83536         restriction due to compiler bugs.
83537         Reported by Eric Blake.
83539 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83540             Bruno Haible  <bruno@clisp.org>
83542         Fix test-alignof failure.
83543         * lib/alignof.h (alignof_slot): New macro.
83544         (alignof_type): New macro, with the same semantics as the previous
83545         'alignof'.
83546         (alignof): Alias to alignof_slot.
83547         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83548         check that the results are usable as constant expressions.
83550 2009-05-31  Bruno Haible  <bruno@clisp.org>
83552         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83553         * tests/test-memchr.c (main): Check that memchr does not read past the
83554         first occurrence of the byte.
83555         * tests/test-strstr.c (main): Update comment.
83556         Suggested by Eric Blake.
83558 2009-05-30  Bruno Haible  <bruno@clisp.org>
83560         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83561         detail how to use dumpbin.
83562         Reported by David Byron <dbyron@dbyron.com>.
83564 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83566         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83568 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83570         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83572 2009-05-28  Bruno Haible  <bruno@clisp.org>
83574         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83575         build-aux/ files.
83577 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83579         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83581 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83583         * gnulib-tool (sed_transform_main_lib_file)
83584         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83585         regexps.
83587 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83589         * tests/test-strstr.c: Add another self-test.
83590         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83591         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83593 2009-05-23  Bruno Haible  <bruno@clisp.org>
83595         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83596         change.
83598 2009-05-21  Bruno Haible  <bruno@clisp.org>
83600         Simplify use of mode_t varargs.
83601         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83602         uses 'mode_t' or 'int'.
83603         * lib/openat.c (openat): Likewise.
83604         * lib/open-safer.c (open_safer): Likewise.
83605         * m4/mode_t.m4: New file.
83606         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83607         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83608         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83609         * modules/open (Files): Add m4/mode_t.m4.
83610         * modules/openat (Files): Likewise.
83611         * modules/fcntl-safer (Files): Likewise.
83612         Suggested by Eric Blake.
83614 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83616         * doc/glibc-functions/fallocate.texi: New file.
83617         * doc/gnulib.texi: Include it.
83619 2009-05-21  Eric Blake  <ebb9@byu.net>
83620             Bruno Haible  <bruno@clisp.org>
83622         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83623         invocations.
83624         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83626 2009-05-21  Eric Blake  <ebb9@byu.net>
83627             Bruno Haible  <bruno@clisp.org>
83629         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83630         include_next. Fix of 2008-11-20 commit.
83631         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83632         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83633         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83634         NEXT_MATH_H.
83635         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83636         instead of NEXT_MATH_H.
83638 2009-05-21  Bruno Haible  <bruno@clisp.org>
83640         Avoid redefinition warnings for SIZE_MAX.
83641         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83642         Reported by Simon Josefsson.
83644 2009-05-21  Bruno Haible  <bruno@clisp.org>
83646         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83647         AC_CACHE_VAL.
83649 2009-05-20  Bruno Haible  <bruno@clisp.org>
83651         Make zeroptr.h work on mingw.
83652         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83653         mprotect.
83654         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83655         * modules/memchr2-tests (configure.ac): Likewise.
83656         * modules/memcmp-tests (configure.ac): Likewise.
83657         * modules/memmem-tests (configure.ac): Likewise.
83658         * modules/memrchr-tests (configure.ac): Likewise.
83659         Reported by Simon Josefsson.
83661 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83663         * tests/test-glob.c: Include string.h for strcmp prototype.
83665 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83667         * modules/getdelim (Depends-on): Add explicit stdint, although it
83668         was implicitly already pulled in via realloc-posix.
83669         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83671 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83673         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83674         G. Christensen" <tgc@jupiterrise.com>.
83675         * m4/sys_socket_h.m4: Check for sa_family_t.
83676         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83677         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83678         * tests/test-sys_socket.c: Check that sa_family_t works.
83680 2009-05-18  Eric Blake  <ebb9@byu.net>
83682         maint.mk: allow gnulib_dir in VPATH build
83683         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83685 2009-05-15  Jim Meyering  <meyering@redhat.com>
83687         maint.mk: Give gnulib_dir a default definition.
83688         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83689         Thus, most packages no longer need to specify this variable in cfg.mk
83691 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83693         rename.m4: fix typos that would make non-mingw cross-configure fail
83694         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83696 2009-05-13  Eric Blake  <ebb9@byu.net>
83698         mmap-anon: avoid out-of-order autoconf expansion
83699         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83700         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83701         * modules/memchr-tests (Depends-on): Add extensions.
83702         * modules/memchr2-tests (Depends-on): Add extensions.
83703         * modules/memcmp-tests (Depends-on): Add extensions.
83704         * modules/memmem-tests (Depends-on): Add extensions.
83705         * modules/memrchr-tests (Depends-on): Add extensions.
83707 2009-05-13  Bruno Haible  <bruno@clisp.org>
83709         Make some tests ISO C 99 compliant.
83710         * tests/zerosize-ptr.h: New file.
83711         * tests/test-memchr.c: Include zerosize-ptr.h.
83712         (main): Use a zero-size object pointer instead of NULL.
83713         * tests/test-memchr2.c: Include zerosize-ptr.h.
83714         (main): Use a zero-size object pointer instead of NULL.
83715         * tests/test-memcmp.c: Include zerosize-ptr.h.
83716         (main): Use a zero-size object pointer instead of NULL.
83717         * tests/test-memmem.c: Include zerosize-ptr.h.
83718         (main): Use a zero-size object pointer instead of NULL.
83719         * tests/test-memrchr.c: Include zerosize-ptr.h.
83720         (main): Use a zero-size object pointer instead of NULL.
83721         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83722         m4/mmap-anon.m4.
83723         (Depends-on): Add getpagesize.
83724         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83725         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83726         m4/mmap-anon.m4.
83727         (Depends-on): Add getpagesize.
83728         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83729         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83730         m4/mmap-anon.m4.
83731         (Depends-on): Add getpagesize.
83732         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83733         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83734         m4/mmap-anon.m4.
83735         (Depends-on): Add getpagesize.
83736         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83737         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83738         m4/mmap-anon.m4.
83739         (Depends-on): Add getpagesize.
83740         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83742 2009-05-12  Bruno Haible  <bruno@clisp.org>
83744         Tests for module 'alignof'.
83745         * modules/alignof-tests: New file.
83746         * tests/test-alignof.c: New file.
83748 2009-05-12  Bruno Haible  <bruno@clisp.org>
83750         Fix alignof macro.
83751         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83752         vendor compilers that are always correct.
83754 2009-05-12  Bruno Haible  <bruno@clisp.org>
83756         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83757         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83758         not whether its fully works.
83760 2009-05-12  Bruno Haible  <bruno@clisp.org>
83762         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83764 2009-05-12  Jim Meyering  <meyering@redhat.com>
83766         * top/maint.mk: Adjust backslash alignment.
83768 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83770         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83772 2009-05-11  Eric Blake  <ebb9@byu.net>
83774         argp: avoid undefined behavior
83775         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83776         macros.
83778 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83780         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83781         user.name to prevent git commit from complaining.
83783 2009-05-10  Bruno Haible  <bruno@clisp.org>
83785         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83786         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83787         it rewrites every file name only once.
83788         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83790 2009-05-08  Bruno Haible  <bruno@clisp.org>
83792         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83793         instead of 'max'.
83795 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83797         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83798         sockaddr_storage test.
83800 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83802         * modules/sys_socket (Makefile.am): Substitute
83803         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83804         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83805         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83806         * tests/test-sys_socket.c: Check sockaddr_storage.
83808 2009-05-08  Bruno Haible  <bruno@clisp.org>
83810         New module 'alignof'.
83811         * lib/alignof.h: New file.
83812         * modules/alignof: New file.
83814 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83815             Bruno Haible  <bruno@clisp.org>
83817         Fix test-file-has-acl on FreeBSD.
83818         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83819         mask is implicitly added.
83820         * tests/test-file-has-acl.c: Include <signal.h>.
83821         (main): Terminate the test after 5 seconds.
83822         * modules/acl-tests (configure.ac): Check for alarm function.
83824 2009-05-04  Bruno Haible  <bruno@clisp.org>
83826         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83827         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83828         * modules/errno (configure.ac): Drop AC_REQUIRE.
83829         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83830         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83832 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83834         * modules/glob-tests: New module.
83835         * tests/test-glob.c: Add.
83837 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83839         * modules/fnmatch-tests: New module.
83840         * tests/test-fnmatch.c: Add.
83842 2009-05-04  Eric Blake  <ebb9@byu.net>
83844         maint: make the new no-submodule-changes rule VPATH-safe
83845         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83847 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83848             Bruno Haible  <bruno@clisp.org>
83850         acl: Fix infinite loop on FreeBSD.
83851         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83852         of return value from acl_get_entry.
83853         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83854         Likewise.
83856 2009-05-03  Bruno Haible  <bruno@clisp.org>
83858         * lib/acl-internal.h (acl_entries): Clarify return value.
83859         * lib/acl_entries.c (acl_entries): Likewise.
83861 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83863         Bug fix in acl module.
83864         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83866 2009-05-03  Bruno Haible  <bruno@clisp.org>
83868         Create gperf-generated file in the source dir, not in the build dir.
83869         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83870         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83871         * modules/unicase/locale-language (unicase/locale-languages.h):
83872         Likewise.
83873         * modules/unicase/special-casing (unicase/special-casing-table.h):
83874         Likewise.
83875         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83876         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83877         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83878         Reported by Ralf Wildenhues.
83880 2009-05-03  Bruno Haible  <bruno@clisp.org>
83882         * modules/fnmatch (Description, configure.ac): Taken from
83883         fnmatch-posix.
83884         * modules/fnmatch-posix: Turn into a symbolic reference to the
83885         'fnmatch' module, and deprecate.
83886         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83888 2009-05-03  Bruno Haible  <bruno@clisp.org>
83890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83891         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83892         Reported by Ralf Wildenhues.
83894 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83896         * m4/fnmatch.m4: Fix fnmatch re-define.
83898 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83900         priv-set: new module and tests; adapt write-any-file
83901         * lib/priv-set.c: New file.
83902         * lib/priv-set.h: New file.
83903         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83904         * lib/write-any-file.c: Simplify by using priv-set module.
83905         * m4/priv-set.m4: New file.
83906         * modules/priv-set: New file.
83907         * modules/unlinkdir: Add dependency on priv-set module.
83908         * modules/write-any-file: Likewise.
83910         Tests for module 'priv-set'.
83911         * modules/priv-set-tests: New file.
83912         * tests/test-priv-set.c: New file.
83914 2009-05-03  Jim Meyering  <meyering@redhat.com>
83915             Bruno Haible  <bruno@clisp.org>
83917         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83918         use the converted UTF-8 variant of the name instead.
83920 2009-05-03  Jim Meyering  <meyering@redhat.com>
83922         tests: tighten some getdate tests
83923         * tests/test-getdate.c (main): Tighten tests: require equality,
83924         not just greater than.  Set TZ envvar to UTC0.
83926 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83928         getdate: correctly interpret "next monday" when run on a Monday
83929         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83930         that e.g., "next tues" (when run on a tuesday) results in a date
83931         that is one week in the future, and not today's date.
83932         I.e., add a week when the wday is the same as the current one.
83933         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83934         and earlier by Martin Bernreuther and Jan Minář.
83935         * tests/test-getdate.c (main): Check that "next DAY" is always in
83936         the future and that "last DAY" is always in the past.
83938 2009-05-02  Jim Meyering  <meyering@redhat.com>
83940         build: ensure that a release build fails when a submodule is unclean
83941         * top/maint.mk (no-submodule-changes): New rule.
83942         (alpha beta major): Depend on it.
83944 2009-05-02  Bruno Haible  <bruno@clisp.org>
83946         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83947         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83948         shell variable gl_fnmatch_required to detect which variant is
83949         requested.
83950         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83951         gl_FUNC_FNMATCH_POSIX.
83952         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83953         exclude fnmatch-posix.
83955 2009-05-02  Bruno Haible  <bruno@clisp.org>
83957         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83958         * modules/mbsrtowcs (License): Change to LGPLv2+.
83959         * modules/strnlen1 (License): Likewise.
83960         Reported by Simon Josefsson.
83962 2009-05-02  Bruno Haible  <bruno@clisp.org>
83964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83965         "cross".
83966         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83967         gnulib-tool was called with option --source-base=lib.
83969 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83971         Use automake *-local hooks without commands, for extensibility.
83972         * modules/localcharset (Makefile.am): Rename install-exec-local
83973         rule to install-exec-localcharset, and make it a prerequisite of
83974         install-exec-local.  Likewise, rename the uninstall-local rule to
83975         uninstall-localcharset, and make it a prerequisite of the former.
83977 2009-05-01  Bruno Haible  <bruno@clisp.org>
83979         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83980         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83981         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83983         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83984         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83985         m4/locale-zh.m4, m4/codeset.m4.
83987         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83988         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83989         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83990         m4/locale-zh.m4.
83992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83993         REPLACE_WCRTOMB if mbstate_t must be replaced.
83994         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83995         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83997 2009-05-01  Bruno Haible  <bruno@clisp.org>
83999         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84000         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84001         dngettext, dcngettext, textdomain, bindtextdomain,
84002         bind_textdomain_codeset): Undefine before redefining.
84004 2009-04-30  Bruno Haible  <bruno@clisp.org>
84006         Fix bug introduced on 2009-04-25.
84007         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84008         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84009         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84010         is defined.
84011         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84012         is defined.
84013         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84014         is defined.
84015         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84017 2009-04-28  Bruno Haible  <bruno@clisp.org>
84019         Comment tweaks.
84020         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84021         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84022         * lib/unicase.h (u*_casexfrm): Likewise.
84023         Reported by Paolo Bonzini.
84025 2009-04-28  Bruno Haible  <bruno@clisp.org>
84027         Fix a compilation error.
84028         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84029         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84030         Reported by Jim Meyering.
84032 2009-04-27  Bruno Haible  <bruno@clisp.org>
84034         New module 'libunistring'.
84035         * modules/libunistring: New file.
84036         * m4/libunistring.m4: New file.
84037         * MODULES.html.sh (Unicode string functions): Add it.
84039 2009-04-27  Eric Blake  <ebb9@byu.net>
84041         maint.mk: allow package-specific header to provide <config.h>
84042         * top/maint.mk (sc_require_config_h): New variable.
84043         (sc_require_config_h, sc_require_config_h_first): Use it.
84045 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84047         * top/maint.mk (sc_avoid_if_before_free): Except
84048         useless-if-before-free script.
84050 2009-04-27  Eric Blake  <ebb9@byu.net>
84052         maintainer-makefile: depend on all required helper scripts
84053         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84054         useless-if-before-free.
84055         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84056         version, rather than assuming gnulib checkout is available.
84057         Reported by Simen Josefsson.
84059 2009-04-26  Bruno Haible  <bruno@clisp.org>
84061         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84062         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84063         "../" or "..".
84065 2009-04-26  Bruno Haible  <bruno@clisp.org>
84067         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84068         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84069         AC_LIB_HAVE_LINKFLAGS.
84071 2009-04-26  Bruno Haible  <bruno@clisp.org>
84073         Simplify calling convention of u*_conv_from_encoding.
84074         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84075         u32_conv_from_encoding): Expect a resultbuf argument and return the
84076         result directly as a pointer.
84077         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84078         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84079         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84080         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84081         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84082         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84083         Update.
84084         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84085         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84086         * lib/vasnprintf.c (VASNPRINTF): Update.
84087         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84088         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84089         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84090         * NEWS: Mention the change.
84092 2009-04-26  Bruno Haible  <bruno@clisp.org>
84094         Simplify calling convention of u*_conv_to_encoding.
84095         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84096         u32_conv_to_encoding): Expect a resultbuf argument and return the
84097         result directly as a pointer.
84098         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84099         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84100         freeing scaled_offsets if mem_iconveha failed.
84101         * lib/unicase/u-casexfrm.h (FUNC): Update.
84102         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84103         * lib/vasnprintf.c (VASNPRINTF): Update.
84104         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84105         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84106         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84107         * NEWS: Mention the change.
84109 2009-04-26  Bruno Haible  <bruno@clisp.org>
84111         Avoid test failures on AIX and OSF/1.
84112         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84113         malloc(0).
84114         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84115         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84116         Likewise.
84117         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84118         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84119         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84120         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84121         * doc/posix-functions/malloc.texi: Document the portability problem
84122         related to malloc(0).
84124 2009-04-26  Bruno Haible  <bruno@clisp.org>
84126         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84127         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84128         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84130 2009-04-25  Bruno Haible  <bruno@clisp.org>
84132         Avoid link error when creating a namespace clean library.
84133         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84134         as macro with arguments if already defined as an alias.
84135         * lib/signbitf.c (gl_signbitf): Don't undefine.
84136         * lib/signbitd.c (gl_signbitd): Don't undefine.
84137         * lib/signbitl.c (gl_signbitl): Don't undefine.
84139 2009-04-25  Jim Meyering  <meyering@redhat.com>
84141         vc-list-files: fix another quoting bug
84142         * build-aux/vc-list-files: Avoid sed backslash expansion
84143         of pathological directory names.
84145 2009-04-25  Eric Blake  <ebb9@byu.net>
84147         vc-list-files: fix shell quoting error
84148         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84149         timestamp.
84151 2009-04-25  Jim Meyering  <meyering@redhat.com>
84153         vc-list-files: restore lost functionality with subdir argument
84154         * build-aux/vc-list-files: When given a non-"." sub-directory
84155         argument, substitute the $dir/ prefix back onto each resulting name.
84156         Otherwise, coreutils' root_tests check would fail.
84158 2009-04-24  Eric Blake  <ebb9@byu.net>
84160         vc-list-files: ignore git symlinks
84161         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84162         than ls-files, to ignore git symlinks.
84164         maint.mk: import improvements from m4
84165         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84166         (move_if_change): Delete unused macro.
84167         (news-date-check, vc-diff-check): Support VPATH builds.
84168         (announcement): Likewise.  Split --bootstrap-tools list...
84169         (boostrap-tools): ...into separate list, which can be overridden
84170         in cfg.mk.
84171         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84172         requiring dependency on useless-if-before-free module.
84173         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84174         Support VPATH builds.
84176 2009-04-24  Jim Meyering  <meyering@redhat.com>
84178         maint.mk: remove coreutils-specific rules and variables
84179         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84180         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84181         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84183         maint.mk: remove obsolete rule
84184         * top/maint.mk (rel-check): Remove rule.
84185         (WGET, WGETFLAGS): Remove now-unused variables.
84187 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84189         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84190         consistency.
84192         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84193         '$(PATH_SEPARATOR)' instead of ':'.
84195 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84197         * lib/getopt1.c (main): Use 'const' for static array.
84199 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84201         * top/maint.mk: Sync with coreutils.
84202         * NEWS: Explain incompatibilities.
84204 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84205             Bruno Haible  <bruno@clisp.org>
84207         Fix cross-compilation results.
84208         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84209         statement, as third argument of AC_TRY_RUN.
84210         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84211         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84212         Likewise.
84213         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84214         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84215         Likewise.
84216         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84217         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84218         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84220 2009-04-20  Bruno Haible  <bruno@clisp.org>
84222         Avoid test failure on mingw.
84223         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84225 2009-04-20  Bruno Haible  <bruno@clisp.org>
84227         Avoid compilation error on mingw.
84228         * modules/localename-tests (Depends-on): Add locale.
84230 2009-04-19  Bruno Haible  <bruno@clisp.org>
84232         Support for building a shared library on Windows platforms.
84233         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84234         (main): Test the presence of UNINORM_NFC here.
84235         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84236         (main): Test the presence of UNINORM_NFD here.
84237         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84238         (main): Test the presence of UNINORM_NFKC here.
84239         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84240         (main): Test the presence of UNINORM_NFKD here.
84242 2009-04-19  Bruno Haible  <bruno@clisp.org>
84244         Avoid a compiler warning.
84245         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84246         Change type of variable 'sequence'.
84248 2009-04-19  Bruno Haible  <bruno@clisp.org>
84250         * modules/configmake (Makefile.am): When the contents of configmake.h
84251         does not change, arrange to preserve its modification time.
84253 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84255         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84256         gettext domain.
84258 2009-04-16  Jim Meyering  <meyering@redhat.com>
84260         useless-if-before-free: improve conversion code
84261         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84262         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84264 2009-04-14  Bruno Haible  <bruno@clisp.org>
84266         * modules/fcntl (Depends-on): Add extensions.
84267         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84269 2009-04-12  Ben Pfaff  <blp@gnu.org>
84271         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84272         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84274 2009-03-20  Ben Pfaff  <blp@gnu.org>
84276         Make rename replace existing destinations on Windows.
84277         * m4/rename.m4: Add test for Mingw.
84278         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84279         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84280         * doc/posix-functions/rename.texi: Document.
84282 2009-04-10  Bruno Haible  <bruno@clisp.org>
84284         New include file "iconveh.h".
84285         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84286         * lib/striconveh.h: Include it.
84287         (enum iconv_ilseq_handler): Remove definition.
84288         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84289         striconveh.h.
84290         * lib/striconveha.c: Include striconveh.h.
84291         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84292         * modules/striconveh (Files): Add lib/iconveh.h.
84293         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84294         lib/striconveh.h.
84296 2009-04-10  Bruno Haible  <bruno@clisp.org>
84298         * lib/uniconv.h: Update comment.
84300 2009-04-10  Bruno Haible  <bruno@clisp.org>
84302         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84303         always.
84304         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84305         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84306         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84307         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84308         "unistring-notinline.h", so that the function gets defined always.
84309         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84310         * lib/unistr/u8-uctomb.c: Likewise.
84311         * lib/unistr/u16-mbtouc.c: Likewise.
84312         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84313         * lib/unistr/u16-uctomb.c: Likewise.
84314         * lib/unistr/u32-mbtouc.c: Likewise.
84315         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84316         * lib/unistr/u32-uctomb.c: Likewise.
84318 2009-04-10  Bruno Haible  <bruno@clisp.org>
84320         Mark 'utime' obsolete.
84321         * modules/utime (Status, Notice): New sections.
84322         Suggested by Jim Meyering.
84324         Fix cross-compile guess for utime test.
84325         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84326         autoconf.
84327         * doc/posix-functions/utime.texi: Give more precisions.
84328         Reported by Jan <ipif@ymail.com>.
84330 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84332         filevercmp: correct today's change
84333         * lib/filevercmp.c: Also handle coreutils' test inputs.
84334         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84336         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84337         for reporting it.
84338         * lib/filevercmp.c: Special handle for "", "." and "..".
84339         * tests/test-filevercmp.c: Enlarge the set suite.
84341 2009-04-07  Jim Meyering  <meyering@redhat.com>
84343         useless-if-before-free: show how to remove braced useless free, too
84344         * build-aux/useless-if-before-free: still only in a comment, though.
84346 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84348         maint.mk: import changes to syntax-check macros from coreutils
84349         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84350         Use them in the relevant macros.
84352 2009-04-06  Bruno Haible  <bruno@clisp.org>
84354         Fix unportable use of bit-fields.
84355         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84356         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84357         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84359 2009-04-06  Bruno Haible  <bruno@clisp.org>
84361         Avoid test failures on AIX and OSF/1.
84362         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84363         that malloc(0) = NULL.
84364         * tests/unicase/test-u8-tolower.c (check): Likewise.
84365         * tests/unicase/test-u8-totitle.c (check): Likewise.
84366         * tests/unicase/test-u8-toupper.c (check): Likewise.
84367         * tests/unicase/test-u16-casefold.c (check): Likewise.
84368         * tests/unicase/test-u16-tolower.c (check): Likewise.
84369         * tests/unicase/test-u16-totitle.c (check): Likewise.
84370         * tests/unicase/test-u16-toupper.c (check): Likewise.
84371         * tests/unicase/test-u32-casefold.c (check): Likewise.
84372         * tests/unicase/test-u32-tolower.c (check): Likewise.
84373         * tests/unicase/test-u32-totitle.c (check): Likewise.
84374         * tests/unicase/test-u32-toupper.c (check): Likewise.
84375         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84376         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84377         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84378         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84379         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84380         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84381         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84382         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84383         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84384         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84385         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84386         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84388 2009-04-05  Bruno Haible  <bruno@clisp.org>
84390         Work around an autoconf limitation.
84391         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84392         comment line if it would be longer than 3 KB.
84394 2009-04-05  Bruno Haible  <bruno@clisp.org>
84396         Avoid test failure with libiconv-1.13.
84397         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84398         of the expected test results.
84400 2009-04-05  Bruno Haible  <bruno@clisp.org>
84402         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84403         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84404         that it should be installed.
84406 2009-04-05  Bruno Haible  <bruno@clisp.org>
84408         * gnulib-tool: New option --copy-file.
84409         (func_usage): Document it.
84410         (func_dest_tmpfilename): Moved out of func_import.
84411         (func_add_file, func_update_file): New functions, extracted from
84412         func_import.
84413         (func_import): Update.
84415 2009-04-05  Karl Berry  <karl@gnu.org>
84417         * README: prominently mention gnulib-tool.
84418         Rearrange sections so getting the code is near the top.
84420 2009-04-05  Bruno Haible  <bruno@clisp.org>
84422         * lib/unicase.h: Mention u*_cmp2.
84423         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84424         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84425         * lib/unicase/ulc-casecmp.c: Likewise.
84426         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84427         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84428         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84429         unistr/u8-cmp.
84430         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84431         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84432         unistr/u16-cmp.
84433         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84434         unistr/u32-cmp.
84436         * lib/uninorm.h: Mention u*_cmp2.
84437         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84438         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84439         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84440         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84441         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84442         unistr/u8-cmp.
84443         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84444         unistr/u16-cmp.
84445         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84446         unistr/u32-cmp.
84448         New module 'unistr/u32-cmp2'.
84449         * lib/unistr/u32-cmp2.c: New file.
84450         * modules/unistr/u32-cmp2: New file.
84452         New module 'unistr/u16-cmp2'.
84453         * lib/unistr/u16-cmp2.c: New file.
84454         * modules/unistr/u16-cmp2: New file.
84456         New module 'unistr/u8-cmp2'.
84457         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84458         * lib/unistr/u8-cmp2.c: New file.
84459         * lib/unistr/u-cmp2.h: New file.
84460         * modules/unistr/u8-cmp2: New file.
84462 2009-04-05  Bruno Haible  <bruno@clisp.org>
84464         * lib/unictype.h (uc_property_is_valid): New macro.
84465         * tests/unictype/test-pr_byname.c (main): Use it.
84467         * lib/unistr.h: Doc fixes.
84468         * lib/uniconv.h: Doc fixes.
84469         * lib/unictype.h: Doc fixes.
84471 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84473         Port coreutils 7.2 to Solaris 8.
84475         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84476         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84477         for Solaris 8.  This is a bit of a hack, as it means it's the
84478         caller's responsibility to add -lnsl if needed, but most likely it
84479         won't be needed since only getaddrinfo uses this and getaddrinfo
84480         isn't needed on Solaris 8.
84482         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84483         problem to Solaris 8 encountered with coreutils 7.2, which
84484         resulted in a message "fnmatch.c:292: warning: passing argument 4
84485         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84486         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84488 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84490         * m4/ld-version-script.m4: Add FIXME comment.
84492 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84494         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84495         SOVERSION variable.
84497 2009-04-02  Bruno Haible  <bruno@clisp.org>
84499         * Makefile (info, html, dvi, pdf): Combine the rules.
84500         Suggested by Jim Meyering.
84502 2009-04-01  Bruno Haible  <bruno@clisp.org>
84504         * Makefile (info, html, dvi, pdf): New targets.
84505         Reported by Reuben Thomas <rrt@sc3d.org>.
84507 2009-04-01  Bruno Haible  <bruno@clisp.org>
84509         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84510         can be put into PATH.
84511         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84513 2009-04-01  Bruno Haible  <bruno@clisp.org>
84515         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84517 2009-04-01  Bruno Haible  <bruno@clisp.org>
84519         Rename module 'visibility'.
84520         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84521         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84522         * doc/gnulib.texi: Update.
84523         * MODULES.html.sh (Misc): Update.
84524         * NEWS: Mention the change.
84526 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84528         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84529         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84530         Eric Blake <ebb9@byu.net> for review.
84531         * MODULES.html.sh: Add lib-msvc-compat.
84532         * doc/gnulib.texi: Link to new section.
84533         * m4/ld-output-def.m4: New file.
84534         * doc/ld-output-def.texi: New file.
84536 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84538         Rename ld-version-script to lib-symbol-versions.  Suggested by
84539         Bruno Haible <bruno@clisp.org>.
84540         * modules/ld-version-script: Renamed to lib-symbol-versions.
84541         * doc/ld-version-script.texi: Fix module name.
84542         * MODULES.html.sh: Add lib-symbol-versions.
84544 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84546         * modules/u64-tests: New file.
84547         * tests/test-u64.c: New file.
84549 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84551         * MODULES.html.sh: Mention u64.
84552         * modules/u64: New module.
84553         * modules/crypto/sha512: Depend on u64 module instead of providing
84554         u64.h.
84556 2009-03-27  Eric Blake  <ebb9@byu.net>
84558         test-strerror: make debugging EAI_SYSTEM easier
84559         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84560         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84561         failure was EAI_SYSTEM.
84563 2009-03-25  Bruno Haible  <bruno@clisp.org>
84565         Fix a problem with --enable-relocatable on Solaris 7.
84566         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84567         since 2008-02-24.
84569 2009-03-25  Eric Blake  <ebb9@byu.net>
84571         test-sockets: avoid gcc warning
84572         * tests/test-sockets.c (main): Silence compiler warning.
84574 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84576         New modules nproc, pthread, contributed by Glen Lenker.
84578         * MODULES.html.sh: Add pthread, nproc.
84579         * lib/nproc.c: New file.
84580         * lib/nproc.h: New file.
84581         * lib/pthread.in.h: New file.
84582         * m4/pthread.m4: New file.
84583         * modules/nproc: New file.
84584         * modules/pthread: New file.
84586 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84588         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84589         New variable.
84591 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84593         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84594         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84595         * tests/test-filevercmp.c: Add tests for backup suffixes.
84597 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84599         * modules/stdlib (Depends-on): Add stdint, needed when defining
84600         struct random_data on, for example, HP-UX 10.20.  Reported by
84601         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84603 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84605         * lib/readline.c (readline): Call fflush on stdout after printing
84606         prompt.
84608 2009-03-20  Bruno Haible  <bruno@clisp.org>
84610         Remove dependency from 'close' module to -lws2_32 on native Windows.
84611         * lib/close-hook.h: New file.
84612         * lib/close-hook.c: New file.
84613         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84614         w32sock.h.
84615         (_gl_close_fd_maybe_socket): Remove function.
84616         (rpl_close): Invoke execute_all_close_hooks instead of
84617         _gl_close_fd_maybe_socket.
84618         * lib/sockets.c: Include close-hook.h, w32sock.h.
84619         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84620         (close_sockets_hook): New variable.
84621         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84622         (gl_sockets_cleanup): Unregister it.
84623         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84624         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84625         * modules/close-hook: New file.
84626         * modules/close (Files): Remove lib/w32sock.h.
84627         (Depends-on): Add close-hook.
84628         (Link): Remove section.
84629         * modules/sockets (Files): Add lib/w32sock.h.
84630         (Depends-on): Add close-hook.
84631         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84632         invocation.
84633         * NEWS: Mention that LIB_CLOSE is gone.
84635 2009-03-23  Eric Blake  <ebb9@byu.net>
84637         signal-tests: test previous patch
84638         * tests/test-signal.c: New file.
84639         * modules/signal-tests: Likewise.
84641         signal.h: always support 'volatile sig_atomic_t'
84642         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84643         (gl_SIGNAL_H_DEFAULTS): Add a default.
84644         * modules/signal (Makefile.am): Substitute if needed.
84645         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84646         users can blindly add volatile.
84647         * doc/posix-headers/signal.texi (signal.h): Document it.
84648         Reported by Matthew Woehlke.
84650 2009-03-23  Jim Meyering  <meyering@redhat.com>
84652         pathmax: PATH_MAX: use pathconf only when available
84653         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84654         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84655         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84656         This avoids a link failure in a PSP cross-compilation environment
84657         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84659         * lib/vasnprintf.c (divide): Fix typo in comment.
84661 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84663         * gnulib-tool (func_filter_filelist): Fix comment.
84665 2009-03-20  Bruno Haible  <bruno@clisp.org>
84667         Make sockets.h self-contained.
84668         * lib/sockets.c: Include sockets.h first.
84669         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84671 2009-03-19  Eric Blake  <ebb9@byu.net>
84673         doc: mention more functions added in cygwin 1.7.0
84674         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84675         addition.
84676         * doc/posix-functions/log2f.texi: Likewise.
84678 2009-03-19  Jim Meyering  <meyering@redhat.com>
84680         fsusage: avoid syntax error due to statement-before-declaration
84681         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84682         after all declarations.  Reported by Matthew Woehlke in
84683         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84685 2009-03-18  Eric Blake  <ebb9@byu.net>
84687         build-aux/compile: sync from automake
84688         * build-aux/compile: New file, from automake.
84689         * config/srclist.txt: Mention build-aux/compile.
84691 2009-03-17  Bruno Haible  <bruno@clisp.org>
84693         * lib/git-merge-changelog.c: Fix typo in comment.
84694         Reported by Reuben Thomas <rrt@sc3d.org>.
84696 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84698         * m4/regex.m4: update and improve help for
84699         --without-included-regex.
84701 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84703         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84704         failure on missing include files.
84706 2009-03-17  Eric Blake  <ebb9@byu.net>
84708         doc: mention more functions added in cygwin 1.7.0
84709         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84710         addition.
84711         * doc/posix-functions/fwscanf.texi: Likewise.
84712         * doc/posix-functions/swprintf.texi: Likewise.
84713         * doc/posix-functions/swscanf.texi: Likewise.
84714         * doc/posix-functions/vfwprintf.texi: Likewise.
84715         * doc/posix-functions/vfwscanf.texi: Likewise.
84716         * doc/posix-functions/vswprintf.texi: Likewise.
84717         * doc/posix-functions/vswscanf.texi: Likewise.
84718         * doc/posix-functions/vwprintf.texi: Likewise.
84719         * doc/posix-functions/vwscanf.texi: Likewise.
84720         * doc/posix-functions/wcscasecmp.texi: Likewise.
84721         * doc/posix-functions/wcsdup.texi: Likewise.
84722         * doc/posix-functions/wcsftime.texi: Likewise.
84723         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84724         * doc/posix-functions/wprintf.texi: Likewise.
84725         * doc/posix-functions/wscanf.texi: Likewise.
84726         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84728 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84730         maint.mk: really add $(AM_MAKEFLAGS)
84731         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84732         was inadvertently omitted in the last commit.
84733         Spotted by Bruno Haible.
84735         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84736         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84737         $(AM_MAKEFLAGS)' rather than plain `make'.
84739         gnulib-tool: execute $MAKE not make
84740         * gnulib-tool: Default $MAKE to 'make'.
84741         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84742         than make.  Initialize $MAKE in the do-autobuild script.
84744         gnulib-tool: use $MAKE not make in generated files
84745         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84746         make, in generated files.  Initialize $MAKE in the do-autobuild
84747         script.
84749         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84751         GNUmakefile: disable parallelism only for multiple, recursive targets
84752         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84753         additions in the Makefile.
84754         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84755         by Automake.
84756         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84757         are listed on the command line and at least one of them is
84758         listed in $(ALL_RECURSIVE_TARGETS).
84760 2009-03-14  Bruno Haible  <bruno@clisp.org>
84762         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84763         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84764         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84765         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84766         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84767         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84768         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84769         unistr/u8-uctomb.
84770         * modules/unistr/u8-strchr (Depends-on): Likewise.
84771         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84772         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84773         unistr/u16-uctomb.
84774         * modules/unistr/u16-strchr (Depends-on): Likewise.
84775         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84777 2009-03-12  Bruno Haible  <bruno@clisp.org>
84779         Work around select() bug on Interix 3.5.
84780         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84781         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84782         * m4/select.m4: New file.
84783         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84784         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84785         * modules/select (Files): Add m4/select.m4.
84786         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84787         * modules/nanosleep (Depends-on): Add select.
84788         * modules/poll (Depends-on): Likewise.
84789         * doc/posix-functions/select.texi: Mention the Interix bug.
84790         Reported by Markus Duft <mduft@gentoo.org>.
84792         * lib/select.c: Renamed from lib/winsock-select.c.
84793         * modules/select (Files): Add lib/select.c, remove
84794         lib/winsock-select.c.
84795         (configure.ac): Update.
84797 2009-03-12  Jim Meyering  <meyering@redhat.com>
84799         avoid gcc warnings about unused macro definitions
84800         * lib/readtokens.c (STREQ): Remove unused definition.
84801         * lib/xmalloc.c (SIZE_MAX): Likewise.
84802         * lib/openat-die.c (N_): Likewise.
84803         * lib/mountlist.c (SIZE_MAX): Remove definition.
84804         Instead, include <stdint.h>.
84805         * lib/readutmp.c: Likewise.
84806         * modules/readutmp (Depends-on): Add stdint.
84807         * modules/mountlist (Depends-on): Add stdint.
84808         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84810 2009-03-10  Bruno Haible  <bruno@clisp.org>
84812         Tests for module 'mbmemcasecoll'.
84813         * modules/mbmemcasecoll-tests: New file.
84814         * tests/test-mbmemcasecoll1.sh: New file.
84815         * tests/test-mbmemcasecoll2.sh: New file.
84816         * tests/test-mbmemcasecoll3.sh: New file.
84817         * tests/test-mbmemcasecoll.c: New file.
84819         New module 'mbmemcasecoll'.
84820         * lib/mbmemcasecoll.h: New file.
84821         * lib/mbmemcasecoll.c: New file.
84822         * modules/mbmemcasecoll: New file.
84824         * tests/test-mbmemcasecmp.h: New file, extracted from
84825         tests/test-mbmemcasecmp.c.
84826         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84827         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84828         (main): Update.
84829         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84831 2009-03-09  Bruno Haible  <bruno@clisp.org>
84833         Tests for module 'mbmemcasecmp'.
84834         * modules/mbmemcasecmp-tests: New file.
84835         * tests/test-mbmemcasecmp1.sh: New file.
84836         * tests/test-mbmemcasecmp2.sh: New file.
84837         * tests/test-mbmemcasecmp3.sh: New file.
84838         * tests/test-mbmemcasecmp.c: New file.
84840         New module 'mbmemcasecmp'.
84841         * lib/mbmemcasecmp.h: New file.
84842         * lib/mbmemcasecmp.c: New file.
84843         * modules/mbmemcasecmp: New file.
84845 2009-03-09  Bruno Haible  <bruno@clisp.org>
84847         Tests for module 'unicase/ulc-casecoll'.
84848         * modules/unicase/ulc-casecoll-tests: New file.
84849         * tests/unicase/test-ulc-casecoll1.sh: New file.
84850         * tests/unicase/test-ulc-casecoll2.sh: New file.
84851         * tests/unicase/test-ulc-casecoll.c: New file.
84853         New module 'unicase/ulc-casecoll'.
84854         * lib/unicase.h (ulc_casecoll): New declaration.
84855         * lib/unicase/ulc-casecoll.c: New file.
84856         * modules/unicase/ulc-casecoll: New file.
84858         New module 'unicase/ulc-casexfrm'.
84859         * lib/unicase.h (ulc_casexfrm): New declaration.
84860         * lib/unicase/ulc-casexfrm.c: New file.
84861         * modules/unicase/ulc-casexfrm: New file.
84863 2009-03-09  Bruno Haible  <bruno@clisp.org>
84865         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84866         invocations.
84868         * m4/mbscasecmp.m4: Remove file.
84869         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84870         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84872         * m4/mbscasestr.m4: Remove file.
84873         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84874         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84876         * m4/mbschr.m4: Remove file.
84877         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84878         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84880         * m4/mbscspn.m4: Remove file.
84881         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84882         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84884         * m4/mbslen.m4: Remove file.
84885         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84886         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84888         * m4/mbsncasecmp.m4: Remove file.
84889         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84890         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84892         * m4/mbsnlen.m4: Remove file.
84893         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84894         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84896         * m4/mbspbrk.m4: Remove file.
84897         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84898         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84900         * m4/mbspcasecmp.m4: Remove file.
84901         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84902         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84904         * m4/mbsrchr.m4: Remove file.
84905         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84906         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84908         * m4/mbssep.m4: Remove file.
84909         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84910         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84912         * m4/mbsspn.m4: Remove file.
84913         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84914         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84916         * m4/mbsstr.m4: Remove file.
84917         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84918         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84920         * m4/mbstok_r.m4: Remove file.
84921         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84922         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84924         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84926         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84927         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84929         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84931 2009-03-08  Bruno Haible  <bruno@clisp.org>
84933         Tests for module 'unicase/ulc-casecmp'.
84934         * modules/unicase/ulc-casecmp-tests: New file.
84935         * tests/unicase/test-ulc-casecmp1.sh: New file.
84936         * tests/unicase/test-ulc-casecmp2.sh: New file.
84937         * tests/unicase/test-ulc-casecmp.c: New file.
84939         New module 'unicase/ulc-casecmp'.
84940         * lib/unicase.h (ulc_casecmp): New declaration.
84941         * lib/unicase/ulc-casecmp.c: New file.
84942         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84943         'const SRC_UNIT *'.
84944         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84945         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84946         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84947         * modules/unicase/ulc-casecmp: New file.
84949         Tests for module 'unicase/u32-is-cased'.
84950         * modules/unicase/u32-is-cased-tests: New file.
84951         * tests/unicase/test-u32-is-cased.c: New file.
84953         Tests for module 'unicase/u16-is-cased'.
84954         * modules/unicase/u16-is-cased-tests: New file.
84955         * tests/unicase/test-u16-is-cased.c: New file.
84957         Tests for module 'unicase/u8-is-cased'.
84958         * modules/unicase/u8-is-cased-tests: New file.
84959         * tests/unicase/test-u8-is-cased.c: New file.
84960         * tests/unicase/test-is-cased.h: New file.
84962         New module 'unicase/u32-is-cased'.
84963         * lib/unicase/u32-is-cased.c: New file.
84964         * modules/unicase/u32-is-cased: New file.
84966         New module 'unicase/u16-is-cased'.
84967         * lib/unicase/u16-is-cased.c: New file.
84968         * modules/unicase/u16-is-cased: New file.
84970         New module 'unicase/u8-is-cased'.
84971         * lib/unicase/u8-is-cased.c: New file.
84972         * lib/unicase/u-is-cased.h: New file.
84973         * modules/unicase/u8-is-cased: New file.
84975         Tests for module 'unicase/u32-is-casefolded'.
84976         * modules/unicase/u32-is-casefolded-tests: New file.
84977         * tests/unicase/test-u32-is-casefolded.c: New file.
84979         Tests for module 'unicase/u16-is-casefolded'.
84980         * modules/unicase/u16-is-casefolded-tests: New file.
84981         * tests/unicase/test-u16-is-casefolded.c: New file.
84983         Tests for module 'unicase/u8-is-casefolded'.
84984         * modules/unicase/u8-is-casefolded-tests: New file.
84985         * tests/unicase/test-u8-is-casefolded.c: New file.
84986         * tests/unicase/test-is-casefolded.h: New file.
84988         New module 'unicase/u32-is-casefolded'.
84989         * lib/unicase/u32-is-casefolded.c: New file.
84990         * modules/unicase/u32-is-casefolded: New file.
84992         New module 'unicase/u16-is-casefolded'.
84993         * lib/unicase/u16-is-casefolded.c: New file.
84994         * modules/unicase/u16-is-casefolded: New file.
84996         New module 'unicase/u8-is-casefolded'.
84997         * lib/unicase/u8-is-casefolded.c: New file.
84998         * modules/unicase/u8-is-casefolded: New file.
85000         Tests for module 'unicase/u32-is-titlecase'.
85001         * modules/unicase/u32-is-titlecase-tests: New file.
85002         * tests/unicase/test-u32-is-titlecase.c: New file.
85004         Tests for module 'unicase/u16-is-titlecase'.
85005         * modules/unicase/u16-is-titlecase-tests: New file.
85006         * tests/unicase/test-u16-is-titlecase.c: New file.
85008         Tests for module 'unicase/u8-is-titlecase'.
85009         * modules/unicase/u8-is-titlecase-tests: New file.
85010         * tests/unicase/test-u8-is-titlecase.c: New file.
85011         * tests/unicase/test-is-titlecase.h: New file.
85013         New module 'unicase/u32-is-titlecase'.
85014         * lib/unicase/u32-is-titlecase.c: New file.
85015         * modules/unicase/u32-is-titlecase: New file.
85017         New module 'unicase/u16-is-titlecase'.
85018         * lib/unicase/u16-is-titlecase.c: New file.
85019         * modules/unicase/u16-is-titlecase: New file.
85021         New module 'unicase/u8-is-titlecase'.
85022         * lib/unicase/u8-is-titlecase.c: New file.
85023         * modules/unicase/u8-is-titlecase: New file.
85025         Tests for module 'unicase/u32-is-lowercase'.
85026         * modules/unicase/u32-is-lowercase-tests: New file.
85027         * tests/unicase/test-u32-is-lowercase.c: New file.
85029         Tests for module 'unicase/u16-is-lowercase'.
85030         * modules/unicase/u16-is-lowercase-tests: New file.
85031         * tests/unicase/test-u16-is-lowercase.c: New file.
85033         Tests for module 'unicase/u8-is-lowercase'.
85034         * modules/unicase/u8-is-lowercase-tests: New file.
85035         * tests/unicase/test-u8-is-lowercase.c: New file.
85036         * tests/unicase/test-is-lowercase.h: New file.
85038         New module 'unicase/u32-is-lowercase'.
85039         * lib/unicase/u32-is-lowercase.c: New file.
85040         * modules/unicase/u32-is-lowercase: New file.
85042         New module 'unicase/u16-is-lowercase'.
85043         * lib/unicase/u16-is-lowercase.c: New file.
85044         * modules/unicase/u16-is-lowercase: New file.
85046         New module 'unicase/u8-is-lowercase'.
85047         * lib/unicase/u8-is-lowercase.c: New file.
85048         * modules/unicase/u8-is-lowercase: New file.
85050         Tests for module 'unicase/u32-is-uppercase'.
85051         * modules/unicase/u32-is-uppercase-tests: New file.
85052         * tests/unicase/test-u32-is-uppercase.c: New file.
85054         Tests for module 'unicase/u16-is-uppercase'.
85055         * modules/unicase/u16-is-uppercase-tests: New file.
85056         * tests/unicase/test-u16-is-uppercase.c: New file.
85058         Tests for module 'unicase/u8-is-uppercase'.
85059         * modules/unicase/u8-is-uppercase-tests: New file.
85060         * tests/unicase/test-u8-is-uppercase.c: New file.
85061         * tests/unicase/test-is-uppercase.h: New file.
85063         New module 'unicase/u32-is-uppercase'.
85064         * lib/unicase/u32-is-uppercase.c: New file.
85065         * modules/unicase/u32-is-uppercase: New file.
85067         New module 'unicase/u16-is-uppercase'.
85068         * lib/unicase/u16-is-uppercase.c: New file.
85069         * modules/unicase/u16-is-uppercase: New file.
85071         New module 'unicase/u8-is-uppercase'.
85072         * lib/unicase/u8-is-uppercase.c: New file.
85073         * modules/unicase/u8-is-uppercase: New file.
85075         New module 'unicase/u32-is-invariant'.
85076         * lib/unicase/u32-is-invariant.c: New file.
85077         * modules/unicase/u32-is-invariant: New file.
85079         New module 'unicase/u16-is-invariant'.
85080         * lib/unicase/u16-is-invariant.c: New file.
85081         * modules/unicase/u16-is-invariant: New file.
85083         New module 'unicase/u8-is-invariant'.
85084         * lib/unicase/u8-is-invariant.c: New file.
85085         * lib/unicase/invariant.h: New file.
85086         * lib/unicase/u-is-invariant.h: New file.
85087         * modules/unicase/u8-is-invariant: New file.
85089         Tests for module 'unicase/u32-casecoll'.
85090         * modules/unicase/u32-casecoll-tests: New file.
85091         * tests/unicase/test-u32-casecoll.c: New file.
85093         Tests for module 'unicase/u16-casecoll'.
85094         * modules/unicase/u16-casecoll-tests: New file.
85095         * tests/unicase/test-u16-casecoll.c: New file.
85097         Tests for module 'unicase/u8-casecoll'.
85098         * modules/unicase/u8-casecoll-tests: New file.
85099         * tests/unicase/test-u8-casecoll.c: New file.
85101         New module 'unicase/u32-casecoll'.
85102         * lib/unicase/u32-casecoll.c: New file.
85103         * modules/unicase/u32-casecoll: New file.
85105         New module 'unicase/u16-casecoll'.
85106         * lib/unicase/u16-casecoll.c: New file.
85107         * modules/unicase/u16-casecoll: New file.
85109         New module 'unicase/u8-casecoll'.
85110         * lib/unicase/u8-casecoll.c: New file.
85111         * lib/unicase/u-casecoll.h: New file.
85112         * modules/unicase/u8-casecoll: New file.
85114         New module 'unicase/u32-casexfrm'.
85115         * lib/unicase/u32-casexfrm.c: New file.
85116         * modules/unicase/u32-casexfrm: New file.
85118         New module 'unicase/u16-casexfrm'.
85119         * lib/unicase/u16-casexfrm.c: New file.
85120         * modules/unicase/u16-casexfrm: New file.
85122         New module 'unicase/u8-casexfrm'.
85123         * lib/unicase/u8-casexfrm.c: New file.
85124         * lib/unicase/u-casexfrm.h: New file.
85125         * modules/unicase/u8-casexfrm: New file.
85127         Tests for module 'unicase/u32-casecmp'.
85128         * modules/unicase/u32-casecmp-tests: New file.
85129         * tests/unicase/test-u32-casecmp.c: New file.
85131         Tests for module 'unicase/u16-casecmp'.
85132         * modules/unicase/u16-casecmp-tests: New file.
85133         * tests/unicase/test-u16-casecmp.c: New file.
85135         Tests for module 'unicase/u8-casecmp'.
85136         * modules/unicase/u8-casecmp-tests: New file.
85137         * tests/unicase/test-u8-casecmp.c: New file.
85138         * tests/unicase/test-casecmp.h: New file.
85140         New module 'unicase/u32-casecmp'.
85141         * lib/unicase/u32-casecmp.c: New file.
85142         * modules/unicase/u32-casecmp: New file.
85144         New module 'unicase/u16-casecmp'.
85145         * lib/unicase/u16-casecmp.c: New file.
85146         * modules/unicase/u16-casecmp: New file.
85148         New module 'unicase/u8-casecmp'.
85149         * lib/unicase/u8-casecmp.c: New file.
85150         * lib/unicase/u-casecmp.h: New file.
85151         * modules/unicase/u8-casecmp: New file.
85153         Tests for module 'unicase/u32-casefold'.
85154         * modules/unicase/u32-casefold-tests: New file.
85155         * tests/unicase/test-u32-casefold.c: New file.
85157         Tests for module 'unicase/u16-casefold'.
85158         * modules/unicase/u16-casefold-tests: New file.
85159         * tests/unicase/test-u16-casefold.c: New file.
85161         Tests for module 'unicase/u8-casefold'.
85162         * modules/unicase/u8-casefold-tests: New file.
85163         * tests/unicase/test-u8-casefold.c: New file.
85165         New module 'unicase/u32-casefold'.
85166         * lib/unicase/u32-casefold.c: New file.
85167         * modules/unicase/u32-casefold: New file.
85169         New module 'unicase/u16-casefold'.
85170         * lib/unicase/u16-casefold.c: New file.
85171         * modules/unicase/u16-casefold: New file.
85173         New module 'unicase/u8-casefold'.
85174         * lib/unicase/u8-casefold.c: New file.
85175         * lib/unicase/u-casefold.h: New file.
85176         * modules/unicase/u8-casefold: New file.
85178         New module 'unicase/tocasefold'.
85179         * lib/unicase/casefold.h: New file.
85180         * lib/unicase/tocasefold.c: New file.
85181         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85182         * modules/unicase/tocasefold: New file.
85184         Tests for module 'unicase/u32-totitle'.
85185         * modules/unicase/u32-totitle-tests: New file.
85186         * tests/unicase/test-u32-totitle.c: New file.
85188         Tests for module 'unicase/u16-totitle'.
85189         * modules/unicase/u16-totitle-tests: New file.
85190         * tests/unicase/test-u16-totitle.c: New file.
85192         Tests for module 'unicase/u8-totitle'.
85193         * modules/unicase/u8-totitle-tests: New file.
85194         * tests/unicase/test-u8-totitle.c: New file.
85196         New module 'unicase/u32-totitle'.
85197         * lib/unicase/u32-totitle.c: New file.
85198         * modules/unicase/u32-totitle: New file.
85200         New module 'unicase/u16-totitle'.
85201         * lib/unicase/u16-totitle.c: New file.
85202         * modules/unicase/u16-totitle: New file.
85204         New module 'unicase/u8-totitle'.
85205         * lib/unicase/u8-totitle.c: New file.
85206         * lib/unicase/u-totitle.h: New file.
85207         * modules/unicase/u8-totitle: New file.
85209         Tests for module 'unicase/u32-tolower'.
85210         * modules/unicase/u32-tolower-tests: New file.
85211         * tests/unicase/test-u32-tolower.c: New file.
85213         Tests for module 'unicase/u16-tolower'.
85214         * modules/unicase/u16-tolower-tests: New file.
85215         * tests/unicase/test-u16-tolower.c: New file.
85217         Tests for module 'unicase/u8-tolower'.
85218         * modules/unicase/u8-tolower-tests: New file.
85219         * tests/unicase/test-u8-tolower.c: New file.
85221         New module 'unicase/u32-tolower'.
85222         * lib/unicase/u32-tolower.c: New file.
85223         * modules/unicase/u32-tolower: New file.
85225         New module 'unicase/u16-tolower'.
85226         * lib/unicase/u16-tolower.c: New file.
85227         * modules/unicase/u16-tolower: New file.
85229         New module 'unicase/u8-tolower'.
85230         * lib/unicase/u8-tolower.c: New file.
85231         * modules/unicase/u8-tolower: New file.
85233         Tests for module 'unicase/u32-toupper'.
85234         * modules/unicase/u32-toupper-tests: New file.
85235         * tests/unicase/test-u32-toupper.c: New file.
85237         Tests for module 'unicase/u16-toupper'.
85238         * modules/unicase/u16-toupper-tests: New file.
85239         * tests/unicase/test-u16-toupper.c: New file.
85241         Tests for module 'unicase/u8-toupper'.
85242         * modules/unicase/u8-toupper-tests: New file.
85243         * tests/unicase/test-u8-toupper.c: New file.
85245         New module 'unicase/u32-toupper'.
85246         * lib/unicase/u32-toupper.c: New file.
85247         * modules/unicase/u32-toupper: New file.
85249         New module 'unicase/u16-toupper'.
85250         * lib/unicase/u16-toupper.c: New file.
85251         * modules/unicase/u16-toupper: New file.
85253         New module 'unicase/u8-toupper'.
85254         * lib/unicase/u8-toupper.c: New file.
85255         * modules/unicase/u8-toupper: New file.
85257         New module 'unicase/u32-casemap'.
85258         * lib/unicase/u32-casemap.c: New file.
85259         * modules/unicase/u32-casemap: New file.
85261         New module 'unicase/u16-casemap'.
85262         * lib/unicase/u16-casemap.c: New file.
85263         * modules/unicase/u16-casemap: New file.
85265         New module 'unicase/u8-casemap'.
85266         * lib/unicase/unicasemap.h: New file.
85267         * lib/unicase/u8-casemap.c: New file.
85268         * lib/unicase/u-casemap.h: New file.
85269         * modules/unicase/u8-casemap: New file.
85271         New module 'unicase/special-casing'.
85272         * lib/unicase/special-casing.h: New file.
85273         * lib/unicase/special-casing.c: New file.
85274         * lib/unicase/special-casing-table.gperf: New file, generated by
85275         gen-uni-tables.c.
85276         * modules/unicase/special-casing: New file.
85278         Tests for module 'unicase/locale-language'.
85279         * modules/unicase/locale-language-tests: New file.
85280         * tests/unicase/test-locale-language.sh: New file.
85281         * tests/unicase/test-locale-language.c: New file.
85283         New module 'unicase/locale-language'.
85284         * lib/unicase/locale-language.c: New file.
85285         * lib/unicase/locale-languages.gperf: New file.
85286         * modules/unicase/locale-language: New file.
85288         Generate more tables for case conversion and case folding.
85289         * lib/gen-uni-tables.c (SCC_*): New enum items.
85290         (struct special_casing_rule): New type.
85291         (casing_rules, num_casing_rules, allocated_casing_rules): New
85292         variables.
85293         (add_casing_rule, fill_casing_rules): New functions.
85294         (struct casefold_rule): New type.
85295         (casefolding_rules, num_casefolding_rules,
85296         allocated_casefolding_rules): New variables.
85297         (fill_casefolding_rules): New function.
85298         (unicode_casefold): New variable.
85299         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85300         sort_casing_rules, output_casing_rules): New functions.
85301         (main): Accept to more arguments: SpecialCasing.txt and
85302         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85303         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85304         Output mapping for casefolding.
85306         * lib/unicase.h: Include stdbool.h, uninorm.h.
85307         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85308         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85309         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85310         arguments.
85311         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85312         resultp arguments.
85313         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85314         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85315         resultp arguments.
85316         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85317         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85318         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85319         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85320         declarations.
85321         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85323 2009-03-08  Bruno Haible  <bruno@clisp.org>
85325         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85326         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85327         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85328         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85330 2009-03-07  Bruno Haible  <bruno@clisp.org>
85332         Adjust u*_normcmp, u*_normcoll API.
85333         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85334         u16_normcoll, u32_normcoll): Change failure conventions.
85335         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85336         errno and return -1.
85337         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85339 2009-03-07  Bruno Haible  <bruno@clisp.org>
85341         Tests for module 'uninorm/u32-normcoll'.
85342         * modules/uninorm/u32-normcoll-tests: New file.
85343         * tests/uninorm/test-u32-normcoll.c: New file.
85345         Tests for module 'uninorm/u16-normcoll'.
85346         * modules/uninorm/u16-normcoll-tests: New file.
85347         * tests/uninorm/test-u16-normcoll.c: New file.
85349         Tests for module 'uninorm/u8-normcoll'.
85350         * modules/uninorm/u8-normcoll-tests: New file.
85351         * tests/uninorm/test-u8-normcoll.c: New file.
85353 2009-03-07  Bruno Haible  <bruno@clisp.org>
85355         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85356         tests/uninorm/test-u32-normcmp.c.
85357         * tests/uninorm/test-u32-normcmp.c: Include it.
85358         (test_nonascii): New function, extracted from main. Add some more
85359         tests.
85360         (main): Invoke test_ascii and test_nonascii.
85361         * modules/uninorm/u32-normcmp-tests (Files): Add
85362         tests/uninorm/test-u32-normcmp.h.
85363         (Depends-on): Remove uninorm/u32-normcmp.
85365         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85366         tests/uninorm/test-u16-normcmp.c.
85367         * tests/uninorm/test-u16-normcmp.c: Include it.
85368         (test_nonascii): New function, extracted from main. Add some more
85369         tests.
85370         (main): Invoke test_ascii and test_nonascii.
85371         * modules/uninorm/u16-normcmp-tests (Files): Add
85372         tests/uninorm/test-u16-normcmp.h.
85373         (Depends-on): Remove uninorm/u16-normcmp.
85375         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85376         tests/uninorm/test-u8-normcmp.c.
85377         * tests/uninorm/test-u8-normcmp.c: Include it.
85378         (test_nonascii): New function, extracted from main. Add some more
85379         tests.
85380         (main): Invoke test_ascii and test_nonascii.
85381         * modules/uninorm/u8-normcmp-tests (Files): Add
85382         tests/uninorm/test-u8-normcmp.h.
85383         (Depends-on): Remove uninorm/u8-normcmp.
85385 2009-03-07  Bruno Haible  <bruno@clisp.org>
85387         New module 'uninorm/u32-normcoll'.
85388         * lib/uninorm/u32-normcoll.c: New file.
85389         * modules/uninorm/u32-normcoll: New file.
85391         New module 'uninorm/u16-normcoll'.
85392         * lib/uninorm/u16-normcoll.c: New file.
85393         * modules/uninorm/u16-normcoll: New file.
85395         New module 'uninorm/u8-normcoll'.
85396         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85397         declarations.
85398         * lib/uninorm/u8-normcoll.c: New file.
85399         * lib/uninorm/u-normcoll.h: New file.
85400         * modules/uninorm/u8-normcoll: New file.
85402         New module 'uninorm/u32-normxfrm'.
85403         * lib/uninorm/u32-normxfrm.c: New file.
85404         * modules/uninorm/u32-normxfrm: New file.
85406         New module 'uninorm/u16-normxfrm'.
85407         * lib/uninorm/u16-normxfrm.c: New file.
85408         * modules/uninorm/u16-normxfrm: New file.
85410         New module 'uninorm/u8-normxfrm'.
85411         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85412         declarations.
85413         * lib/uninorm/u8-normxfrm.c: New file.
85414         * lib/uninorm/u-normxfrm.h: New file.
85415         * modules/uninorm/u8-normxfrm: New file.
85417 2009-03-07  Bruno Haible  <bruno@clisp.org>
85419         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85420         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85421         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85423 2009-03-07  Bruno Haible  <bruno@clisp.org>
85425         New module 'memxfrm'.
85426         * lib/memxfrm.h: New file.
85427         * lib/memxfrm.c: New file.
85428         * modules/memxfrm: New file.
85430 2009-03-07  Bruno Haible  <bruno@clisp.org>
85432         New module 'memcmp2'.
85433         * lib/memcmp2.h: New file.
85434         * lib/memcmp2.c: New file.
85435         * modules/memcmp2: New file.
85437 2009-03-07  Bruno Haible  <bruno@clisp.org>
85439         Tests for module 'uninorm/decomposing-form'.
85440         * modules/uninorm/decomposing-form-tests: New file.
85441         * tests/uninorm/test-decomposing-form.c: New file.
85443         New module 'uninorm/decomposing-form'.
85444         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85445         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85446         Add 'decomposing_variant' field.
85447         * lib/uninorm/decomposing-form.c: New file.
85448         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85449         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85450         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85451         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85452         * modules/uninorm/decomposing-form: New file.
85453         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85454         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85456 2009-03-07  Bruno Haible  <bruno@clisp.org>
85458         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85459         strings.
85461 2009-03-06  Bruno Haible  <bruno@clisp.org>
85463         Tests for module 'uninorm/u32-normcmp'.
85464         * tests/uninorm/test-u32-normcmp.c: New file.
85465         * modules/uninorm/u32-normcmp-tests: New file.
85467         Tests for module 'uninorm/u16-normcmp'.
85468         * tests/uninorm/test-u16-normcmp.c: New file.
85469         * modules/uninorm/u16-normcmp-tests: New file.
85471         Tests for module 'uninorm/u8-normcmp'.
85472         * tests/uninorm/test-u8-normcmp.c: New file.
85473         * modules/uninorm/u8-normcmp-tests: New file.
85475         New module 'uninorm/u32-normcmp'.
85476         * lib/uninorm/u32-normcmp.c: New file.
85477         * modules/uninorm/u32-normcmp: New file.
85479         New module 'uninorm/u16-normcmp'.
85480         * lib/uninorm/u16-normcmp.c: New file.
85481         * modules/uninorm/u16-normcmp: New file.
85483         New module 'uninorm/u8-normcmp'.
85484         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85485         declarations.
85486         * lib/uninorm/u8-normcmp.c: New file.
85487         * lib/uninorm/u-normcmp.h: New file.
85488         * modules/uninorm/u8-normcmp: New file.
85490 2009-03-06  Bruno Haible  <bruno@clisp.org>
85492         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85493         Reported by Eric Blake.
85495 2009-03-06  Eric Blake  <ebb9@byu.net>
85496             Bruno Haible  <bruno@clisp.org>
85498         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85499         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85500         condition.
85501         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85502         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85503         condition.
85504         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85506 2009-03-06  Eric Blake  <ebb9@byu.net>
85508         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85509         to avoid compiler warnings.
85510         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85512 2009-03-05  Bruno Haible  <bruno@clisp.org>
85514         * tests/test-ftell.c (main): Disable test beyond end of file on
85515         FreeMiNT.
85516         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85518 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85520         * lib/filevercmp.c: Move hidden files up in ordering.
85521         * tests/test-filevercmp.c: Add tests for hidden files.
85523 2009-03-04  Bruno Haible  <bruno@clisp.org>
85525         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85526         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85527         AM_CFLAGS.
85528         Reported by Simon Josefsson.
85530 2009-03-03  Bruno Haible  <bruno@clisp.org>
85532         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85533         Reported by Simon Josefsson.
85535         * doc/ld-version-script.texi: Update node reference.
85537 2009-03-03  Bruno Haible  <bruno@clisp.org>
85539         * modules/visibility (License): Change to 'unlimited'.
85540         Suggested by Simon Josefsson.
85542 2009-03-03  Jim Meyering  <meyering@redhat.com>
85544         unlinkdir: cannot_unlink_dir may modify process state
85545         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85546         it's neither thread-safe nor appropriate for use in a library.
85548 2009-03-03  Eric Blake  <ebb9@byu.net>
85550         test-closein: silence test under Darwin
85551         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85552         care if it dies from EPIPE or EBADF.
85554 2009-03-03  Bruno Haible  <bruno@clisp.org>
85556         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85557         earlier.
85558         * doc/visibility.texi: Fix @node and @section.
85560 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85562         * doc/gnulib.texi: Link to sections for ld version script and
85563         visibility.
85564         * doc/visibility.texi: Add @node and @section.
85565         * modules/ld-version-script: New module.
85566         * m4/ld-version-script.m4: New file.
85567         * doc/ld-version-script.texi: New file.
85569 2009-03-02  David Lutterkort  <lutter@redhat.com>
85571         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85574 2009-03-02  Bruno Haible  <bruno@clisp.org>
85576         * doc/visibility.texi: Mention libtool's -export-symbols option.
85578 2009-03-02  Jim Meyering  <meyering@redhat.com>
85580         announce-gen: new option: --no-print-checksums
85581         * build-aux/announce-gen (usage): Describe it.
85582         (print_checksums): Print a newline here, not in the [*] footnote.
85583         (main): Honor it.
85585 2009-03-01  Bruno Haible  <bruno@clisp.org>
85587         Use socklen_t in the native Windows replacements prototypes.
85588         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85589         instead of 'int'.
85590         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85591         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85592         * modules/getsockopt (Depends-on): Add socklen.
85593         * modules/setsockopt (Depends-on): Add socklen.
85595 2009-03-01  Bruno Haible  <bruno@clisp.org>
85597         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85598         least 4.2.
85600 2009-03-01  Eric Blake  <ebb9@byu.net>
85601             Bruno Haible  <bruno@clisp.org>
85603         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85604         error messages.
85605         * lib/wait-process.c (wait_subprocess): Omit error message about
85606         deadly signal sent to the child of termsigp != NULL.
85608 2009-03-01  Eric Blake  <ebb9@byu.net>
85610         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85612 2009-03-01  Bruno Haible  <bruno@clisp.org>
85614         Avoid a gcc warning.
85615         * tests/test-sched.c (b): Make global.
85616         Reported by Eric Blake.
85618 2009-01-19  Martin Lambers  <marlam@marlam.de>
85620         Provide POSIX semantics for socket timeout options on W32.
85621         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85622         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85623         * modules/setsockopt: Depend on sys_time module for struct timeval.
85624         * modules/getsockopt: Depend on sys_time module for struct timeval.
85626 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85628         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85629         __USE_GNU, for consistency with netdb.in.h.
85630         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85632 2009-03-01  Bruno Haible  <bruno@clisp.org>
85634         More support for FreeMiNT.
85635         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85636         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85638 2009-03-01  Bruno Haible  <bruno@clisp.org>
85640         More support for FreeMiNT.
85641         * lib/fpurge.c (fpurge): Correct last commit.
85642         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85644 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85646         Fix unportable awk script in vc-list-files.
85647         * build-aux/vc-list-files: In the replacement awk script, use
85648         substr with a second argument of 1, not zero.
85649         Report by Simon Josefsson.
85651 2009-02-28  Bruno Haible  <bruno@clisp.org>
85653         More support for FreeMiNT.
85654         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85655         to FreeMiNT today.
85656         * lib/fwriting.c (fwriting): Likewise.
85657         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85659 2009-02-28  Bruno Haible  <bruno@clisp.org>
85661         * tests/test-freadseek.c (main): Disable test beyond end of file on
85662         FreeMiNT.
85663         * tests/test-ftello.c (main): Likewise.
85664         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85666 2009-02-28  Bruno Haible  <bruno@clisp.org>
85668         Add tentative support for FreeMiNT.
85669         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85670         * lib/fpurge.c (fpurge): Likewise.
85671         * lib/freadable.c (freadable): Likewise.
85672         * lib/freading.c (freading): Likewise.
85673         * lib/freadptr.c (freadptr): Likewise.
85674         * lib/freadseek.c (freadptrinc): Likewise.
85675         * lib/fseeko.c (rpl_fseeko): Likewise.
85676         * lib/fseterr.c (fseterr): Likewise.
85677         * lib/fwritable.c (fwritable): Likewise.
85678         * lib/fwriting.c (fwriting): Likewise.
85679         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85680         Hourihane.
85681         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85683 2009-02-28  Bruno Haible  <bruno@clisp.org>
85685         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85686         SIGCHLD.
85687         Reported by Jim Meyering.
85689 2009-02-28  Bruno Haible  <bruno@clisp.org>
85691         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85692         Mention the results of these tests on various platforms.
85693         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85694         order.
85695         * doc/posix-functions/printf.texi: Likewise.
85696         * doc/posix-functions/snprintf.texi: Likewise.
85697         * doc/posix-functions/sprintf.texi: Likewise.
85698         * doc/posix-functions/vfprintf.texi: Likewise.
85699         * doc/posix-functions/vprintf.texi: Likewise.
85700         * doc/posix-functions/vsnprintf.texi: Likewise.
85701         * doc/posix-functions/vsprintf.texi: Likewise.
85702         * doc/glibc-functions/obstack_printf.texi: Likewise.
85703         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85705 2009-02-28  Bruno Haible  <bruno@clisp.org>
85707         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85708         Reported by Loïc Minier <lool@dooz.org>.
85710 2009-02-27  Bruno Haible  <bruno@clisp.org>
85712         * gnulib-tool (func_import): Make the sed expression used to create the
85713         sed script for updating the .gitignore file POSIX compliant.
85714         Reported by Eric Blake.
85716 2009-02-27  Bruno Haible  <bruno@clisp.org>
85718         * gnulib-tool (sed): Don't alias as "sed --posix".
85719         Reported by Eric Blake.
85721 2009-02-27  Bruno Haible  <bruno@clisp.org>
85723         Avoid test link errors.
85724         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85725         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85726         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85727         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85730 2009-02-27  Bruno Haible  <bruno@clisp.org>
85732         Avoid spurious "(cached)" in configure output.
85733         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85734         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85735         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85736         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85737         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85738         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85739         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85740         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85741         Reported by Eric Blake.
85743 2009-02-27  Eric Blake  <ebb9@byu.net>
85745         printf: fix regression in previous patch
85746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85748 2009-02-27  Bruno Haible  <bruno@clisp.org>
85750         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85751         value.
85752         * lib/stdint.in.h: Likewise.
85753         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85755 2009-02-27  Eric Blake  <ebb9@byu.net>
85757         doc: mention more functions added in cygwin 1.7.0
85758         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85759         addition.
85760         * doc/posix-functions/open_wmemstream.texi: Likewise.
85761         * doc/posix-functions/wcsnlen.texi: Likewise.
85762         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85763         * doc/posix-functions/wcstod.texi: Likewise.
85764         * doc/posix-functions/wcstof.texi: Likewise.
85765         * doc/posix-functions/wcstoimax.texi: Likewise.
85766         * doc/posix-functions/wcstok.texi: Likewise.
85767         * doc/posix-functions/wcstoumax.texi: Likewise.
85769         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85771         * doc/posix-functions/fprintf.texi: Update.
85772         * doc/posix-functions/printf.texi: Update.
85773         * doc/posix-functions/snprintf.texi: Update.
85774         * doc/posix-functions/sprintf.texi: Update.
85775         * doc/posix-functions/vfprintf.texi: Update.
85776         * doc/posix-functions/vprintf.texi: Update.
85777         * doc/posix-functions/vsnprintf.texi: Update.
85778         * doc/posix-functions/vsprintf.texi: Update.
85779         * doc/glibc-functions/obstack_printf.texi: Update.
85780         * doc/glibc-functions/obstack_vprintf.texi: Update.
85782 2009-02-26  Eric Blake  <ebb9@byu.net>
85784         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85785         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85786         compilation bug by using runtime conversion.
85787         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85788         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85789         * modules/ceill-tests (Files): Use nan.h.
85790         * modules/floorl-tests (Files): Likewise.
85791         * modules/frexpl-tests (Files): Likewise.
85792         * modules/isnanl-tests (Files): Likewise.
85793         * modules/ldexpl-tests (Files): Likewise.
85794         * modules/roundl-tests (Files): Likewise.
85795         * modules/truncl-tests (Files): Likewise.
85796         * tests/test-ceill.c (main): Use a working NaN.
85797         * tests/test-floorl.c (main): Likewise.
85798         * tests/test-frexpl.c (main): Likewise.
85799         * tests/test-isnan.c (test_long_double): Likewise.
85800         * tests/test-isnanl.h (main): Likewise.
85801         * tests/test-ldexpl.h (main): Likewise.
85802         * tests/test-roundl.h (main): Likewise.
85803         * tests/test-truncl.h (main): Likewise.
85804         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85806 2009-02-26  Eric Blake  <ebb9@byu.net>
85807             Bruno Haible  <bruno@clisp.org>
85809         Work around a *printf bug with %ls on Solaris.
85810         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85811         precision is specified, sprintf stops converting the wide string
85812         argument when the number of bytes that have been produced by this
85813         conversion equals or exceeds the precision.
85814         * doc/posix-functions/fprintf.texi: Update.
85815         * doc/posix-functions/printf.texi: Update.
85816         * doc/posix-functions/snprintf.texi: Update.
85817         * doc/posix-functions/sprintf.texi: Update.
85818         * doc/posix-functions/vfprintf.texi: Update.
85819         * doc/posix-functions/vprintf.texi: Update.
85820         * doc/posix-functions/vsnprintf.texi: Update.
85821         * doc/posix-functions/vsprintf.texi: Update.
85822         * doc/glibc-functions/obstack_printf.texi: Update.
85823         * doc/glibc-functions/obstack_vprintf.texi: Update.
85825 2009-02-26  Eric Blake  <ebb9@byu.net>
85827         stdlib: favor compiler check of random.h
85828         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85829         to avoid an ObjC random.h installed by Swarm.
85831 2009-02-26  Bruno Haible  <bruno@clisp.org>
85833         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85834         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85835         Reported by Gary V. Vaughan <gary@gnu.org>.
85837 2009-02-26  Bruno Haible  <bruno@clisp.org>
85839         Fix *printf behaviour regarding the %ls directive.
85840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85841         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85842         NEED_PRINTF_DIRECTIVE_LS.
85843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85844         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85846         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85847         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85848         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85849         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85851         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85852         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85853         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85854         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85858         * doc/posix-functions/fprintf.texi: Update.
85859         * doc/posix-functions/printf.texi: Update.
85860         * doc/posix-functions/snprintf.texi: Update.
85861         * doc/posix-functions/sprintf.texi: Update.
85862         * doc/posix-functions/vfprintf.texi: Update.
85863         * doc/posix-functions/vprintf.texi: Update.
85864         * doc/posix-functions/vsnprintf.texi: Update.
85865         * doc/posix-functions/vsprintf.texi: Update.
85866         * doc/glibc-functions/obstack_printf.texi: Update.
85867         * doc/glibc-functions/obstack_vprintf.texi: Update.
85868         Reported by Eric Blake.
85870 2009-02-25  Bruno Haible  <bruno@clisp.org>
85872         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85873         with known value.
85874         Reported by Gary V. Vaughan <gary@gnu.org>.
85876 2009-02-25  Bruno Haible  <bruno@clisp.org>
85878         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85879         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85880         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85881         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85882         Reported by Gary V. Vaughan <gary@gnu.org>.
85884 2009-02-25  Bruno Haible  <bruno@clisp.org>
85886         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85887         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85888         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85889         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85890         Reported by Gary V. Vaughan <gary@gnu.org>.
85892 2009-02-25  Eric Blake  <ebb9@byu.net>
85894         tests: skip fseek/ftell tests if ungetc is broken
85895         * m4/ungetc.m4: New file.
85896         * modules/fseek-tests: Split test, so ungetc dependency is
85897         separate from rest of test.
85898         * modules/fseeko-tests: Likewise.
85899         * modules/ftell-tests: Likewise.
85900         * modules/ftello-tests: Likewise.
85901         * tests/test-fseek.c (main): Isolate ungetc dependency.
85902         * tests/test-fseeko.c (main): Likewise.
85903         * tests/test-ftell.c (main): Likewise.
85904         * tests/test-ftello.c (main): Likewise.
85905         * tests/test-fseek2.sh: New file.
85906         * tests/test-fseeko2.sh: Likewise.
85907         * tests/test-ftell2.sh: Likewise.
85908         * tests/test-ftello2.sh: Likewise.
85910 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85912         test-getaddrinfo: fix usage of skip return code 77
85913         * tests/test-gettaddrinfo.c: Return skip code 77 only
85914         for first occurrence of skip (4x77 is not 77)
85916 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85918         strtod: avoid C99 decl-after-statement
85919         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85921 2009-02-24  Eric Blake  <ebb9@byu.net>
85923         strtod: detect HP-UX 11.31 bug
85924         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85925         Reported by Gary V. Vaughan.
85927 2009-02-23  Bruno Haible  <bruno@clisp.org>
85929         Fix invalid read past end of memory block.
85930         * lib/vasnprintf.c (DCHAR_SET): Define.
85931         (local_wcslen): Define only when needed.
85932         (local_strnlen, local_wcsnlen): New functions.
85933         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85934         directives that involve a conversion ourselves.
85935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85936         wcsnlen, mbrtowc, wcrtomb.
85937         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85938         * tests/test-vasprintf-posix.c (test_function): Likewise.
85939         * tests/test-snprintf-posix.h (test_function): Likewise.
85940         * tests/test-sprintf-posix.h (test_function): Likewise.
85941         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85943 2009-02-22  Bruno Haible  <bruno@clisp.org>
85945         Implement new clarified decomposition of Hangul syllables.
85946         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85947         of type LTV, return only a pairwise decomposition.
85948         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85949         Likewise.
85950         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85951         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85952         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85954 2009-02-22  Bruno Haible  <bruno@clisp.org>
85956         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85957         zero-length results and shrink excess allocated memory.
85958         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85959         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85960         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85961         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85962         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85963         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85964         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85965         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85966         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85967         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85968         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85969         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85971 2009-02-21  Bruno Haible  <bruno@clisp.org>
85973         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85974         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85975         spaces after a period. Put a space between a macro name and its
85976         argument list. Trivial rewordings.
85977         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85978         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85979         (main): Return 0 explicitly.
85981 2009-02-21  Bruno Haible  <bruno@clisp.org>
85983         Tests for module 'uninorm/filter'.
85984         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85985         * modules/uninorm/filter-tests: New file.
85987         New module 'uninorm/filter'.
85988         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85989         uninorm_filter_flush, uninorm_filter_free): New declarations.
85990         * lib/uninorm/uninorm-filter.c: New file.
85991         * modules/uninorm/filter: New file.
85993 2009-02-21  Bruno Haible  <bruno@clisp.org>
85995         Tests for module 'uninorm/nfkc'.
85996         * tests/uninorm/test-nfkc.c: New file.
85997         * tests/uninorm/test-u8-nfkc.c: New file.
85998         * tests/uninorm/test-u16-nfkc.c: New file.
85999         * tests/uninorm/test-u32-nfkc.c: New file.
86000         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86001         * tests/uninorm/test-u32-nfkc-big.c: New file.
86002         * modules/uninorm/nfkc-tests: New file.
86004         New module 'uninorm/nfkc'.
86005         * lib/uninorm/nfkc.c: New file.
86006         * modules/uninorm/nfkc: New file.
86008         Tests for module 'uninorm/nfkd'.
86009         * tests/uninorm/test-nfkd.c: New file.
86010         * tests/uninorm/test-u8-nfkd.c: New file.
86011         * tests/uninorm/test-u16-nfkd.c: New file.
86012         * tests/uninorm/test-u32-nfkd.c: New file.
86013         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86014         * tests/uninorm/test-u32-nfkd-big.c: New file.
86015         * modules/uninorm/nfkd-tests: New file.
86017         New module 'uninorm/nfkd'.
86018         * lib/uninorm/nfkd.c: New file.
86019         * modules/uninorm/nfkd: New file.
86021         Tests for module 'uninorm/nfc'.
86022         * tests/uninorm/test-nfc.c: New file.
86023         * tests/uninorm/test-u8-nfc.c: New file.
86024         * tests/uninorm/test-u16-nfc.c: New file.
86025         * tests/uninorm/test-u32-nfc.c: New file.
86026         * tests/uninorm/test-u32-nfc-big.sh: New file.
86027         * tests/uninorm/test-u32-nfc-big.c: New file.
86028         * modules/uninorm/nfc-tests: New file.
86030         New module 'uninorm/nfc'.
86031         * lib/uninorm/nfc.c: New file.
86032         * modules/uninorm/nfc: New file.
86034         Tests for module 'uninorm/nfd'.
86035         * tests/uninorm/test-nfd.c: New file.
86036         * tests/uninorm/test-u8-nfd.c: New file.
86037         * tests/uninorm/test-u16-nfd.c: New file.
86038         * tests/uninorm/test-u32-nfd.c: New file.
86039         * tests/uninorm/test-u32-nfd-big.sh: New file.
86040         * tests/uninorm/test-u32-nfd-big.c: New file.
86041         * tests/uninorm/test-u32-normalize-big.h: New file.
86042         * tests/uninorm/test-u32-normalize-big.c: New file.
86043         * tests/uninorm/NormalizationTest.txt: New file, created from
86044         Unicode 5.1.0 NormalizationTest.txt.
86045         * modules/uninorm/nfd-tests: New file.
86047         New module 'uninorm/nfd'.
86048         * lib/uninorm/nfd.c: New file.
86049         * modules/uninorm/nfd: New file.
86051         New module 'uninorm/u32-normalize'.
86052         * lib/uninorm/u32-normalize.c: New file.
86053         * modules/uninorm/u32-normalize: New file.
86055         New module 'uninorm/u16-normalize'.
86056         * lib/uninorm/u16-normalize.c: New file.
86057         * modules/uninorm/u16-normalize: New file.
86059         New module 'uninorm/u8-normalize'.
86060         * lib/uninorm/u8-normalize.c: New file.
86061         * lib/uninorm/normalize-internal.h: New file.
86062         * lib/uninorm/u-normalize-internal.h: New file.
86063         * modules/uninorm/u8-normalize: New file.
86065         New module 'uninorm/decompose-internal'.
86066         * lib/uninorm/decompose-internal.c: New file.
86067         * modules/uninorm/decompose-internal: New file.
86069         Tests for module 'uninorm/composition'.
86070         * tests/uninorm/test-composition.c: New file.
86071         * modules/uninorm/composition-tests: New file.
86073         New module 'uninorm/composition'.
86074         * lib/uninorm/composition.c: New file.
86075         * lib/uninorm/composition-table.gperf: New file, generated by
86076         gen-uni-tables.
86077         * modules/uninorm/composition: New file.
86079         Tests for module 'uninorm/compat-decomposition'.
86080         * tests/uninorm/test-compat-decomposition.c: New file.
86081         * modules/uninorm/compat-decomposition-tests: New file.
86083         New module 'uninorm/compat-decomposition'.
86084         * lib/uninorm/decompose-internal.h: New file.
86085         * lib/uninorm/compat-decomposition.c: New file.
86086         * modules/uninorm/compat-decomposition: New file.
86088         Tests for module 'uninorm/canonical-decomposition'.
86089         * tests/uninorm/test-canonical-decomposition.c: New file.
86090         * modules/uninorm/canonical-decomposition-tests: New file.
86092         New module 'uninorm/canonical-decomposition'.
86093         * lib/uninorm/canonical-decomposition.c: New file.
86094         * modules/uninorm/canonical-decomposition: New file.
86096         Tests for module 'uninorm/decomposition'.
86097         * tests/uninorm/test-decomposition.c: New file.
86098         * modules/uninorm/decomposition-tests: New file.
86100         New module 'uninorm/decomposition'.
86101         * lib/uninorm/decomposition.c: New file.
86102         * modules/uninorm/decomposition: New file.
86104         New module 'uninorm/decomposition-table'.
86105         * lib/uninorm/decomposition-table.h: New file.
86106         * lib/uninorm/decomposition-table.c: New file.
86107         * lib/uninorm/decomposition-table1.h: New file, generated by
86108         gen-uni-tables.
86109         * lib/uninorm/decomposition-table2.h: New file, generated by
86110         gen-uni-tables.
86111         * modules/uninorm/decomposition-table: New file.
86113         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86114         (UC_DECOMP_*): New enumeration items.
86115         (get_decomposition): New function.
86116         (struct decomp_table): New type.
86117         (output_decomposition, output_decomposition_tables): New functions.
86118         (unicode_composition_exclusions): New variable.
86119         (fill_composition_exclusions, debug_output_composition_tables): New
86120         functions.
86121         (main): Accept one more argument. Invoke fill_composition_exclusions.
86122         Output decomposition and composition tables.
86124         New module 'uninorm/base'.
86125         * lib/uninorm.h: New file.
86126         * lib/unictype.h: Update comment.
86127         * modules/uninorm/base: New file.
86129 2009-02-21  David Lutterkort  <lutter@redhat.com>
86131         Tests for module 'safe-alloc'.
86132         * tests/test-safe-alloc.c: New file.
86133         * modules/safe-alloc-tests: New file.
86135         New module 'safe-alloc'.
86136         * lib/safe-alloc.h: New file.
86137         * lib/safe-alloc.c: New file.
86138         * m4/safe-alloc.m4: New file.
86139         * modules/safe-alloc: New file.
86140         * doc/safe-alloc.texi: New file.
86141         * doc/gnulib.texi: Include it.
86142         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86143         safe-alloc.
86145 2009-02-18  Bruno Haible  <bruno@clisp.org>
86147         Fix link error on non-glibc systems.
86148         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86149         variable.
86150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86152 2009-02-18  Jim Meyering  <meyering@redhat.com>
86154         fts: avoid used-uninitialized error due to recent change
86155         * lib/fts.c (fts_read): Guard uses of the new member,
86156         parent->fts_n_dirs_remaining, since it's not relevant for
86157         the parent of a directory specified on the command-line.
86159 2009-02-17  James Youngman  <jay@gnu.org>
86160             Bruno Haible  <bruno@clisp.org>
86162         * m4/include_next.m4: Reformulate comment.
86164 2009-02-16  Jim Meyering  <meyering@redhat.com>
86166         fts: add #if guards so that the fts_lgpl module still builds
86167         * lib/fts.c: Guard just-added hash-table-using parts with
86168         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86169         Reported by Simon Josefsson.
86171 2009-02-15  Bruno Haible  <bruno@clisp.org>
86173         * modules/array-mergesort-tests: New file.
86174         * tests/test-array-mergesort.c: New file.
86176         New module 'array-mergesort'.
86177         * modules/array-mergesort: New file.
86178         * lib/array-mergesort.h: New file.
86180 2009-02-15  Bruno Haible  <bruno@clisp.org>
86182         Fix 2009-02-07 commit.
86183         * lib/gen-uni-tables.c (output_predicate, output_category,
86184         output_combclass, output_bidi_category, output_decimal_digit,
86185         output_digit, output_numeric, output_mirror, output_scripts,
86186         output_ident_category, output_simple_mapping): Fix format directives.
86187         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86189 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86191         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86192         fixes are available from IBM.
86194 2009-02-13  Jim Meyering  <meyering@redhat.com>
86196         fts: arrange not to stat non-directories in more cases
86197         This makes GNU find (when it doesn't need to stat each file)
86198         *much* more efficient at traversing reiserfs file systems.
86199         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86200         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86201         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86202         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86203         (leaf_optimization_applies): New function.
86204         (LCO_hash, LCO_compare): New helper functions.
86205         (link_count_optimize_ok): New function.
86206         (fts_stat): Initialize new member (if dir).
86207         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86208         we've just stat'ed a directory.  Skip the stat call when possible.
86209         ---
86210         Note this AFS-related exchange:
86211         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86212         and note find's pioctl call in find/fstype.c.
86213         But that is necessary only if you want to enable the
86214         optimization for AFS, and for now, I don't.
86216         fts: move a function definition "up" (no semantic change)
86217         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86218         "up" to precede upcoming use of a related function.
86220 2009-02-11  Jim Meyering  <meyering@redhat.com>
86222         fts: correct internal computation of nlinks (optimization-related)
86223         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86224         whether the current entry is a directory, so don't test it.
86226 2009-02-10  Bruno Haible  <bruno@clisp.org>
86228         Tests for module 'uniwbrk/ulc-wordbreaks'.
86229         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86230         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86231         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86233         Tests for module 'uniwbrk/u32-wordbreaks'.
86234         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86235         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86237         Tests for module 'uniwbrk/u16-wordbreaks'.
86238         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86239         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86241         Tests for module 'uniwbrk/u8-wordbreaks'.
86242         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86243         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86245 2009-02-10  Bruno Haible  <bruno@clisp.org>
86247         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86248         property.
86249         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86250         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86251         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86253 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86255         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86256         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86258 2009-02-10  Bruno Haible  <bruno@clisp.org>
86260         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86261         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86262         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86263         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86264         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86265         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86267 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86269         * lib/sockets.h (gl_fd_to_handle): New function.
86271         * tests/test-sockets.c: Call gl_fd_to_handle.
86273 2009-02-09  Bruno Haible  <bruno@clisp.org>
86275         * doc/havelib.texi: Document the conventions on bi-arch systems.
86277 2009-02-08  Bruno Haible  <bruno@clisp.org>
86279         Document the AC_LIB_LINKFLAGS macro.
86280         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86281         * doc/gnulib.texi: Include it.
86283 2009-02-08  Bruno Haible  <bruno@clisp.org>
86285         Fix wrong order of sections, compared to TOC.
86286         * doc/gnulib.texi: Include relocatable-maint.texi after the
86287         "Regular expressions" node, not before.
86289 2009-02-08  Bruno Haible  <bruno@clisp.org>
86291         Tests for module 'unicase/totitle'.
86292         * modules/unicase/totitle-tests: New file.
86294         Tests for module 'unicase/tolower'.
86295         * modules/unicase/tolower-tests: New file.
86297         Tests for module 'unicase/toupper'.
86298         * modules/unicase/toupper-tests: New file.
86299         * tests/unicase/test-mapping-part1.h: New file.
86300         * tests/unicase/test-mapping-part2.h: New file.
86302         New module 'unicase/totitle'.
86303         * modules/unicase/totitle: New file.
86304         * lib/unicase/totitle.c: New file.
86306         New module 'unicase/tolower'.
86307         * modules/unicase/tolower: New file.
86308         * lib/unicase/tolower.c: New file.
86310         New module 'unicase/toupper'.
86311         * modules/unicase/toupper: New file.
86312         * lib/unicase/toupper.c: New file.
86313         * lib/unicase/simple-mapping.h: New file.
86315         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86316         (mapping_table): New structure.
86317         (output_simple_mapping): New function.
86318         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86319         * modules/gen-uni-tables (Description): Update.
86320         * lib/unicase/toupper.h: New file, automatically generated by
86321         gen-uni-tables.
86322         * lib/unicase/tolower.h: New file, automatically generated by
86323         gen-uni-tables.
86324         * lib/unicase/totitle.h: New file, automatically generated by
86325         gen-uni-tables.
86326         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86327         gen-uni-tables.
86328         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86329         gen-uni-tables.
86330         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86331         gen-uni-tables.
86333         New module 'unicase/base'.
86334         * modules/unicase/base: New file.
86335         * lib/unicase.h: New file.
86337 2009-02-08  Bruno Haible  <bruno@clisp.org>
86339         New module 'uniwbrk/ulc-wordbreaks'.
86340         * modules/uniwbrk/ulc-wordbreaks: New file.
86341         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86343         New module 'uniwbrk/u32-wordbreaks'.
86344         * modules/uniwbrk/u32-wordbreaks: New file.
86345         * lib/uniwbrk/u32-wordbreaks.c: New file.
86347         New module 'uniwbrk/u16-wordbreaks'.
86348         * modules/uniwbrk/u16-wordbreaks: New file.
86349         * lib/uniwbrk/u16-wordbreaks.c: New file.
86351         New module 'uniwbrk/u8-wordbreaks'.
86352         * modules/uniwbrk/u8-wordbreaks: New file.
86353         * lib/uniwbrk/u8-wordbreaks.c: New file.
86354         * lib/uniwbrk/u-wordbreaks.h: New file.
86356         New module 'uniwbrk/table'.
86357         * modules/uniwbrk/table: New file.
86358         * lib/uniwbrk/wbrktable.h: New file.
86359         * lib/uniwbrk/wbrktable.c: New file.
86361         New module 'uniwbrk/wordbreak-property'.
86362         * modules/uniwbrk/wordbreak-property: New file.
86363         * lib/uniwbrk/wordbreak-property.c: New file.
86365         * lib/gen-uni-tables.c (WBP_*): New enum items.
86366         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86367         (unicode_org_wbp): New variable.
86368         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86369         New functions.
86370         (wbp_table): New structure.
86371         (output_wbp, output_wbrk_tables): New functions.
86372         (main): Accept additional argument. Invoke fill_org_wbp,
86373         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86374         output_wbrk_tables.
86375         * modules/gen-uni-tables (Description): Update.
86376         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86377         gen-uni-tables.
86379         New module 'uniwbrk/base'.
86380         * modules/uniwbrk/base: New file.
86381         * lib/uniwbrk.h: New file.
86383 2009-02-08  Bruno Haible  <bruno@clisp.org>
86385         Update to Unicode 5.1.0.
86386         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86387         U+2185..U+2188.
86388         (is_property_default_ignorable_code_point): Don't include characters
86389         of category Cc or Cs and not-a-characters.
86390         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86391         U+0D79, U+109E, U+109F, U+A60C.
86392         * lib/unictype/bidi_of.h: Regenerated.
86393         * lib/unictype/blocks.h: Regenerated.
86394         * lib/unictype/categ_C.h: Regenerated.
86395         * lib/unictype/categ_Cf.h: Regenerated.
86396         * lib/unictype/categ_Cn.h: Regenerated.
86397         * lib/unictype/categ_L.h: Regenerated.
86398         * lib/unictype/categ_Ll.h: Regenerated.
86399         * lib/unictype/categ_Lm.h: Regenerated.
86400         * lib/unictype/categ_Lo.h: Regenerated.
86401         * lib/unictype/categ_Lu.h: Regenerated.
86402         * lib/unictype/categ_M.h: Regenerated.
86403         * lib/unictype/categ_Mc.h: Regenerated.
86404         * lib/unictype/categ_Me.h: Regenerated.
86405         * lib/unictype/categ_Mn.h: Regenerated.
86406         * lib/unictype/categ_N.h: Regenerated.
86407         * lib/unictype/categ_Nd.h: Regenerated.
86408         * lib/unictype/categ_Nl.h: Regenerated.
86409         * lib/unictype/categ_No.h: Regenerated.
86410         * lib/unictype/categ_P.h: Regenerated.
86411         * lib/unictype/categ_Pd.h: Regenerated.
86412         * lib/unictype/categ_Pe.h: Regenerated.
86413         * lib/unictype/categ_Pf.h: Regenerated.
86414         * lib/unictype/categ_Pi.h: Regenerated.
86415         * lib/unictype/categ_Po.h: Regenerated.
86416         * lib/unictype/categ_Ps.h: Regenerated.
86417         * lib/unictype/categ_S.h: Regenerated.
86418         * lib/unictype/categ_Sk.h: Regenerated.
86419         * lib/unictype/categ_Sm.h: Regenerated.
86420         * lib/unictype/categ_So.h: Regenerated.
86421         * lib/unictype/categ_of.h: Regenerated.
86422         * lib/unictype/combining.h: Regenerated.
86423         * lib/unictype/ctype_alnum.h: Regenerated.
86424         * lib/unictype/ctype_alpha.h: Regenerated.
86425         * lib/unictype/ctype_graph.h: Regenerated.
86426         * lib/unictype/ctype_lower.h: Regenerated.
86427         * lib/unictype/ctype_print.h: Regenerated.
86428         * lib/unictype/ctype_punct.h: Regenerated.
86429         * lib/unictype/ctype_upper.h: Regenerated.
86430         * lib/unictype/decdigit.h: Regenerated.
86431         * lib/unictype/digit.h: Regenerated.
86432         * lib/unictype/mirror.h: Regenerated.
86433         * lib/unictype/numeric.h: Regenerated.
86434         * lib/unictype/pr_alphabetic.h: Regenerated.
86435         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86436         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86437         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86438         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86439         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86440         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86441         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86442         * lib/unictype/pr_combining.h: Regenerated.
86443         * lib/unictype/pr_dash.h: Regenerated.
86444         * lib/unictype/pr_decimal_digit.h: Regenerated.
86445         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86446         * lib/unictype/pr_deprecated.h: Regenerated.
86447         * lib/unictype/pr_diacritic.h: Regenerated.
86448         * lib/unictype/pr_extender.h: Regenerated.
86449         * lib/unictype/pr_format_control.h: Regenerated.
86450         * lib/unictype/pr_grapheme_base.h: Regenerated.
86451         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86452         * lib/unictype/pr_grapheme_link.h: Regenerated.
86453         * lib/unictype/pr_id_continue.h: Regenerated.
86454         * lib/unictype/pr_id_start.h: Regenerated.
86455         * lib/unictype/pr_ideographic.h: Regenerated.
86456         * lib/unictype/pr_ignorable_control.h: Regenerated.
86457         * lib/unictype/pr_lowercase.h: Regenerated.
86458         * lib/unictype/pr_math.h: Regenerated.
86459         * lib/unictype/pr_numeric.h: Regenerated.
86460         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86461         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86462         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86463         * lib/unictype/pr_other_id_continue.h: Regenerated.
86464         * lib/unictype/pr_other_lowercase.h: Regenerated.
86465         * lib/unictype/pr_other_math.h: Regenerated.
86466         * lib/unictype/pr_punctuation.h: Regenerated.
86467         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86468         * lib/unictype/pr_soft_dotted.h: Regenerated.
86469         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86470         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86471         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86472         * lib/unictype/pr_uppercase.h: Regenerated.
86473         * lib/unictype/pr_xid_continue.h: Regenerated.
86474         * lib/unictype/pr_xid_start.h: Regenerated.
86475         * lib/unictype/pr_zero_width.h: Regenerated.
86476         * lib/unictype/scripts.h: Regenerated.
86477         * lib/unictype/scripts_byname.gperf: Regenerated.
86478         * lib/unictype/sy_java_ident.h: Regenerated.
86479         * lib/unilbrk/lbrkprop1.h: Regenerated.
86480         * lib/unilbrk/lbrkprop2.h: Regenerated.
86481         * tests/unictype/test-categ_C.c: Regenerated.
86482         * tests/unictype/test-categ_Cf.c: Regenerated.
86483         * tests/unictype/test-categ_Cn.c: Regenerated.
86484         * tests/unictype/test-categ_L.c: Regenerated.
86485         * tests/unictype/test-categ_Ll.c: Regenerated.
86486         * tests/unictype/test-categ_Lm.c: Regenerated.
86487         * tests/unictype/test-categ_Lo.c: Regenerated.
86488         * tests/unictype/test-categ_Lu.c: Regenerated.
86489         * tests/unictype/test-categ_M.c: Regenerated.
86490         * tests/unictype/test-categ_Mc.c: Regenerated.
86491         * tests/unictype/test-categ_Me.c: Regenerated.
86492         * tests/unictype/test-categ_Mn.c: Regenerated.
86493         * tests/unictype/test-categ_N.c: Regenerated.
86494         * tests/unictype/test-categ_Nd.c: Regenerated.
86495         * tests/unictype/test-categ_Nl.c: Regenerated.
86496         * tests/unictype/test-categ_No.c: Regenerated.
86497         * tests/unictype/test-categ_P.c: Regenerated.
86498         * tests/unictype/test-categ_Pd.c: Regenerated.
86499         * tests/unictype/test-categ_Pe.c: Regenerated.
86500         * tests/unictype/test-categ_Pf.c: Regenerated.
86501         * tests/unictype/test-categ_Pi.c: Regenerated.
86502         * tests/unictype/test-categ_Po.c: Regenerated.
86503         * tests/unictype/test-categ_Ps.c: Regenerated.
86504         * tests/unictype/test-categ_S.c: Regenerated.
86505         * tests/unictype/test-categ_Sk.c: Regenerated.
86506         * tests/unictype/test-categ_Sm.c: Regenerated.
86507         * tests/unictype/test-categ_So.c: Regenerated.
86508         * tests/unictype/test-ctype_alnum.c: Regenerated.
86509         * tests/unictype/test-ctype_alpha.c: Regenerated.
86510         * tests/unictype/test-ctype_graph.c: Regenerated.
86511         * tests/unictype/test-ctype_lower.c: Regenerated.
86512         * tests/unictype/test-ctype_print.c: Regenerated.
86513         * tests/unictype/test-ctype_punct.c: Regenerated.
86514         * tests/unictype/test-ctype_upper.c: Regenerated.
86515         * tests/unictype/test-decdigit.h: Regenerated.
86516         * tests/unictype/test-digit.h: Regenerated.
86517         * tests/unictype/test-numeric.h: Regenerated.
86518         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86519         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86520         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86521         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86522         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86523         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86524         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86525         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86526         * tests/unictype/test-pr_combining.c: Regenerated.
86527         * tests/unictype/test-pr_dash.c: Regenerated.
86528         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86529         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86530         * tests/unictype/test-pr_deprecated.c: Regenerated.
86531         * tests/unictype/test-pr_diacritic.c: Regenerated.
86532         * tests/unictype/test-pr_extender.c: Regenerated.
86533         * tests/unictype/test-pr_format_control.c: Regenerated.
86534         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86535         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86536         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86537         * tests/unictype/test-pr_id_continue.c: Regenerated.
86538         * tests/unictype/test-pr_id_start.c: Regenerated.
86539         * tests/unictype/test-pr_ideographic.c: Regenerated.
86540         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86541         * tests/unictype/test-pr_lowercase.c: Regenerated.
86542         * tests/unictype/test-pr_math.c: Regenerated.
86543         * tests/unictype/test-pr_numeric.c: Regenerated.
86544         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86545         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86546         Regenerated.
86547         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86548         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86549         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86550         * tests/unictype/test-pr_other_math.c: Regenerated.
86551         * tests/unictype/test-pr_punctuation.c: Regenerated.
86552         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86553         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86554         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86555         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86556         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86557         * tests/unictype/test-pr_uppercase.c: Regenerated.
86558         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86559         * tests/unictype/test-pr_xid_start.c: Regenerated.
86560         * tests/unictype/test-pr_zero_width.c: Regenerated.
86562         Update to Unicode 5.1.0.
86563         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86564         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86565         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86566         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86567         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86568         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86569         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86570         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86571         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86572         (nonspacing_table_ind): Update.
86573         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86575         Update to Unicode 5.1.0.
86576         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86577         code transform.
86578         * lib/uniname/uniname.c (unicode_character_name,
86579         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86580         * lib/uniname/uninames.h: Regenerated.
86581         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86583 2009-02-07  Bruno Haible  <bruno@clisp.org>
86585         Merge gen-ctype and gen-lbrk into a single program.
86586         * lib/gen-uni-tables.c: New file, incorporating
86587         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86588         Add directory prefixes to the names of the generated files.
86589         * lib/unictype/gen-ctype.c: Remove file.
86590         * lib/unilbrk/gen-lbrk.c: Remove file.
86591         * modules/gen-uni-tables: New file.
86592         * modules/unictype/gen-ctype: Remove file.
86593         * modules/unilbrk/gen-lbrk: Remove file.
86595 2009-02-07  Bruno Haible  <bruno@clisp.org>
86597         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86599         New module 'unistr/u32-strcoll'.
86600         * modules/unistr/u32-strcoll: New file.
86601         * lib/unistr/u32-strcoll.c: New file.
86603         New module 'unistr/u16-strcoll'.
86604         * modules/unistr/u16-strcoll: New file.
86605         * lib/unistr/u16-strcoll.c: New file.
86607         New module 'unistr/u8-strcoll'.
86608         * modules/unistr/u8-strcoll: New file.
86609         * lib/unistr/u8-strcoll.c: New file.
86610         * lib/unistr/u-strcoll.h: New file.
86612 2009-02-07  Bruno Haible  <bruno@clisp.org>
86614         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86615         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86616         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86617         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86618         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86619         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86621 2009-02-07  Bruno Haible  <bruno@clisp.org>
86623         Make 64-bit clean.
86624         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86625         output_combclass, output_bidi_category, output_decimal_digit,
86626         output_digit, output_numeric, output_mirror, output_scripts,
86627         output_ident_category): Use proper width specifier in format strings.
86629 2009-02-07  Bruno Haible  <bruno@clisp.org>
86631         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86632         failure behaviour.
86634 2009-02-07  Jim Meyering  <meyering@redhat.com>
86636         regex: avoid compilation failure with upcoming gcc-4.4
86637         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86638         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86639         "... error: integer overflow in preprocessor expression".
86641 2009-02-05  Ben Pfaff  <blp@gnu.org>
86643         Fix link errors on Windows when close module is used.
86644         * modules/close: Add $(LIB_CLOSE) to Link section.
86645         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86646         $(LIB_CLOSE) on Windows.
86648 2009-02-05  Jim Meyering  <meyering@redhat.com>
86650         still avoid unused-parameter warnings, but do it cleanly
86651         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86652         (get_fs_usage): Cast to void instead.
86653         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86654         (dev_from_mount_options, read_file_system_list): Cast to void.
86655         Prompted by Bruno Haible.
86657 2009-02-04  Jim Meyering  <meyering@redhat.com>
86659         fsusage.c: correct copyright year
86660         * lib/fsusage.c: Reflect year in which the change is pushed into
86662         avoid misc. warnings
86663         * lib/fsusage.c (UNUSED_PARAM): Define.
86664         (get_fs_usage): Mark parameter "disk" as unused.
86665         * lib/getugroups.c (getgrent): Use "void" in prototype.
86666         * lib/mountlist.c: Mark unused parameters.
86667         (read_file_system_list): Declare a local with "const".
86668         * lib/nanosleep.c (getnow): Declare static.
86669         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86671         dirfd: set errno upon failure
86672         * lib/dirfd.c: Include <errno.h>.
86673         Set errno to ENOTSUP when returning -1.
86674         * modules/dirfd (Depends-on): Add errno.
86675         Suggested by John Kodis <kodis@comcast.net>.
86677 2009-02-01  Bruno Haible  <bruno@clisp.org>
86679         Don't assume sizeof (long) >= sizeof (void *).
86680         * lib/memcmp.c: Include stdint.h.
86681         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86682         srcp2 to 'const byte *'.
86683         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86684         types to uintptr_t.
86685         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86686         * modules/memcmp (Depends-on): Add stdint.
86687         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86689 2009-01-30  Eric Blake  <ebb9@byu.net>
86691         fix more require-before-expand issues
86692         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86693         expand, AC_PROG_AWK.
86694         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86696 2009-01-28  Eric Blake  <ebb9@byu.net>
86698         version-etc: use consistent URL formatting
86699         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86700         Improve formatting.  Use fputs for string without %.
86702 2009-01-28  Jim Meyering  <meyering@redhat.com>
86704         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86705         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86706         "underquoted definition of NAME" from autoconf-2.59.
86708 2009-01-28  Bruno Haible  <bruno@clisp.org>
86710         * doc/gnulib.texi: Add "Obsolete modules" to index.
86712 2009-01-28  Jim Meyering  <meyering@redhat.com>
86714         useless-if-before-free: recognize more variants
86715         * build-aux/useless-if-before-free: Also recognize e.g.,
86716         if (NULL != p) free (p);
86718 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86720         test-getaddrinfo: skip (don't fail) this test when there's no network
86721         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86722         on the presumption that it means you lack network access.
86724 2009-01-26  Jim Meyering  <meyering@redhat.com>
86726         fflush: avoid warnings on modern systems
86727         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86728         pos and result, into scopes where they're used.
86730 2009-01-26  Eric Blake  <ebb9@byu.net>
86732         Silence warning reintroduced by recent extensions patch.
86733         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86734         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86735         autoconf.
86737         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86738         * m4/00gnulib.m4: New file.
86739         * gnulib-tool (func_get_filelist): Always use it.
86740         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86741         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86743 2009-01-25  Bruno Haible  <bruno@clisp.org>
86745         Make test-quotearg work on MacOS X and AIX.
86746         * tests/test-quotearg.sh: New file.
86747         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86748         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86749         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86750         include <libintl.h>.
86751         (fake_locale): Remove variable.
86752         (gettext, dgettext, dcgettext): Remove functions.
86753         (main): Instead of setting a fake locale, set a real locale. Call
86754         textdomain and bindtextdomain.
86755         * modules/quotearg-tests (Files): Add the new files.
86756         (Depends-on): Add gettext, setenv, unsetenv.
86757         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86758         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86759         Augment TESTS_ENVIRONMENT.
86761 2009-01-25  Bruno Haible  <bruno@clisp.org>
86763         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86764         fr_FR.ISO8859-1 locale on MacOS X.
86765         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86766         ja_JP.eucJP locale on MacOS X.
86767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86768         zh_CN.GB18030 locale on MacOS X.
86770 2009-01-25  Bruno Haible  <bruno@clisp.org>
86772         Avoid link errors on MacOS X 10.3.
86773         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86774         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86776 2009-01-25  Bruno Haible  <bruno@clisp.org>
86778         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86779         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86780         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86781         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86782         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86783         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86784         posix_spawnattr_init, posix_spawnattr_setsigmask,
86785         posix_spawnattr_setflags, posix_spawnattr_destroy.
86787         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86788         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86789         * modules/execute (Files): Remove m4/posix_spawn.m4.
86790         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86791         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86792         posix_spawnattr_init, posix_spawnattr_setsigmask,
86793         posix_spawnattr_setflags, posix_spawnattr_destroy.
86795 2009-01-25  Bruno Haible  <bruno@clisp.org>
86797         * lib/glthread/threadlib.c: Include <stdlib.h>.
86799 2009-01-25  Bruno Haible  <bruno@clisp.org>
86801         * lib/glthread/threadlib.c (dummy): New declaration.
86803 2009-01-25  Bruno Haible  <bruno@clisp.org>
86805         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86806         multibyte characters also for the GB18030 encoding. Don't crash when
86807         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86809 2009-01-25  Bruno Haible  <bruno@clisp.org>
86811         Avoid redefining 'struct random_data' on OSF/1 5.1.
86812         * lib/stdlib.in.h: Include <random.h> if it exists.
86813         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86814         HAVE_RANDOM_H. Include <random.h> when testing whether
86815         'struct random_data' exists.
86816         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86818 2009-01-25  Bruno Haible  <bruno@clisp.org>
86820         Don't install charset.alias on MacOS X >= 10.3.
86821         * lib/localcharset.c (DARWIN7): New macro.
86822         (get_charset_aliases): Hardcode the result for Darwin7.
86823         * modules/localcharset (install-exec-local): Don't install
86824         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86826 2009-01-25  Bruno Haible  <bruno@clisp.org>
86828         Don't install charset.alias on mingw and Cygwin.
86829         * modules/localcharset (install-exec-local): Don't install
86830         charset.alias on mingw and Cygwin, if the file does not yet exist.
86831         The result for these platforms is hardcoded in localcharset.c.
86833 2009-01-25  Bruno Haible  <bruno@clisp.org>
86835         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86837         before requiring AC_USE_SYSTEM_EXTENSIONS.
86839 2009-01-25  Jim Meyering  <meyering@redhat.com>
86841         c-strtod: avoid warnings
86842         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86843         "assignment discards qualifiers from pointer target type" warnings.
86845 2009-01-24  Bruno Haible  <bruno@clisp.org>
86847         Add support for non-UTF-8 locales on MacOS X.
86848         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86849         canonical encodings. For Darwin 7 and newer, don't map traditional
86850         encodings to UTF-8.
86851         Reported by Vincent Lefevre <vincent@vinc17.org>
86852         at <http://savannah.gnu.org/bugs/?25235>.
86854 2009-01-24  Bruno Haible  <bruno@clisp.org>
86856         * doc/gnulib.texi (Obsolete modules): New section.
86857         Reported by Mike Frysinger <vapier@gentoo.org>.
86859 2009-01-24  Bruno Haible  <bruno@clisp.org>
86861         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86862         (%.dvi): New rule.
86864 2009-01-24  Bruno Haible  <bruno@clisp.org>
86866         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86867         Reported by Eric Blake.
86869 2009-01-24  Bruno Haible  <bruno@clisp.org>
86871         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86872         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86873         Reported by Gary V. Vaughan <gary@gnu.org>.
86875 2009-01-24  Bruno Haible  <bruno@clisp.org>
86877         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86879 2009-01-23  Bruno Haible  <bruno@clisp.org>
86881         Make c-strtod, c-strtold usable in libraries.
86882         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86883         (C_STRTOD): Call strdup instead of xstrdup.
86884         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86885         * modules/c-strtold (Depends-on): Likewise.
86886         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86887         * NEWS: Mention the change.
86888         Reported by Michael Gold <mgold@ncf.ca>.
86890 2009-01-23  Jim Meyering  <meyering@redhat.com>
86892         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86893         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86894         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86896 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86898         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86899         GNU CoreUtils.
86900         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86901         * modules/version-etc (Description): Update.
86903 2009-01-22  Bruno Haible  <bruno@clisp.org>
86905         Cache the C locale object.
86906         * lib/c-strtod.c (c_locale_cache): New variable.
86907         (c_locale): New function.
86908         (C_STRTOD): Use it, and don't call freelocale.
86909         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86910         Suggested by Paolo Bonzini.
86912 2009-01-21  Bruno Haible  <bruno@clisp.org>
86914         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86915         conditions other than overflow.
86917 2009-01-21  Bruno Haible  <bruno@clisp.org>
86919         * lib/c-strtod.c: Include errno.h.
86920         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86921         value from STRTOD_L and STRTOD.
86923 2009-01-21  Bruno Haible  <bruno@clisp.org>
86924         and Jim Meyering  <meyering@redhat.com>
86926         nanosleep: skip configure test (fail it) for apple universal builds
86927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86928         universal builds, assume that nanosleep does not work.
86929         * modules/nanosleep (Depends-on): Add multiarch.
86931         mktime: skip configure test (fail it) for apple universal builds
86932         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86933         universal builds, assume that mktime does not work.
86934         * modules/mktime (Depends-on): Add multiarch.
86936 2009-01-21  Eric Blake  <ebb9@byu.net>
86938         multiarch: avoid expand-before-require warning
86939         * modules/multiarch (configure.ac): Require, rather than expand,
86940         gl_MULTIARCH.
86941         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86942         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86943         enforce that all clients require it.  Partial reversion of
86944         2008-12-29 patch.
86946         error: avoid expand-before-require warning
86947         * modules/errno (configure.ac): Require, rather than expand,
86948         gl_HEADER_ERRNO_H.
86949         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86950         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86951         enforce that all clients require it.
86953         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86954         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86955         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86956         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86958 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86960         Revert:
86961         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86963         regex: do not depend on obsolete modules.
86964         * modules/regex: Remove memcmp and memmove.
86966 2009-01-20  Bruno Haible  <bruno@clisp.org>
86968         Make the 'link' module link on Windows NT 4.
86969         * lib/link.c (_WIN32_WINNT): Don't define.
86970         (CreateHardLinkFuncType): New type.
86971         (CreateHardLinkFunc, initialized): New variables.
86972         (initialize): New function.
86973         (link): Invoke CreateHardLink indirectly through the function pointer.
86975 2009-01-20  Bruno Haible  <bruno@clisp.org>
86977         Fix compilation failure on mingw.
86978         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86980 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86982         * doc/c-strtod.texi: Mention a couple of restrictions.
86984 2009-01-20  Jim Meyering  <meyering@redhat.com>
86986         gettimeofday: move more declarations out of functions
86987         * lib/gettimeofday.c: Move extern declarations of tzset and
86988         gmtime out of containing functions.  Prompted by Bruno Haible.
86990 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86992         regex: do not depend on obsolete modules.
86993         * modules/regex: Remove memcmp and memmove.
86995 2009-01-19  Bruno Haible  <bruno@clisp.org>
86997         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86998         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86999         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87000         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87001         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87003 2009-01-19  Bruno Haible  <bruno@clisp.org>
87005         * tests/test-link.c: Include <errno.h>.
87006         (main): Exit with code 77 when a hard link cannot be created due to
87007         the file system.
87008         * tests/test-link.sh: Skip test when a hard link cannot be created due
87009         to the file system.
87010         Suggested by Eric Blake.
87012 2009-01-19  Martin Lambers  <marlam@marlam.de>
87014         * modules/link-tests: New file.
87015         * tests/test-link.sh: New file.
87016         * tests/test-link.c: New file.
87018 2009-01-19  Eric Blake  <ebb9@byu.net>
87020         doc: mention another function added in cygwin 1.7.0
87021         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87022         Another new function in cygwin 1.7.
87024 2009-01-19  Bruno Haible  <bruno@clisp.org>
87026         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87027         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87028         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87029         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87030         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87031         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87032         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87033         * m4/md4.m4 (gl_MD4): Likewise.
87034         * m4/md5.m4 (gl_MD5): Likewise.
87035         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87036         * m4/sha1.m4 (gl_SHA1): Likewise.
87037         * m4/sha256.m4 (gl_SHA256): Likewise.
87038         * m4/sha512.m4 (gl_SHA512): Likewise.
87040 2009-01-19  Bruno Haible  <bruno@clisp.org>
87042         * modules/uniname/uniname-tests (Depends-on): Add progname.
87043         * tests/uniname/test-uninames.c: Include progname.h.
87044         (main): Call set_program_name.
87046         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87047         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87048         (main): Call set_program_name.
87050         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87051         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87052         (main): Call set_program_name.
87054         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87055         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87056         (main): Call set_program_name.
87058         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87059         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87060         (main): Call set_program_name.
87062         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87063         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87064         (main): Call set_program_name.
87066         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87067         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87068         (main): Call set_program_name.
87070         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87071         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87072         (main): Call set_program_name.
87074         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87075         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87076         (main): Call set_program_name.
87078 2009-01-19  Eric Blake  <ebb9@byu.net>
87080         test-unistd: test previous patch
87081         * tests/test-unistd.c: Test *_FILENO macros.
87083         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87084         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87085         Guarantee a definition.
87086         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87087         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87088         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87089         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87090         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87091         Likewise.
87092         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87093         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87094         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87095         Likewise.
87096         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87097         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87098         (STDERR_FILENO): Likewise.
87099         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87100         (STDERR_FILENO): Likewise.
87101         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87102         (STDERR_FILENO): Likewise.
87103         Reported by Elbert Pol.
87105 2009-01-19  Eric Blake  <ebb9@byu.net>
87107         doc: mention more functions added in cygwin 1.7.0
87108         * doc/posix-functions/abort.texi (abort): Update wording related
87109         to cygwin.
87110         * doc/posix-functions/daylight.texi (daylight): Likewise.
87111         * doc/posix-functions/optarg.texi (optarg): Likewise.
87112         * doc/posix-functions/optarg.texi (opterr): Likewise.
87113         * doc/posix-functions/optarg.texi (optind): Likewise.
87114         * doc/posix-functions/optarg.texi (optopt): Likewise.
87115         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87116         worked in 1.5.x, and was withdrawn in 1.7.
87117         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87118         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87119         cygwin versions.
87120         * doc/posix-functions/perror.texi (perror): Likewise.
87121         * doc/posix-functions/printf.texi (printf): Likewise.
87122         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87123         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87124         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87125         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87126         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87127         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87128         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87129         Likewise.
87130         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87131         Likewise.
87132         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87133         this function.
87134         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87135         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87136         Likewise.
87137         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87138         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87139         * doc/posix-functions/confstr.texi (confstr): Likewise.
87140         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87141         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87142         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87143         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87144         * doc/posix-functions/fputws.texi (fputws): Likewise.
87145         * doc/posix-functions/fwide.texi (fwide): Likewise.
87146         * doc/posix-functions/getwc.texi (getwc): Likewise.
87147         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87148         * doc/posix-functions/putwc.texi (putwc): Likewise.
87149         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87150         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87151         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87152         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87153         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87154         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87155         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87156         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87157         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87158         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87159         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87161 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87163         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87164         * lib/ioctl.c: Include <sys/ioctl.h>.
87166 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87168         * modules/getdate-tests (Depends-on): Add progname.
87169         * tests/test-getdate.c: Use progname module, to avoid link errors
87170         on non-glibc systems.
87172 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87174         * modules/filenamecat-tests (Depends-on): Add progname.
87175         * modules/fstrcmp-tests (Depends-on): Likewise.
87177         * tests/test-filenamecat.c: Use progname module, to avoid link
87178         errors on non-glibc systems.
87179         * tests/test-fstrcmp.c: Likewise.
87181 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87183         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87184         * lib/gettimeofday.c: Move extern declaration out of function.
87186 2009-01-18  Bruno Haible  <bruno@clisp.org>
87188         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87189         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87190         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87192 2009-01-18  Bruno Haible  <bruno@clisp.org>
87194         * lib/strftime.c (MEMPCPY): Remove unused macro.
87195         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87197 2009-01-18  Martin Lambers  <marlam@marlam.de>
87199         New module 'link'.
87200         * lib/unistd.in.h (link): New declaration.
87201         * lib/link.c: New file.
87202         * m4/link.m4: New file.
87203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87204         HAVE_LINK.
87205         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87206         * modules/link: New file.
87207         * doc/posix-functions/link.texi: Mention the new module.
87209 2009-01-18  Bruno Haible  <bruno@clisp.org>
87211         * tests/test-avltree_list.c (main): Call set_program_name.
87212         * tests/test-avltree_oset.c (main): Likewise.
87213         * tests/test-obstack-printf.c: Include progname.h.
87214         (main): Call set_program_name.
87215         * tests/test-quotearg.c: Include progname.h.
87216         (main): Call set_program_name.
87217         * tests/test-xmemdup0.c: Include progname.h.
87218         (main): Call set_program_name.
87220 2009-01-18  Bruno Haible  <bruno@clisp.org>
87222         New module 'alphasort'.
87223         * lib/dirent.in.h (alphasort): New declaration.
87224         * lib/alphasort.c: New file, from glibc with modifications.
87225         * m4/alphasort.m4: New file.
87226         * modules/alphasort: New file.
87227         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87228         HAVE_ALPHASORT.
87229         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87230         HAVE_ALPHASORT.
87231         * doc/posix-functions/alphasort.texi: Mention the new module and the
87232         portability problems.
87234 2009-01-18  Bruno Haible  <bruno@clisp.org>
87236         New module 'scandir'.
87237         * lib/dirent.in.h (scandir): New declaration.
87238         * lib/scandir.c: New file, from glibc with modifications.
87239         * m4/scandir.m4: New file.
87240         * modules/scandir: New file.
87241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87242         HAVE_SCANDIR.
87243         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87244         HAVE_SCANDIR.
87245         * doc/posix-functions/scandir.texi: Mention the new module and the
87246         portability problems.
87248 2009-01-17  Bruno Haible  <bruno@clisp.org>
87250         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87251         Update documentation.
87252         (func_remove_suffix): Escape all dots in the suffix. Update
87253         documentation.
87254         (func_filter_filelist): Update documentation.
87255         Reported by Ralf Wildenhues.
87257 2009-01-17  Bruno Haible  <bruno@clisp.org>
87259         * modules/dprintf-posix-tests: New file.
87260         * tests/test-dprintf-posix.sh: New file.
87261         * tests/test-dprintf-posix.c: New file.
87263         New modules 'dprintf', 'dprintf-posix'.
87264         * lib/stdio.in.h (dprintf): New declaration.
87265         * lib/dprintf.c: New file.
87266         * m4/dprintf.m4: New file.
87267         * m4/dprintf-posix.m4: New file.
87268         * modules/dprintf: New file.
87269         * modules/dprintf-posix: New file.
87270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87271         HAVE_DPRINTF, REPLACE_DPRINTF.
87272         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87273         HAVE_DPRINTF, REPLACE_DPRINTF.
87274         * doc/posix-functions/dprintf.texi: Mention the new modules.
87276 2009-01-17  Bruno Haible  <bruno@clisp.org>
87278         * modules/vdprintf-posix-tests: New file.
87279         * tests/test-vdprintf-posix.sh: New file.
87280         * tests/test-vdprintf-posix.c: New file.
87282         New modules 'vdprintf', 'vdprintf-posix'.
87283         * lib/stdio.in.h (vdprintf): New declaration.
87284         * lib/vdprintf.c: New file.
87285         * m4/vdprintf.m4: New file.
87286         * m4/vdprintf-posix.m4: New file.
87287         * modules/vdprintf: New file.
87288         * modules/vdprintf-posix: New file.
87289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87290         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87291         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87292         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87293         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87295 2009-01-17  Bruno Haible  <bruno@clisp.org>
87297         Fix replacement of fopen on mingw.
87298         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87299         mingw.
87301 2009-01-17  Bruno Haible  <bruno@clisp.org>
87303         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87304         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87306 2009-01-17  Bruno Haible  <bruno@clisp.org>
87308         Avoid test-fflush2.sh failure on mingw.
87309         * tests/test-fflush2.c: Include binary-io.h.
87310         (main): Put standard input into binary mode.
87311         * modules/fflush-tests (Depends-on): Add binary-io.
87313 2009-01-17  Bruno Haible  <bruno@clisp.org>
87315         * lib/wchar.in.h: In another particular situation, include only the
87316         system's <wchar.h> file.
87317         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87318         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87319         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87321 2009-01-17  Bruno Haible  <bruno@clisp.org>
87323         Support for stripping executables in --enable-relocatable.
87324         * build-aux/install-reloc: Expect one more argument, or an environment
87325         variable RELOC_STRIP_PROG. If set, strip the destination program and
87326         its wrapper.
87327         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87328         RELOC_STRIP_PROG.
87329         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87330         to set RELOCATABLE_STRIP.
87331         * NEWS: Mention the new Makefile requirement.
87333 2009-01-17  Bruno Haible  <bruno@clisp.org>
87335         * build-aux/install-reloc: Remove debugging information left over by
87336         C compiler on MacOS X.
87338 2009-01-17  Bruno Haible  <bruno@clisp.org>
87340         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87341         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87342         _NSGetExecutablePath.
87344 2009-01-16  Jim Meyering  <meyering@redhat.com>
87346         strerror: avoid warnings about discarding "const"
87347         * lib/strerror.c (rpl_strerror): Instead of returning a const
87348         string from each and every "case", use a variable, and add a single
87349         cast after the switch.
87351 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87353         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87355 2009-01-16  Bruno Haible  <bruno@clisp.org>
87357         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87358         array initializer syntax that also works in C++ mode.
87359         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87361 2009-01-16  Jim Meyering  <meyering@redhat.com>
87363         poll: suppress a warning
87364         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87365         to ignore "...unsigned expression < 0 is always false" warnings.
87367 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87369         poll: remove declarations of unused variables
87370         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87371         sockbuf and optlen.
87373 2009-01-15  Bruno Haible  <bruno@clisp.org>
87375         Make fflush-after-ungetc POSIX compliant on BSD systems.
87376         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87377         (clear_ungetc_buffer): Implement also for other systems.
87378         (rpl_fflush): On glibc systems, invoke
87379         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87380         clear_ungetc_buffer after fetching the stream's position, not before.
87382 2009-01-15  Bruno Haible  <bruno@clisp.org>
87384         Make fflush-after-ungetc POSIX compliant on glibc systems.
87385         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87386         after ungetc.
87387         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87388         (rpl_fflush): On glibc systems, simply call the system's fflush
87389         function after clearing the ungetc buffer.
87390         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87391         Instead, lseek only to the end of file, then use the system's fseeko
87392         for the rest. On glibc systems, reset the EOF indicator bit.
87394 2009-01-15  Jim Meyering  <meyering@redhat.com>
87396         openmp.m4: revert quote-adding change, for portability to older autoconf
87397         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87398         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87399         Simon Josefsson noticed the problem when using autoconf-2.61.
87401 2009-01-15  Bruno Haible  <bruno@clisp.org>
87403         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87404         * tests/test-fflush2.c (ASSERT): Always fail.
87405         (main): Add two tests for fflush() after ungetc(), taking into account
87406         the Austin Group's clarification.
87407         Suggested by Eric Blake.
87409 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87411         mktime.m4: remove K&R-style function prototypes
87412         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87413         for the Sun C++ compiler.
87415 2009-01-14  Bruno Haible  <bruno@clisp.org>
87417         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87418         while including <wchar.h>.
87419         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87420         the system's <wchar.h> file.
87421         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87423 2009-01-14  Bruno Haible  <bruno@clisp.org>
87425         * m4/csharp.m4: Don't mention gettext on the serial number line.
87426         * m4/csharpexec.m4: Likewise.
87427         * m4/eaccess.m4: Likewise.
87428         * m4/javaexec.m4: Likewise.
87429         * m4/sig_atomic_t.m4: Likewise.
87430         * m4/tmpdir.m4: Likewise.
87431         * m4/intldir.m4: Bump gettext version.
87432         * m4/lib-ld.m4: Likewise.
87434 2009-01-14  Bruno Haible  <bruno@clisp.org>
87436         * lib/progname.c (set_program_name): Add more comments.
87437         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87439 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87441         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87442         were sys/stat.h does not define it.
87444 2009-01-14  Jim Meyering  <meyering@redhat.com>
87446         many *.m4 files: improve m4 quoting
87447         99% of this change was performed by running the following commands:
87448         git ls-files | grep '\.m4$' | xargs perl -pi \
87449           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87450           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87451           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87452           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87453         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87454         The remainder were to add Copyright dates, increment serial numbers,
87455         undo some changes in comments, exclude m4/intl.m4, and add quotes
87456         around the "1" in ",1" where the unusual spacing prohibited the
87457         above regexps from doing the job.  For more details, see
87458         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87459         * m4/acl.m4: Modified.
87460         * m4/afs.m4: Likewise.
87461         * m4/alloca.m4: Likewise.
87462         * m4/argp.m4: Likewise.
87463         * m4/argz.m4: Likewise.
87464         * m4/atexit.m4: Likewise.
87465         * m4/bison-i18n.m4: Likewise.
87466         * m4/bison.m4: Likewise.
87467         * m4/byteswap.m4: Likewise.
87468         * m4/c-stack.m4: Likewise.
87469         * m4/c-strtod.m4: Likewise.
87470         * m4/calloc.m4: Likewise.
87471         * m4/canonicalize-lgpl.m4: Likewise.
87472         * m4/chown.m4: Likewise.
87473         * m4/clock_time.m4: Likewise.
87474         * m4/codeset.m4: Likewise.
87475         * m4/copy-file.m4: Likewise.
87476         * m4/csharp.m4: Likewise.
87477         * m4/csharpcomp.m4: Likewise.
87478         * m4/csharpexec.m4: Likewise.
87479         * m4/d-ino.m4: Likewise.
87480         * m4/d-type.m4: Likewise.
87481         * m4/dirfd.m4: Likewise.
87482         * m4/double-slash-root.m4: Likewise.
87483         * m4/eaccess.m4: Likewise.
87484         * m4/eealloc.m4: Likewise.
87485         * m4/environ.m4: Likewise.
87486         * m4/errno_h.m4: Likewise.
87487         * m4/euidaccess.m4: Likewise.
87488         * m4/execute.m4: Likewise.
87489         * m4/fatal-signal.m4: Likewise.
87490         * m4/fchdir.m4: Likewise.
87491         * m4/fcntl_h.m4: Likewise.
87492         * m4/fileblocks.m4: Likewise.
87493         * m4/filenamecat.m4: Likewise.
87494         * m4/findprog.m4: Likewise.
87495         * m4/flexmember.m4: Likewise.
87496         * m4/fnmatch.m4: Likewise.
87497         * m4/fopen.m4: Likewise.
87498         * m4/fpending.m4: Likewise.
87499         * m4/fprintf-posix.m4: Likewise.
87500         * m4/free.m4: Likewise.
87501         * m4/frexp.m4: Likewise.
87502         * m4/frexpl.m4: Likewise.
87503         * m4/fsusage.m4: Likewise.
87504         * m4/ftruncate.m4: Likewise.
87505         * m4/gc-camellia.m4: Likewise.
87506         * m4/gc-random.m4: Likewise.
87507         * m4/gc.m4: Likewise.
87508         * m4/getaddrinfo.m4: Likewise.
87509         * m4/getcwd-abort-bug.m4: Likewise.
87510         * m4/getcwd-path-max.m4: Likewise.
87511         * m4/getdate.m4: Likewise.
87512         * m4/getdomainname.m4: Likewise.
87513         * m4/getgroups.m4: Likewise.
87514         * m4/gethostname.m4: Likewise.
87515         * m4/gethrxtime.m4: Likewise.
87516         * m4/getline.m4: Likewise.
87517         * m4/getloadavg.m4: Likewise.
87518         * m4/getndelim2.m4: Likewise.
87519         * m4/getpass.m4: Likewise.
87520         * m4/gettext.m4: Likewise.
87521         * m4/gettime.m4: Likewise.
87522         * m4/gettimeofday.m4: Likewise.
87523         * m4/gnulib-common.m4: Likewise.
87524         * m4/group-member.m4: Likewise.
87525         * m4/host-os.m4: Likewise.
87526         * m4/iconv.m4: Likewise.
87527         * m4/iconv_open.m4: Likewise.
87528         * m4/inet_ntop.m4: Likewise.
87529         * m4/inet_pton.m4: Likewise.
87530         * m4/inline.m4: Likewise.
87531         * m4/intldir.m4: Likewise.
87532         * m4/intlmacosx.m4: Likewise.
87533         * m4/intmax.m4: Likewise.
87534         * m4/intmax_t.m4: Likewise.
87535         * m4/inttypes.m4: Likewise.
87536         * m4/inttypes_h.m4: Likewise.
87537         * m4/inttypes-pri.m4: Likewise.
87538         * m4/isapipe.m4: Likewise.
87539         * m4/isnand.m4: Likewise.
87540         * m4/isnanf.m4: Likewise.
87541         * m4/isnanl.m4: Likewise.
87542         * m4/javacomp.m4: Likewise.
87543         * m4/javaexec.m4: Likewise.
87544         * m4/jm-winsz1.m4: Likewise.
87545         * m4/jm-winsz2.m4: Likewise.
87546         * m4/lchown.m4: Likewise.
87547         * m4/lcmessage.m4: Likewise.
87548         * m4/ldexpl.m4: Likewise.
87549         * m4/lib-ld.m4: Likewise.
87550         * m4/lib-link.m4: Likewise.
87551         * m4/libsigsegv.m4: Likewise.
87552         * m4/link-follow.m4: Likewise.
87553         * m4/localcharset.m4: Likewise.
87554         * m4/locale-fr.m4: Likewise.
87555         * m4/locale-ja.m4: Likewise.
87556         * m4/locale-tr.m4: Likewise.
87557         * m4/locale-zh.m4: Likewise.
87558         * m4/lock.m4: Likewise.
87559         * m4/longlong.m4: Likewise.
87560         * m4/ls-mntd-fs.m4: Likewise.
87561         * m4/lstat.m4: Likewise.
87562         * m4/malloc.m4: Likewise.
87563         * m4/mathl.m4: Likewise.
87564         * m4/mbrtowc.m4: Likewise.
87565         * m4/mbstate_t.m4: Likewise.
87566         * m4/mbswidth.m4: Likewise.
87567         * m4/memchr.m4: Likewise.
87568         * m4/memcmp.m4: Likewise.
87569         * m4/memcpy.m4: Likewise.
87570         * m4/memmem.m4: Likewise.
87571         * m4/memmove.m4: Likewise.
87572         * m4/mempcpy.m4: Likewise.
87573         * m4/memrchr.m4: Likewise.
87574         * m4/memset.m4: Likewise.
87575         * m4/minmax.m4: Likewise.
87576         * m4/mkdir-slash.m4: Likewise.
87577         * m4/mkdtemp.m4: Likewise.
87578         * m4/mktime.m4: Likewise.
87579         * m4/mmap-anon.m4: Likewise.
87580         * m4/mountlist.m4: Likewise.
87581         * m4/nanosleep.m4: Likewise.
87582         * m4/nls.m4: Likewise.
87583         * m4/nocrash.m4: Likewise.
87584         * m4/open.m4: Likewise.
87585         * m4/openat.m4: Likewise.
87586         * m4/openmp.m4: Likewise.
87587         * m4/pathmax.m4: Likewise.
87588         * m4/perl.m4: Likewise.
87589         * m4/physmem.m4: Likewise.
87590         * m4/pipe.m4: Likewise.
87591         * m4/po.m4: Likewise.
87592         * m4/poll.m4: Likewise.
87593         * m4/posixtm.m4: Likewise.
87594         * m4/posixver.m4: Likewise.
87595         * m4/printf-frexp.m4: Likewise.
87596         * m4/printf-frexpl.m4: Likewise.
87597         * m4/printf-posix.m4: Likewise.
87598         * m4/printf-posix-rpl.m4: Likewise.
87599         * m4/printf.m4: Likewise.
87600         * m4/progtest.m4: Likewise.
87601         * m4/putenv.m4: Likewise.
87602         * m4/readline.m4: Likewise.
87603         * m4/readlink.m4: Likewise.
87604         * m4/readutmp.m4: Likewise.
87605         * m4/realloc.m4: Likewise.
87606         * m4/regex.m4: Likewise.
87607         * m4/relocatable.m4: Likewise.
87608         * m4/relocatable-lib.m4: Likewise.
87609         * m4/rename-dest-slash.m4: Likewise.
87610         * m4/rename.m4: Likewise.
87611         * m4/rmdir-errno.m4: Likewise.
87612         * m4/rmdir.m4: Likewise.
87613         * m4/roundf.m4: Likewise.
87614         * m4/roundl.m4: Likewise.
87615         * m4/rpmatch.m4: Likewise.
87616         * m4/save-cwd.m4: Likewise.
87617         * m4/selinux-selinux-h.m4: Likewise.
87618         * m4/setenv.m4: Likewise.
87619         * m4/settime.m4: Likewise.
87620         * m4/sig2str.m4: Likewise.
87621         * m4/sig_atomic_t.m4: Likewise.
87622         * m4/signalblocking.m4: Likewise.
87623         * m4/signbit.m4: Likewise.
87624         * m4/sigpipe.m4: Likewise.
87625         * m4/sockets.m4: Likewise.
87626         * m4/sockpfaf.m4: Likewise.
87627         * m4/st_dm_mode.m4: Likewise.
87628         * m4/stat-time.m4: Likewise.
87629         * m4/stdbool.m4: Likewise.
87630         * m4/stdint.m4: Likewise.
87631         * m4/stdint_h.m4: Likewise.
87632         * m4/stpcpy.m4: Likewise.
87633         * m4/stpncpy.m4: Likewise.
87634         * m4/strcase.m4: Likewise.
87635         * m4/strchrnul.m4: Likewise.
87636         * m4/strcspn.m4: Likewise.
87637         * m4/strdup.m4: Likewise.
87638         * m4/strftime.m4: Likewise.
87639         * m4/strndup.m4: Likewise.
87640         * m4/strnlen.m4: Likewise.
87641         * m4/strpbrk.m4: Likewise.
87642         * m4/strptime.m4: Likewise.
87643         * m4/strsep.m4: Likewise.
87644         * m4/strtod.m4: Likewise.
87645         * m4/strtoimax.m4: Likewise.
87646         * m4/strtok_r.m4: Likewise.
87647         * m4/strtol.m4: Likewise.
87648         * m4/strtoll.m4: Likewise.
87649         * m4/strtoul.m4: Likewise.
87650         * m4/strtoull.m4: Likewise.
87651         * m4/strtoumax.m4: Likewise.
87652         * m4/strverscmp.m4: Likewise.
87653         * m4/threadlib.m4: Likewise.
87654         * m4/timegm.m4: Likewise.
87655         * m4/tm_gmtoff.m4: Likewise.
87656         * m4/tmpdir.m4: Likewise.
87657         * m4/tmpfile.m4: Likewise.
87658         * m4/tzset.m4: Likewise.
87659         * m4/uintmax_t.m4: Likewise.
87660         * m4/unlinkdir.m4: Likewise.
87661         * m4/unlocked-io.m4: Likewise.
87662         * m4/uptime.m4: Likewise.
87663         * m4/userspec.m4: Likewise.
87664         * m4/utimbuf.m4: Likewise.
87665         * m4/utime.m4: Likewise.
87666         * m4/utimes-null.m4: Likewise.
87667         * m4/utimes.m4: Likewise.
87668         * m4/vararrays.m4: Likewise.
87669         * m4/vasnprintf.m4: Likewise.
87670         * m4/vfprintf-posix.m4: Likewise.
87671         * m4/vprintf-posix.m4: Likewise.
87672         * m4/wait-process.m4: Likewise.
87673         * m4/wchar_t.m4: Likewise.
87674         * m4/wint_t.m4: Likewise.
87675         * m4/write-any-file.m4: Likewise.
87676         * m4/yield.m4: Likewise.
87678 2009-01-13  Bruno Haible  <bruno@clisp.org>
87680         Avoid test-copy-file.sh failures when ACL support insufficient.
87681         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87682         TESTS_ENVIRONMENT.
87683         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87684         Reported by Jim Meyering.
87686 2009-01-13  Bruno Haible  <bruno@clisp.org>
87688         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87689         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87690         * modules/unistdio/u8-printf-parse (Files): Likewise.
87691         * modules/unistdio/u32-printf-parse (Files): Likewise.
87692         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87694 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87696         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87697         and m4/inttypes_h.m4 too.
87699 2009-01-12  Eric Blake  <ebb9@byu.net>
87701         tests: IRIX 6.2 cc can't compile -0.0 into .data
87702         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87703         rather than at compile-time.
87704         * tests/test-floorl.c (minus_zero): Likewise.
87705         * tests/test-frexpl.c (minus_zero): Likewise.
87706         * tests/test-isnan.c (minus_zerol): Likewise.
87707         * tests/test-isnanl.h (minus_zero): Likewise.
87708         * tests/test-ldexpl.c (minus_zero): Likewise.
87709         * tests/test-roundl.c (minus_zero): Likewise.
87710         * tests/test-signbit.c (minus_zerol): Likewise.
87711         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87712         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87713         * tests/test-truncl.c (minus_zero): Likewise.
87714         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87715         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87716         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87718 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87720         regex: fix glibc bug 9697
87721         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87722         handling.
87724 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87726         regex: fix glibc bug 697
87727         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87728         being NULL also if there are no backreferences.
87730 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87732         regex: merge glibc changes
87733         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87734         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87735         re_string_skip_chars, re_string_reconstruct): Likewise.
87736         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87738 2009-01-07  Jim Meyering  <meyering@redhat.com>
87740         poll: filter through cppi
87741         * lib/poll.c: Indent cpp directives to reflect nesting.
87743 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87745         poll: don't return uninitialized
87746         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87748 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87750         avoid compile failure on AIX 6.1
87751         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87752         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87754 2009-01-04  Jim Meyering  <meyering@redhat.com>
87756         remove duplicate inclusion of <stdio.h>
87757         * tests/test-fprintf-posix.c: Likewise.
87758         * tests/test-printf-posix.c: Likewise.
87759         * tests/test-snprintf-posix.c: Likewise.
87760         * tests/test-sprintf-posix.c: Likewise.
87761         * tests/test-vasprintf-posix.c: Likewise.
87762         * tests/test-vfprintf-posix.c: Likewise.
87763         * tests/test-vprintf-posix.c: Likewise.
87764         * tests/test-vsnprintf-posix.c: Likewise.
87765         * tests/test-vsprintf-posix.c: Likewise.
87767 2009-01-03  Jim Meyering  <meyering@redhat.com>
87769         gnulib-tool: fix sed-based filtering
87770         * gnulib-tool (func_filter_filelist): Remove extra backslash
87771         in sed_fff_filter definition.
87773 2009-01-02  Jim Meyering  <meyering@redhat.com>
87775         strftime: avoid compilation failure on Solaris 2.6
87776         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87777         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87778         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87779         be available.  Reported by Tom G. Christensen.  Details in
87780         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87782 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87783             Bruno Haible  <bruno@clisp.org>
87785         Speed up gnulib-tool by doing more string processing through shell
87786         built-ins.
87787         * gnulib-tool (fast_func_append): New variable.
87788         (func_remove_prefix, func_remove_suffix): New functions.
87789         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87790         (func_filter_filelist): New function.
87791         (func_get_dependencies): Use func_remove_suffix instead of sed.
87792         (func_get_automake_snippet): Use func_filter_filelist instead of a
87793         subshell and sed invocation.
87795 2009-01-01  Bruno Haible  <bruno@clisp.org>
87797         Fix a security bug.
87798         * gnulib-tool (func_import, import, update): Don't allow the characters
87799         '"', '$', '`', '\' in macro arguments that become part of commands that
87800         are evaluated.
87802 2009-01-01  Bruno Haible  <bruno@clisp.org>
87804         * gnulib-tool (func_reset_sigpipe): Add more comments.
87806 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87808         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87809         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87810         already know the answer.
87812 2009-01-01  Jim Meyering  <meyering@redhat.com>
87814         * lib/version-etc.c (version_etc_va): Update copyright year.
87816 2008-12-30  Bruno Haible  <bruno@clisp.org>
87818         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87819         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87820         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87822 2008-12-29  Eric Blake  <ebb9@byu.net>
87824         multiarch: avoid autoconf AC_REQUIRE bug
87825         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87826         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87827         2.63 and older.
87828         Reported by Bruno Haible, and analyzed in
87829         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87831 2008-12-29  Bruno Haible  <bruno@clisp.org>
87833         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87834         files in subdirectories correctly.
87835         Reported by Ralf Wildenhues.
87837 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87839         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87840         rather than 'join FILE -', for Solaris join.
87842 2008-12-29  Bruno Haible  <bruno@clisp.org>
87844         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87845         quoting.
87846         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87847         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87848         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87849         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87850         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87851         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87852         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87853         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87854         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87855         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87856         * m4/nls.m4 (AM_NLS): Likewise.
87857         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87858         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87859         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87860         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87861         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87862         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87863         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87864         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87865         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87866         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87867         * m4/xsize.m4 (gl_XSIZE): Likewise.
87868         Suggested by Jim Meyering.
87870 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87872         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87873         * lib/parse-duration.c: use a switch instead of cascading if's.
87875 2008-12-29  Eric Blake  <ebb9@byu.net>
87877         wchar.h: supply WEOF on Irix 5.3
87878         * lib/wchar.in.h (wint_t): Also supply WEOF.
87879         * lib/wctype.in.h (wint_t): Likewise.
87880         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87881         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87882         Reported by Tom G. Christensen.
87884 2008-12-26  Bruno Haible  <bruno@clisp.org>
87886         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87887         i486, i586, i686.
87889 2008-12-26  Bruno Haible  <bruno@clisp.org>
87891         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87893 2008-12-26  Bruno Haible  <bruno@clisp.org>
87895         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87896         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87897         not __STDC_CONSTANT_MACROS.
87898         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87900 2008-12-25  Bruno Haible  <bruno@clisp.org>
87902         Add support for universal builds to vasnprintf.
87903         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87904         universal builds, guess no.
87905         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87906         * modules/vasprintf-posix (Depends-on): Likewise.
87907         * modules/fprintf-posix (Depends-on): Likewise.
87908         * modules/vfprintf-posix (Depends-on): Likewise.
87909         * modules/snprintf-posix (Depends-on): Likewise.
87910         * modules/vsnprintf-posix (Depends-on): Likewise.
87911         * modules/sprintf-posix (Depends-on): Likewise.
87912         * modules/vsprintf-posix (Depends-on): Likewise.
87913         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87914         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87915         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87916         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87917         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87921         Add support for universal builds to <inttypes.h>.
87922         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87923         _SCNu64_PREFIX): In Apple
87924         universal builds, define directly, using _LP64.
87925         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87926         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87927         * modules/inttypes (Depends-on): Add multiarch.
87928         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87930         Add support for universal builds to <stdint.h>.
87931         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87932         universal builds, define directly, using _LP64.
87933         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87934         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87935         and size_t.
87936         * modules/stdint (Depends-on): Add multiarch.
87937         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87939         New module 'multiarch'.
87940         * modules/multiarch: New file.
87941         * m4/multiarch.m4: New file.
87943 2008-12-25  Bruno Haible  <bruno@clisp.org>
87945         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87947 2008-12-25  Bruno Haible  <bruno@clisp.org>
87949         * modules/btowc (License): Relicense under LGPLv2+.
87950         * modules/mbsinit (License): Likewise.
87951         * modules/mbrtowc (License): Likewise.
87952         * modules/wcrtomb (License): Likewise.
87953         * modules/streq (License): Likewise.
87954         Reported by David Lutterkort <lutter@redhat.com>.
87956 2008-12-23  Bruno Haible  <bruno@clisp.org>
87958         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87960 2008-12-23  Bruno Haible  <bruno@clisp.org>
87962         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87963         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87964         GETADDRINFO_LIB, not in LIBS.
87965         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87966         * modules/canon-host (Link): Likewise.
87967         * NEWS: Mention the change.
87968         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87969         GETADDRINFO_LIB.
87971 2008-12-22  Bruno Haible  <bruno@clisp.org>
87973         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87974         * doc/posix-functions/iswalpha_l.texi: Likewise.
87975         * doc/posix-functions/iswblank_l.texi: Likewise.
87976         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87977         * doc/posix-functions/iswctype_l.texi: Likewise.
87978         * doc/posix-functions/iswdigit_l.texi: Likewise.
87979         * doc/posix-functions/iswgraph_l.texi: Likewise.
87980         * doc/posix-functions/iswlower_l.texi: Likewise.
87981         * doc/posix-functions/iswprint_l.texi: Likewise.
87982         * doc/posix-functions/iswpunct_l.texi: Likewise.
87983         * doc/posix-functions/iswspace_l.texi: Likewise.
87984         * doc/posix-functions/iswupper_l.texi: Likewise.
87985         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87986         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87987         * doc/posix-functions/open_wmemstream.texi: Likewise.
87988         * doc/posix-functions/swscanf.texi: Likewise.
87989         * doc/posix-functions/towctrans_l.texi: Likewise.
87990         * doc/posix-functions/towlower.texi: Likewise.
87991         * doc/posix-functions/towlower_l.texi: Likewise.
87992         * doc/posix-functions/towupper.texi: Likewise.
87993         * doc/posix-functions/towupper_l.texi: Likewise.
87994         * doc/posix-functions/vfwprintf.texi: Likewise.
87995         * doc/posix-functions/vfwscanf.texi: Likewise.
87996         * doc/posix-functions/vswscanf.texi: Likewise.
87997         * doc/posix-functions/vwprintf.texi: Likewise.
87998         * doc/posix-functions/vwscanf.texi: Likewise.
87999         * doc/posix-functions/wcpcpy.texi: Likewise.
88000         * doc/posix-functions/wcpncpy.texi: Likewise.
88001         * doc/posix-functions/wcscasecmp.texi: Likewise.
88002         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88003         * doc/posix-functions/wcscoll_l.texi: Likewise.
88004         * doc/posix-functions/wcsdup.texi: Likewise.
88005         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88006         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88007         * doc/posix-functions/wcsnlen.texi: Likewise.
88008         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88009         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88010         * doc/posix-functions/wctrans_l.texi: Likewise.
88011         * doc/posix-functions/wctype_l.texi: Likewise.
88012         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88013         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88014         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88015         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88016         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88017         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88018         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88019         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88020         * doc/glibc-functions/wcschrnul.texi: Likewise.
88021         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88022         * doc/glibc-functions/wcstod_l.texi: Likewise.
88023         * doc/glibc-functions/wcstof_l.texi: Likewise.
88024         * doc/glibc-functions/wcstol_l.texi: Likewise.
88025         * doc/glibc-functions/wcstold_l.texi: Likewise.
88026         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88027         * doc/glibc-functions/wcstoq.texi: Likewise.
88028         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88029         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88030         * doc/glibc-functions/wcstouq.texi: Likewise.
88031         * doc/glibc-functions/wmempcpy.texi: Likewise.
88033 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88034             Eric Blake  <ebb9@byu.net>
88035             Paolo Bonzini  <bonzini@gnu.org>
88036             Bruno Haible  <bruno@clisp.org>
88038         Make c-stack work on Haiku.
88039         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88040         (c_stack_action): Use SA_ONSTACK flag.
88042 2008-12-22  Bruno Haible  <bruno@clisp.org>
88044         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88046 2008-12-22  Bruno Haible  <bruno@clisp.org>
88048         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88049         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88050         being overridden.
88051         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88052         New macros.
88053         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88055         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88056         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88058 2008-12-22  Bruno Haible  <bruno@clisp.org>
88060         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88061         from test code.
88063 2008-12-22  Eric Blake  <ebb9@byu.net>
88065         Avoid gcc warnings on cygwin.
88066         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88067         Avoid unused variable.
88068         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88069         Likewise.
88071 2008-12-22  Bruno Haible  <bruno@clisp.org>
88073         Remove HAVE_MBRTOWC conditionals.
88074         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88075         (mbscasecmp): Assume mbrtowc function.
88076         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88077         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88078         * lib/mbschr.c: Include mbuiter.h unconditionally.
88079         (mbschr): Assume mbrtowc function.
88080         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88081         (mbscspn): Assume mbrtowc function.
88082         * lib/mbslen.c: Include mbuiter.h unconditionally.
88083         (mbslen): Assume mbrtowc function.
88084         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88085         (mbsncasecmp): Assume mbrtowc function.
88086         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88087         (mbsnlen): Assume mbrtowc function.
88088         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88089         (mbspbrk): Assume mbrtowc function.
88090         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88091         (mbspcasecmp): Assume mbrtowc function.
88092         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88093         (mbsrchr): Assume mbrtowc function.
88094         * lib/mbssep.c: Include mbuiter.h unconditionally.
88095         (mbssep): Assume mbrtowc function.
88096         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88097         (mbsspn): Assume mbrtowc function.
88098         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88099         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88100         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88101         (mbstok_r): Assume mbrtowc function.
88102         * lib/propername.c: Include mbuiter.h unconditionally.
88103         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88104         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88105         (trim2): Assume mbrtowc function.
88106         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88107         (mbsnwidth): Assume mbrtowc function.
88108         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88109         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88110         fallback definitions.
88111         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88113 2008-12-22  Bruno Haible  <bruno@clisp.org>
88115         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88117 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88119         * modules/regex: Request emulations for the mb*/wc* functions we need.
88120         * m4/regex.m4: Don't look for those functions here.
88121         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88123 2008-12-22  Bruno Haible  <bruno@clisp.org>
88125         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88127 2008-12-21  Bruno Haible  <bruno@clisp.org>
88129         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88130         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88131         (Include): Remove conditionalization.
88132         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88133         (Include): Remove conditionalization.
88134         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88135         (Include): Remove conditionalization.
88136         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88137         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88138         * NEWS: Mention the change.
88139         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88140         via Sergey Poznyakoff <gray@gnu.org.ua>.
88142 2008-12-21  Bruno Haible  <bruno@clisp.org>
88144         * MODULES.html.sh (Extended multibyte and wide character utilities
88145         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88146         wcrtomb, wcsrtombs.
88147         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88148         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88149         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88150         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88152 2008-12-21  Bruno Haible  <bruno@clisp.org>
88154         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88156 2008-12-21  Bruno Haible  <bruno@clisp.org>
88158         * modules/wcsnrtombs-tests: New file.
88159         * tests/test-wcsnrtombs1.sh: New file.
88160         * tests/test-wcsnrtombs2.sh: New file.
88161         * tests/test-wcsnrtombs3.sh: New file.
88162         * tests/test-wcsnrtombs4.sh: New file.
88163         * tests/test-wcsnrtombs.c: New file.
88165         New module 'wcsnrtombs'.
88166         * lib/wchar.in.h (wcsnrtombs): New declaration.
88167         * lib/wcsnrtombs.c: New file.
88168         * lib/wcsrtombs-state.c: New file.
88169         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88170         (internal_state): Remove variable.
88171         * m4/wcsnrtombs.m4: New file.
88172         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88173         compilation units.
88174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88175         HAVE_WCSNRTOMBS.
88176         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88177         HAVE_WCSNRTOMBS.
88178         * modules/wcsnrtombs: New file.
88179         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88180         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88182 2008-12-21  Bruno Haible  <bruno@clisp.org>
88184         * modules/wcsrtombs-tests: New file.
88185         * tests/test-wcsrtombs1.sh: New file.
88186         * tests/test-wcsrtombs2.sh: New file.
88187         * tests/test-wcsrtombs3.sh: New file.
88188         * tests/test-wcsrtombs4.sh: New file.
88189         * tests/test-wcsrtombs.c: New file.
88191         New module 'wcsrtombs'.
88192         * lib/wchar.in.h (wcsrtombs): New declaration.
88193         * lib/wcsrtombs.c: New file.
88194         * m4/wcsrtombs.m4: New file.
88195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88196         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88198         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88199         * modules/wcsrtombs: New file.
88200         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88201         bugs.
88203 2008-12-21  Bruno Haible  <bruno@clisp.org>
88205         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88206         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88207         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88208         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88209         if not correct.
88210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88211         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88212         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88213         m4/locale-zh.m4, m4/codeset.m4.
88214         * doc/posix-functions/wcrtomb.texi: Document the bug.
88216 2008-12-21  Bruno Haible  <bruno@clisp.org>
88218         Work around a btowc() bug on IRIX 6.5.
88219         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88220         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88221         REPLACE_WTOBC if not.
88222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88223         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88224         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88226 2008-12-21  Bruno Haible  <bruno@clisp.org>
88228         * modules/wcrtomb-tests: New file.
88229         * tests/test-wcrtomb.sh: New file.
88230         * tests/test-wcrtomb.c: New file.
88232         New module 'wcrtomb'.
88233         * lib/wchar.in.h (wcrtomb): New declaration.
88234         * lib/wcrtomb.c: New file.
88235         * m4/wcrtomb.m4: New file.
88236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88237         HAVE_WCRTOMB.
88238         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88239         HAVE_WCRTOMB.
88240         * modules/wcrtomb: New file.
88241         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88243 2008-12-21  Bruno Haible  <bruno@clisp.org>
88245         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88246         * modules/mbsrtowcs (Files): Likewise.
88247         * modules/wctob (Files): Likewise.
88248         * modules/c-strcase-tests (Files): Likewise.
88249         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88250         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88251         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88252         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88253         * modules/vasnprintf-posix-tests (Files): Likewise.
88255 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88257         gitlog-to-changelog: pass all command-line arguments to git-log
88258         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88259         it is sometimes convenient to filter the commits in various ways.
88260         gitlog-to-changelog only allows --since to specify a start date,
88261         but git-log itself supports many other filtering mechanisms.
88262         At the moment, I want to filter by branch name.  Rather than
88263         adding a --branch option to gitlog-to-changelog, it seems more
88264         flexible to simply pass all options directly to git-log and let
88265         git do the work.  Notice that this effectively makes --since a
88266         redundant option for gitlog-to-changelog, but removing it would
88267         require current usage to change since calls would then require
88268         an additional '--'.
88270 2008-12-21  Bruno Haible  <bruno@clisp.org>
88272         * modules/mbsnrtowcs-tests: New file.
88273         * tests/test-mbsnrtowcs1.sh: New file.
88274         * tests/test-mbsnrtowcs2.sh: New file.
88275         * tests/test-mbsnrtowcs3.sh: New file.
88276         * tests/test-mbsnrtowcs4.sh: New file.
88277         * tests/test-mbsnrtowcs.c: New file.
88279         New module 'mbsnrtowcs'.
88280         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88281         * lib/mbsnrtowcs.c: New file.
88282         * lib/mbsrtowcs-state.c: New file.
88283         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88284         (internal_state): Remove variable.
88285         * m4/mbsnrtowcs.m4: New file.
88286         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88287         compilation units.
88288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88289         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88290         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88291         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88292         * modules/mbsnrtowcs: New file.
88293         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88294         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88295         portability problem.
88297 2008-12-21  Bruno Haible  <bruno@clisp.org>
88299         Work around mbsrtowcs bug.
88300         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88301         (gl_FUNC_MBSRTOWCS): Invoke it.
88302         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88303         m4/locale-zh.m4.
88304         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88306 2008-12-21  Bruno Haible  <bruno@clisp.org>
88308         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88310 2008-12-21  Bruno Haible  <bruno@clisp.org>
88312         Update doc for AIX.
88313         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88314         16-bit wchar_t type.
88315         * doc/posix-functions/btowc.texi: Likewise.
88316         * doc/posix-functions/fgetwc.texi: Likewise.
88317         * doc/posix-functions/fgetws.texi: Likewise.
88318         * doc/posix-functions/fputwc.texi: Likewise.
88319         * doc/posix-functions/fputws.texi: Likewise.
88320         * doc/posix-functions/fwide.texi: Likewise.
88321         * doc/posix-functions/fwprintf.texi: Likewise.
88322         * doc/posix-functions/fwscanf.texi: Likewise.
88323         * doc/posix-functions/getwchar.texi: Likewise.
88324         * doc/posix-functions/getwc.texi: Likewise.
88325         * doc/posix-functions/iswalnum.texi: Likewise.
88326         * doc/posix-functions/iswalpha.texi: Likewise.
88327         * doc/posix-functions/iswblank.texi: Likewise.
88328         * doc/posix-functions/iswcntrl.texi: Likewise.
88329         * doc/posix-functions/iswctype.texi: Likewise.
88330         * doc/posix-functions/iswdigit.texi: Likewise.
88331         * doc/posix-functions/iswgraph.texi: Likewise.
88332         * doc/posix-functions/iswlower.texi: Likewise.
88333         * doc/posix-functions/iswprint.texi: Likewise.
88334         * doc/posix-functions/iswpunct.texi: Likewise.
88335         * doc/posix-functions/iswspace.texi: Likewise.
88336         * doc/posix-functions/iswupper.texi: Likewise.
88337         * doc/posix-functions/iswxdigit.texi: Likewise.
88338         * doc/posix-functions/mbrtowc.texi: Likewise.
88339         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88340         * doc/posix-functions/mbstowcs.texi: Likewise.
88341         * doc/posix-functions/mbtowc.texi: Likewise.
88342         * doc/posix-functions/putwchar.texi: Likewise.
88343         * doc/posix-functions/putwc.texi: Likewise.
88344         * doc/posix-functions/swprintf.texi: Likewise.
88345         * doc/posix-functions/tolower.texi: Likewise.
88346         * doc/posix-functions/toupper.texi: Likewise.
88347         * doc/posix-functions/towctrans.texi: Likewise.
88348         * doc/posix-functions/ungetwc.texi: Likewise.
88349         * doc/posix-functions/vswprintf.texi: Likewise.
88350         * doc/posix-functions/wcrtomb.texi: Likewise.
88351         * doc/posix-functions/wcscat.texi: Likewise.
88352         * doc/posix-functions/wcschr.texi: Likewise.
88353         * doc/posix-functions/wcscmp.texi: Likewise.
88354         * doc/posix-functions/wcscoll.texi: Likewise.
88355         * doc/posix-functions/wcscpy.texi: Likewise.
88356         * doc/posix-functions/wcscspn.texi: Likewise.
88357         * doc/posix-functions/wcsftime.texi: Likewise.
88358         * doc/posix-functions/wcslen.texi: Likewise.
88359         * doc/posix-functions/wcsncat.texi: Likewise.
88360         * doc/posix-functions/wcsncmp.texi: Likewise.
88361         * doc/posix-functions/wcsncpy.texi: Likewise.
88362         * doc/posix-functions/wcspbrk.texi: Likewise.
88363         * doc/posix-functions/wcsrchr.texi: Likewise.
88364         * doc/posix-functions/wcsrtombs.texi: Likewise.
88365         * doc/posix-functions/wcsspn.texi: Likewise.
88366         * doc/posix-functions/wcsstr.texi: Likewise.
88367         * doc/posix-functions/wcstod.texi: Likewise.
88368         * doc/posix-functions/wcstof.texi: Likewise.
88369         * doc/posix-functions/wcstoimax.texi: Likewise.
88370         * doc/posix-functions/wcstok.texi: Likewise.
88371         * doc/posix-functions/wcstold.texi: Likewise.
88372         * doc/posix-functions/wcstoll.texi: Likewise.
88373         * doc/posix-functions/wcstol.texi: Likewise.
88374         * doc/posix-functions/wcstombs.texi: Likewise.
88375         * doc/posix-functions/wcstoull.texi: Likewise.
88376         * doc/posix-functions/wcstoul.texi: Likewise.
88377         * doc/posix-functions/wcstoumax.texi: Likewise.
88378         * doc/posix-functions/wcswidth.texi: Likewise.
88379         * doc/posix-functions/wcsxfrm.texi: Likewise.
88380         * doc/posix-functions/wctob.texi: Likewise.
88381         * doc/posix-functions/wctomb.texi: Likewise.
88382         * doc/posix-functions/wctrans.texi: Likewise.
88383         * doc/posix-functions/wctype.texi: Likewise.
88384         * doc/posix-functions/wcwidth.texi: Likewise.
88385         * doc/posix-functions/wmemchr.texi: Likewise.
88386         * doc/posix-functions/wmemcmp.texi: Likewise.
88387         * doc/posix-functions/wmemcpy.texi: Likewise.
88388         * doc/posix-functions/wmemmove.texi: Likewise.
88389         * doc/posix-functions/wmemset.texi: Likewise.
88390         * doc/posix-functions/wprintf.texi: Likewise.
88391         * doc/posix-functions/wscanf.texi: Likewise.
88393 2008-12-21  Bruno Haible  <bruno@clisp.org>
88395         Update doc for HP-UX 11.11.
88396         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88397         in HP-UX version 11.00, not in all versions of HP-UX 11.
88398         * doc/posix-functions/fwide.texi: Likewise.
88399         * doc/posix-functions/fwprintf.texi: Likewise.
88400         * doc/posix-functions/fwscanf.texi: Likewise.
88401         * doc/posix-functions/inet_ntop.texi: Likewise.
88402         * doc/posix-functions/inet_pton.texi: Likewise.
88403         * doc/posix-functions/mbrlen.texi: Likewise.
88404         * doc/posix-functions/mbrtowc.texi: Likewise.
88405         * doc/posix-functions/mbsinit.texi: Likewise.
88406         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88407         * doc/posix-functions/swprintf.texi: Likewise.
88408         * doc/posix-functions/swscanf.texi: Likewise.
88409         * doc/posix-functions/towctrans.texi: Likewise.
88410         * doc/posix-functions/vfwprintf.texi: Likewise.
88411         * doc/posix-functions/vswprintf.texi: Likewise.
88412         * doc/posix-functions/vwprintf.texi: Likewise.
88413         * doc/posix-functions/wcrtomb.texi: Likewise.
88414         * doc/posix-functions/wcsrtombs.texi: Likewise.
88415         * doc/posix-functions/wcsstr.texi: Likewise.
88416         * doc/posix-functions/wctob.texi: Likewise.
88417         * doc/posix-functions/wctrans.texi: Likewise.
88418         * doc/posix-functions/wmemchr.texi: Likewise.
88419         * doc/posix-functions/wmemcmp.texi: Likewise.
88420         * doc/posix-functions/wmemcpy.texi: Likewise.
88421         * doc/posix-functions/wmemmove.texi: Likewise.
88422         * doc/posix-functions/wmemset.texi: Likewise.
88423         * doc/posix-functions/wprintf.texi: Likewise.
88424         * doc/posix-functions/wscanf.texi: Likewise.
88426 2008-12-21  Bruno Haible  <bruno@clisp.org>
88428         Work around a portability problem.
88429         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88430         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88432 2008-12-20  Bruno Haible  <bruno@clisp.org>
88434         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88435         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88436         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88437         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88438         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88440         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88441         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88442         set.
88443         (GNULIB_defined_mbstate_t): New macro.
88444         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88445         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88446         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88447         reuses the system's mbrtowc function but works around the bugs.
88448         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88449         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88450         macros.
88451         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88452         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88453         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88454         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88455         REPLACE_MBSINIT if mbsinit needs to be overridden.
88456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88457         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88458         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88459         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88460         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88461         m4/locale-zh.m4.
88462         (Depends): Add mbsinit.
88463         * modules/mbsinit (Depends): Add mbrtowc.
88464         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88466 2008-12-20  Bruno Haible  <bruno@clisp.org>
88468         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88469         so that there are no conversion errors on AIX.
88470         * tests/test-mbsrtowcs.c (main): LIkewise.
88472 2008-12-20  Bruno Haible  <bruno@clisp.org>
88474         Work around wctob bug on Solaris <= 9.
88475         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88476         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88478         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88479         * modules/wctob (Files): Add m4/locale-fr.m4.
88480         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88482 2008-12-20  Bruno Haible  <bruno@clisp.org>
88484         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88485         /dev/null.
88486         * tests/test-select-in.sh: Likewise.
88487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88489 2008-12-20  Bruno Haible  <bruno@clisp.org>
88491         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88492         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88493         Cygwin 1.5.x.
88495 2008-12-20  Bruno Haible  <bruno@clisp.org>
88497         Ensure mbstate_t is defined on HP-UX 11.11.
88498         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88499         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88500         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88501         AC_USE_SYSTEM_EXTENSIONS.
88502         * modules/fnmatch (Depends-on): Add extensions.
88503         * modules/mbrlen (Depends-on): Likewise.
88504         * modules/mbrtowc (Depends-on): Likewise.
88505         * modules/mbsinit (Depends-on): Likewise.
88506         * modules/mbsrtowcs (Depends-on): Likewise.
88507         * modules/mbswidth (Depends-on): Likewise.
88508         * modules/quotearg (Depends-on): Likewise.
88509         * modules/strftime (Depends-on): Likewise.
88511 2008-12-20  Bruno Haible  <bruno@clisp.org>
88513         Ensure wctob is declared on IRIX 6.5.
88514         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88515         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88516         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88518         of HAVE_WCTOB.
88519         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88520         HAVE_WCTOB.
88521         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88523 2008-12-19  Bruno Haible  <bruno@clisp.org>
88525         * modules/mbsrtowcs-tests: New file.
88526         * tests/test-mbsrtowcs1.sh: New file.
88527         * tests/test-mbsrtowcs2.sh: New file.
88528         * tests/test-mbsrtowcs3.sh: New file.
88529         * tests/test-mbsrtowcs4.sh: New file.
88530         * tests/test-mbsrtowcs.c: New file.
88532         New module 'mbsrtowcs'.
88533         * lib/wchar.in.h (mbsrtowcs): New declaration.
88534         * lib/mbsrtowcs.c: New file.
88535         * m4/mbsrtowcs.m4: New file.
88536         * modules/mbsrtowcs: New file.
88537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88538         HAVE_MBSRTOWCS.
88539         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88540         HAVE_MBSRTOWCS.
88541         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88543 2008-12-19  Bruno Haible  <bruno@clisp.org>
88545         New module 'mbrlen'.
88546         * lib/wchar.in.h (mbrlen): New declaration.
88547         * lib/mbrlen.c: New file.
88548         * m4/mbrlen.m4: New file.
88549         * modules/mbrlen: New file.
88550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88551         HAVE_MBRLEN.
88552         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88553         HAVE_MBRLEN.
88554         * doc/posix-functions/mbrlen.texi: Document the new module.
88556 2008-12-19  Bruno Haible  <bruno@clisp.org>
88558         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88559         * modules/mbrtowc (Depends-on): Add verify.
88560         Suggested by Paul Eggert.
88562 2008-12-18  Bruno Haible  <bruno@clisp.org>
88564         * modules/mbsinit-tests: New file.
88565         * tests/test-mbsinit.sh: New file.
88566         * tests/test-mbsinit.c: New file.
88568 2008-12-18  Bruno Haible  <bruno@clisp.org>
88570         * modules/mbrtowc-tests: New file.
88571         * tests/test-mbrtowc1.sh: New file.
88572         * tests/test-mbrtowc2.sh: New file.
88573         * tests/test-mbrtowc3.sh: New file.
88574         * tests/test-mbrtowc4.sh: New file.
88575         * tests/test-mbrtowc.c: New file.
88577         New module 'mbrtowc'.
88578         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88579         mbsinit and mbrtowc.
88580         (mbrtowc): New declaration.
88581         * lib/mbrtowc.c: New file.
88582         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88583         * modules/mbrtowc: New file.
88584         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88585         HAVE_MBRTOWC.
88586         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88587         HAVE_MBRTOWC.
88588         * doc/posix-functions/mbrtowc.texi: Document the new module.
88590 2008-12-18  Bruno Haible  <bruno@clisp.org>
88592         New module 'wctob'.
88593         * lib/wchar.in.h (wctob): New declaration.
88594         * lib/wctob.c: New file.
88595         * m4/wctob.m4: New file.
88596         * modules/wctob: New file.
88597         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88598         HAVE_WCTOB.
88599         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88600         * doc/posix-functions/wctob.texi: Document the new module.
88602 2008-12-18  Bruno Haible  <bruno@clisp.org>
88604         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88605         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88607 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88609         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88610         G. Christensen" <tgc@jupiterrise.com>.
88612         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88613         G. Christensen" <tgc@jupiterrise.com>.
88615         * lib/flock.c: Need to include string.h.  Reported by "Tom
88616         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88617         <ebb9@byu.net>.
88619 2008-12-18  Bruno Haible  <bruno@clisp.org>
88621         * m4/locale-ja.m4: New file, from GNU gettext.
88623 2008-12-17  Bruno Haible  <bruno@clisp.org>
88625         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88626         Suggested by Eric Blake.
88628 2008-12-17  Bruno Haible  <bruno@clisp.org>
88630         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88632 2008-12-17  Bruno Haible  <bruno@clisp.org>
88634         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88635         * modules/mbsinit (Depends-on): Add verify.
88636         Suggested by Paul Eggert.
88638 2008-12-17  Bruno Haible  <bruno@clisp.org>
88640         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88641         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88642         gl_FUNC_MBRTOWC.
88643         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88644         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88645         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88646         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88647         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88648         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88649         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88650         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88651         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88652         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88653         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88654         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88655         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88656         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88657         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88658         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88659         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88660         * modules/trim (configure.ac): Likewise.
88662 2008-12-17  Bruno Haible  <bruno@clisp.org>
88664         * modules/btowc-tests: New file.
88665         * tests/test-btowc1.sh: New file.
88666         * tests/test-btowc2.sh: New file.
88667         * tests/test-btowc.c: New file.
88669         New module 'btowc'.
88670         * lib/wchar.in.h (btowc): New declaration.
88671         * lib/btowc.c: New file.
88672         * m4/btowc.m4: New file.
88673         * modules/btowc: New file.
88674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88675         HAVE_BTOWC.
88676         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88677         * doc/posix-functions/btowc.texi: Document the new module.
88679 2008-12-17  Bruno Haible  <bruno@clisp.org>
88681         New module 'mbsinit'.
88682         * lib/wchar.in.h (mbsinit): New declaration.
88683         * lib/mbsinit.c: New file.
88684         * m4/mbsinit.m4: New file.
88685         * modules/mbsinit: New file.
88686         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88687         HAVE_MBSINIT.
88688         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88689         HAVE_MBSINIT.
88690         * doc/posix-functions/mbsinit.texi: Document the new module.
88692 2008-12-16  Bruno Haible  <bruno@clisp.org>
88694         * lib/unistd.in.h: Add comment.
88695         * tests/test-environ.c: Don't include <stdlib.h>.
88697 2008-12-16  Bruno Haible  <bruno@clisp.org>
88699         * lib/parse-duration.h (parse_duration): Document return value
88700         convention.
88701         * lib/parse-duration.c: Include specification header first. Add
88702         comments.
88703         (_): Remove macro.
88704         (parse_year_month_day, parse_hour_minute_second): Move side effects
88705         outside of strchr call.
88706         (parse_non_iso8601): Move side effects outside of isspace call.
88707         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88708         call.
88710 2008-12-16  Bruno Haible  <bruno@clisp.org>
88712         * tests/test-parse-duration.sh: Produce no output when the test
88713         succeeds.
88715 2008-12-16  Bruno Haible  <bruno@clisp.org>
88717         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88718         expressions.
88720 2008-12-15  Bruno Haible  <bruno@clisp.org>
88722         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88723         * doc/glibc-functions/flistxattr.texi: Likewise.
88724         * doc/glibc-functions/fopencookie.texi: Likewise.
88725         * doc/glibc-functions/fremovexattr.texi: Likewise.
88726         * doc/glibc-functions/fsetxattr.texi: Likewise.
88727         * doc/glibc-functions/getxattr.texi: Likewise.
88728         * doc/glibc-functions/lgetxattr.texi: Likewise.
88729         * doc/glibc-functions/listxattr.texi: Likewise.
88730         * doc/glibc-functions/llistxattr.texi: Likewise.
88731         * doc/glibc-functions/lremovexattr.texi: Likewise.
88732         * doc/glibc-functions/lsetxattr.texi: Likewise.
88733         * doc/glibc-functions/removexattr.texi: Likewise.
88734         * doc/glibc-functions/setxattr.texi: Likewise.
88735         * doc/posix-functions/open_memstream.texi: Likewise.
88737 2008-12-15  Eric Blake  <ebb9@byu.net>
88739         Update doc for cygwin 1.7.
88740         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88741         functions.
88742         * doc/posix-functions/fchmodat.texi: Likewise.
88743         * doc/posix-functions/fchownat.texi: Likewise.
88744         * doc/posix-functions/fdopendir.texi: Likewise.
88745         * doc/posix-functions/fmemopen.texi: Likewise.
88746         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88747         * doc/posix-functions/fstatat.texi: Likewise.
88748         * doc/posix-functions/futimens.texi: Likewise.
88749         * doc/posix-functions/gai_strerror.texi: Likewise.
88750         * doc/posix-functions/getaddrinfo.texi: Likewise.
88751         * doc/posix-functions/getnameinfo.texi: Likewise.
88752         * doc/posix-functions/if_freenameindex.texi: Likewise.
88753         * doc/posix-functions/if_indextoname.texi: Likewise.
88754         * doc/posix-functions/if_nameindex.texi: Likewise.
88755         * doc/posix-functions/if_nametoindex.texi: Likewise.
88756         * doc/posix-functions/insque.texi: Likewise.
88757         * doc/posix-functions/linkat.texi: Likewise.
88758         * doc/posix-functions/llrint.texi: Likewise.
88759         * doc/posix-functions/llrintf.texi: Likewise.
88760         * doc/posix-functions/llrintl.texi: Likewise.
88761         * doc/posix-functions/lockf.texi: Likewise.
88762         * doc/posix-functions/lrintl.texi: Likewise.
88763         * doc/posix-functions/mkdirat.texi: Likewise.
88764         * doc/posix-functions/mkfifoat.texi: Likewise.
88765         * doc/posix-functions/mknodat.texi: Likewise.
88766         * doc/posix-functions/mq_close.texi: Likewise.
88767         * doc/posix-functions/mq_getattr.texi: Likewise.
88768         * doc/posix-functions/mq_notify.texi: Likewise.
88769         * doc/posix-functions/mq_open.texi: Likewise.
88770         * doc/posix-functions/mq_receive.texi: Likewise.
88771         * doc/posix-functions/mq_send.texi: Likewise.
88772         * doc/posix-functions/mq_setattr.texi: Likewise.
88773         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88774         * doc/posix-functions/mq_timedsend.texi: Likewise.
88775         * doc/posix-functions/mq_unlink.texi: Likewise.
88776         * doc/posix-functions/open_memstream.texi: Likewise.
88777         * doc/posix-functions/openat.texi: Likewise.
88778         * doc/posix-functions/posix_fadvise.texi: Likewise.
88779         * doc/posix-functions/posix_fallocate.texi: Likewise.
88780         * doc/posix-functions/posix_madvise.texi: Likewise.
88781         * doc/posix-functions/posix_memalign.texi: Likewise.
88782         * doc/posix-functions/posix_openpt.texi: Likewise.
88783         * doc/posix-functions/readlinkat.texi: Likewise.
88784         * doc/posix-functions/remque.texi: Likewise.
88785         * doc/posix-functions/renameat.texi: Likewise.
88786         * doc/posix-functions/rintl.texi: Likewise.
88787         * doc/posix-functions/sem_unlink.texi: Likewise.
88788         * doc/posix-functions/shm_open.texi: Likewise.
88789         * doc/posix-functions/shm_unlink.texi: Likewise.
88790         * doc/posix-functions/signgam.texi: Likewise.
88791         * doc/posix-functions/sigset.texi: Likewise.
88792         * doc/posix-functions/stpcpy.texi: Likewise.
88793         * doc/posix-functions/stpncpy.texi: Likewise.
88794         * doc/posix-functions/strerror.texi: Likewise.
88795         * doc/posix-functions/strtod.texi: Likewise.
88796         * doc/posix-functions/symlinkat.texi: Likewise.
88797         * doc/posix-functions/unlinkat.texi: Likewise.
88798         * doc/posix-functions/utimensat.texi: Likewise.
88799         * doc/glibc-functions/bindresvport.texi: Likewise.
88800         * doc/glibc-functions/dn_expand.texi: Likewise.
88801         * doc/glibc-functions/exp10.texi: Likewise.
88802         * doc/glibc-functions/exp10f.texi: Likewise.
88803         * doc/glibc-functions/fgetxattr.texi: Likewise.
88804         * doc/glibc-functions/flistxattr.texi: Likewise.
88805         * doc/glibc-functions/fopencookie.texi: Likewise.
88806         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88807         * doc/glibc-functions/fremovexattr.texi: Likewise.
88808         * doc/glibc-functions/fsetxattr.texi: Likewise.
88809         * doc/glibc-functions/getifaddrs.texi: Likewise.
88810         * doc/glibc-functions/getxattr.texi: Likewise.
88811         * doc/glibc-functions/lgetxattr.texi: Likewise.
88812         * doc/glibc-functions/listxattr.texi: Likewise.
88813         * doc/glibc-functions/llistxattr.texi: Likewise.
88814         * doc/glibc-functions/lremovexattr.texi: Likewise.
88815         * doc/glibc-functions/lsetxattr.texi: Likewise.
88816         * doc/glibc-functions/pow10.texi: Likewise.
88817         * doc/glibc-functions/pow10f.texi: Likewise.
88818         * doc/glibc-functions/rcmd_af.texi: Likewise.
88819         * doc/glibc-functions/removexattr.texi: Likewise.
88820         * doc/glibc-functions/res_init.texi: Likewise.
88821         * doc/glibc-functions/res_mkquery.texi: Likewise.
88822         * doc/glibc-functions/res_query.texi: Likewise.
88823         * doc/glibc-functions/res_querydomain.texi: Likewise.
88824         * doc/glibc-functions/res_send.texi: Likewise.
88825         * doc/glibc-functions/rresvport_af.texi: Likewise.
88826         * doc/glibc-functions/setxattr.texi: Likewise.
88827         * doc/glibc-functions/strcasestr.texi: Likewise.
88829 2008-12-15  Bruno Haible  <bruno@clisp.org>
88831         Fix compilation error on OSF/1 4.0.
88832         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88833         <sys/time.h>, simply delegate to the system header.
88834         Reported by Daniel Richard G. <oss@teragram.com>.
88836 2008-12-15  Bruno Haible  <bruno@clisp.org>
88838         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88839         * doc/posix-functions/fchmodat.texi: Likewise.
88840         * doc/posix-functions/fchownat.texi: Likewise.
88841         * doc/posix-functions/fdopendir.texi: Likewise.
88842         * doc/posix-functions/fstatat.texi: Likewise.
88843         * doc/posix-functions/mkdirat.texi: Likewise.
88844         * doc/posix-functions/unlinkat.texi: Likewise.
88846 2008-12-14  Bruno Haible  <bruno@clisp.org>
88848         Update doc for POSIX:2008.
88849         * doc/posix-functions/faccessat.texi: New file.
88850         * doc/posix-functions/fchmodat.texi: New file.
88851         * doc/posix-functions/fchownat.texi: New file.
88852         * doc/posix-functions/fdopendir.texi: New file.
88853         * doc/posix-functions/fstatat.texi: New file.
88854         * doc/posix-functions/futimens.texi: New file.
88855         * doc/posix-functions/linkat.texi: New file.
88856         * doc/posix-functions/mkdirat.texi: New file.
88857         * doc/posix-functions/mkfifoat.texi: New file.
88858         * doc/posix-functions/mknodat.texi: New file.
88859         * doc/posix-functions/open_wmemstream.texi: New file.
88860         * doc/posix-functions/openat.texi: New file.
88861         * doc/posix-functions/psiginfo.texi: New file.
88862         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88863         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88864         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88865         * doc/posix-functions/readlinkat.texi: New file.
88866         * doc/posix-functions/renameat.texi: New file.
88867         * doc/posix-functions/strerror_l.texi: New file.
88868         * doc/posix-functions/symlinkat.texi: New file.
88869         * doc/posix-functions/unlinkat.texi: New file.
88870         * doc/posix-functions/utimensat.texi: New file.
88871         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88873 2008-12-14  Bruno Haible  <bruno@clisp.org>
88875         Update doc for POSIX:2008.
88876         * doc/posix-functions/alphasort.texi: Renamed from
88877         doc/glibc-functions/alphasort.texi.
88878         * doc/posix-functions/dirfd.texi: Renamed from
88879         doc/glibc-functions/dirfd.texi.
88880         * doc/posix-functions/dprintf.texi: Renamed from
88881         doc/glibc-functions/dprintf.texi.
88882         * doc/posix-functions/duplocale.texi: Renamed from
88883         doc/glibc-functions/duplocale.texi.
88884         * doc/posix-functions/fexecve.texi: Renamed from
88885         doc/glibc-functions/fexecve.texi.
88886         * doc/posix-functions/fmemopen.texi: Renamed from
88887         doc/glibc-functions/fmemopen.texi.
88888         * doc/posix-functions/freelocale.texi: Renamed from
88889         doc/glibc-functions/freelocale.texi.
88890         * doc/posix-functions/getdate_err.texi: Renamed from
88891         doc/glibc-functions/getdate_err.texi.
88892         * doc/posix-functions/isalnum_l.texi: Renamed from
88893         doc/glibc-functions/isalnum_l.texi.
88894         * doc/posix-functions/isalpha_l.texi: Renamed from
88895         doc/glibc-functions/isalpha_l.texi.
88896         * doc/posix-functions/isblank_l.texi: Renamed from
88897         doc/glibc-functions/isblank_l.texi.
88898         * doc/posix-functions/iscntrl_l.texi: Renamed from
88899         doc/glibc-functions/iscntrl_l.texi.
88900         * doc/posix-functions/isdigit_l.texi: Renamed from
88901         doc/glibc-functions/isdigit_l.texi.
88902         * doc/posix-functions/isgraph_l.texi: Renamed from
88903         doc/glibc-functions/isgraph_l.texi.
88904         * doc/posix-functions/islower_l.texi: Renamed from
88905         doc/glibc-functions/islower_l.texi.
88906         * doc/posix-functions/isprint_l.texi: Renamed from
88907         doc/glibc-functions/isprint_l.texi.
88908         * doc/posix-functions/ispunct_l.texi: Renamed from
88909         doc/glibc-functions/ispunct_l.texi.
88910         * doc/posix-functions/isspace_l.texi: Renamed from
88911         doc/glibc-functions/isspace_l.texi.
88912         * doc/posix-functions/isupper_l.texi: Renamed from
88913         doc/glibc-functions/isupper_l.texi.
88914         * doc/posix-functions/iswalnum_l.texi: Renamed from
88915         doc/glibc-functions/iswalnum_l.texi.
88916         * doc/posix-functions/iswalpha_l.texi: Renamed from
88917         doc/glibc-functions/iswalpha_l.texi.
88918         * doc/posix-functions/iswblank_l.texi: Renamed from
88919         doc/glibc-functions/iswblank_l.texi.
88920         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88921         doc/glibc-functions/iswcntrl_l.texi.
88922         * doc/posix-functions/iswctype_l.texi: Renamed from
88923         doc/glibc-functions/iswctype_l.texi.
88924         * doc/posix-functions/iswdigit_l.texi: Renamed from
88925         doc/glibc-functions/iswdigit_l.texi.
88926         * doc/posix-functions/iswgraph_l.texi: Renamed from
88927         doc/glibc-functions/iswgraph_l.texi.
88928         * doc/posix-functions/iswlower_l.texi: Renamed from
88929         doc/glibc-functions/iswlower_l.texi.
88930         * doc/posix-functions/iswprint_l.texi: Renamed from
88931         doc/glibc-functions/iswprint_l.texi.
88932         * doc/posix-functions/iswpunct_l.texi: Renamed from
88933         doc/glibc-functions/iswpunct_l.texi.
88934         * doc/posix-functions/iswspace_l.texi: Renamed from
88935         doc/glibc-functions/iswspace_l.texi.
88936         * doc/posix-functions/iswupper_l.texi: Renamed from
88937         doc/glibc-functions/iswupper_l.texi.
88938         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88939         doc/glibc-functions/iswxdigit_l.texi.
88940         * doc/posix-functions/isxdigit_l.texi: Renamed from
88941         doc/glibc-functions/isxdigit_l.texi.
88942         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88943         doc/glibc-functions/mbsnrtowcs.texi.
88944         * doc/posix-functions/mkdtemp.texi: Renamed from
88945         doc/glibc-functions/mkdtemp.texi.
88946         * doc/posix-functions/newlocale.texi: Renamed from
88947         doc/glibc-functions/newlocale.texi.
88948         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88949         doc/glibc-functions/nl_langinfo_l.texi.
88950         * doc/posix-functions/open_memstream.texi: Renamed from
88951         doc/glibc-functions/open_memstream.texi.
88952         * doc/posix-functions/opterr.texi: Renamed from
88953         doc/glibc-functions/opterr.texi.
88954         * doc/posix-functions/optind.texi: Renamed from
88955         doc/glibc-functions/optind.texi.
88956         * doc/posix-functions/optopt.texi: Renamed from
88957         doc/glibc-functions/optopt.texi.
88958         * doc/posix-functions/psignal.texi: Renamed from
88959         doc/glibc-functions/psignal.texi.
88960         * doc/posix-functions/scandir.texi: Renamed from
88961         doc/glibc-functions/scandir.texi.
88962         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88963         doc/glibc-functions/sched_get_priority_min.texi.
88964         * doc/posix-functions/signgam.texi: Renamed from
88965         doc/glibc-functions/signgam.texi.
88966         * doc/posix-functions/stpcpy.texi: Renamed from
88967         doc/glibc-functions/stpcpy.texi.
88968         * doc/posix-functions/stpncpy.texi: Renamed from
88969         doc/glibc-functions/stpncpy.texi.
88970         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88971         doc/glibc-functions/strcasecmp_l.texi.
88972         * doc/posix-functions/strcoll_l.texi: Renamed from
88973         doc/glibc-functions/strcoll_l.texi.
88974         * doc/posix-functions/strfmon_l.texi: Renamed from
88975         doc/glibc-functions/strfmon_l.texi.
88976         * doc/posix-functions/strftime_l.texi: Renamed from
88977         doc/glibc-functions/strftime_l.texi.
88978         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88979         doc/glibc-functions/strncasecmp_l.texi.
88980         * doc/posix-functions/strndup.texi: Renamed from
88981         doc/glibc-functions/strndup.texi.
88982         * doc/posix-functions/strnlen.texi: Renamed from
88983         doc/glibc-functions/strnlen.texi.
88984         * doc/posix-functions/strsignal.texi: Renamed from
88985         doc/glibc-functions/strsignal.texi.
88986         * doc/posix-functions/strxfrm_l.texi: Renamed from
88987         doc/glibc-functions/strxfrm_l.texi.
88988         * doc/posix-functions/timer_gettime.texi: Renamed from
88989         doc/glibc-functions/timer_gettime.texi.
88990         * doc/posix-functions/tolower_l.texi: Renamed from
88991         doc/glibc-functions/tolower_l.texi.
88992         * doc/posix-functions/toupper_l.texi: Renamed from
88993         doc/glibc-functions/toupper_l.texi.
88994         * doc/posix-functions/towctrans_l.texi: Renamed from
88995         doc/glibc-functions/towctrans_l.texi.
88996         * doc/posix-functions/towlower_l.texi: Renamed from
88997         doc/glibc-functions/towlower_l.texi.
88998         * doc/posix-functions/towupper_l.texi: Renamed from
88999         doc/glibc-functions/towupper_l.texi.
89000         * doc/posix-functions/uselocale.texi: Renamed from
89001         doc/glibc-functions/uselocale.texi.
89002         * doc/posix-functions/vdprintf.texi: Renamed from
89003         doc/glibc-functions/vdprintf.texi.
89004         * doc/posix-functions/wcpcpy.texi:
89005         Renamed from doc/glibc-functions/wcpcpy.texi.
89006         * doc/posix-functions/wcpncpy.texi: Renamed from
89007         doc/glibc-functions/wcpncpy.texi.
89008         * doc/posix-functions/wcscasecmp.texi: Renamed from
89009         doc/glibc-functions/wcscasecmp.texi.
89010         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89011         doc/glibc-functions/wcscasecmp_l.texi.
89012         * doc/posix-functions/wcscoll_l.texi: Renamed from
89013         doc/glibc-functions/wcscoll_l.texi.
89014         * doc/posix-functions/wcsdup.texi: Renamed from
89015         doc/glibc-functions/wcsdup.texi.
89016         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89017         doc/glibc-functions/wcsncasecmp.texi.
89018         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89019         doc/glibc-functions/wcsncasecmp_l.texi.
89020         * doc/posix-functions/wcsnlen.texi: Renamed from
89021         doc/glibc-functions/wcsnlen.texi.
89022         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89023         doc/glibc-functions/wcsnrtombs.texi.
89024         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89025         doc/glibc-functions/wcsxfrm_l.texi.
89026         * doc/posix-functions/wctrans_l.texi: Renamed from
89027         doc/glibc-functions/wctrans_l.texi.
89028         * doc/posix-functions/wctype_l.texi: Renamed from
89029         doc/glibc-functions/wctype_l.texi.
89030         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89031         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89032         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89033         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89034         these subsections.
89035         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89036         Remove sections.
89038 2008-12-14  Bruno Haible  <bruno@clisp.org>
89040         Update doc for POSIX:2008.
89041         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89043 2008-12-14  Bruno Haible  <bruno@clisp.org>
89045         Update doc for POSIX:2008.
89046         * doc/pastposix-functions/bcmp.texi: Renamed from
89047         doc/posix-functions/bcmp.texi.
89048         * doc/pastposix-functions/bcopy.texi: Renamed from
89049         doc/posix-functions/bcopy.texi.
89050         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89051         doc/posix-functions/bsd_signal.texi.
89052         * doc/pastposix-functions/bzero.texi: Renamed from
89053         doc/posix-functions/bzero.texi.
89054         * doc/pastposix-functions/ecvt.texi: Renamed from
89055         doc/posix-functions/ecvt.texi.
89056         * doc/pastposix-functions/fcvt.texi: Renamed from
89057         doc/posix-functions/fcvt.texi.
89058         * doc/pastposix-functions/ftime.texi: Renamed from
89059         doc/posix-functions/ftime.texi.
89060         * doc/pastposix-functions/gcvt.texi: Renamed from
89061         doc/posix-functions/gcvt.texi.
89062         * doc/pastposix-functions/getcontext.texi: Renamed from
89063         doc/posix-functions/getcontext.texi.
89064         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89065         doc/posix-functions/gethostbyaddr.texi.
89066         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89067         doc/posix-functions/gethostbyname.texi.
89068         * doc/pastposix-functions/getwd.texi: Renamed from
89069         doc/posix-functions/getwd.texi.
89070         * doc/pastposix-functions/h_errno.texi: Renamed from
89071         doc/posix-functions/h_errno.texi.
89072         * doc/pastposix-functions/index.texi: Renamed from
89073         doc/posix-functions/index.texi.
89074         * doc/pastposix-functions/makecontext.texi: Renamed from
89075         doc/posix-functions/makecontext.texi.
89076         * doc/pastposix-functions/mktemp.texi: Renamed from
89077         doc/posix-functions/mktemp.texi.
89078         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89079         doc/posix-functions/pthread_attr_getstackaddr.texi.
89080         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89081         doc/posix-functions/pthread_attr_setstackaddr.texi.
89082         * doc/pastposix-functions/rindex.texi: Renamed from
89083         doc/posix-functions/rindex.texi.
89084         * doc/pastposix-functions/scalb.texi: Renamed from
89085         doc/posix-functions/scalb.texi.
89086         * doc/pastposix-functions/setcontext.texi: Renamed from
89087         doc/posix-functions/setcontext.texi.
89088         * doc/pastposix-functions/swapcontext.texi: Renamed from
89089         doc/posix-functions/swapcontext.texi.
89090         * doc/pastposix-functions/ualarm.texi: Renamed from
89091         doc/posix-functions/ualarm.texi.
89092         * doc/pastposix-functions/usleep.texi: Renamed from
89093         doc/posix-functions/usleep.texi.
89094         * doc/pastposix-functions/vfork.texi: Renamed from
89095         doc/posix-functions/vfork.texi.
89096         * doc/pastposix-functions/wcswcs.texi: Renamed from
89097         doc/posix-functions/wcswcs.texi.
89098         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89099         (Function Substitutes): Update.
89101 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89103         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89104         m4/strerror.m4.
89106 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89107             Bruno Haible  <bruno@clisp.org>
89109         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89111 2008-12-13  Bruno Haible  <bruno@clisp.org>
89113         * modules/strtoull (Depends-on): Remove unistd.
89115 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89117         * modules/strtoull (Depends-on): Add stdlib.
89119 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89121         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89123 2008-12-10  Jim Meyering  <meyering@redhat.com>
89125         gl_ASSERT: don't say assertions are disabled when they're not
89126         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89127         "checking whether to enable assertions... no", when they are in
89128         fact enabled.  This is solely a bug in the output of configure.
89129         In spite of saying "no", NDEBUG was not defined in that case.
89130         Also, as noted by Eric Blake, leave assertions enabled upon
89131         --enable-assert=INVALID.
89133 2008-12-10  Bruno Haible  <bruno@clisp.org>
89135         Change MODULES.html to refer to POSIX:2008 where possible.
89136         * MODULES.html.sh (POSIX2008_URL): New variable.
89137         (posix_headers): Remove sys/timeb, ucontext.
89138         (posix2001_headers): New variable.
89139         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89140         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89141         index, makecontext, mktemp, pthread_attr_getstackaddr,
89142         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89143         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89144         (posix2001_functions): New variable.
89145         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89146         otherwise.
89148 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89150         add missing include to parse-duration.c
89151         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89152         * modules/parse-duration (Depends-on): Add xalloc.
89154         fix sed script reading maint.mk
89155         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89156         (syntax-check-rules): Use it.
89158 2008-12-09  Bruno Haible  <bruno@clisp.org>
89160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89161         MacOS X 10.4/PowerPC.
89162         Reported by Simon Josefsson.
89164 2008-12-08  Jim Meyering  <meyering@redhat.com>
89166         work around mingw's lack of some S_IF definitions
89167         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89168         Reported by Simon Josefsson.
89170 2008-12-08  Bruno Haible  <bruno@clisp.org>
89172         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89173         applied to variables. Needed on MacOS X 10.4/PowerPC.
89174         Reported by Simon Josefsson.
89176 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89177         and Eric Blake  <ebb9@byu.net>
89179         assert: honor --enable-assert
89180         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89181         order to honor --enable-assert, rather than treating it as a
89182         synonym for --disable-assert.
89184 2008-12-08  Jim Meyering  <meyering@redhat.com>
89186         * lib/posixtm.c: Remove now-useless declaration of mktime.
89188         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89190 2008-12-07  Bruno Haible  <bruno@clisp.org>
89192         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89193         test_once): Mark functions as static.
89194         * tests/test-tls.c (test_tls): Likewise.
89196 2008-12-07  Bruno Haible  <bruno@clisp.org>
89198         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89199         iconv_register_autodetect.
89201 2008-12-07  Jim Meyering  <meyering@redhat.com>
89203         posixtm.c: avoid a warning
89204         * lib/posixtm.c (posixtime): Don't initialize tm0.
89205         It's no longer needed to placate gcc4's -Wuninitialized,
89206         and the attempt to placate would elicit a new warning.
89208         unicodeio.c: mark unused parameters
89209         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89210         (fallback_failure_callback): Likewise.
89212 2008-12-07  Bruno Haible  <bruno@clisp.org>
89214         * gnulib-tool (func_create_testdir): When building the tests
89215         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89216         Reported by Simon Josefsson.
89218 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89220         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89222 2008-12-06  Bruno Haible  <bruno@clisp.org>
89224         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89225         Suggested by Eric Blake.
89227 2008-12-06  Bruno Haible  <bruno@clisp.org>
89229         Fix a c-stack test failure on MacOS X.
89230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89231         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89232         handler for SIGBUS as well.
89233         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89234         install a signal handler for SIGBUS as well.
89235         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89237 2008-12-06  Bruno Haible  <bruno@clisp.org>
89239         Advocacy documentation.
89240         * doc/gnulib-intro.texi (Benefits): New section.
89241         * doc/gnulib.texi: Update.
89243 2008-12-06  Bruno Haible  <bruno@clisp.org>
89245         Document the 'manywarnings' module.
89246         * doc/manywarnings.texi: New file.
89247         * doc/gnulib.texi: Include it.
89249 2008-12-05  Eric Blake  <ebb9@byu.net>
89251         tests: silence some gcc warnings
89252         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89253         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89254         type mismatches.
89256 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89257             Bruno Haible  <bruno@clisp.org>
89259         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89261 2008-11-29  Jim Meyering  <meyering@redhat.com>
89263         unicodeio.c: mark unused parameters
89264         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89265         (fallback_failure_callback): Likewise.
89267         fts: fix a thinko
89268         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89269         (set_stat_type): Return S_IF*-valued "type" directly.
89270         Prompted by James Youngman's spotting a related bug.
89271         Confirmed by further testing through find.
89273         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89274         * lib/fts.c (D_TYPE): Define.
89275         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89276         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89277         (s_ifmt_shift_bits): New function.
89278         (set_stat_type): New function.
89279         (fts_build): When not calling fts_stat, call set_stat_type
89280         to propagate dirent.d_type info to fts_read caller.
89281         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89282         fts_statp->st_mode type information may be valid.
89284 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89286         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89287         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89288         <sds@gnu.org>.
89290 2008-11-20  Bruno Haible  <bruno@clisp.org>
89292         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89293         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89294         INCLUDE_NEXT.
89295         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89296         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89297         * modules/math (Makefile.am): Substitute
89298         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89301 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89302             Bruno Haible  <bruno@clisp.org>
89304         * lib/stdint.in.h: Define all type macros so that their expansion is
89305         a single typedef'ed token. Fixes a compilation failure in Boost which
89306         does "using ::int8_t;".
89308 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89310         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89311         gl_MANYWARN_ALL_GCC.
89312         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89313         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89314         * modules/manywarnings: New file.
89315         * MODULES.html.sh: Mention manywarnings module.
89317 2008-11-18  Bruno Haible  <bruno@clisp.org>
89319         * doc/gnulib-tool.texi (Unit tests): New section.
89321 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89323         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89324         paths like 'lib/po/foo.po'.
89326 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89328         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89329         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89331 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89333         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89334         parameter works.
89336 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89338         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89340 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89342         * modules/parse-duration-tests: New file.
89343         * tests/test-parse-duration.sh: New file.
89344         * tests/test-parse-duration.c: New file.
89346         New module 'parse-duration'.
89347         * lib/parse-duration.h: New file.
89348         * lib/parse-duration.c: New file.
89349         * modules/parse-duration: New file.
89351 2008-11-17  Bruno Haible  <bruno@clisp.org>
89353         * tests/test-select-out.sh: Comment out the first pipe test.
89354         Reported by Simon Josefsson.
89356 2008-11-17  Bruno Haible  <bruno@clisp.org>
89358         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89359         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89360         gl_HOSTENT.
89362 2008-11-17  Bruno Haible  <bruno@clisp.org>
89364         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89365         -lnetwork and -lnet. Needed for Haiku and BeOS.
89367 2008-11-16  Bruno Haible  <bruno@clisp.org>
89369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89371 2008-11-16  Bruno Haible  <bruno@clisp.org>
89373         Avoid test failure on Haiku.
89374         * tests/test-fsync.c: Include <errno.h>.
89375         (main): Don't require that fsync (0) fails.
89377 2008-11-15  Bruno Haible  <bruno@clisp.org>
89379         New module 'hostent'.
89380         * modules/hostent: New file.
89381         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89383 2008-11-15  Bruno Haible  <bruno@clisp.org>
89385         New module 'servent'.
89386         * modules/servent: New file.
89387         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89389 2008-11-15  Bruno Haible  <bruno@clisp.org>
89391         Avoid generating same test program with two different rules.
89392         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89393         test-frexp to test-frexp-nolibm.
89394         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89395         test-frexpl to test-frexpl-nolibm.
89397 2008-11-15  Bruno Haible  <bruno@clisp.org>
89399         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89400         $(FREXPL_LIBM).
89402 2008-11-15  Bruno Haible  <bruno@clisp.org>
89404         * lib/netdb.in.h: Activate the definitions also when the system's
89405         <netdb.h> has 'struct addrinfo'.
89406         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89407         EAI_OVERFLOW or AI_NUMERICSERV.
89408         * doc/posix-headers/netdb.texi: Document the problem.
89410 2008-11-15  Bruno Haible  <bruno@clisp.org>
89412         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89414         Make the 'sched' module work on platforms where <sched.h> exists but
89415         is incomplete (such as Haiku).
89416         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89417         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89418         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89419         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89420         HAVE_STRUCT_SCHED_PARAM.
89421         * modules/sched (Depends-on): Add include_next.
89422         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89423         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89424         * doc/posix-headers/sched.texi: Document the issue.
89426 2008-11-13  Jim Meyering  <meyering@redhat.com>
89428         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89429         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89430         test would fail due to the difference in the Report bugs to ...
89431         line.  The expected address is empty, "<>", while the actual
89432         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89434 2008-11-12  Bruno Haible  <bruno@clisp.org>
89436         lstat: don't compile lstat.c on systems lacking lstat
89437         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89438         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89439         Reported by Daniel P. Berrange via Jim Meyering.
89441 2008-11-12  Jim Meyering  <meyering@redhat.com>
89443         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89445 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89447         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89448         instead.
89450 2008-11-12  Bruno Haible  <bruno@clisp.org>
89452         * lib/unicodeio.c: Include unistr.h.
89453         (utf8_wctomb): Remove function.
89454         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89456 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89458         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89459         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89460         <bruno@clisp.org>.
89461         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89463 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89465         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89466         * doc/gnulib.texi: Add section for warnings.
89468 2008-11-11  Bruno Haible  <bruno@clisp.org>
89470         * lib/sockets.h: Add a comment.
89472 2008-11-11  Karl Berry  <karl@gnu.org>
89474         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89476 2008-11-11  Eric Blake  <ebb9@byu.net>
89478         fdl.texi: avoid git symlinks
89479         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89483         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89485 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89487         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89488         (gl_WARN_ADD): Substitute $2 if literal.
89490 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89492         * m4/warning.m4: Remove.
89494 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89496         * m4/warnings.m4: Almost complete rewrite. :-)
89498 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89500         * modules/warnings: New module.
89501         * m4/warnings.m4: New file.
89502         * MODULES.html.sh: Mention warnings module.
89503         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89504         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89506 2008-11-10  Eric Blake  <ebb9@byu.net>
89508         fdl.texi: make a symlink to the latest version
89509         * doc/standards.texi: Revert today's earlier change.
89510         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89511         * doc/fdl.texi: ...and replace this with a symlink to the newer
89512         fdl-1.3.texi.
89514 2008-11-10  Bruno Haible  <bruno@clisp.org>
89516         * tests/test-select-fd.c (main): Accept the result file name as fourth
89517         argument.
89518         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89519         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89521 2008-11-10  Bruno Haible  <bruno@clisp.org>
89523         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89524         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89525         as autoconf-substituted macros.
89526         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89528         gl_NETDB_H_DEFAULTS. Set these variables.
89529         * modules/netdb (Makefile.am): Substitute these variables.
89531 2008-11-10  Eric Blake  <ebb9@byu.net>
89533         standards.texi: include correct file for FDL 1.3
89534         * doc/standards.texi (GNU Free Documentation License): Change
89535         include file to pull in FDL 1.3, not 1.2.
89537         fdl.texi: revert accidental change to license
89538         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89540 2008-11-10  Bruno Haible  <bruno@clisp.org>
89542         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89543         cross-compiling guesses also when the native compile gives no result.
89545 2008-11-10  Bruno Haible  <bruno@clisp.org>
89547         * lib/spawni.c (__spawni): Force variable into the stack.
89549 2008-11-10  Bruno Haible  <bruno@clisp.org>
89551         Add support for Haiku.
89552         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89553         glibc and BeOS, but also on Haiku.
89554         * lib/fpurge.c (fpurge): Likewise.
89555         * lib/freadable.c (freadable): Likewise.
89556         * lib/freadahead.c (freadahead): Likewise.
89557         * lib/freading.c (freading): Likewise.
89558         * lib/freadptr.c (freadptr): Likewise.
89559         * lib/freadseek.c (freadptrinc): Likewise.
89560         * lib/fseeko.c (rpl_fseeko): Likewise.
89561         * lib/fseterr.c (fseterr): Likewise.
89562         * lib/fwritable.c (fwritable): Likewise.
89563         * lib/fwriting.c (fwriting): Likewise.
89564         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89566 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89568         * lib/config.charset: Treat Haiku like BeOS.
89570 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89572         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89573         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89575 2008-11-08  Bruno Haible  <bruno@clisp.org>
89577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89578         AC_CACHE_CHECK.
89580 2008-11-08  Bruno Haible  <bruno@clisp.org>
89582         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89584 2008-11-08  Bruno Haible  <bruno@clisp.org>
89586         * tests/test-select-fd.c: New file.
89587         * tests/test-select-in.sh: New file.
89588         * tests/test-select-out.sh: New file.
89589         * tests/test-select-stdin.c: New file.
89590         * modules/select-tests (Files): Add the new files.
89591         (Depends-on): Add gettimeofday.
89592         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89593         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89594         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89596 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89597             Bruno Haible  <bruno@clisp.org>
89599         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89601 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89603         * build-aux/pmccabe2html: Added support for C++ source files.
89605 2008-11-05  Ben Pfaff  <blp@gnu.org>
89607         Fix lib/close.c build on Windows.
89608         * modules/close (Files): Add lib/w32sock.h.
89610 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89612         Accept Bison's NEWS format.
89613         * build-aux/announce-gen (print_news_deltas): Tweak
89614         $re_prefix.
89616 2008-11-04  Bruno Haible  <bruno@clisp.org>
89618         * modules/random_r (Maintainer): Add glibc.
89620 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89622         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89623         by karl@freefriends.org (Karl Berry).
89624         * doc/alloca.texi: Likewise.
89625         * doc/c-ctype.texi: Likewise.
89626         * doc/c-strcase.texi: Likewise.
89627         * doc/c-strcaseeq.texi: Likewise.
89628         * doc/c-strcasestr.texi: Likewise.
89629         * doc/c-strstr.texi: Likewise.
89630         * doc/c-strtod.texi: Likewise.
89631         * doc/c-strtold.texi: Likewise.
89632         * doc/ctime.texi: Likewise.
89633         * doc/error.texi: Likewise.
89634         * doc/fdl.texi: Likewise.
89635         * doc/gcd.texi: Likewise.
89636         * doc/getdate.texi: Likewise.
89637         * doc/gnulib-intro.texi: Likewise.
89638         * doc/gnulib-tool.texi: Likewise.
89639         * doc/gnulib.texi: Likewise.
89640         * doc/inet_ntoa.texi: Likewise.
89641         * doc/maintain.texi: Likewise.
89642         * doc/make-stds.texi: Likewise.
89643         * doc/quote.texi: Likewise.
89644         * doc/regexprops-generic.texi: Likewise.
89645         * doc/standards.texi: Likewise.
89646         * doc/verify.texi: Likewise.
89647         * doc/visibility.texi: Likewise.
89648         * doc/gnulib.texi (GNU Free Documentation License): Include
89649         fdl-1.3.texi instead of fdl.texi.
89651 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89653         * doc/fdl-1.3.texi: New file, from
89654         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89655         * modules/fdl-1.3: Add.
89656         * MODULES.html.sh: Add fdl-1.3.
89658 2008-11-03  Bruno Haible  <bruno@clisp.org>
89660         Make determination of absolute name of header file work with AIX xlc.
89661         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89662         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89663         preprocessing.
89664         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89665         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89667 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89669         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89670         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89671         <ludo@gnu.org>.
89673 2008-11-02  Bruno Haible  <bruno@clisp.org>
89675         Mark 'strpbrk' obsolete.
89676         * modules/strpbrk (Status, Notice): New sections.
89677         * modules/strtok_r (Depends-on): Add strpbrk.
89679 2008-11-02  Bruno Haible  <bruno@clisp.org>
89681         Mark 'strdup' obsolete.
89682         * modules/strdup (Status, Notice): New sections.
89683         * modules/findprog (Depends-on): Add strdup.
89684         * modules/getaddrinfo (Depends-on): Likewise.
89685         * modules/localename (Depends-on): Likewise.
89686         * modules/relocatable-lib (Depends-on): Likewise.
89687         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89688         * modules/relocatable-prog (Depends-on): Likewise.
89689         * modules/trim (Depends-on): Likewise.
89690         * modules/unictype/gen-ctype (Depends-on): Likewise.
89691         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89693 2008-11-02  Bruno Haible  <bruno@clisp.org>
89695         Mark 'strcspn' obsolete.
89696         * modules/strcspn (Status, Notice): New sections.
89698 2008-11-02  Bruno Haible  <bruno@clisp.org>
89700         Mark 'rmdir' obsolete.
89701         * modules/rmdir (Status, Notice): New sections.
89702         * modules/clean-temp (Depends-on): Add rmdir.
89703         * modules/openat (Depends-on): Likewise.
89705 2008-11-02  Bruno Haible  <bruno@clisp.org>
89707         Mark 'raise' obsolete.
89708         * modules/raise (Status, Notice): New sections.
89709         (Include): Specify <signal.h>.
89710         * modules/stdio (Depends-on): Add raise.
89711         * modules/write (Depends-on): Likewise.
89713 2008-11-02  Bruno Haible  <bruno@clisp.org>
89715         Mark 'memset' obsolete.
89716         * modules/memset (Status, Notice): New sections.
89718 2008-11-02  Bruno Haible  <bruno@clisp.org>
89720         Mark 'memmove' obsolete.
89721         * modules/memmove (Status, Notice): New sections.
89722         * modules/argp (Depends-on): Add memmove.
89723         * modules/argz (Depends-on): Likewise.
89724         * modules/canonicalize (Depends-on): Likewise.
89725         * modules/canonicalize-lgpl (Depends-on): Likewise.
89726         * modules/fts (Depends-on): Likewise.
89727         * modules/getcwd (Depends-on): Likewise.
89728         * modules/human (Depends-on): Likewise.
89729         * modules/regex (Depends-on): Likewise.
89730         * modules/striconveh (Depends-on): Likewise.
89731         * modules/trim (Depends-on): Likewise.
89732         * modules/unistr/u8-move (Depends-on): Likewise.
89733         * modules/unistr/u16-move (Depends-on): Likewise.
89734         * modules/unistr/u32-move (Depends-on): Likewise.
89736 2008-11-02  Bruno Haible  <bruno@clisp.org>
89738         Mark 'memcpy' obsolete.
89739         * modules/memcpy (Status, Notice): New sections.
89741 2008-11-02  Bruno Haible  <bruno@clisp.org>
89743         Mark 'memcmp' obsolete.
89744         * modules/memcmp (Status, Notice): New sections.
89745         * modules/argmatch (Depends-on): Add memchr.
89746         * modules/backupfile (Depends-on): Likewise.
89747         * modules/c-strcasestr (Depends-on): Likewise.
89748         * modules/crypto/des (Depends-on): Likewise.
89749         * modules/csharpcomp (Depends-on): Likewise.
89750         * modules/fnmatch (Depends-on): Likewise.
89751         * modules/git-merge-changelog (Depends-on): Likewise.
89752         * modules/isnand (Depends-on): Likewise.
89753         * modules/isnand-nolibm (Depends-on): Likewise.
89754         * modules/isnanf (Depends-on): Likewise.
89755         * modules/isnanf-nolibm (Depends-on): Likewise.
89756         * modules/isnanl (Depends-on): Likewise.
89757         * modules/isnanl-nolibm (Depends-on): Likewise.
89758         * modules/mbchar (Depends-on): Likewise.
89759         * modules/memcoll (Depends-on): Likewise.
89760         * modules/quotearg (Depends-on): Likewise.
89761         * modules/regex (Depends-on): Likewise.
89762         * modules/relocatable-prog (Depends-on): Likewise.
89763         * modules/same (Depends-on): Likewise.
89764         * modules/signbit (Depends-on): Likewise.
89765         * modules/strcasestr-simple (Depends-on): Likewise.
89766         * modules/unictype/gen-ctype (Depends-on): Likewise.
89767         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89768         * modules/uniname/uniname (Depends-on): Likewise.
89769         * modules/unistr/u8-cmp (Depends-on): Likewise.
89771 2008-11-02  Bruno Haible  <bruno@clisp.org>
89773         Mark 'memchr' obsolete.
89774         * modules/memchr (Status, Notice): New sections.
89775         * modules/argp (Depends-on): Add memchr.
89776         * modules/base64 (Depends-on): Likewise.
89777         * modules/c-strcasestr (Depends-on): Likewise.
89778         * modules/chdir-long (Depends-on): Likewise.
89779         * modules/fnmatch (Depends-on): Likewise.
89780         * modules/getsubopt (Depends-on): Likewise.
89781         * modules/git-merge-changelog (Depends-on): Likewise.
89782         * modules/glob (Depends-on): Likewise.
89783         * modules/strcasestr-simple (Depends-on): Likewise.
89784         * modules/strnlen (Depends-on): Likewise.
89786 2008-11-02  Bruno Haible  <bruno@clisp.org>
89788         Mark 'atexit' obsolete.
89789         * modules/atexit (Status, Notice): New sections.
89790         * modules/chdir-long (Depends-on): Add atexit.
89791         * modules/wait-process (Depends-on): Likewise.
89793 2008-11-02  Bruno Haible  <bruno@clisp.org>
89795         * gnulib-tool: New option --with-obsolete.
89796         (func_usage): Document it.
89797         (func_modules_transitive_closure): Drop obsolete dependencies if
89798         incobsolete is not true.
89799         (func_import): Read and save the incobsolete variable to the cache.
89801 2008-11-02  Bruno Haible  <bruno@clisp.org>
89803         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89804         * gnulib-tool: New option --extract-status.
89805         (func_usage): Document it.
89806         (sed_extract_prog): Recognize it.
89807         (func_get_status): New function.
89809 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89811         * modules/sockets (License): Change from LGPL to LGPLv2+.
89813 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89815         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89817 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89819         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89820         Mention times and sys_times.
89821         * modules/sys_times, modules/sys_times-tests: New modules.
89822         * modules/times, modules/times-tests: Likewise
89823         * m4/sys_times_h.m4: New file.
89824         * lib/sys_times.in.h: Likewise
89825         * lib/times.c: Likewise.
89826         * tests/test-sys_times.c: Likewise.
89827         * tests/test-times.c: Likewise.
89828         * doc/posix-headers/sys_times.texi: Update.
89829         * doc/posix-functions/times.texi: Update.
89831 2008-10-28  Jim Meyering  <meyering@redhat.com>
89833         * modules/tempname (Depends-on): Add lstat.
89835         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89837 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89839         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89840         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89841         using idiom used elsewhere in gnulib.
89843 2008-10-27  Jim Meyering  <meyering@redhat.com>
89845         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89847 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89849         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89850         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89851         programs.
89852         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89854 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89856         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89858 2008-10-27  Bruno Haible  <bruno@clisp.org>
89860         * tests/test-lstat.c: Include <stdio.h>.
89862 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89864         * modules/lstat-tests: New module.
89865         * tests/test-lstat.c: New file.
89867 2008-10-26  Jim Meyering  <meyering@redhat.com>
89869         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89871 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89872             Bruno Haible  <bruno@clisp.org>
89874         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89875         * modules/configmake (Include): Add a note that the include must come
89876         after all system headers.
89877         * lib/javaversion.c: Include configmake.h after all other includes.
89879 2008-10-26  Bruno Haible  <bruno@clisp.org>
89881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89882         HAVE_STRUCT_RANDOM_DATA to 1.
89883         (gl_STDLIB_H): Simplify.
89885 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89887         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89888         substitute HAVE_STRUCT_RANDOM_DATA.
89889         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89890         random_data.
89891         * modules/stdlib (Makefile.am): Substitute
89892         HAVE_STRUCT_RANDOM_DATA.
89894 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89896         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89897         * doc/gnulib-intro.texi (Copyright): Likewise.
89899 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89901         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89902         findings.
89904 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89905             Bruno Haible  <bruno@clisp.org>
89907         * lib/unistd.in.h: Include <winsock2.h>.
89908         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89909         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89910         Provide dummy declarations.
89911         (gethostname): Override.
89912         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89914         gl_PREREQ_SYS_H_WINSOCK2.
89915         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89916         * doc/posix-functions/gethostname.texi: More details.
89918 2008-10-25  Bruno Haible  <bruno@clisp.org>
89920         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89921         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89922         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89924         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89925         here ...
89926         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89928         gl_UNISTD_H_DEFAULTS.
89930 2008-10-25  Eric Blake  <ebb9@byu.net>
89932         signbit: avoid spurious compiler failure
89933         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89934         declarations inside function.
89936 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89937             Bruno Haible  <bruno@clisp.org>
89939         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89940         * modules/random_r (Depends-on): Add stdint.
89942 2008-10-24  Bruno Haible  <bruno@clisp.org>
89944         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89945         Eggert.
89946         * modules/strerror (License): Likewise.
89948 2008-10-24  Jim Meyering  <meyering@redhat.com>
89950         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89951         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89953 2008-10-24  Eric Blake  <ebb9@byu.net>
89955         getgroups: fix compilation when getgroups is available
89956         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89957         but with <config.h> override of getgroups disabled.
89959 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89961         * doc/gnulib.texi (Header files): Add note about C++ problems.
89962         Explained by Bruno Haible <bruno@clisp.org>.
89964 2008-10-23  Bruno Haible  <bruno@clisp.org>
89966         Define a dummy SA_NODEFER macro on Interix.
89967         * lib/signal.in.h (SA_NODEFER): Define fallback.
89968         Reported by Aleksey Cheusov <cheusov@tut.by> via
89969         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89971 2008-10-23  Bruno Haible  <bruno@clisp.org>
89973         * modules/freadahead (License): Change to LGPLv2+.
89974         Suggested by Simon Josefsson.
89976 2008-10-23  Jim Meyering  <meyering@redhat.com>
89978         random_r: new module
89979         * modules/random_r: New file.
89980         * m4/random_r.m4: New file.
89981         * lib/random_r.c: New file, from glibc.
89982         * modules/random_r-tests: New file.
89983         * tests/test-random_r.c: New file.
89984         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89985          Declare.
89986         (RAND_MAX): Define.
89987         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89988         * modules/stdlib: Substitute them, too.
89989         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89990         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89991         * doc/glibc-functions/random_r.texi: Likewise.
89992         * doc/glibc-functions/setstate_r.texi: Likewise.
89993         * doc/glibc-functions/srandom_r.texi: Likewise.
89994         * config/srclist.txt: Mention it.
89996 2008-10-23  David Lutterkort  <lutter@redhat.com>
89998         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89999         link requirement
90001 2008-10-23  Jim Meyering  <meyering@redhat.com>
90003         selinux-h: mark parameters of stub functions as intentionally unused
90004         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90005         * lib/se-context.in.h: Likewise.
90007 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90009         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90011 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90013         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90015 2008-10-22  Eric Blake  <ebb9@byu.net>
90017         glthread/thread: avoid compiler warning
90018         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90019         Add unreachable abort to silence compiler.
90021 2008-10-22  Eric Blake  <ebb9@byu.net>
90023         netdb: also supply struct addrinfo for cygwin 1.5.x
90024         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90025         older cygwin.
90026         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90027         cygwin.
90028         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90030 2008-10-22  Bruno Haible  <bruno@clisp.org>
90032         * users.txt: Update entry about pspp.
90034 2008-10-21  Bruno Haible  <bruno@clisp.org>
90036         Simplification.
90037         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90038         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90040         Simplification.
90041         * lib/ioctl.c (ioctl): Don't undefine.
90042         * lib/socket.c (socket): Don't undefine.
90044         Remove unused module indicator macros.
90045         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90046         GNULIB_$1 as a C macro.
90048         * doc/posix-functions/close.texi: Undo last change.
90049         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90050         Windows platforms.
90052 2008-10-21  Bruno Haible  <bruno@clisp.org>
90054         Add gethostname() declaration to <unistd.h>.
90055         * lib/unistd.in.h (gethostname): New declaration.
90056         * lib/gethostname.c: Include <unistd.h>.
90057         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90058         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90060         and HAVE_GETHOSTNAME.
90061         * modules/gethostname (Depends-on): Add unistd.
90062         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90063         (Include): Specify <unistd.h>.
90064         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90065         HAVE_GETHOSTNAME.
90066         * tests/test-gethostname.c: Include <unistd.h> first.
90068 2008-10-21  Bruno Haible  <bruno@clisp.org>
90070         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90071         * modules/select-tests (Depends-on): Likewise.
90072         Reported by Simon Josefsson.
90074 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90076         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90077         * lib/accept.c: New file, based on winsock.c.
90078         * lib/bind.c: New file, based on winsock.c.
90079         * lib/connect.c: New file, based on winsock.c.
90080         * lib/getpeername.c: New file, based on winsock.c.
90081         * lib/getsockname.c: New file, based on winsock.c.
90082         * lib/getsockopt.c: New file, based on winsock.c.
90083         * lib/ioctl.c: New file, based on winsock.c.
90084         * lib/listen.c: New file, based on winsock.c.
90085         * lib/recv.c: New file, based on winsock.c.
90086         * lib/recvfrom.c: New file, based on winsock.c.
90087         * lib/send.c: New file, based on winsock.c.
90088         * lib/sendto.c: New file, based on winsock.c.
90089         * lib/setsockopt.c: New file, based on winsock.c.
90090         * lib/shutdown.c: New file, based on winsock.c.
90091         * lib/socket.c: New file, based on winsock.c.
90092         * lib/w32sock.h: New file, based on winsock.c.
90093         * lib/winsock.c: Remove file.
90094         * modules/accept: Likewise.
90095         * modules/bind: Likewise.
90096         * modules/connect: Likewise.
90097         * modules/getpeername: Likewise.
90098         * modules/getsockname: Likewise.
90099         * modules/getsockopt: Likewise.
90100         * modules/ioctl: Likewise.
90101         * modules/listen: Likewise.
90102         * modules/recv: Likewise.
90103         * modules/recvfrom: Likewise.
90104         * modules/send: Likewise.
90105         * modules/sendto: Likewise.
90106         * modules/setsockopt: Likewise.
90107         * modules/shutdown: Likewise.
90108         * modules/socket: Use socket.c instead of winsock.c.
90109         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90110         * doc/posix-functions/accept.texi: Doc fix.
90111         * doc/posix-functions/bind.texi: Doc fix.
90112         * doc/posix-functions/close.texi: Doc fix.
90113         * doc/posix-functions/connect.texi: Doc fix.
90114         * doc/posix-functions/getpeername.texi: Doc fix.
90115         * doc/posix-functions/getsockname.texi: Doc fix.
90116         * doc/posix-functions/getsockopt.texi: Doc fix.
90117         * doc/posix-functions/ioctl.texi: Doc fix.
90118         * doc/posix-functions/listen.texi: Doc fix.
90119         * doc/posix-functions/recv.texi: Doc fix.
90120         * doc/posix-functions/recvfrom.texi: Doc fix.
90121         * doc/posix-functions/send.texi: Doc fix.
90122         * doc/posix-functions/sendto.texi: Doc fix.
90123         * doc/posix-functions/setsockopt.texi: Doc fix.
90124         * doc/posix-functions/shutdown.texi: Doc fix.
90125         * doc/posix-functions/socket.texi: Doc fix.
90127 2008-10-20  Bruno Haible  <bruno@clisp.org>
90129         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90130         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90131         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90132         as an alias for SIGABRT.
90133         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90134         (sigaction): Map it to SIGABRT.
90135         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90137 2008-10-20  Bruno Haible  <bruno@clisp.org>
90139         * lib/fts.c: Don't include lstat.h.
90140         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90142         Move the lstat() declaration to <sys/stat.h>.
90143         * lib/lstat.h: Remove file.
90144         * lib/sys_stat.in.h: Add special invocation convention.
90145         (lstat): New declaration.
90146         * lib/lstat.c (orig_lstat): New function.
90147         (rpl_lstat): Use orig_lstat instead of lstat.
90148         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90149         AC_C_INLINE. Set REPLACE_LSTAT.
90150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90151         and REPLACE_LSTAT.
90152         * modules/lstat (Files): Remove lib/lstat.h.
90153         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90154         (Include): Specify <sys/stat.h> instead of lstat.h.
90155         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90156         REPLACE_LSTAT.
90157         * NEWS: Mention the change.
90159 2008-10-20  Bruno Haible  <bruno@clisp.org>
90161         * modules/posix_spawn-tests: New file.
90162         * tests/test-posix_spawn3.c: New file.
90164 2008-10-20  Bruno Haible  <bruno@clisp.org>
90166         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90167         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90168         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90169         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90170         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90172 2008-10-20  Bruno Haible  <bruno@clisp.org>
90174         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90175         of posix_spawn on AIX 5.3.
90177 2008-10-20  Bruno Haible  <bruno@clisp.org>
90179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90181 2008-10-20  Bruno Haible  <bruno@clisp.org>
90183         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90184         of AC_LANG_PROGRAM.
90186 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90188         * lib/netdb.in.h: Don't define GNU specific constants until they
90189         are supported or needed.  Reported by Bruno Haible
90190         <bruno@clisp.org>.
90192 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90194         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90196 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90198         * lib/getaddrinfo.h: Remove file.
90199         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90200         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90201         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90202         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90203         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90204         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90205         * tests/test-getaddrinfo.c: Likewise.
90206         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90207         * NEWS: Mention change.
90209 2008-10-19  Bruno Haible  <bruno@clisp.org>
90211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90213 2008-10-19  Bruno Haible  <bruno@clisp.org>
90215         * lib/wait-process.c: Include simply <sys/wait.h>.
90216         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90217         WIFSTOPPED): Remove fallback definitions.
90218         * modules/wait-process (Depends-on): Add sys_wait.
90220         New module 'sys_wait'.
90221         * modules/sys_wait: New file.
90222         * lib/sys_wait.in.h: New file, partially copied from
90223         lib/wait-process.c.
90224         * m4/sys_wait_h.m4: New file.
90225         * doc/posix-headers/sys_wait.texi: Mention the new module.
90227 2008-10-19  Bruno Haible  <bruno@clisp.org>
90229         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90231 2008-10-19  Bruno Haible  <bruno@clisp.org>
90233         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90234         * lib/wait-process.c (WAIT_T): Remove type.
90235         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90236         (wait_subprocess): Update.
90238 2008-10-19  Bruno Haible  <bruno@clisp.org>
90240         New module 'atoll'.
90241         * modules/atoll: New file.
90242         * lib/stdlib.in.h (atoll): New declaration.
90243         * lib/atoll.c: New file, from glibc with modifications.
90244         * m4/atoll.m4: New file.
90245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90246         HAVE_ATOLL.
90247         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90248         * doc/posix-functions/atoll.texi: Mention the new module.
90250 2008-10-19  Bruno Haible  <bruno@clisp.org>
90252         Add strtoull() declaration to <stdlib.h>.
90253         * lib/stdlib.in.h (strtoull): New declaration.
90254         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90255         Set HAVE_STRTOULL.
90256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90257         HAVE_STRTOULL.
90258         * modules/strtoull (Depends-on): Add stdlib.
90259         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90260         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90261         HAVE_STRTOULL.
90263 2008-10-19  Bruno Haible  <bruno@clisp.org>
90265         Add strtoll() declaration to <stdlib.h>.
90266         * lib/stdlib.in.h (strtoll): New declaration.
90267         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90268         Set HAVE_STRTOLL.
90269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90270         HAVE_STRTOLL.
90271         * modules/strtoll (Depends-on): Add stdlib.
90272         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90273         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90275 2008-10-19  Bruno Haible  <bruno@clisp.org>
90277         * modules/bcopy (Depends-on): Add strings.
90278         (Include): Specify <strings.h>.
90280 2008-10-19  Bruno Haible  <bruno@clisp.org>
90282         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90284 2008-10-19  Bruno Haible  <bruno@clisp.org>
90286         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90287         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90288         mingw.
90290 2008-10-19  Bruno Haible  <bruno@clisp.org>
90292         * lib/atanl.c: Don't include isnanl.h.
90293         * lib/cosl.c: Likewise.
90294         * lib/ldexpl.c: Likewise.
90295         * lib/logl.c: Likewise.
90296         * lib/sinl.c: Likewise.
90297         * lib/sqrtl.c: Likewise.
90298         * lib/tanl.c: Likewise.
90300         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90301         * lib/isnanf.h: Remove file.
90302         * lib/isnand.h: Remove file.
90303         * lib/isnanl.h: Remove file.
90304         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90305         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90306         macros.
90307         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90308         HAVE_ISNANF, don't define it as a C macro.
90309         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90310         HAVE_ISNAND, don't define it as a C macro.
90311         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90312         HAVE_ISNANL, don't define it as a C macro.
90313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90314         HAVE_ISNAN[FDL].
90315         * modules/isnanf (Files): Remove lib/isnanf.h.
90316         (Depends-on): Add math.
90317         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90318         (Include): Specify <math.h> instead of isnanf.h.
90319         * modules/isnand (Files): Remove lib/isnand.h.
90320         (Depends-on): Add math.
90321         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90322         (Include): Specify <math.h> instead of isnand.h.
90323         * modules/isnanl (Files): Remove lib/isnanl.h.
90324         (Depends-on): Add math.
90325         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90326         (Include): Specify <math.h> instead of isnanl.h.
90327         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90328         HAVE_ISNAN[FDL].
90329         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90330         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90331         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90332         * NEWS: Mention the change.
90334 2008-10-18  Bruno Haible  <bruno@clisp.org>
90336         Add getusershell(), setusershell(), endusershell() declarations to
90337         <unistd.h>.
90338         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90339         declarations.
90340         * lib/getusershell.c: Include unistd.h.
90341         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90342         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90343         HAVE_GETUSERSHELL.
90344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90345         and HAVE_GETUSERSHELL.
90346         * modules/getusershell (Depends-on): Add unistd, extensions.
90347         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90348         (Include): Specify <unistd.h>.
90349         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90350         HAVE_GETUSERSHELL.
90352 2008-10-18  Bruno Haible  <bruno@clisp.org>
90354         Add a getloadavg() declaration to <stdlib.h>.
90355         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90356         getloadavg declaration.
90357         (getloadavg): New declaration.
90358         * lib/getloadavg.c: Include <stdlib.h> first.
90359         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90360         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90361         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90363         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90364         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90365         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90366         (Include): Specify <stdlib.h>.
90367         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90368         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90370 2008-10-18  Bruno Haible  <bruno@clisp.org>
90372         * lib/dirchownmod.c: Don't include lchmod.h.
90374         Move the lchmod() declaration to <sys/stat.h>.
90375         * lib/lchmod.h: Remove file.
90376         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90377         (lchmod): New declaration, moved here from lib/lchown.h.
90378         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90379         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90381         and HAVE_LCHMOD.
90382         * modules/lchmod (Files): Remove lib/lchmod.h.
90383         (Depends-on): Add sys_stat, extensions.
90384         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90385         (Include): Specify <sys/stat.h> instead of lchmod.h.
90386         * modules/sys_stat (Depends-on): Add link-warning.
90387         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90388         definition of GL_LINK_WARNING.
90389         * NEWS: Mention the change.
90391 2008-10-18  Bruno Haible  <bruno@clisp.org>
90393         * lib/fchdir.c: Don't include dirfd.h.
90394         * lib/fts.c: Likewise.
90395         * lib/getcwd.c: Likewise.
90396         * lib/glob.c: Likewise.
90398         Move the dirfd() declaration to <dirent.h>.
90399         * lib/dirfd.h: Remove file.
90400         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90401         (dirfd): New declaration.
90402         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90404         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90405         HAVE_DECL_DIRFD.
90406         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90407         HAVE_DECL_DIRFD.
90408         * modules/dirfd (Files): Remove lib/dirfd.h.
90409         (Depends-on): Add dirent, extensions.
90410         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90411         (Include): Specify <dirent.h> instead of dirfd.h.
90412         * modules/dirent (Depends-on): Add link-warning.
90413         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90414         definition of GL_LINK_WARNING.
90415         * NEWS: Mention the change.
90417 2008-10-18  Bruno Haible  <bruno@clisp.org>
90419         Move the euidaccess() declaration to <unistd.h>.
90420         * lib/euidaccess.h: Remove file.
90421         * lib/unistd.in.h (euidaccess): New declaration.
90422         * lib/euidaccess.c: Don't include euidaccess.h.
90423         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90424         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90426         and HAVE_EUIDACCESS.
90427         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90428         (Depends-on): Add unistd.
90429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90430         (Include): Specify <unistd.h> instead of euidaccess.h.
90431         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90432         HAVE_EUIDACCESS.
90433         * NEWS: Mention the change.
90435 2008-10-18  Bruno Haible  <bruno@clisp.org>
90437         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90439         Move the getdomainname() declaration to <unistd.h>.
90440         * lib/getdomainname.h: Remove file.
90441         * lib/unistd.in.h (getdomainname): New declaration.
90442         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90443         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90444         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90445         HAVE_GETDOMAINNAME.
90446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90447         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90448         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90449         (Depends-on): Add unistd, extensions.
90450         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90451         (Includes): Specify <unistd.h> instead of getdomainname.h.
90452         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90453         HAVE_GETDOMAINNAME.
90454         * NEWS: Mention the change.
90456 2008-10-18  Bruno Haible  <bruno@clisp.org>
90458         * modules/dirent: New file.
90459         * m4/dirent_h.m4: New file.
90460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90461         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90462         * modules/fchdir (Files): Remove lib/dirent.in.h.
90463         (Depends-on): Add dirent.
90464         (Makefile.am): Move rules to modules/dirent.
90465         * doc/posix-headers/dirent.texi: Mention the new module.
90467 2008-10-18  Bruno Haible  <bruno@clisp.org>
90469         Avoid -Wunused-parameter warnings in public gnulib header files.
90470         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90471         macro.
90472         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90474 2008-10-18  Bruno Haible  <bruno@clisp.org>
90476         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90477         * doc/glibc-functions/error.texi: Mention the module 'error'.
90478         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90479         * doc/glibc-functions/getdomainname.texi: Mention the module
90480         'getdomainname'.
90481         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90482         * doc/glibc-functions/getpagesize.texi: Mention the module
90483         'getpagesize'.
90484         * doc/glibc-functions/getusershell.texi: Mention the module
90485         'getusershell'.
90486         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90487         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90488         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90489         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90490         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90491         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90492         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90493         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90494         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90495         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90496         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90497         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90498         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90499         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90501 2008-10-17  Bruno Haible  <bruno@clisp.org>
90503         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90504         HP-UX and IRIX, use -0.0L.
90505         * tests/test-ceill.c (minus_zero): Likewise.
90506         * tests/test-floorl.c (minus_zero): Likewise.
90507         * tests/test-frexpl.c (minus_zero): Likewise.
90508         * tests/test-isnan.c (minus_zerol): Likewise.
90509         * tests/test-isnanl.h (minus_zero): Likewise.
90510         * tests/test-ldexpl.c (minus_zero): Likewise.
90511         * tests/test-roundl.c (minus_zero): Likewise.
90512         * tests/test-signbit.c (minus_zerol): Likewise.
90513         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90514         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90515         * tests/test-truncl.c (minus_zero): Likewise.
90516         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90517         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90518         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90519         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90521 2008-10-17  Bruno Haible  <bruno@clisp.org>
90523         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90524         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90525         that it gets activated only for gcc >= 3.0.
90526         * lib/dirent.in.h: Likewise.
90527         * lib/errno.in.h: Likewise.
90528         * lib/fcntl.in.h: Likewise.
90529         * lib/float.in.h: Likewise.
90530         * lib/iconv.in.h: Likewise.
90531         * lib/inttypes.in.h: Likewise.
90532         * lib/locale.in.h: Likewise.
90533         * lib/math.in.h: Likewise.
90534         * lib/netdb.in.h: Likewise.
90535         * lib/netinet_in.in.h: Likewise.
90536         * lib/search.in.h: Likewise.
90537         * lib/signal.in.h: Likewise.
90538         * lib/spawn.in.h: Likewise.
90539         * lib/stdarg.in.h: Likewise.
90540         * lib/stdint.in.h: Likewise.
90541         * lib/stdio.in.h: Likewise.
90542         * lib/stdlib.in.h: Likewise.
90543         * lib/string.in.h: Likewise.
90544         * lib/strings.in.h: Likewise.
90545         * lib/sys_file.in.h: Likewise.
90546         * lib/sys_ioctl.in.h: Likewise.
90547         * lib/sys_select.in.h: Likewise.
90548         * lib/sys_socket.in.h: Likewise.
90549         * lib/sys_stat.in.h: Likewise.
90550         * lib/sys_time.in.h: Likewise.
90551         * lib/sysexits.in.h: Likewise.
90552         * lib/time.in.h: Likewise.
90553         * lib/unistd.in.h: Likewise.
90554         * lib/wchar.in.h: Likewise.
90555         * lib/wctype.in.h: Likewise.
90556         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90558 2008-10-17  Jim Meyering  <meyering@redhat.com>
90560         ignore-value: don't depend on inline module
90561         * modules/ignore-value (Depends-on): Remove 'inline'.
90562         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90563         Suggestion from Bruno Haible.
90565 2008-10-17  Bruno Haible  <bruno@clisp.org>
90567         New implementation of condition variables for Win32.
90568         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90569         (gl_linked_waitqueue_t): New type.
90570         (gl_cond_t): Use it.
90571         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90572         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90573         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90574         (glthread_cond_init_func, glthread_cond_wait_func,
90575         glthread_cond_timedwait_func, glthread_cond_signal_func,
90576         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90577         Reimplemented on the basis of gl_linked_waitqueue_t.
90578         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90579         gl_waitqueue_t.
90580         (gl_rwlock_t): Update.
90581         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90583 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90585         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90586         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90588 2008-10-17  Jim Meyering  <meyering@redhat.com>
90590         ignore-value: new module
90591         * modules/ignore-value: New file.
90592         * lib/ignore-value.h: New file.
90593         * MODULES.html.sh (Compiler warning management): New section,
90594         just for this module.  More to come.
90596 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90598         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90599         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90600         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90602 2008-10-16  Jim Meyering  <meyering@redhat.com>
90604         openat-die.c: avoid 'no previous prototype' warning
90605         * lib/openat-die.c: Include "openat.h".
90606         Reported by Reuben Thomas <rrt@sc3d.org>.
90608 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90610         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90611         * lib/netdb.in.h: Fix typo.
90612         Reported by Bruno Haible  <bruno@clisp.org>
90614         * lib/netdb.in.h: Include sys/socket.h for platforms without
90615         netdb.h, to get structures like hostent on MinGW.
90616         * modules/netdb (Depends-on): Add sys_socket.
90618 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90620         * modules/netdb, modules/netdb-tests: New file.
90621         * m4/netdb_h.m4: New file.
90622         * lib/netdb.in.h: Add, currently just an empty file pending
90623         definitions.
90624         * tests/test-netdb.c: New file.
90625         * doc/posix-headers/netdb.texi: Mention that we replace it if
90626         needed.
90627         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90628         netdb.
90630 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90632         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90633         with code.
90635 2008-10-13  Bruno Haible  <bruno@clisp.org>
90637         * lib/glthread/cond.c (glthread_cond_wait_func,
90638         glthread_cond_timedwait_func): Add a comment.
90640 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90642         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90643         * tests/test-select.c: Likewise,
90645 2008-10-13  Bruno Haible  <bruno@clisp.org>
90647         * lib/glthread/cond.c (glthread_cond_wait_func,
90648         glthread_cond_timedwait_func): Fix variable name.
90649         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90651 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90653         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90655         struct sockaddr.sa_len.
90656         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90658 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90660         * build-aux/pmccabe2html: Add css and css_url parameters.
90662 2008-10-12  Bruno Haible  <bruno@clisp.org>
90664         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90665         calling aclx_get.
90666         Reported by Rainer Tammer <tammer@tammer.net>.
90668 2008-10-12  Bruno Haible  <bruno@clisp.org>
90670         Use msvcrt aware primitives for creation/termination of Win32 threads.
90671         * lib/glthread/thread.c: Include <process.h>.
90672         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90673         (wrapper_func): Update signature.
90674         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90676 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90677             Bruno Haible  <bruno@clisp.org>
90679         Provide a Win32 implementation of the 'cond' module.
90680         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90681         * lib/glthread/cond.c (glthread_cond_init_func,
90682         glthread_cond_wait_func, glthread_cond_timedwait_func,
90683         glthread_cond_signal_func, glthread_cond_broadcast_func,
90684         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90685         * modules/cond (Dependencies): Add gettimeofday.
90687 2008-10-11  Bruno Haible  <bruno@clisp.org>
90689         Make sleep work on older versions of mingw.
90690         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90691         only whether it exists.
90692         * doc/posix-functions/sleep.texi: Mention the problem with older
90693         versions of mingw.
90695 2008-10-11  Bruno Haible  <bruno@clisp.org>
90697         New module 'shutdown'.
90698         * modules/shutdown: New file.
90699         * lib/sys_socket.in.h (shutdown): New declaration.
90700         * lib/winsock.c (shutdown): New function.
90701         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90702         GNULIB_SHUTDOWN.
90703         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90704         * doc/posix-functions/shutdown.texi: Document the new module.
90706 2008-10-11  Jim Meyering  <meyering@redhat.com>
90708         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90710 2008-10-11  Bruno Haible  <bruno@clisp.org>
90712         New module 'fclose'.
90713         * modules/fclose: New file.
90714         * lib/stdio.in.h (fclose): New declaration.
90715         * lib/fclose.c: New file.
90716         * m4/fclose.m4: New file.
90717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90718         REPLACE_FCLOSE.
90719         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90720         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90721         REPLACE_FCLOSE.
90722         * modules/close (Depends-on): fclose.
90723         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90725 2008-10-11  Bruno Haible  <bruno@clisp.org>
90727         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90728         set errno and don't call _close.
90730 2008-10-10  Bruno Haible  <bruno@clisp.org>
90732         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90733         ACL, not afterwards. Fixes test failure on Cygwin.
90735 2008-10-09  Ben Pfaff  <blp@gnu.org>
90737         * build-aux/announce-gen: Fix gnulib version related part of usage
90738         message.  Die with a useful error message if no tarballs are
90739         found.
90741 2008-10-10  Jim Meyering  <meyering@redhat.com>
90743         bootstrap: use git's --depth=N option only if it's supported
90744         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90745         recognize the --depth option.  Reported by Pádraig Brady.
90747 2008-10-09  Bruno Haible  <bruno@clisp.org>
90749         New module 'ioctl'.
90750         * modules/ioctl: New file.
90751         * lib/sys_socket.in.h (ioctl): Remove declaration.
90752         * lib/winsock.c: Include <sys/ioctl.h>.
90753         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90754         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90755         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90756         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90757         * doc/posix-functions/ioctl.texi: Mention the new module.
90759 2008-10-09  Bruno Haible  <bruno@clisp.org>
90761         New module 'sys_ioctl'.
90762         * lib/sys_ioctl.in.h: New file.
90763         * m4/sys_ioctl_h.m4: New file.
90764         * modules/sys_ioctl: New file.
90765         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90767 2008-10-09  Bruno Haible  <bruno@clisp.org>
90769         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90770         * lib/winsock.c: Include <stdarg.h>.
90771         (rpl_ioctl): Change to second argument 'int' and then varargs.
90773 2008-10-09  Bruno Haible  <bruno@clisp.org>
90775         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90776         when the sys_socket module is present and the system has <winsock2.h>.
90778 2008-10-09  Bruno Haible  <bruno@clisp.org>
90780         * doc/posix-functions/close.texi: Mention module 'close' instead of
90781         module 'sys_socket'.
90783 2008-10-09  Bruno Haible  <bruno@clisp.org>
90785         * doc/glibc-headers/sys_ioctl.texi: New file.
90786         * doc/gnulib.texi: Include it.
90788 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90789             Bruno Haible  <bruno@clisp.org>
90791         Combine the two replacements of 'close'.
90792         * lib/sys_socket.in.h (close): Define to a reminder to include
90793         <unistd.h>.
90794         (_gl_close_fd_maybe_socket): New declaration.
90795         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90796         * lib/winsock.c (close): Remove undefinition.
90797         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90798         needed for the gnulib module 'close'.
90799         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90800         define to an error symbol or to a warning, if suitable.
90801         * lib/close.c: Include <sys/socket.h>.
90802         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90803         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90804         UNISTD_H_HAVE_WINSOCK2_H.
90805         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90807         UNISTD_H_HAVE_WINSOCK2_H.
90808         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90809         (configure.ac): Set a module indicator.
90810         (Makefile.am): Substitute GNULIB_CLOSE.
90811         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90812         * modules/poll-tests (Depends-on): Add close.
90813         * modules/select-tests (Depends-on): Likewise.
90815 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90816             Bruno Haible  <bruno@clisp.org>
90818         New module 'close'.
90819         * modules/close: New file.
90820         * lib/unistd.in.h (close): Move declaration out of the
90821         FCHDIR_REPLACEMENT scope.
90822         (_gl_unregister_fd): New declaration.
90823         * lib/close.c: New file.
90824         * lib/fchdir.c (rpl_close): Remove function.
90825         * m4/close.m4: New file.
90826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90827         close.
90828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90829         REPLACE_CLOSE.
90830         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90831         REPLACE_CLOSE.
90832         * modules/fchdir (Depends-on): Add close.
90834 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90835             Bruno Haible  <bruno@clisp.org>
90837         * lib/fcntl.in.h (open): Simplify conditionals.
90838         (_gl_register_fd): New declaration.
90839         * lib/fchdir.c (rpl_open): Remove function.
90840         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90841         also.
90842         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90843         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90844         open.
90846 2008-10-09  Jim Meyering  <meyering@redhat.com>
90848         GNUmakefile: use the more name-space-friendly "_version"
90849         * top/GNUmakefile (_dummy): Update.
90850         (_version): Rename from "version".
90852 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90853             Bruno Haible  <bruno@clisp.org>
90855         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90856         rpl_close.
90857         (_gl_register_fd): New function, extracted from rpl_open.
90858         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90859         (rpl_open, rpl_opendir): Use _gl_register_fd.
90861 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90863         Fix organization of 'open' replacement.
90864         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90865         (gl_FUNC_OPEN): Use it.
90866         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90868 2008-10-08  Bruno Haible  <bruno@clisp.org>
90870         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90872 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90874         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90875         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90876         listen).
90878 2008-10-08  Eric Blake  <ebb9@byu.net>
90880         GNUmakefile: add 'make version' target
90881         * top/GNUmakefile (_curr-ver): Split version update rules...
90882         (version): ...into a target.
90884 2008-10-07  Bruno Haible  <bruno@clisp.org>
90886         Use a more portable replacement expression for -0.0L.
90887         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90888         instead of -0.0L. Fix m4 quotation.
90890         * tests/test-signbit.c: Include <float.h>.
90891         (minus_zero): New variable.
90892         (test_signbitl): Use minus_zero instead of -zero.
90893         * modules/signbit-tests (Depends-on): Add float.
90895         * tests/test-ceill.c: Include <float.h>.
90896         (zero): Remove variable.
90897         (minus_zero): New variable.
90898         (main): Use minus_zero instead of -zero.
90899         * modules/ceill-tests (Depends-on): Add float.
90901         * tests/test-floorl.c: Include <float.h>.
90902         (zero): Remove variable.
90903         (minus_zero): New variable.
90904         (main): Use minus_zero instead of -zero.
90905         * modules/floorl-tests (Depends-on): Add float.
90907         * tests/test-roundl.c: Include <float.h>.
90908         (zero): Remove variable.
90909         (minus_zero): New variable.
90910         (main): Use minus_zero instead of -zero.
90911         * modules/roundl-tests (Depends-on): Add float.
90913         * tests/test-truncl.c: Include <float.h>.
90914         (zero): Remove variable.
90915         (minus_zero): New variable.
90916         (main): Use minus_zero instead of -zero.
90917         * modules/truncl-tests (Depends-on): Add float.
90919         * tests/test-frexpl.c (zero): Remove variable.
90920         (minus_zero): New variable.
90921         (main): Use minus_zero instead of -zero.
90922         * modules/frexpl-tests (Depends-on): Add float.
90924         * tests/test-isnan.c (zerol): Remove variable.
90925         (minus_zerol): New variable.
90926         (test_long_double): Use minus_zerol instead of -zerol.
90927         * modules/isnan-tests (Depends-on): Add float.
90929         * tests/test-isnanl.h (zero): Remove variable.
90930         (minus_zero): New variable.
90931         (main): Use minus_zero instead of -zero.
90932         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90933         * modules/isnanl-tests (Depends-on): Add float.
90935         * tests/test-ldexpl.c (zero): Remove variable.
90936         (minus_zero): New variable.
90937         (main): Use minus_zero instead of -zero.
90938         * modules/ldexpl-tests (Depends-on): Add float.
90940         * tests/test-snprintf-posix.h (zerol): Remove variable.
90941         (minus_zerol): New variable.
90942         (test_function): Use minus_zerol instead of -zerol.
90943         * modules/snprintf-posix-tests (Depends-on): Add float.
90944         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90946         * tests/test-sprintf-posix.h (zerol): Remove variable.
90947         (minus_zerol): New variable.
90948         (test_function): Use minus_zerol instead of -zerol.
90949         * modules/sprintf-posix-tests (Depends-on): Add float.
90950         * modules/vsprintf-posix-tests (Depends-on): Add float.
90952         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90953         (minus_zerol): New variable.
90954         (test_function): Use minus_zerol instead of -zerol.
90955         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90957         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90958         (minus_zerol): New variable.
90959         (test_function): Use minus_zerol instead of -zerol.
90960         * modules/vasprintf-posix-tests (Depends-on): Add float.
90962 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90964         * MODULES.html.sh (Support for building documentation): Mention
90965         pmccabe2html.  Sort entries.
90967         Add pmccabe2html module, from gnupdf.
90968         * build-aux/pmccabe.css: New file.
90969         * build-aux/pmccabe2html: New file.
90970         * m4/pmccabe2html.m4: New file.
90971         * modules/pmccabe2html: New file.
90973 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90975         flock: new module
90976         * MODULES.html.sh: Add to list of modules.
90977         * lib/flock.c: flock implementation for Windows and Unix systems
90978         which have fcntl.
90979         * doc/glibc-functions/flock.texi: Update documentation.
90980         * lib/sys_file.in.h: <sys/file.h> header file.
90981         * m4/flock.m4: M4 macros.
90982         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90983         * modules/flock: flock module.
90984         * modules/flock-tests: flock tests module.
90985         * modules/sys_file: sys/file.h module.
90986         * tests/test-flock.c: test suite for flock.
90988 2008-10-06  Jim Meyering  <meyering@redhat.com>
90990         bootstrap: check for LT_INIT more portably still ;-)
90991         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90992         Spotted by Bruno Haible.
90994 2008-10-06  Eric Blake  <ebb9@byu.net>
90996         test-signbit: avoid tripping Irix cc bug on -0.0L
90997         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90998         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90999         entire testsuite consistent and avoids an Irix 6.2 bug.
91001 2008-10-05  Bruno Haible  <bruno@clisp.org>
91002             Jim Meyering  <jim@meyering.net>
91004         Add an option for ignoring EPIPE during close_stdout.
91005         * lib/closeout.h: Include <stdbool.h>.
91006         (close_stdout_set_ignore_EPIPE): New declaration.
91007         * lib/closeout.c: Include <stdbool.h>.
91008         (ignore_EPIPE): New variable.
91009         (close_stdout_set_ignore_EPIPE): New function.
91010         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91011         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91012         failure.
91013         * modules/closeout (Depends-on): Add stdbool.
91015 2008-10-05  Bruno Haible  <bruno@clisp.org>
91017         * modules/accept: New file.
91018         * modules/bind: New file.
91019         * modules/connect: New file.
91020         * modules/getpeername: New file.
91021         * modules/getsockname: New file.
91022         * modules/getsockopt: New file.
91023         * modules/listen: New file.
91024         * modules/recv: New file.
91025         * modules/recvfrom: New file.
91026         * modules/send: New file.
91027         * modules/sendto: New file.
91028         * modules/setsockopt: New file.
91029         * modules/socket: New file.
91030         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91031         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91032         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91033         the particular module is requested. Add a link warning when the
91034         particular module is not requested.
91035         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91036         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91037         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91038         the particular module is requested.
91039         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91040         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91041         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91042         * modules/sys_socket (Depends-on): Add link-warning.
91043         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91044         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91045         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91046         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91047         GL_LINK_WARNING.
91048         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91049         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91050         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91051         * doc/posix-functions/getpeername.texi: Mention the new module
91052         'getpeername'.
91053         * doc/posix-functions/getsockname.texi: Mention the new module
91054         'getsockname'.
91055         * doc/posix-functions/getsockopt.texi: Mention the new module
91056         'getsockopt'.
91057         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91058         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91059         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91060         * doc/posix-functions/send.texi: Mention the new module 'send'.
91061         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91062         * doc/posix-functions/setsockopt.texi: Mention the new module
91063         'setsockopt'.
91064         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91065         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91066         listen, connect, accept.
91067         * modules/select-tests (Depends-on): Likewise.
91069 2008-10-05  Bruno Haible  <bruno@clisp.org>
91071         * lib/winsock.c (strerror): Remove unused #undef.
91072         (rpl_close): Remove unused local variable.
91074         * modules/sys_socket (Depends-on); Add errno.
91076 2008-10-05  Bruno Haible  <bruno@clisp.org>
91078         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91079         (select): Add a link warning when the 'select' module is not used.
91080         * modules/sys_select (Depends-on): Add link-warning.
91081         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91082         Suggested by Paolo Bonzini.
91084 2008-10-05  Jim Meyering  <meyering@redhat.com>
91086         bootstrap: check for LT_INIT more portably
91087         * build-aux/bootstrap: Avoid using grep -E, since it's not
91088         portable enough.  Suggestion from Bruno Haible.
91090 2008-10-05  Bruno Haible  <bruno@clisp.org>
91092         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91093         as being fixed by gnulib.
91095 2008-10-05  Bruno Haible  <bruno@clisp.org>
91097         * modules/select-tests: New file, mostly copied from
91098         modules/sys_select-tests.
91099         * tests/test-select.c: New file, mostly copied from
91100         tests/test-sys_select.c.
91101         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91102         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91103         (Makefile.am): Remove test_sys_select_LDADD.
91105         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91106         to an undefined symbol, for an error message.
91107         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91108         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91109         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91110         winsock-select.c here.
91111         * modules/sys_select (Files): Remove lib/winsock-select.c.
91112         (Depends-on): Remove alloca.
91113         (Makefile.am): Substitute GNULIB_SELECT.
91114         * modules/select: New file.
91115         * doc/posix-functions/select.texi: Update.
91117 2008-10-05  Bruno Haible  <bruno@clisp.org>
91119         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91120         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91121         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91122         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91123         getdtablesize.
91124         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91125         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91127 2008-10-05  Bruno Haible  <bruno@clisp.org>
91129         * modules/getdtablesize-tests: New file.
91130         * tests/test-getdtablesize.c: New file.
91132         New module 'getdtablesize'.
91133         * lib/unistd.in.h (getdtablesize): New declaration.
91134         * lib/getdtablesize.c: New file.
91135         * m4/getdtablesize.m4: New file.
91136         * modules/getdtablesize: New file.
91137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91138         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91139         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91140         HAVE_GETDTABLESIZE.
91141         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91143 2008-10-05  Bruno Haible  <bruno@clisp.org>
91145         * modules/sched (Makefile.am): Fix typo.
91146         Reported by Simon Josefsson.
91148 2008-10-05  Jim Meyering  <meyering@redhat.com>
91150         bootstrap: check for LT_INIT, too
91151         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91152         are deprecated.  Suggestion from Ralf Wildenhues.
91154 2008-10-05  Bruno Haible  <bruno@clisp.org>
91156         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91157         overriding them by ours.
91158         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91160 2008-10-05  Jim Meyering  <meyering@redhat.com>
91162         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91163         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91164         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91166 2008-10-04  Bruno Haible  <bruno@clisp.org>
91168         * modules/dup2 (License): Change to LGPLv2+.
91169         * modules/sleep (License): Likewise.
91170         * modules/perror (License): Likewise.
91171         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91172         Blake.
91173         * modules/signal (License): Likewise.
91174         * modules/sigprocmask (License): Likewise.
91175         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91176         Meyering.
91178 2008-10-04  Bruno Haible  <bruno@clisp.org>
91180         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91181         Reported by Rainer Tammer <tammer@tammer.net>.
91183 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91184             Bruno Haible  <bruno@clisp.org>
91186         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91187         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91188         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91190 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91192         filevercmp: new module
91193         * lib/filevercmp.h: New function filevercmp comparing version strings.
91194         * lib/filevercmp.c: Implementation of filevercmp function.
91195         * modules/filevercmp: Module metadata.
91196         * tests/test-filevercmp.c: Unit test for new module.
91197         * modules/filevercmp-tests: Unit test metadata.
91198         * MODULES.html.sh: Add filevercmp module.
91200 2008-10-03  Bruno Haible  <bruno@clisp.org>
91202         * lib/c-ctype.h: Add comment.
91203         Reported by Jim Meyering.
91205 2008-10-02  Bruno Haible  <bruno@clisp.org>
91207         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91209 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91211         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91212         name of bootstrap.conf accordingly.
91214 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91216         * build-aux/bootstrap: Install git-merge-changelog configuration
91217         items into .gitconfig if needed.
91219 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91221         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91222         git repository, and initialize/update it accordingly.
91224 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91226         * modules/fsync-tests: New file.
91227         * tests/test-fsync.c: New file.
91229         New module 'fsync'.
91230         * lib/fsync.c: New file.
91231         * m4/fsync.m4: New file.
91232         * modules/fsync: New file.
91233         * lib/unistd.in.h (fsync): New declaration.
91234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91235         GNULIB_FSYNC and HAVE_FSYNC.
91236         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91237         * MODULES.html.sh (posix_functions): Add fsync.
91238         * doc/posix-functions/fsync.texi: Mention the new module.
91240 2008-10-02  Jim Meyering  <meyering@redhat.com>
91242         fts.c: sync with similar code from coreutils' remove.c
91243         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91244         Guard also with "#if defined __linux__", since for now at least,
91245         this code is Linux-kernel-specific.
91247 2008-10-02  Jim Meyering  <meyering@redhat.com>
91249         fts: bug fixes
91250         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91251         Include <sys/vfs.h>, not <sys/statfs.h>.
91253         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91254         Include <sys/vfs.h>, not <sys/statfs.h>.
91256 2008-10-01  Bruno Haible  <bruno@clisp.org>
91258         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91259         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91260         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91261         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91262         * doc/posix-functions/posix_spawnp.texi: Likewise.
91263         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91264         whether posix_spawn actually works.
91265         * m4/pipe.m4 (gl_PIPE): Likewise.
91266         * modules/execute (Files): Add m4/posix_spawn.m4.
91267         * modules/pipe (Files): Add m4/posix_spawn.m4.
91268         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91270 2008-10-01  Jim Meyering  <meyering@redhat.com>
91272         remove trailing spaces
91273         * NEWS: Likewise.
91274         * lib/poll.c (poll): Likewise.
91275         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91276         * lib/winsock.c (rpl_close): Likewise.
91277         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91278         * modules/yield: Likewise.
91279         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91280         * tests/test-sys_select.c (connect_to_socket): Likewise.
91282         fts.c: adjust a new interface to be more generally useful
91283         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91284         (fts_build): Adjust caller.
91286 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91288         * modules/cond-tests: New file.
91289         * tests/test-cond.c: New file.
91291 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91292             Bruno Haible  <bruno@clisp.org>
91294         * modules/cond (Dependencies): Add errno, time.
91295         * lib/glthread/cond.h: Include <time.h>.
91296         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91297         across platforms.
91299 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91300             Bruno Haible  <bruno@clisp.org>
91302         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91304 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91305             Bruno Haible  <bruno@clisp.org>
91307         * modules/tls-tests (Depends-on): Add thread, yield.
91308         (configure.ac): Remove all checks.
91309         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91310         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91311         gl_thread_self): Remove definitions. Include glthread/thread.h and
91312         glthread/yield.h instead.
91313         (test_tls): Pass an additional NULL argument to gl_thread_join.
91315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91316             Bruno Haible  <bruno@clisp.org>
91318         * modules/lock-tests (Depends-on): Add thread, yield.
91319         (configure.ac): Remove all checks.
91320         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91321         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91322         gl_thread_self): Remove definitions. Include glthread/thread.h and
91323         glthread/yield.h instead.
91324         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91325         additional NULL argument to gl_thread_join.
91327 2008-09-30  Bruno Haible  <bruno@clisp.org>
91329         Fix the Win32 implementation of the 'thread' module.
91330         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91331         pointer type.
91332         (gl_thread_self): Invoke gl_thread_self_func.
91333         (gl_thread_self_func): New declaration.
91334         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91335         (do_init_self_key, init_self_key): New functions.
91336         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91337         Remove some fields.
91338         (running_threads, running_lock): Remove variables.
91339         (get_current_thread_handle): New function.
91340         (gl_thread_self_func, wrapper_func, glthread_create_func,
91341         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91342         simplified.
91344 2008-09-30  Bruno Haible  <bruno@clisp.org>
91346         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91347         files.
91349 2008-09-30  Jim Meyering  <meyering@redhat.com>
91351         fts.m4: correct the test for statfs.f_type
91352         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91353         when checking for statfs.f_type.
91355 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91357         tests: avoid some compiler warnings
91358         * tests/test-memchr.c (main): Pass NULL indirectly.
91359         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91361 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91363         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91364         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91365         exactly specified dayshifts.
91366         (dayshift): New rule.
91367         (rel): Add dayshift.
91368         (relative_time_table) [tomorrow, yesterday, today, now]:
91369         Use tDAY_SHIFT in place of tDAY_UNIT.
91370         * tests/test-getdate.c: Add tests for now-disallowed countable
91371         dayshifts, e.g., "4 yesterday ago".
91373 2008-09-29  Bruno Haible  <bruno@clisp.org>
91375         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91376         * tests/test-posix_spawn1.in.sh: Renamed from
91377         tests/test-posix_spawn.in.sh.
91378         * tests/test-posix_spawn2.c: New file.
91379         * tests/test-posix_spawn2.in.sh: New file.
91380         * modules/posix_spawnp-tests (Files): Update.
91381         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91383 2008-09-29  Bruno Haible  <bruno@clisp.org>
91385         Propagate effects of putenv/setenv/unsetenv to child processes.
91386         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91387         * lib/pipe.c (create_pipe): Likewise.
91389 2008-09-29  Bruno Haible  <bruno@clisp.org>
91391         Enable use of shell scripts as executables in mingw.
91392         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91393         run the program as a shell script.
91394         * lib/pipe.c (create_pipe): Likewise.
91395         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91396         resulting array.
91398 2008-09-29  Eric Blake  <ebb9@byu.net>
91400         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91402 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91404         * doc/posix-functions/accept.texi: Update mingw problems.
91405         * doc/posix-functions/bind.texi: Update mingw problems.
91406         * doc/posix-functions/close.texi: Update mingw problems.
91407         * doc/posix-functions/connect.texi: Update mingw problems.
91408         * doc/posix-functions/getpeername.texi: Update mingw problems.
91409         * doc/posix-functions/getsockname.texi: Update mingw problems.
91410         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91411         * doc/posix-functions/ioctl.texi: Update mingw problems.
91412         * doc/posix-functions/listen.texi: Update mingw problems.
91413         * doc/posix-functions/recv.texi: Update mingw problems.
91414         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91415         * doc/posix-functions/select.texi: Update mingw problems.
91416         * doc/posix-functions/send.texi: Update mingw problems.
91417         * doc/posix-functions/sendto.texi: Update mingw problems.
91418         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91419         * doc/posix-functions/socket.texi: Update mingw problems.
91421 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91422             Bruno Haible  <bruno@clisp.org>
91424         * lib/sys_select.in.h: Include sys/time.h.
91425         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91426         * modules/sys_select: Depend on sys_time.
91427         * tests/test-sys_select.c: Test that sys/select.h defines struct
91428         timeval fully.
91430 2008-09-29  Bruno Haible  <bruno@clisp.org>
91432         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91433         * lib/sys_select.in.h: Likewise.
91435 2008-09-29  Bruno Haible  <bruno@clisp.org>
91437         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91439 2008-09-29  Bruno Haible  <bruno@clisp.org>
91441         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91442         Set LIBSOCKET instead of augmenting LIBS.
91443         * modules/sockets (Link): New section.
91444         * modules/sockets-tests (test_sockets_LDADD): New variable.
91445         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91446         * modules/poll-tests (test_poll_LDADD): New variable.
91447         * NEWS: Document the change.
91449 2008-09-29  Bruno Haible  <bruno@clisp.org>
91451         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91452         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91453         ARPA_INET_H directly.
91454         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91456 2008-09-28  Bruno Haible  <bruno@clisp.org>
91458         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91459         from gl_HEADER_SYS_SOCKET.
91460         (gl_HEADER_SYS_SOCKET): Invoke it.
91461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91463 2008-09-28  Bruno Haible  <bruno@clisp.org>
91465         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91466         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91467         Needed on OSF/1 4.0.
91469 2008-09-28  Bruno Haible  <bruno@clisp.org>
91471         Override open more carefully.
91472         * lib/open.c (orig_open): New function.
91473         (rpl_open): Use orig_open instead of open.
91474         * lib/fcntl.in.h: Add special invocation convention.
91475         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91476         (gl_FUNC_OPEN): Invoke it.
91478         Override freopen more carefully.
91479         * lib/freopen.c (orig_freopen): New function.
91480         (rpl_freopen): Use orig_freopen instead of freopen.
91481         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91482         (gl_FUNC_FREOPEN): Invoke it.
91484         Override fopen more carefully.
91485         * lib/fopen.c (orig_fopen): New function.
91486         (rpl_fopen): Use orig_fopen instead of fopen.
91487         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91488         (gl_FUNC_FOPEN): Invoke it.
91489         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91491 2008-09-28  Bruno Haible  <bruno@clisp.org>
91493         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91494         SIGPIPE.
91496 2008-09-28  Bruno Haible  <bruno@clisp.org>
91498         * tests/test-sigaction.c (handler, main): Disable the check whether
91499         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91500         glibc systems with LinuxThreads.
91502 2008-09-28  Bruno Haible  <bruno@clisp.org>
91504         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91506         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91507         with AIX xlc.
91508         * lib/fcntl.in.h (open): Likewise.
91509         Reported by Rainer Tammer <tammer@tammer.net>.
91511 2008-09-28  Bruno Haible  <bruno@clisp.org>
91513         * modules/posix_spawnp-tests: New file.
91514         * tests/test-posix_spawn.c: New file.
91515         * tests/test-posix_spawn.in.sh: New file.
91517         New module 'posix_spawnp'.
91518         * modules/posix_spawnp: New file.
91519         * lib/spawnp.c: New file, from GNU libc with modifications.
91520         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91522         New module 'posix_spawn'.
91523         * modules/posix_spawn: New file.
91524         * lib/spawn.c: New file, from GNU libc with modifications.
91525         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91527         New module 'posix_spawnattr_destroy'.
91528         * modules/posix_spawnattr_destroy: New file.
91529         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91530         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91531         module.
91533         New module 'posix_spawnattr_setsigmask'.
91534         * modules/posix_spawnattr_setsigmask: New file.
91535         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91536         modifications.
91537         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91538         new module.
91540         New module 'posix_spawnattr_getsigmask'.
91541         * modules/posix_spawnattr_getsigmask: New file.
91542         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91543         modifications.
91544         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91545         new module.
91547         New module 'posix_spawnattr_setsigdefault'.
91548         * modules/posix_spawnattr_setsigdefault: New file.
91549         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91550         modifications.
91551         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91552         new module.
91554         New module 'posix_spawnattr_getsigdefault'.
91555         * modules/posix_spawnattr_getsigdefault: New file.
91556         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91557         modifications.
91558         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91559         new module.
91561         New module 'posix_spawnattr_setschedpolicy'.
91562         * modules/posix_spawnattr_setschedpolicy: New file.
91563         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91564         modifications.
91565         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91566         new module.
91568         New module 'posix_spawnattr_getschedpolicy'.
91569         * modules/posix_spawnattr_getschedpolicy: New file.
91570         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91571         modifications.
91572         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91573         new module.
91575         New module 'posix_spawnattr_setschedparam'.
91576         * modules/posix_spawnattr_setschedparam: New file.
91577         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91578         modifications.
91579         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91580         new module.
91582         New module 'posix_spawnattr_getschedparam'.
91583         * modules/posix_spawnattr_getschedparam: New file.
91584         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91585         modifications.
91586         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91587         new module.
91589         New module 'posix_spawnattr_setpgroup'.
91590         * modules/posix_spawnattr_setpgroup: New file.
91591         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91592         modifications.
91593         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91594         module.
91596         New module 'posix_spawnattr_getpgroup'.
91597         * modules/posix_spawnattr_getpgroup: New file.
91598         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91599         modifications.
91600         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91601         module.
91603         New module 'posix_spawnattr_setflags'.
91604         * modules/posix_spawnattr_setflags: New file.
91605         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91606         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91607         module.
91609         New module 'posix_spawnattr_getflags'.
91610         * modules/posix_spawnattr_getflags: New file.
91611         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91612         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91613         module.
91615         New module 'posix_spawnattr_init'.
91616         * modules/posix_spawnattr_init: New file.
91617         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91618         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91619         module.
91621         New module 'posix_spawn_file_actions_destroy'.
91622         * modules/posix_spawn_file_actions_destroy: New file.
91623         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91624         modifications.
91625         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91626         the new module.
91628         New module 'posix_spawn_file_actions_addopen'.
91629         * modules/posix_spawn_file_actions_addopen: New file.
91630         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91631         modifications.
91632         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91633         the new module.
91635         New module 'posix_spawn_file_actions_adddup2'.
91636         * modules/posix_spawn_file_actions_adddup2: New file.
91637         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91638         modifications.
91639         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91640         the new module.
91642         New module 'posix_spawn_file_actions_addclose'.
91643         * modules/posix_spawn_file_actions_addclose: New file.
91644         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91645         modifications.
91646         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91647         the new module.
91649         New module 'posix_spawn_file_actions_init'.
91650         * modules/posix_spawn_file_actions_init: New file.
91651         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91652         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91653         new module.
91655         New module 'posix_spawn-internal'.
91656         * modules/posix_spawn-internal: New file.
91657         * lib/spawn_int.h: New file, from GNU libc with modifications.
91658         * lib/spawni.c: New file, from GNU libc with modifications.
91659         * m4/posix_spawn.m4: New file.
91661         New module 'spawn'.
91662         * modules/spawn: New file.
91663         * lib/spawn.in.h: New file, from GNU libc with modifications.
91664         * m4/spawn_h.m4: New file.
91665         * doc/posix-headers/spawn.texi: Mention the new module.
91667 2008-09-28  Bruno Haible  <bruno@clisp.org>
91669         * modules/sched-tests: New file.
91670         * tests/test-sched.c: New file.
91672         New module 'sched'.
91673         * modules/sched: New file.
91674         * lib/sched.in.h: New file.
91675         * m4/sched_h.m4: New file.
91676         * doc/posix-headers/sched.texi: Mention the new module.
91678 2008-09-27  Eric Blake  <ebb9@byu.net>
91680         Fix previous patch, and tweak references to $0.
91681         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91682         (func_version, func_gnulib_dir): Don't call this program
91683         gnulib-tool.
91684         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91685         with using $0 in function.
91686         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91687         (func_fatal_error): Reuse the name the user invoked us with.
91689 2008-09-27  Bruno Haible  <bruno@clisp.org>
91691         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91692         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91693         (gl_ICONV_H): Not here.
91694         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91695         instead of assigning ICONV_H directly.
91697         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91699         WCHAR_H directly.
91701 2008-09-27  Bruno Haible  <bruno@clisp.org>
91703         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91704         * modules/arpa_inet (Depends-on): Add link-warning.
91705         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91706         * modules/unistd (Makefile.am): Likewise.
91708 2008-09-26  Bruno Haible  <bruno@clisp.org>
91710         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91711         variables.
91712         (func_version): Essentially copied from gnulib-tool.
91713         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91714         func_readlink): Copied from gnulib-tool.
91716 2008-09-26  Bruno Haible  <bruno@clisp.org>
91718         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91719         invoking git-version-gen.
91721 2008-09-26  Bruno Haible  <bruno@clisp.org>
91723         * posix-modules: Update to directory names changed on 2008-01-19.
91724         Remove commas in output before splitting into words. No more need to
91725         avoid 'ftruncate' since 2007-02-19.
91727 2008-09-26  Bruno Haible  <bruno@clisp.org>
91729         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91731 2008-09-26  Bruno Haible  <bruno@clisp.org>
91733         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91734         * modules/fwriteerror (Depends-on): Add errno.
91736 2008-09-26  Bruno Haible  <bruno@clisp.org>
91738         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91739         * tests/test-vc-list-files-cvs.sh: Likewise.
91741 2008-09-26  Bruno Haible  <bruno@clisp.org>
91743         * doc/posix-headers/sys_resource.texi: Reorder items.
91745 2008-09-26  Jim Meyering  <meyering@redhat.com>
91747         fts: tweak inode comparison function
91748         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91749         inode numbers, as documented.
91751         fts: sort dirent entries on inode number before traversing
91752         This avoids a quadratic, seek-related performance penalty when
91753         operating on a directory containing many entries (measurable at 10k;
91754         3.5 hours at 2 million entries with a cold cache) on certain types
91755         of file systems, including ext3 and ext4, but not tmpfs.
91756         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91757         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91758         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91759         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91760         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91761         (fts_build): Set the stat.st_ino member from D_INO.
91762         If it is likely to be useful, sort dirent entries on inode number.
91764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91765         and the struct statfs.f_type member.
91766         * modules/fts (Depends-on): Add d-ino.
91768 2008-09-26  Bruno Haible  <bruno@clisp.org>
91770         * modules/sigpipe-die (Depends-on): Add sigpipe.
91772         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91773         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91774         and GNULIB_STDIO_H_SIGPIPE are set.
91775         * lib/stdio-write.c: New file.
91776         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91777         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91778         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91779         REPLACE_STDIO_WRITE_FUNCS.
91780         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91781         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91782         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91783         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91784         * modules/stdio (Files): Add lib/stdio-write.c.
91785         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91786         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91787         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91788         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91789         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91790         REPLACE_FPRINTF_POSIX.
91791         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91792         REPLACE_PRINTF_POSIX.
91793         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91794         REPLACE_VFPRINTF_POSIX.
91795         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91796         REPLACE_VPRINTF_POSIX.
91797         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91798         SIGPIPE issue.
91799         * doc/posix-functions/fputc.texi: Likewise.
91800         * doc/posix-functions/fputs.texi: Likewise.
91801         * doc/posix-functions/fwrite.texi: Likewise.
91802         * doc/posix-functions/printf.texi: Likewise.
91803         * doc/posix-functions/putc.texi: Likewise.
91804         * doc/posix-functions/putchar.texi: Likewise.
91805         * doc/posix-functions/puts.texi: Likewise.
91806         * doc/posix-functions/vfprintf.texi: Likewise.
91807         * doc/posix-functions/vprintf.texi: Likewise.
91809         * modules/safe-write (Depends-on): Add write.
91811         * modules/sigpipe-tests: New file.
91812         * tests/test-sigpipe.c: New file.
91813         * tests/test-sigpipe.sh: New file.
91815         * modules/write: New file.
91816         * lib/unistd.in.h: Include <sys/types.h>.
91817         (write): New declaration.
91818         * lib/write.c: New file.
91819         * m4/write.m4: New file.
91820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91821         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91822         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91823         GNULIB_WRITE, REPLACE_WRITE.
91824         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91825         and the SIGPIPE issue.
91827         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91828         (raise): New declaration.
91829         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91830         (ext_signal): New function.
91831         (rpl_raise): New function.
91832         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91833         GNULIB_SIGNAL_H_SIGPIPE.
91834         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91835         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91837         * modules/sigpipe: New file.
91838         * m4/sigpipe.m4: New file.
91840 2008-09-25  Derek Price  <derek@ximbiot.com>
91841             Bruno Haible  <bruno@clisp.org>
91843         * gnulib-tool (func_import): Report all license incompatibilities, not
91844         just the first one.
91846 2008-09-25  Bruno Haible  <bruno@clisp.org>
91848         * gnulib-tool (func_import): When computing the edits, consider not
91849         only the Makefile.ams that exist but also those that will be generated.
91851 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91853         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91854         fixes gnulib-tool --test warning about duplicate dependency.
91856 2008-09-25  Bruno Haible  <bruno@clisp.org>
91858         * gnulib-tool: Don't ask the user to perform edits in the generated
91859         Makefile.ams.
91860         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91861         apply to the Makefile.am being generated.
91862         (func_emit_tests_Makefile_am): Execute edits that apply to the
91863         Makefile.am being generated.
91864         (func_import): Setup list of Makefile.am edits before emitting the
91865         Makefile.ams, not at the end.
91866         (func_create_testdir): Update.
91867         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91869 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91871         * gnulib-tool (func_import): Store the --tests-base option in the
91872         comment in gnulib-cache.m4.
91874 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91876         * NEWS: Document increased portability that sys_select now provides.
91878         * lib/sys_select.in.h: Install select wrapper.
91879         * lib/sys_socket.in.h: Use more descriptive name when there is no
91880         select wrapper.
91881         * lib/winsock-select.c: New.
91882         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91883         Require gl_HEADER_SYS_SOCKET.
91884         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91885         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91886         * tests/test-sys_select.c: Add functional tests.
91888 2008-09-24  Eric Blake  <ebb9@byu.net>
91890         open, fopen: close fd leak in last patch
91891         * lib/open.c (rpl_open): Close fd before returning error.
91892         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91893         * doc/posix-functions/open.texi (open): Document that Irix also
91894         has the bug.
91895         * doc/posix-functions/fopen.texi (fopen): Likewise.
91896         Reported by Paolo Bonzini.
91898 2008-09-24  Bruno Haible  <bruno@clisp.org>
91900         Ensure that a filename ending in a slash cannot be used to access a
91901         non-directory.
91902         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91903         to check whether it's really a directory.
91904         * lib/fopen.c: Include fcntl.h, unistd.h.
91905         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91906         and fdopen().
91907         * modules/fopen (Depends-on): Add unistd.
91908         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91909         * tests/test-fopen.c (main): Likewise.
91910         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91911         * doc/posix-functions/fopen.texi: Likewise.
91912         Reported by Eric Blake.
91914 2008-09-23  Eric Blake  <ebb9@byu.net>
91916         c-stack: avoid compiler optimizations when provoking overflow
91917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91918         recursion harder to optimize, to ensure a stack overflow occurs.
91919         * tests/test-c-stack.c (recurse): Likewise.
91920         Borrowed from libsigsegv.
91922         c-stack: work around Irix sigaltstack bug
91923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91924         whether sigaltstack uses wrong end of stack_t (copied in part from
91925         libsigsegv).
91926         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91927         Irix bug, without requiring an over-allocation.
91928         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91929         bug.
91931         fopen: document mingw bug on directories
91932         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91933         not allowing a stream visiting a directory, even though reading
91934         from such a stream is not portable.
91936 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91938         * lib/poll.c: Rewrite.
91939         * modules/poll: Depend on alloca.
91941 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91943         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91944         instead define prototypes for a full set of wrappers.  Ensure
91945         that Cygwin does not use the compatibility code, which is only
91946         for MinGW.
91947         * lib/winsock.c: New.
91948         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91949         * modules/sys_socket: Add lib/winsock.c.
91951         * modules/poll-tests: Add errno and perror.
91952         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91954 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91956         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91958 2008-09-23  Bruno Haible  <bruno@clisp.org>
91960         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91961         * doc/glibc-functions/*: Likewise.
91963 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91965         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91966         success.
91968 2008-09-22  Eric Blake  <ebb9@byu.net>
91969             Bruno Haible  <bruno@clisp.org>
91971         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91972         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91973         supply %A but mishandle pseudo-NaN.
91974         Reported by Simon Josefsson.
91976 2008-09-21  Bruno Haible  <bruno@clisp.org>
91978         * tests/test-lock.c (main): Tweak skip message.
91979         * tests/test-tls.c (main): Likewise.
91981 2008-09-21  Bruno Haible  <bruno@clisp.org>
91983         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91984         whether 'struct sigaction' has sa_sigaction here...
91985         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91986         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91988 2008-09-21  Bruno Haible  <bruno@clisp.org>
91990         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91991         section.
91992         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91993         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91994         the new section.
91995         (Support for obsolete systems lacking POSIX:2001): New section.
91996         (String handling <string.h>): Move strdup to the new section.
91997         Suggested by Simon Josefsson and Paolo Bonzini.
91999 2008-09-21  Bruno Haible  <bruno@clisp.org>
92001         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92002         exponents in %e and %g results on 'long double'. Needed for mingw's
92003         improved *printf functions.
92004         * tests/test-vasprintf-posix.c (test_function): Likewise.
92005         * tests/test-snprintf-posix.h (test_function): Likewise.
92006         * tests/test-sprintf-posix.h (test_function): Likewise.
92007         Reported by Eric Blake.
92009 2008-09-21  Bruno Haible  <bruno@clisp.org>
92011         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92012         * tests/test-sprintf-posix.h (test_function): Likewise.
92014 2008-09-21  Bruno Haible  <bruno@clisp.org>
92016         * modules/getpass (Depends-on): Add strdup-posix.
92018         New module 'strdup-posix'.
92019         * modules/strdup-posix: New file.
92020         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92021         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92023         REPLACE_STRDUP.
92024         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92025         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92027         strdup-posix.
92029         * modules/strdup (Depends-on): Remove malloc-posix.
92031 2008-09-20  Bruno Haible  <bruno@clisp.org>
92033         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92034         Wildenhues.
92036 2008-09-20  Bruno Haible  <bruno@clisp.org>
92038         Ensure that wint_t gets defined on IRIX 5.3.
92039         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92040         * lib/wctype.in.h (wint_t): Likewise.
92041         (__wctype_wint_t): Remove type.
92042         (isw*): Use wint_t instead of __wctype_wint_t.
92043         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92044         * modules/wchar (Files): Add m4/wint_t.m4.
92045         (Makefile.am): Substitute HAVE_WINT_T.
92046         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92047         * tests/test-wctype.c: Check that wint_t is defined.
92048         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92049         * doc/posix-headers/wctype.texi: Likewise.
92050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92052 2008-09-18  Bruno Haible  <bruno@clisp.org>
92054         * gnulib-tool (func_exit): Update comment.
92056 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92058         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92059         assumes strdup exists and does not depend on strdup to return
92060         ENOMEM on out of memory conditions.
92062 2008-09-18  Bruno Haible  <bruno@clisp.org>
92064         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92065         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92066         digits for the exponent.
92068 2008-09-18  Jim Meyering  <meyering@redhat.com>
92069             Bruno Haible  <bruno@clisp.org>
92071         * lib/vasnprintf.c (decimal_point_char): Define also if
92072         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92074 2008-09-16  Bruno Haible  <bruno@clisp.org>
92075         and Eric Blake  <ebb9@byu.net>
92077         vasnprintf: support Irix 5.3
92078         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92079         that mishandle long double infinity.
92080         Reported by Tom G. Christensen.
92082 2008-09-16  Bruno Haible  <bruno@clisp.org>
92084         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92085         Solaris 9.
92086         * doc/glibc-functions/alphasort.texi: Likewise.
92087         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92089 2008-09-16  Jim Meyering  <meyering@redhat.com>
92091         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92092         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92093         a umask modification leak out of a subshell.  Otherwise, the
92094         opensolaris /bin/sh would be accepted and thus cause unwarranted
92095         failures in the coreutils test suite.
92097 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92099         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92100         to succeed.
92102 2008-09-16  Jim Meyering  <meyering@redhat.com>
92104         avoid spurious test failure when library is built without ACL support
92105         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92106         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92107         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92108         * tests/test-copy-acl.sh: Likewise.
92110 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92112         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92113         based on character occurrence counts.
92115 2008-09-15  Eric Blake  <ebb9@byu.net>
92117         tests: avoid some compiler warnings
92118         * tests/test-memchr.c (main): Pass NULL indirectly.
92119         * tests/test-closein.c (main): Avoid unused variable.
92121 2008-09-15  Bruno Haible  <bruno@clisp.org>
92123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92124         are missing on OpenBSD 4.0 individually.
92125         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92127 2008-09-15  Bruno Haible  <bruno@clisp.org>
92129         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92130         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92131         * doc/posix-functions/perror.texi: Likewise.
92132         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92133         is missing.
92134         Reported by Eric Blake.
92136         * lib/errno.in.h: Use replacement values >= 2000.
92137         Reported by Eric Blake.
92139 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92141         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92142         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92143         limit.
92144         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92145         compareseq was aborted.
92147 2008-09-14  Bruno Haible  <bruno@clisp.org>
92149         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92150         yvec_edit_count.
92151         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92152         (fstrcmp_bounded): Simplify result computation accordingly.
92154 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92156         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92157         (fstrcmp): Define in terms of fstrcmp_bounded.
92158         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92159         lower_bound argument.
92160         Return quickly if the result is certainly < lower_bound.
92161         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92163 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92165         * lib/diffseq.h (EARLY_ABORT): New macro.
92166         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92167         evaluates to true.
92169 2008-09-14  Bruno Haible  <bruno@clisp.org>
92171         * modules/perror-tests: New file.
92172         * tests/test-perror.sh: New file.
92173         * tests/test-perror.c: New file.
92175         New module 'perror'.
92176         * lib/stdio.in.h (perror): New declaration.
92177         * lib/perror.c: New file.
92178         * m4/perror.m4: New file.
92179         * modules/perror: New file.
92180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92181         * doc/posix-functions/perror.texi: Mention the perror module.
92182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92183         REPLACE_PERROR.
92184         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92185         REPLACE_PERROR.
92187 2008-09-14  Bruno Haible  <bruno@clisp.org>
92189         * modules/stdio (Makefile.am): Reorder to match the order in
92190         lib/stdio.in.h.
92191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92193 2008-09-13  Bruno Haible  <bruno@clisp.org>
92195         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92197 2008-09-13  Bruno Haible  <bruno@clisp.org>
92199         Extend strerror to cover the added errno values.
92200         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92201         (rpl_strerror): Provide error messages for the added errno values and
92202         for the WSA* values.
92203         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92204         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92205         strerror.
92206         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92207         * modules/strerror (Depends-on): Add errno.
92208         * doc/posix-functions/strerror.texi: Document the change.
92209         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92210         and EOVERFLOW.
92212 2008-09-13  Bruno Haible  <bruno@clisp.org>
92214         * modules/EOVERFLOW: Remove file.
92215         * m4/eoverflow.m4: Remove file.
92216         * modules/EOVERFLOW-tests: Remove file.
92217         * tests/test-EOVERFLOW.c: Remove file.
92218         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92219         * modules/ftell (Depends-on): Likewise.
92220         * modules/getdelim (Depends-on): Likewise.
92221         * modules/getugroups (Depends-on): Likewise.
92222         * modules/poll (Depends-on): Likewise.
92223         * modules/snprintf (Depends-on): Likewise.
92224         * modules/sprintf-posix (Depends-on): Likewise.
92225         * modules/vasnprintf (Depends-on): Likewise.
92226         * modules/vasprintf (Depends-on): Likewise.
92227         * modules/vfprintf-posix (Depends-on): Likewise.
92228         * modules/vsnprintf (Depends-on): Likewise.
92229         * modules/vsprintf-posix (Depends-on): Likewise.
92230         * modules/xvasprintf (Depends-on): Likewise.
92231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92232         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92233         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92234         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92235         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92236         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92237         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92238         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92239         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92240         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92241         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92242         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92243         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92244         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92245         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92246         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92247         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92248         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92249         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92250         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92251         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92252         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92253         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92254         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92255         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92256         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92257         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92258         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92259         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92260         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92261         * MODULES.html.sh: Remove EOVERFLOW.
92262         * NEWS: Mention the change.
92264 2008-09-13  Bruno Haible  <bruno@clisp.org>
92266         * modules/errno-tests: New file.
92267         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92269         * lib/errno.in.h: New file.
92270         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92271         * modules/errno: New file.
92272         * doc/posix-headers/errno.texi: Update documentation.
92273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92275 2008-09-13  Bruno Haible  <bruno@clisp.org>
92277         * tests/test-poll.c: Use #if for native Windows, rather than testing
92278         __MSVCRT__.
92280 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92281             Bruno Haible  <bruno@clisp.org>
92283         * lib/glob.c: Don't include <pwd.h> on native Windows.
92284         (WINDOWS32): New macro.
92285         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92287 2008-09-13  Bruno Haible  <bruno@clisp.org>
92289         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92290         (ETIMEDOUT): Remove macro.
92291         (glthread_cond_timedwait_multithreaded): New declaration.
92292         (glthread_cond_timedwait): Use it.
92293         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92294         (glthread_cond_timedwait_multithreaded): New function.
92296 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92298         * modules/poll-tests: Do not check for io.h.
92299         * tests/test-poll.c: Check for __MSVCRT__ instead.
92301 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92303         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92304         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92305         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92309         * modules/poll-tests: New.
92310         * tests/test-poll.c: New.
92312 2008-09-12  Eric Blake  <ebb9@byu.net>
92314         frexp: test for NetBSD failure on -0.0
92315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92316         not all, bugs from NetBSD 3.0 have been fixed.
92317         * doc/posix-functions/frexp.texi (frexp): Document bug.
92318         Reported by Thomas Klausner.
92320         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92321         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92322         literal -0.0.
92323         Reported by Jonathan C. Patschke <jp@centtech.com>.
92325 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92327         * lib/glthread/cond.h: Use dummy implementation also if
92328         USE_WIN32_THREADS.
92330 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92332         * modules/fnmatch-posix (License): Change to LGPLv2+.
92333         * modules/fnmatch-gnu (License): Likewise.
92335 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92337         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92339 2008-09-11  Jim Meyering  <meyering@redhat.com>
92341         * users.txt: Add gtk-vnc.
92343 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92345         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92346         rotate amounts.
92348         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92349         required for 16-bit and 8-bit rotates.
92350         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92351         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92352         UINT8_MAX instead of hard-coded constants.
92353         Suggested by Paul Eggert.
92355 2008-09-07  Bruno Haible  <bruno@clisp.org>
92357         * tests/test-striconveh.c (main): Check behaviour when converting from
92358         UTF-7.
92360         Make striconveh work better with stateful encodings.
92361         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92362         that iconv does not increment the inptr when returning -1/EINVAL.
92364 2008-09-07  Bruno Haible  <bruno@clisp.org>
92366         * build-aux/config.rpath: Update according to libtool-2.2.6.
92367         * build-aux/config.libpath: Likewise.
92369 2008-09-06  Bruno Haible  <bruno@clisp.org>
92371         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92372         * lib/freadptr.c (freadptr): Likewise.
92373         * lib/freadseek.c (freadptrinc): Likewise.
92374         Reported by Simon Josefsson.
92376 2008-09-06  Bruno Haible  <bruno@clisp.org>
92378         * modules/freadptr (License): Change to LGPLv2+.
92379         * modules/freadseek (License): Likewise.
92380         Suggested by Eric Blake.
92382         * modules/memchr2 (License): Change to LGPLv2+.
92383         Approved by Eric Blake.
92385 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92386             Bruno Haible  <bruno@clisp.org>
92388         Make gnulib-tool work with native 'sed' on AIX.
92389         * gnulib-tool (sed_noop): New variable.
92390         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92391         func_add_or_update, func_create_testdir): Use it to initialize sed
92392         script variables.
92393         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92395 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92396             Bruno Haible  <bruno@clisp.org>
92398         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92399         also works after #include directives.
92401 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92403         getdate.y: reject an out-of-range timezone value
92404         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92405         the range [-24...+24].  When specified with only one or two digits,
92406         * tests/test-getdate.c: Tests for the fix.
92407         * doc/getdate.texi: Document this change.
92409 2008-09-03  Bruno Haible  <bruno@clisp.org>
92411         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92413 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92415         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92416         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92417         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92418         Blake <ebb9@byu.net>.
92420         * tests/test-bitrotate.c: Add more test vectors.
92422 2008-09-02  Eric Blake  <ebb9@byu.net>
92424         vasnprintf-posix: handle large precision via %.*d
92425         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92426         when handling it ourselves.
92427         * tests/test-vasnprintf-posix.c (test_function): Add test.
92428         * tests/test-snprintf-posix.h (test_function): Likewise.
92429         * tests/test-sprintf-posix.h (test_function): Likewise.
92430         * tests/test-vasprintf-posix.c (test_function): Likewise.
92431         Reported by Alain Guibert.
92433 2008-09-01  Eric Blake  <ebb9@byu.net>
92435         c-stack: make configure-time check more robust
92436         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92437         successful sigaction call.
92438         Reported by Tom G. Christensen.
92440 2008-09-01  Bruno Haible  <bruno@clisp.org>
92442         New module 'findprog-lgpl'.
92443         * modules/findprog-lgpl: New file.
92444         * lib/findprog-lgpl.c: New file.
92445         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92446         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92447         to decide whether to use strdup or xstrdup, concatenated_filename or
92448         xconcatenated_filename.
92450 2008-09-01  Bruno Haible  <bruno@clisp.org>
92452         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92453         'xconcat-filename' (GPL).
92454         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92455         (License): Change to LGPLv2+.
92456         * modules/xconcat-filename: New file.
92457         * lib/concat-filename.h (concatenated_filename): Change specification.
92458         (xconcatenated_filename): New declaration.
92459         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92460         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92461         memory situations.
92462         * lib/xconcat-filename.c: New file.
92463         * NEWS: Mention the change.
92464         * lib/findprog.c: Include concat-filename.h, not filename.h.
92465         (find_in_path): Use xconcatenated_filename instead of
92466         concatenated_filename.
92467         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92468         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92469         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92470         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92471         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92472         instead of concatenated_filename.
92473         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92474         (execute_java_class): Use xconcatenated_filename instead of
92475         concatenated_filename.
92476         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92477         * modules/javacomp (Depends-on): Likewise.
92478         * modules/javaexec (Depends-on): Likewise.
92480 2008-09-01  Bruno Haible  <bruno@clisp.org>
92482         Split module 'filename' into 'filename' and 'concat-filename'.
92483         * modules/filename: Keep only lib/filename.h.
92484         (License): Change to LGPLv2+.
92485         * modules/concat-filename: New file, extracted from modules/filename.
92486         * lib/filename.h (concatenated_filename): Remove declaration.
92487         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92488         * lib/concat-filename.c: Include concat-filename.h.
92489         * NEWS: Mention the change.
92491 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92493         * lib/bitrotate.h (rotl8, rotr8): Add.
92495         * modules/bitrotate (configure.ac): Need
92496         AC_REQUIRE([AC_C_INLINE]).
92497         (Description): Mention stdint.h.  Reported by Bruno Haible
92498         <bruno@clisp.org>.
92500         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92501         Paolo Bonzini <bonzini@gnu.org>.
92503 2008-08-31  Bruno Haible  <bruno@clisp.org>
92505         Assume Solaris specific bi-arch conventions on Solaris systems.
92506         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92507         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92509         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92510         like acl_libdirstem.
92511         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92512         acl_libdirstem.
92513         * NEWS: Mention the change.
92514         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92516 2008-08-31  Jim Meyering  <meyering@redhat.com>
92518         * lib/strftime.h: Add comments describing the two added arguments.
92520         remove duplicate #include directives
92521         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92522         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92524 2008-08-31  Bruno Haible  <bruno@clisp.org>
92526         New module 'sigpipe-die'.
92527         * modules/sigpipe-die: New file.
92528         * lib/sigpipe-die.h: New file.
92529         * lib/sigpipe-die.c: New file.
92530         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92532 2008-08-31  Bruno Haible  <bruno@clisp.org>
92534         Don't override previously installed signal handlers.
92535         * lib/fatal-signal.c (saved_sigactions): New variable.
92536         (uninstall_handlers): Reset the signal to the saved handler, not
92537         to SIG_DFL (except when ignored).
92538         (install_handlers): Save the previous handlers.
92540 2008-08-30  Bruno Haible  <bruno@clisp.org>
92542         * gnulib-tool (func_reset_sigpipe): New function.
92543         (func_get_automake_snippet, func_modules_transitive_closure,
92544         func_import): Invoke it before a join command that reads from stdin,
92545         to avoid "echo: write error: Broken pipe" error messages on stderr.
92546         Reported by Sam Steingold <sds@gnu.org>.
92548 2008-08-30  Bruno Haible  <bruno@clisp.org>
92550         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92551         Code copied from m4/open.m4.
92552         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92553         access and the filename ends in a slash. Code copied from lib/open.c.
92554         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92555         * tests/test-fopen.c (main): Check against bug with trailing slash.
92557 2008-08-29  Bruno Haible  <bruno@clisp.org>
92559         Avoid some "gcc -pedantic" warnings.
92560         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92561         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92562         * lib/dirent.in.h: Likewise.
92563         * lib/fcntl.in.h: Likewise.
92564         * lib/float.in.h: Likewise.
92565         * lib/iconv.in.h: Likewise.
92566         * lib/inttypes.in.h: Likewise.
92567         * lib/locale.in.h: Likewise.
92568         * lib/math.in.h: Likewise.
92569         * lib/netinet_in.in.h: Likewise.
92570         * lib/search.in.h: Likewise.
92571         * lib/signal.in.h: Likewise.
92572         * lib/stdarg.in.h: Likewise.
92573         * lib/stdint.in.h: Likewise.
92574         * lib/stdio.in.h: Likewise.
92575         * lib/stdlib.in.h: Likewise.
92576         * lib/string.in.h: Likewise.
92577         * lib/strings.in.h: Likewise.
92578         * lib/sys_select.in.h: Likewise.
92579         * lib/sys_socket.in.h: Likewise.
92580         * lib/sys_stat.in.h: Likewise.
92581         * lib/sys_time.in.h: Likewise.
92582         * lib/sysexits.in.h: Likewise.
92583         * lib/time.in.h: Likewise.
92584         * lib/unistd.in.h: Likewise.
92585         * lib/wchar.in.h: Likewise.
92586         * lib/wctype.in.h: Likewise.
92587         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92588         * modules/fchdir (Makefile.am): Likewise.
92589         * modules/fcntl (Makefile.am): Likewise.
92590         * modules/float (Makefile.am): Likewise.
92591         * modules/iconv_open (Makefile.am): Likewise.
92592         * modules/inttypes (Makefile.am): Likewise.
92593         * modules/locale (Makefile.am): Likewise.
92594         * modules/math (Makefile.am): Likewise.
92595         * modules/netinet_in (Makefile.am): Likewise.
92596         * modules/search (Makefile.am): Likewise.
92597         * modules/signal (Makefile.am): Likewise.
92598         * modules/stdarg (Makefile.am): Likewise.
92599         * modules/stdint (Makefile.am): Likewise.
92600         * modules/stdio (Makefile.am): Likewise.
92601         * modules/stdlib (Makefile.am): Likewise.
92602         * modules/string (Makefile.am): Likewise.
92603         * modules/strings (Makefile.am): Likewise.
92604         * modules/sys_select (Makefile.am): Likewise.
92605         * modules/sys_socket (Makefile.am): Likewise.
92606         * modules/sys_stat (Makefile.am): Likewise.
92607         * modules/sys_time (Makefile.am): Likewise.
92608         * modules/sysexits (Makefile.am): Likewise.
92609         * modules/time (Makefile.am): Likewise.
92610         * modules/unistd (Makefile.am): Likewise.
92611         * modules/wchar (Makefile.am): Likewise.
92612         * modules/wctype (Makefile.am): Likewise.
92613         Reported by Reuben Thomas <rrt@sc3d.org>.
92615 2008-08-29  Bruno Haible  <bruno@clisp.org>
92617         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92618         any more.
92620 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92622         * MODULES.html.sh (Misc): Add bitrotate.
92624         * modules/bitrotate: New file.
92626         * lib/bitrotate.h: New file.
92628         * modules/bitrotate-tests: New file.
92630         * tests/test-bitrotate.c: New file.
92632         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92633         on the bitrotate module.
92635         * lib/arctwo.c: Use new bitrotate module.
92637 2008-08-29  Jim Meyering  <meyering@redhat.com>
92639         bootstrap: merge changes from coreutils
92640         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92641         of copied files.  Remove a kludge, now that this is fixed.
92642         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92643         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92644         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92646 2008-08-29  Bruno Haible  <bruno@clisp.org>
92648         * MODULES.html.sh: Remove --cvs-urls option.
92650 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92652         maint.mk: adjust to file name change
92653         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92655 2008-08-28  Jim Meyering  <meyering@redhat.com>
92657         * modules/getndelim2 (License): Relicense to LGPLv2+.
92658         Approved by Richard Stallman for the version of 1995, and by
92659         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92661 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92663         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92664         dummy if one is not available.  Do not touch them if
92665         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92666         (getc_maybe_unlocked): New.
92667         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92669 2008-08-26  Eric Blake  <ebb9@byu.net>
92671         doc/INSTALL: resync from autoconf
92672         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92673         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92674         moving...
92675         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92676         * INSTALL: Regenerate.
92677         * INSTALL.ISO: New file.
92678         * INSTALL.UTF-8: Likewise.
92680 2008-08-26  Jim Meyering  <meyering@redhat.com>
92682         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92683         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92684         these definitions conditional, so that they may be overridden, too.
92686 2008-08-26  Bruno Haible  <bruno@clisp.org>
92688         Generate INSTALL file variants with prettier quotes.
92689         * doc/Makefile (INSTALL_PRELUDE): New macro.
92690         (INSTALL): Use it.
92691         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92693 2008-08-26  Bruno Haible  <bruno@clisp.org>
92695         Run makeinfo in an English locale.
92696         * doc/Makefile (MAKEINFO): New variable.
92698 2008-08-26  Bruno Haible  <bruno@clisp.org>
92700         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92701         Suggested by Eric Blake.
92703 2008-08-25  Bruno Haible  <bruno@clisp.org>
92705         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92707 2008-08-25  Eric Blake  <ebb9@byu.net>
92709         c-stack: test that stack overflow can be caught
92710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92711         that platform allows handling stack overflow; at least OS/2 EMX
92712         has sigaltstack, but crashes before transferring control to
92713         handler on stack overflow.
92714         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92715         check for HAVE_STACK_OVERFLOW_HANDLING.
92716         Reported by Elbert Pol.
92718 2008-08-25  Bruno Haible  <bruno@clisp.org>
92720         * doc/posix-functions/strftime.texi: Fix description of strftime
92721         module.
92723 2008-08-24  Bruno Haible  <bruno@clisp.org>
92725         * tests/uniwidth/test-uc_width2.c: New file.
92726         * tests/uniwidth/test-uc_width2.sh: New file.
92727         * modules/uniwidth/width-tests (Files): Add the new files.
92728         (TESTS): Add uniwidth/test-uc_width2.sh.
92729         (TESTS_ENVIRONMENT): New variable.
92730         (check_PROGRAMS): Add test-uc_width2.
92731         (test_uc_width2_SOURCES): New variable.
92733         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92734         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92735         not 0x00AB.
92736         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92738 2008-08-22  Eric Blake  <ebb9@byu.net>
92740         test-lock, test-tls: mention why a test is skipped
92741         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92742         skipped.
92743         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92745         count-one-bits: relax license
92746         * modules/count-one-bits (License): Relicense to LGPLv2+.
92747         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92749 2008-08-22  Andreas Schwab  <schwab@suse.de>
92751         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92752         Remove spurious space in assignment.
92754 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92756         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92757         Paul Eggert <eggert@CS.UCLA.EDU>.
92759 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92761         * modules/gettext: Add m4/threadlib.m4.
92763 2008-08-19  Eric Blake  <ebb9@byu.net>
92765         test-c-stack: fix compilation failure on FreeBSD 5.0
92766         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92767         headers before <sys/resource.h>.
92768         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92769         the bug.
92770         Reported by Nelson H. F. Beebe.
92772         strverscmp: migrate from "strverscmp.h" to <string.h>
92773         * modules/string (Makefile.am): Add new hooks.
92774         * modules/strverscmp (Files): Remove strverscmp.h.
92775         (Depends-on): Add string.
92776         (configure.ac): Add indicator.
92777         (Include): Mention new header.
92778         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92779         defaults.
92780         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92781         results.
92782         * lib/strverscmp.h: Delete.
92783         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92784         * tests/test-strverscmp.c (includes): Adjust client.
92785         * lib/check-version.c (includes): Likewise.
92786         * NEWS: Document the change.
92788         strverscmp: add unit test
92789         * modules/strverscmp-tests: New file.
92790         * tests/test-strverscmp.c: Likewise.
92792 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92794         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92795         regarding Windows crypto stuff, from Mono.
92797 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92799         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92800         if present, for intel RND.  Return error on failures.
92802 2008-08-18  Ben Pfaff  <blp@gnu.org>
92804         gitlog-to-changelog: give better diagnostic for failed pipe-open
92805         * build-aux/gitlog-to-changelog: Improve error message: suggest
92806         that the version of Git may be too old.
92808 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92810         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92811         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92813 2008-08-18  Bruno Haible  <bruno@clisp.org>
92815         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92816         pthread_in_use().
92818 2008-08-18  Bruno Haible  <bruno@clisp.org>
92820         * lib/glthread/threadlib.c: Include <pthread.h>.
92822 2008-08-18  Bruno Haible  <bruno@clisp.org>
92824         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92825         glthread_recursive_lock_* macros.
92826         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92827         Fix syntax error.
92829 2008-08-18  Bruno Haible  <bruno@clisp.org>
92831         * lib/glthread/thread.c: Avoid forcing a context switch right after
92832         thread creation.
92834 2008-08-17  Bruno Haible  <bruno@clisp.org>
92836         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92837         * lib/glthread/thread.h: Provide Win32 specific implementation.
92838         * modules/thread (Files): Add lib/glthread/thread.c.
92839         (Depends-on): Add lock.
92840         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92842 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92844         New module 'yield'.
92845         * modules/yield: New file.
92846         * lib/glthread/yield.h: New file.
92847         * m4/yield.m4: New file.
92848         * MODULES.html.sh (Multithreading): Add yield.
92850 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92852         New module 'thread'.
92853         * modules/thread: New file.
92854         * lib/glthread/thread.h: New file.
92855         * m4/thread.m4: New file.
92856         * MODULES.html.sh (Multithreading): Add thread.
92858 2008-08-17  Bruno Haible  <bruno@clisp.org>
92860         * lib/glthread/lock.h: Include <stdlib.h> always.
92861         * lib/glthread/tls.h: Likewise.
92862         * lib/glthread/cond.h: Likewise.
92864 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92866         New module 'cond'.
92867         * modules/cond: New file.
92868         * lib/glthread/cond.h: New file.
92869         * lib/glthread/cond.c: New file.
92870         * m4/cond.m4: New file.
92871         * MODULES.html.sh (Multithreading): Add cond.
92873 2008-08-16  Eric Blake  <ebb9@byu.net>
92875         c-stack: fix regression on Irix 5.3 from 2008-06-21
92876         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92877         sa_sigaction...
92878         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92879         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92880         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92881         * modules/signal (Makefile.am): Use the value.
92882         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92883         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92884         * doc/posix-headers/signal.texi (signal.h): Document this
92885         portability issue.
92886         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92887         Reported by Tom G. Christensen.
92889 2008-08-17  Bruno Haible  <bruno@clisp.org>
92891         New module 'threadlib'.
92892         * modules/threadlib: New file.
92893         * lib/glthread/threadlib.c: New file, extracted from
92894         lib/glthread/lock.c.
92895         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92896         functions.
92897         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92898         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92899         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92900         macros.
92901         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92902         (gl_DISABLE_THREADS): Remove macro.
92903         * modules/lock (Files): Remove build-aux/config.rpath.
92904         (Depends-on): Remove havelib. Add threadlib.
92905         (configure.ac-early): Remove section.
92906         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92907         * modules/tls (Depends-on): Remove lock. Add threadlib.
92908         (Link): New section, copied from threadlib.
92909         * MODULES.html.sh (Multithreading): Add threadlib.
92911 2008-08-14  Bruno Haible  <bruno@clisp.org>
92913         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92914         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92915         glthread_rwlock_unlock, glthread_rwlock_destroy,
92916         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92917         glthread_recursive_lock_destroy): Define as macros always.
92918         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92919         glthread_lock_lock.
92920         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92921         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92922         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92923         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92924         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92925         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92926         (glthread_recursive_lock_lock_func): Renamed from
92927         glthread_recursive_lock_lock.
92928         (glthread_recursive_lock_unlock_func): Renamed from
92929         glthread_recursive_lock_unlock.
92930         (glthread_recursive_lock_destroy_func): Renamed from
92931         glthread_recursive_lock_destroy.
92933 2008-08-14  Bruno Haible  <bruno@clisp.org>
92935         * lib/glthread/lock.h: Renamed from lib/lock.h.
92936         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92937         * lib/glthread/tls.h: Renamed from lib/tls.h.
92938         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92939         * lib/fstrcmp.c: Update includes.
92940         * lib/strsignal.c: Update includes.
92941         * modules/lock (Files, Makefile.am): Update.
92942         (Include): Change to "glthread/lock.h".
92943         * modules/tls (Files, Makefile.am): Update.
92944         (Include): Change to "glthread/tls.h".
92945         * tests/test-lock.c: Update includes.
92946         * tests/test-tls.c: Update includes.
92947         * NEWS: Mention the renamed header files.
92949 2008-08-11  Jim Meyering  <meyering@redhat.com>
92951         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92953 2008-08-11  Eric Blake  <ebb9@byu.net>
92955         test-c-stack: avoid C99-ism
92956         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92957         before statement.
92958         Reported by Alain Guibert.
92960 2008-08-10  Jim Meyering  <meyering@redhat.com>
92962         ensure that return value of uinttostr et al are not ignored
92963         * lib/inttostr.h (__GNUC_PREREQ): Define.
92964         (__attribute_warn_unused_result__): Define.
92965         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92967 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92969         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92970         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92972 2008-08-07  Jim Meyering  <meyering@redhat.com>
92974         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92976         * modules/mkstemp (License): Relicense under LGPLv2+.
92977         * modules/tempname (License): Likewise.
92979 2008-08-06  Bruno Haible  <bruno@clisp.org>
92981         * lib/poll.c (poll): Further micro-optimization.
92983 2008-08-06  Jim Meyering  <meyering@redhat.com>
92985         inet_pton.c: use locale-independent tolower
92986         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92987         (inet_pton6): Use c_tolower rather than tolower.
92988         * modules/inet_pton (Depends-on): Add c-ctype.
92990 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92992         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92993         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92995 2008-08-06  Jim Meyering  <meyering@redhat.com>
92997         * modules/inet_pton (License): Relicense under LGPLv2+.
92999 2008-08-03  Bruno Haible  <bruno@clisp.org>
93001         Additional non-aborting API for lock and tls.
93002         * lib/lock.h: Include <errno.h>.
93003         (glthread_lock_init): New macro/function.
93004         (gl_lock_init): Define as wrapper around glthread_lock_init.
93005         (glthread_lock_lock): New macro/function.
93006         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93007         (glthread_lock_unlock): New macro/function.
93008         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93009         (glthread_lock_destroy): New macro/function.
93010         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93011         (glthread_rwlock_init): New macro/function.
93012         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93013         (glthread_rwlock_rdlock): New macro/function.
93014         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93015         (glthread_rwlock_wrlock): New macro/function.
93016         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93017         (glthread_rwlock_unlock): New macro/function.
93018         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93019         (glthread_rwlock_destroy): New macro/function.
93020         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93021         (glthread_recursive_lock_init): New macro/function.
93022         (gl_recursive_lock_init): Define as wrapper around
93023         glthread_recursive_lock_init.
93024         (glthread_recursive_lock_lock): New macro/function.
93025         (gl_recursive_lock_lock): Define as wrapper around
93026         glthread_recursive_lock_lock.
93027         (glthread_recursive_lock_unlock): New macro/function.
93028         (gl_recursive_lock_unlock): Define as wrapper around
93029         glthread_recursive_lock_unlock.
93030         (glthread_recursive_lock_destroy): New macro/function.
93031         (gl_recursive_lock_destroy): Define as wrapper around
93032         glthread_recursive_lock_destroy.
93033         (glthread_once): New macro/function.
93034         (gl_once): Define as wrapper around glthread_once.
93035         Update function declarations.
93036         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93037         glthread_rwlock_init. Return error code.
93038         (glthread_rwlock_rdlock_multithreaded): Renamed from
93039         glthread_rwlock_rdlock. Return error code.
93040         (glthread_rwlock_wrlock_multithreaded): Renamed from
93041         glthread_rwlock_wrlock. Return error code.
93042         (glthread_rwlock_unlock_multithreaded): Renamed from
93043         glthread_rwlock_unlock. Return error code.
93044         (glthread_rwlock_destroy_multithreaded): Renamed from
93045         glthread_rwlock_destroy. Return error code.
93046         (glthread_recursive_lock_init_multithreaded): Renamed from
93047         glthread_recursive_lock_init. Return error code.
93048         (glthread_recursive_lock_lock_multithreaded): Renamed from
93049         glthread_recursive_lock_lock. Return error code.
93050         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93051         glthread_recursive_lock_unlock. Return error code.
93052         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93053         glthread_recursive_lock_destroy. Return error code.
93054         (glthread_once_call): Make static.
93055         (glthread_once_multithreaded): Renamed from glthread_once.
93056         * lib/tls.h: Include <errno.h>.
93057         (glthread_tls_key_init): New macro/function.
93058         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93059         (glthread_tls_set): New macro/function.
93060         (gl_tls_set): Define as wrapper around glthread_tls_set.
93061         (glthread_tls_key_destroy): New macro/function.
93062         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93063         Update function declarations.
93064         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93065         glthread_tls_get.
93066         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93068 2008-08-04  Eric Blake  <ebb9@byu.net>
93070         gnumakefile: use space, not TAB, outside of targets
93071         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93073 2008-08-02  Jim Meyering  <meyering@redhat.com>
93075         getdate.y: avoid locale-dependent date parsing failure
93076         In Turkish locales, getdate would fail to recognize keywords
93077         containing a lowercase "i".  The solution is not to rely on
93078         locale-sensitive case-conversion.
93079         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93080         (lookup_word): Use c_toupper in place of toupper.
93081         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93082         Reported by Vefa Bicakci <bicave@superonline.com> in
93083         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93084         * modules/getdate (Depends-on): Add c-ctype.
93086 2008-08-02  Bruno Haible  <bruno@clisp.org>
93088         * gnulib-tool (func_import): When updating or creating a .gitignore
93089         file, prepend each added line with a slash, and ignore leading slashes
93090         from the existing lines.
93091         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93093 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93095         Portability fix for GNU make 3.79.1.
93096         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93097         versions do not understand.
93099 2008-08-01  Bruno Haible  <bruno@clisp.org>
93101         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93102         * tests/test-isnanf.h (zero): New variable.
93103         (main): Avoid literal -0.0f.
93104         * tests/test-isnand.h (zero): New variable.
93105         (main): Avoid literal -0.0.
93106         * tests/test-isnanl.h (zero): New variable.
93107         (main): Avoid literal -0.0L.
93108         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93109         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93110         -0.0, -0.0L.
93111         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93112         (test_signbitd): Avoid literal -0.0.
93113         (test_signbitl): Avoid literal -0.0L.
93114         * tests/test-ceilf1.c (zero): New variable.
93115         (main): Avoid literal -0.0f.
93116         * tests/test-ceill.c (zero): New variable.
93117         (main): Avoid literal -0.0L.
93118         * tests/test-floorf1.c (zero): New variable.
93119         (main): Avoid literal -0.0f.
93120         * tests/test-floorl.c (zero): New variable.
93121         (main): Avoid literal -0.0L.
93122         * tests/test-roundf1.c (zero): New variable.
93123         (main): Avoid literal -0.0f.
93124         * tests/test-round1.c (zero): New variable.
93125         (main): Avoid literal -0.0.
93126         * tests/test-roundl.c (zero): New variable.
93127         (main): Avoid literal -0.0L.
93128         * tests/test-truncf1.c (zero): New variable.
93129         (main): Avoid literal -0.0f.
93130         * tests/test-trunc1.c (zero): New variable.
93131         (main): Avoid literal -0.0.
93132         * tests/test-truncl.c (zero): New variable.
93133         (main): Avoid literal -0.0L.
93134         * tests/test-frexp.c (zero): New variable.
93135         (main): Avoid literal -0.0.
93136         * tests/test-frexpl.c (zero): New variable.
93137         (main): Avoid literal -0.0L.
93138         * tests/test-ldexpl.c (zero): New variable.
93139         (main): Avoid literal -0.0L.
93140         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93141         (zerod, zerol): New variables.
93142         (test_function): Avoid literals -0.0, -0.0L.
93143         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93144         (zerod, zerol): New variables.
93145         (test_function): Avoid literals -0.0, -0.0L.
93146         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93147         (zerod, zerol): New variables.
93148         (test_function): Avoid literals -0.0, -0.0L.
93149         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93150         (zerod, zerol): New variables.
93151         (test_function): Avoid literals -0.0, -0.0L.
93152         * tests/test-strtod.c (zero): New variable.
93153         (main): Avoid literal -0.0.
93154         Reported by Jonathan C. Patschke <jp@centtech.com>.
93156 2008-07-31  Jim Meyering  <meyering@redhat.com>
93158         sha256.h: correct definition of SHA224_DIGEST_SIZE
93159         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93160         Reported by Paulie Pena IV <paulie4@gmail.com>.
93161         Define as 224 / 8, rather than as a literal.
93162         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93163         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93164         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93166 2008-07-31  Bruno Haible  <bruno@clisp.org>
93168         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93169         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93170         Reported by Jonathan Patschke <jp@centtech.com>.
93172 2008-07-31  Bruno Haible  <bruno@clisp.org>
93174         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93175         Reported by Paolo Bonzini <bonzini@gnu.org>.
93177 2008-07-30  Eric Blake  <ebb9@byu.net>
93179         test-strtod: allow compilation without -lm
93180         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93181         Reported by Dennis Clarke <blastwave@gmail.com>.
93183 2008-07-28  Jim Meyering  <meyering@redhat.com>
93185         bootstrap: work also when there are no .po files in po/
93186         * build-aux/bootstrap (update_po_files): Complete the change
93187         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93189 2008-07-27  Jim Meyering  <meyering@redhat.com>
93191         * users.txt: Add zile.
93193 2008-07-26  Ben Pfaff  <blp@gnu.org>
93195         Add missing dependencies on new m4/exponent[fdl].m4 files.
93196         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93197         * modules/isnand-nolibm: Add m4/exponentd.m4.
93198         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93199         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93200         m4/isnan[fdl].m4, because the macros actually used moved.
93201         Reported by Jim Meyering.
93203 2008-07-14  Ben Pfaff  <blp@gnu.org>
93205         Add isinf module.
93206         * lib/isinf.c: New file.
93207         * lib/math.in.h: Define isinf macro if we have decided to replace
93208         it.
93209         * m4/isinf.m4: New file.
93210         * m4/math_h.m4: Initialize and substitute variables for isinf
93211         module.
93212         * modules/isinf: New file.
93213         * modules/isinf-tests: New file.
93214         * modules/math: Add substitutions for new module.
93215         * tests/test-isinf.c: New file.
93216         * doc/posix-functions/isinf.texi: Mention new module.
93217         * MODULES.html.sh: Mention new module.
93219 2008-07-14  Ben Pfaff  <blp@gnu.org>
93221         Factor out some macros for use by additional modules.
93222         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93223         exponentf.m4.
93224         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93225         exponentd.m4.
93226         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93227         file exponentl.m4.
93228         * m4/exponentf.m4: New file.
93229         * m4/exponentd.m4: New file.
93230         * m4/exponentl.m4: New file.
93231         * modules/isnanf: Use new file m4/exponentf.m4.
93232         * modules/isnand: Use new file m4/exponentd.m4.
93233         * modules/isnanl: Use new file m4/exponentl.m4.
93235 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93237         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93238         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93239         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93240         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93242         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93243         readlink on platforms without PATH_MAX.
93245 2008-07-21  Eric Blake  <ebb9@byu.net>
93247         Warn, not fail, on stale version.
93248         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93250         Don't allow installation with stale devel version number.
93251         * top/GNUmakefile (_is-install-target): New macro.
93252         (_curr-ver): Forbid installation with stale version number.
93254 2008-07-20  Bruno Haible  <bruno@clisp.org>
93256         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93257         TESTS_ENVIRONMENT.
93258         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93260 2008-07-20  Bruno Haible  <bruno@clisp.org>
93262         * lib/c-stack.h (c_stack_action): Add documentation.
93263         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93265 2008-07-20  Bruno Haible  <bruno@clisp.org>
93267         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93268         * modules/readlink (License): Likewise.
93270 2008-07-17  Eric Blake  <ebb9@byu.net>
93272         * modules/c-stack (Link): Fix typo.
93274         Make c-stack use libsigsegv, when available.
93275         * modules/c-stack (Depends-on): Add libsigsegv.
93276         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93277         needed.
93278         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93279         (segv_handler, overflow_handler, c_stack_action)
93280         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93281         implementation when libsigsegv is available, but only when using
93282         the library is necessary.
93283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93284         comment, explaining why XSI check fails on Linux.
93285         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93286         * tests/test-c-stack2.sh: Tweak skip message.
93287         * NEWS: Document new link-time requirements.
93289 2008-07-16  Eric Blake  <ebb9@byu.net>
93291         c-stack: Expose false positives when not using libsigsegv.
93292         * modules/c-stack-tests (Files): Expand test.
93293         * tests/test-c-stack.c (main): Add means to conditionally trigger
93294         non-overflow SIGSEGV.
93295         * tests/test-c-stack2.sh: New file.
93297 2008-07-14  Bruno Haible  <bruno@clisp.org>
93299         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93300         Reported by Eric Blake.
93302 2008-07-14  Sam Steingold  <sds@gnu.org>
93303             Bruno Haible  <bruno@clisp.org>
93305         New module libsigsegv.
93306         * modules/libsigsegv: New file.
93307         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93308         modifications.
93309         * MODULES.html.sh (Signal handling): New section.
93311 2008-07-14  Bruno Haible  <bruno@clisp.org>
93313         * modules/unictype/ctype-* (Description): Add the word "function".
93314         Improves the resulting doc in MODULES.html.
93316 2008-07-12  Ben Pfaff  <blp@gnu.org>
93318         Add longlong module.
93319         * modules/longlong: New file.
93321 2008-07-12  Bruno Haible  <bruno@clisp.org>
93323         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93324         to empty.
93326 2008-07-10  Ben Pfaff  <blp@gnu.org>
93328         Add isnan module.
93329         * doc/posix-functions/isnan.texi: Mention new module.
93330         * lib/math.in.h: Define isnan macro if we have decided to replace
93331         it.
93332         * m4/isnan.m4: New file.
93333         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93334         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93335         also.
93336         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93337         redundancy.
93338         * m4/math_h.m4: Initialize and substitute variables for isnan
93339         module.
93340         * modules/isnan: New file.
93341         * modules/isnan-tests: New file.
93342         * modules/math: Add substitutions for new module.
93343         * tests/test-isnan.c: New file.
93344         * MODULES.html.sh: Mention new module.
93346 2008-07-10  Ben Pfaff  <blp@gnu.org>
93348         Add isnanf module.
93349         * lib/isnanf.m4: New file.
93350         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93351         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93352         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93353         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93354         * modules/isnanf: New file.
93355         * modules/isnanf-tests: New file.
93356         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93357         files.
93358         * tests/test-isnanf-nolibm.c: factored most of its contents into
93359         new file tests/test-isnanf.h.
93360         * tests/test-isnanf.h: New file.
93361         * tests/test-isnanf.c: New file.
93362         * MODULES.html.sh: Mention new module.
93363         * doc/glibc-functions/isnanf.texi: Mention new module.
93365 2008-07-10  Ben Pfaff  <blp@gnu.org>
93367         Add isnand module.
93368         * lib/isnand.h: New file.
93369         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93370         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93371         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93372         functionality also.
93373         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93374         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93375         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93376         * modules/isnand: New file.
93377         * modules/isnand-tests: New file.
93378         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93379         files.
93380         * tests/test-isnand-nolibm.c: factored most of its contents into
93381         new file tests/test-isnand.h.
93382         * tests/test-isnand.h: New file.
93383         * tests/test-isnand.c: New file.
93384         * MODULES.html.sh: Mention new module.
93386 2008-07-10  Ben Pfaff  <blp@gnu.org>
93388         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93389         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93390         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93391         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93392         * modules/isnanf-nolibm: Update references to renamed files.
93393         * modules/isnand-nolibm: Likewise.
93394         * modules/isnanf-nolibm-tests: Likewise.
93395         * modules/isnand-nolibm-tests: Likewise.
93396         * lib/frexp.c: Likewise.
93397         * lib/isfinite.c: Likewise.
93398         * lib/signbitd.c: Likewise.
93399         * lib/signbitf.c: Likewise.
93400         * lib/vasnprintf.c: Likewise.
93401         * tests/test-ceilf1.c: Likewise.
93402         * tests/test-ceilf2.c: Likewise.
93403         * tests/test-floorf1.c: Likewise.
93404         * tests/test-floorf2.c: Likewise.
93405         * tests/test-frexp.c: Likewise.
93406         * tests/test-round1.c: Likewise.
93407         * tests/test-round2.c: Likewise.
93408         * tests/test-roundf1.c: Likewise.
93409         * tests/test-strtod.c: Likewise.
93410         * tests/test-trunc1.c: Likewise.
93411         * tests/test-trunc2.c: Likewise.
93412         * tests/test-truncf1.c: Likewise.
93413         * tests/test-truncf2.c: Likewise.
93414         * NEWS: Mention the renamed header files.
93416 2008-07-11  Jim Meyering  <meyering@redhat.com>
93418         vc-list-files: make the last-resort awk code more portable
93419         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93420         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93421         does not support it.
93423 2008-07-10  Eric Blake  <ebb9@byu.net>
93425         Work with tar's bootstrap.
93426         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93427         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93428         an m4 comment.
93430 2008-07-09  Jim Meyering  <meyering@redhat.com>
93432         posix-shell.m4: fix typo that made this test malfunction
93433         * m4/posix-shell.m4: Remove capitalization in variable name.
93435 2008-07-08  Bruno Haible  <bruno@clisp.org>
93437         * m4/onceonly.m4: Update comments.
93438         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93440 2008-07-04  Jim Meyering  <meyering@redhat.com>
93442         * users.txt: Add vc-dwim.
93443         (bison, coreutils): Use the gitweb URL.
93445 2008-07-03  Jim Meyering  <meyering@redhat.com>
93447         * users.txt: Add libffcall.  From Sam Steingold.
93449 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93451         getdate.y: do not ignore TZ with relative day, month or year offset
93452         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93453         relative-date-handling, since otherwise, the latter would clobber the
93454         sole output (an updated Start value) of the tz-handling block.
93455         * tests/test-getdate.c: Tests for the fix
93457 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93459         Recognize 'foo_LIBRARIES += libgnu.a'.
93460         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93461         makefile snippet has already specified an installation location,
93462         also using '+='.
93464 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93466         getdate.y: factor out common actions
93467         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93468         Use them in place of open-coded actions.
93470 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93472         Add self-test for getdate module.
93473         * modules/getdate-tests: New file.
93474         * tests/test-getdate.c: New file.
93476 2008-06-29  Bruno Haible  <bruno@clisp.org>
93478         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93479         .gitignore.
93480         Reported by Sylvain Beucler <beuc@beuc.net>.
93482 2008-06-29  Bruno Haible  <bruno@clisp.org>
93484         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93485         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93487 2008-06-29  Bruno Haible  <bruno@clisp.org>
93489         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93490         EXTRA_DIST.
93491         Reported by Sylvain Beucler <beuc@beuc.net>.
93493 2008-06-26  Jim Meyering  <meyering@redhat.com>
93495         make several modules depend on the "open" module
93496         This provides slightly increased consistency when opening-for-write
93497         the name of a non-directory spelled with a trailing slash.
93498         * modules/chdir-safer: Likewise.
93499         * modules/chown: Likewise.
93500         * modules/clean-temp: Likewise.
93501         * modules/copy-file: Likewise.
93502         * modules/fchdir: Likewise.
93503         * modules/fcntl-safer: Likewise.
93504         * modules/pipe: Likewise.
93505         * modules/utime: Likewise.
93506         Prompted by Eric Blake and Bruno Haible.
93508 2008-06-24  Andreas Schwab  <schwab@suse.de>
93510         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93511         literals can be used as initializers for global variables.
93513 2008-06-23  Eric Blake  <ebb9@byu.net>
93515         Make gnulib-cache.m4 easier to diff.
93516         * gnulib-tool (func_import): Allow newlines when reading cached
93517         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93519 2008-06-23  Bruno Haible  <bruno@clisp.org>
93521         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93522         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93523         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93524         m4/signalblocking.m4.
93525         (gl_PREREQ_SIGACTION): Don't invoke it.
93526         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93527         gl_PREREQ_SIG_HANDLER_H.
93528         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93529         Don't check for sigaction here.
93531 2008-06-23  Bruno Haible  <bruno@clisp.org>
93533         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93534         (install_handlers): Don't set the SA_RESETHAND flag.
93536 2008-06-23  Bruno Haible  <bruno@clisp.org>
93538         * m4/sigaction.m4: Comment fixes.
93539         * lib/signal.in.h: Likewise.
93541 2008-06-23  Eric Blake  <ebb9@byu.net>
93543         Fix typo.
93544         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93546         Avoid SA_ namespace.
93547         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93548         Reported by Ralf Wildenhues.
93550         Avoid test failure due to SA_RESTORER.
93551         * tests/test-sigaction.c (SA_MASK): New macro.
93552         (main): Avoid failing due to extension flags being set.
93553         Reported by Jim Meyering.
93555         Revert use of sig-handler.h in sigprocmask.c.
93556         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93557         it requires the existence of struct sigaction.
93558         * lib/sigprocmask.c (handler_t): Restore typedef.
93559         (rpl_signal, old_handlers): Use local type.
93561 2008-06-22  Bruno Haible  <bruno@clisp.org>
93563         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93564         conditionally.
93565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93567 2008-06-22  Bruno Haible  <bruno@clisp.org>
93569         * doc/posix-functions/siginterrupt.texi: Move note.
93571         * lib/signal.in.h (SA_RESTART): New macro.
93572         * lib/sigaction.c: Update comment.
93574         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93576         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93577         (gl_PREREQ_SIGPROCMASK): Invoke it.
93578         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93580         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93582         * lib/sigprocmask.c: Update a comment.
93584 2008-06-21  Eric Blake  <ebb9@byu.net>
93586         Use sigaction module rather than signal().
93587         * modules/c-stack (Depends-on): Add sigaction.
93588         * modules/fatal-signal (Depends-on): Likewise.
93589         * modules/nanosleep (Depends-on): Likewise.
93590         * modules/sigprocmask (Files): Add sig-handler.h.
93591         * modules/sigaction (Files): Likewise.
93592         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93593         Eggert.
93594         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93595         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93596         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93597         (init_fatal_signals): Likewise.
93598         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93599         (siginterrupt): Delete fallback.
93600         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93601         instead.
93602         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93603         siginterrupt.
93605         New module sigaction, for mingw.
93606         * modules/sigaction: New module...
93607         * modules/sigaction-tests: ...and its test.
93608         * m4/sigaction.m4: New file.
93609         * lib/sigaction.c: Likewise.
93610         * tests/test-sigaction.c: Likewise.
93611         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93612         * modules/signal (Makefile.am): Likewise.
93613         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93614         needed.
93615         * doc/posix-headers/signal.texi (signal.h): Mention provided
93616         types.
93617         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93618         that sigaction is preferable.
93619         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93620         module.
93621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93622         sigaction.
93624         Improve robustness of sigprocmask by overriding signal.
93625         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93626         is in use.
93627         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93628         (SIGKILL, SIGSTOP): Provide fallbacks.
93629         (rpl_signal): Implement.
93630         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93631         signal can be called inside handlers.
93633         Fix nanosleep module on mingw.
93634         * modules/nanosleep (Depends-on): Add sys_select.
93635         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93637         Fix licensing of sigprocmask.
93638         * modules/raise (License): Relicense as LGPL.
93640 2008-06-21  Bruno Haible  <bruno@clisp.org>
93642         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93643         result if it contains question marks.
93644         Reported by Michael Geng <linux@michaelgeng.de>.
93646 2008-06-19  Bruno Haible  <bruno@clisp.org>
93648         Fix CVS-ism.
93649         * doc/gnulib.texi: Include updated-stamp.texi.
93650         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93651         (updated-stamp.texi): New rule.
93652         (gnulib.info): Depend on it.
93653         * doc/.gitignore: Add updated-stamp.texi.
93654         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93656 2008-06-19  Bruno Haible  <bruno@clisp.org>
93658         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93659         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93661 2008-06-19  Eric Blake  <ebb9@byu.net>
93663         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93664         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93665         Reported by Stepan Kasal.
93667 2008-06-18  Bruno Haible  <bruno@clisp.org>
93669         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93670         Reported by Eric Blake.
93672 2008-06-18  Eric Blake  <ebb9@byu.net>
93674         Work around cygwin 1.5.25 strsignal bug.
93675         * tests/test-strsignal.c: Allow for const char *.
93676         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93678 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93680         * users.txt: Update URL to article and add author/date
93681         information.
93683 2008-06-17  Bruno Haible  <bruno@clisp.org>
93685         New macro gl_DISABLE_THREADS.
93686         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93687         if the user did not pass --enable-threads or --disable-threads option.
93688         (gl_DISABLE_THREADS): New macro.
93689         Reported by Eric Blake <ebb9@byu.net>.
93691 2008-06-17  Bruno Haible  <bruno@clisp.org>
93693         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93694         when the macro ignores it.
93695         Based on a patch by Eric Blake <ebb9@byu.net>.
93697 2008-06-17  Bruno Haible  <bruno@clisp.org>
93699         * modules/tls (License): Change to LGPLv2+.
93700         Reported by Eric Blake.
93702 2008-06-17  Eric Blake  <ebb9@byu.net>
93704         Simplify c-stack prerequisites.
93705         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93707         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93708         check.
93709         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93710         <sys/resource.h>.
93712         Move c-stack test into testsuite.
93713         * modules/c-stack-tests: New file.
93714         * lib/c-stack.c [DEBUG]: Move test program...
93715         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93716         fail test if sigaltstack is lacking.
93717         * tests/test-c-stack.sh: New driver file.
93719 2008-06-16  Eric Blake  <ebb9@byu.net>
93721         Use raise module consistently.
93722         * modules/fatal-signal (Depends-on): Add raise.
93723         * modules/sigprocmask (Depends-on): Likewise.
93724         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93725         * lib/sigprocmask.c (sigprocmask): Likewise.
93726         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93727         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93729         Fix compliance bug in sigpending.
93730         * lib/sigprocmask.c (sigpending): Return pending array via
93731         parameter, not return value.
93733 2008-06-14  Eric Blake  <ebb9@byu.net>
93735         Improve obstack-printf test code.
93736         * tests/test-obstack-printf.c (test_function): Fix comment, and
93737         simplify usage of obstack_* in macros.  Add a test for coverage.
93738         Reported by Bruno Haible.
93740 2008-06-14  Bruno Haible  <bruno@clisp.org>
93742         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93743         array size as a constant, not as a const variable.
93744         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93745         AC_USE_SYSTEM_EXTENSIONS.
93746         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93747         Test whether the obstack_printf function actually exists.
93748         * modules/obstack-printf (Depends-on): Add extensions.
93749         (Include): Remove obstack.h.
93750         * modules/obstack-printf-posix (Depends-on): Add extensions.
93751         (Include): Remove obstack.h.
93753 2008-06-13  Eric Blake  <ebb9@byu.net>
93755         Add obstack-printf and obstack-printf-posix modules.
93756         * modules/obstack-printf: New file.
93757         * modules/obstack-printf-posix: Likewise.
93758         * MODULES.html.sh (Misc): Mention them.
93759         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93760         Likewise.
93761         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93762         Likewise.
93763         * modules/stdio (Makefile.am): Accomodate new modules.
93764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93765         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93766         Declare.
93767         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93768         functions.
93769         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93770         (gl_REPLACE_OBSTACK_PRINTF): New macros
93771         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93772         * tests/test-obstack-printf.c: New file.
93773         * modules/obstack-printf-tests: Likewise.
93774         * modules/obstack-printf-posix-tests: Likewise.
93776 2008-06-11  Bruno Haible  <bruno@clisp.org>
93778         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93779         * lib/open.c: Include errno.h.
93780         (open): Fail when attempting to write to a file that has a trailing
93781         slash.
93782         * tests/test-open.c (main): Test against trailing slash bug.
93783         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93785 2008-06-10  Bruno Haible  <bruno@clisp.org>
93787         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93788         for $? to work inside the trap command, with various /bin/sh-s.
93789         * tests/test-vc-list-files-cvs.sh: Likewise.
93791 2008-06-10  Bruno Haible  <bruno@clisp.org>
93793         * lib/acl-internal.h: Don't include gettext.h here.
93794         * lib/set-mode-acl.c: Include gettext.h here.
93795         * lib/copy-acl.c: Likewise.
93797 2008-06-10  Bruno Haible  <bruno@clisp.org>
93799         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93800         * lib/wait-process.c (wait_subprocess): Likewise.
93801         * lib/execute.h (execute): Add termsigp argument.
93802         * lib/execute.c (execute): Likewise.
93803         * lib/csharpcomp.c (compile_csharp_using_pnet,
93804         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93805         * lib/csharpexec.c (execute_csharp_using_pnet,
93806         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93807         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93808         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93809         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93810         is_jikes_present): Update.
93811         * lib/javaexec.c (execute_java_class): Update.
93812         * lib/javaversion.c (execute_and_read_line): Update.
93813         * NEWS: Document the changes.
93814         Reported by Eric Blake.
93816 2008-06-10  Eric Blake  <ebb9@byu.net>
93818         Add missing include.
93819         * tests/test-strstr.c (includes): Add <signal.h>.
93820         * tests/test-strcasestr.c (includes): Likewise.
93821         * tests/test-memmem.c (includes): Likewise.
93823 2008-06-10  Bruno Haible  <bruno@clisp.org>
93825         * lib/wait-process.c (wait_subprocess): Add an assertion.
93827 2008-06-10  Bruno Haible  <bruno@clisp.org>
93829         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93831 2008-06-10  Bruno Haible  <bruno@clisp.org>
93833         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93834         using alarm().
93835         * tests/test-strcasestr.c (main): Likewise.
93836         * tests/test-strstr.c (main): Likewise.
93838 2008-06-09  Bruno Haible  <bruno@clisp.org>
93840         Work around the Solaris 10 ACE ACLs ABI change.
93841         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93842         declare if ACL_NO_TRIVIAL is present.
93843         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93844         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93845         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93846         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93847         define if ACL_NO_TRIVIAL is present.
93848         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93849         and use the current ABI.
93850         (file_has_acl): Use same #if condition as elsewhere.
93851         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93852         in use, and use the current ABI.
93853         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93854         Reported by Jim Meyering.
93856 2008-06-09  Eric Blake  <ebb9@byu.net>
93858         Work around environments that (stupidly) ignore SIGALRM.
93859         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93860         before using alarm().
93861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93863         Reported by Ian Beckwith <ianb@erislabs.net>.
93865         Produce autobuild blurb earlier in log.
93866         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93868 2008-06-09  Jim Meyering  <meyering@redhat.com>
93869         and Ondřej Vašík  <ovasik@redhat.com>
93871         utimens.c: correct kernel bug work-around
93872         Ondřej Vašík found that the invalid return value of 280 indicates
93873         failure, not success, and the kernel bug we're trying to work
93874         around affects not just the utimensat call, but also the fallback
93875         futimens call.
93876         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93877         not success.
93878         [HAVE_FUTIMENS]: Use the same work-around, here.
93880 2008-06-09  Jim Meyering  <meyering@redhat.com>
93882         add more guards around definition of ACE_-related code
93883         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93884         ALLOW and ACE_OWNER are also defined.
93886 2008-06-08  Bruno Haible  <bruno@clisp.org>
93888         * lib/acl-internal.h: Add me as co-author.
93889         * lib/file-has-acl.c: Likewise.
93890         * lib/set-mode-acl.c: Likewise.
93891         * lib/copy-acl.c: Likewise.
93893 2008-06-08  Bruno Haible  <bruno@clisp.org>
93895         Add support for AIX ACLs.
93896         * lib/acl-internal.h (acl_nontrivial): New declaration.
93897         * lib/file-has-acl.c (acl_nontrivial): New function.
93898         (file_has_acl): Add implementation using AIX 4 ACL API.
93899         * lib/set-mode-acl.c (qset_acl): Likewise.
93900         * lib/copy-acl.c (qcopy_acl): Likewise.
93902 2008-06-08  Bruno Haible  <bruno@clisp.org>
93904         Add support for HP-UX ACLs.
93905         * lib/acl-internal.h (acl_nontrivial): New declaration.
93906         * lib/file-has-acl.c (acl_nontrivial): New function.
93907         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93908         * lib/set-mode-acl.c (qset_acl): Likewise.
93909         * lib/copy-acl.c (qcopy_acl): Likewise.
93911 2008-06-08  Bruno Haible  <bruno@clisp.org>
93913         Add support for Cygwin ACLs.
93914         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93915         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93916         the chmod_or_fchmod call.
93917         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93919 2008-06-08  Bruno Haible  <bruno@clisp.org>
93921         Fix bug with setuid modes in Solaris 10+ code.
93922         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93923         succeeded, when the mode contains some special bits.
93925 2008-06-08  Bruno Haible  <bruno@clisp.org>
93927         Add support for Solaris 7..10 ACLs.
93928         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93929         declarations.
93930         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93931         functions.
93932         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93933         * lib/set-mode-acl.c (qset_acl): Likewise.
93934         * lib/copy-acl.c (qcopy_acl): Likewise.
93936 2008-06-08  Bruno Haible  <bruno@clisp.org>
93938         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93939         declaration.
93940         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93941         (acl_access_nontrivial): Remove MacOS X case.
93942         (file_has_acl): Use acl_extended_nontrivial.
93943         * lib/copy-acl.c (qcopy_acl): Likewise.
93945 2008-06-08  Bruno Haible  <bruno@clisp.org>
93947         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93949 2008-06-08  Jim Meyering  <meyering@redhat.com>
93951         * modules/acl (Maintainer): Add Bruno Haible.
93953 2008-06-07  Bruno Haible  <bruno@clisp.org>
93955         Improve support for Tru64 ACLs.
93956         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93957         ACL on OSF/1.
93959 2008-06-07  Bruno Haible  <bruno@clisp.org>
93961         Add support for MacOS X ACLs.
93962         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93963         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93964         * lib/set-mode-acl.c (qset_acl): Likewise.
93965         * lib/copy-acl.c (qcopy_acl): Likewise.
93967 2008-06-07  Bruno Haible  <bruno@clisp.org>
93969         Fix memory leak introduced on 2008-05-22.
93970         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93971         use.
93973 2008-06-07  Bruno Haible  <bruno@clisp.org>
93975         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93976         to construct an empty ACL.
93978 2008-06-07  Bruno Haible  <bruno@clisp.org>
93980         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93981         precisely.
93982         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93984 2008-06-07  Bruno Haible  <bruno@clisp.org>
93986         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93987         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93989 2008-06-07  Bruno Haible  <bruno@clisp.org>
93991         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93992         regardless of POSIX.
93993         * doc/posix-functions/_longjmp.texi: Likewise.
93994         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93995         SystemV platform in this case.
93997 2008-06-06  Eric Blake  <ebb9@byu.net>
93999         Document abort() bugs.
94000         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94002         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94003         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94004         sigsetjmp.
94005         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94006         siglongjmp, but only as a macro.
94007         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94008         is obsolete.
94009         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94011         Tweak documentation to cover cygwin argz bugs.
94012         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94013         argz bug fix; no code change needed since no cygwin releases
94014         occurred between the last fix and the bug being tested.
94015         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94016         module and recently fixed cygwin bugs.
94017         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94018         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94019         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94020         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94021         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94022         Likewise.
94023         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94024         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94025         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94026         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94027         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94028         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94029         Likewise.
94031         Avoid gcc warning on cygwin.
94032         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94033         !ACL_NO_TRIVIAL]: Avoid unused variable.
94035 2008-06-05  Eric Blake  <ebb9@byu.net>
94037         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94038         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94039         git-version-gen fails to come up with a version.
94040         Reported by Simon Josefsson.
94042 2008-06-05  Jim Meyering  <meyering@redhat.com>
94043             Paul Eggert  <eggert@cs.ucla.edu>
94045         utimens.c: work around a probable Linux kernel bug
94046         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94047         appears to be a kernel bug that causes utimensat to return 280
94048         instead of 0, indicating success.
94050 2008-06-04  Bruno Haible  <bruno@clisp.org>
94052         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94053         2008-06-01 commit.
94055 2008-06-04  Bruno Haible  <bruno@clisp.org>
94057         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94058         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94059         (file_has_acl): Use it. Save errno afterwards.
94060         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94062 2008-06-03  Bruno Haible  <bruno@clisp.org>
94064         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94065         draft code. Simplify #ifs.
94066         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94067         Put Solaris code after POSIX-draft code. Fix comments regarding
94068         Solaris 10, HP-UX. Mention Cygwin.
94069         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94071 2008-06-03  Eric Blake  <ebb9@byu.net>
94073         Provide fallback for older kernels.
94074         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94075         Provide runtime fallback if kernel lacks support.
94076         Reported by Mike Frysinger.
94078 2008-06-02  Bruno Haible  <bruno@clisp.org>
94080         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94081         it exists.
94083 2008-06-02  Bruno Haible  <bruno@clisp.org>
94085         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94086         * lib/copy-acl.c (qcopy_acl): Update comment.
94088 2008-06-02  Bruno Haible  <bruno@clisp.org>
94090         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94091         like ACL APIs.
94093 2008-06-02  Bruno Haible  <bruno@clisp.org>
94095         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94096         * tests/test-set-mode-acl.sh: Likewise.
94097         * tests/test-copy-acl.sh: Likewise.
94098         * tests/test-copy-file.sh: Likewise.
94100 2008-06-02  Bruno Haible  <bruno@clisp.org>
94102         * tests/test-file-has-acl.sh: Remove unused code.
94104 2008-06-01  Bruno Haible  <bruno@clisp.org>
94106         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94107         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94108         messages.
94109         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94111 2008-06-01  Bruno Haible  <bruno@clisp.org>
94113         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94114         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94115         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94116         APIs.
94117         * modules/acl-tests (configure.ac): Remove tests now contained in
94118         m4/acl.m4.
94120 2008-06-02  Jim Meyering  <meyering@redhat.com>
94122         announce-gen: use a better key-server host name
94123         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94124         it may be more consistently reliable.  Suggested by Werner Koch
94125         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94127 2008-06-01  Bruno Haible  <bruno@clisp.org>
94129         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94130         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94132 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94134         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94136 2008-06-01  Bruno Haible  <bruno@clisp.org>
94138         New ACL tests.
94139         * tests/test-file-has-acl.sh: New file.
94140         * tests/test-file-has-acl.c: New file.
94141         * tests/test-set-mode-acl.sh: New file.
94142         * tests/test-set-mode-acl.c: New file.
94143         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94144         * tests/test-copy-acl.c: New file.
94145         * modules/acl-tests: New file, based on modules/copy-file-tests.
94146         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94147         (Depends-on): Add acl-tests.
94148         (configure.ac): Remove checks.
94149         (Makefile.am): Don't create test-sameacls program here any more.
94151 2008-06-01  Bruno Haible  <bruno@clisp.org>
94153         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94154         * tests/test-sameacls.c: Include progname.h.
94155         (main): Invoke set_program_name. Portability fixes for MacOS X,
94156         Solaris, HP-UX.
94158 2008-06-01  Bruno Haible  <bruno@clisp.org>
94160         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94161         function.
94162         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94164 2008-06-01  Bruno Haible  <bruno@clisp.org>
94166         * modules/rpmatch (Depends-on): Add strdup.
94168 2008-06-01  Bruno Haible  <bruno@clisp.org>
94170         * lib/pipe.c: Include unistd-safer.h.
94171         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94172         * modules/pipe (Depends-on): Add unistd-safer.
94174 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94176         * modules/autobuild (configure.ac): Call AB_INIT.
94178 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94180         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94181         Suggested by Bruno Haible <bruno@clisp.org>.
94183 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94185         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94186         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94187         <bruno@clisp.org>.
94189 2008-05-29  Eric Blake  <ebb9@byu.net>
94191         Prefer new POSIX 200x interfaces over futimesat.
94192         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94193         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94194         when available.
94195         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94197 2008-05-28  Bruno Haible  <bruno@clisp.org>
94199         * modules/stpcpy (License): Change to LGPLv2+.
94200         Requested by David Lutterkort <dlutter@redhat.com>.
94202 2008-05-27  Bruno Haible  <bruno@clisp.org>
94204         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94205         current mingw.
94206         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94208 2008-05-27  Bruno Haible  <bruno@clisp.org>
94210         * modules/iconv_open (Link): New section, from module 'iconv'.
94211         * modules/striconv (Link): Likewise.
94212         * modules/striconveh (Link): Likewise.
94213         * modules/xstriconv (Link): Likewise.
94214         * modules/unicodeio (Link): Likewise.
94215         * modules/propername (Link): Likewise.
94216         Reported by Jim Meyering.
94218 2008-05-26  Jim Meyering  <meyering@redhat.com>
94220         sha256: do not artificially restrict buffer length to be < 2^32
94221         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94222         uint32_t to size_t.
94223         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94224         to match.
94226         avoid unaligned access errors, e.g., on sparc
94227         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94228         direct access through a possibly-unaligned uint64* pointer.
94229         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94230         direct access through a possibly-unaligned uint32* pointer.
94231         Prompted by this patch from Tom "spot" Callaway:
94232         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94234         sha512.c: fix typo in comment
94235         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94237 2008-05-25  Bruno Haible  <bruno@clisp.org>
94239         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94240         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94241         (Makefile.am): Update lib_SOURCES.
94243 2008-05-25  Bruno Haible  <bruno@clisp.org>
94245         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94247 2008-05-25  Jim Meyering  <meyering@redhat.com>
94249         useless-if-before-free: freed expr may have white-space differences
94250         * build-aux/useless-if-before-free: Recognize cases in which the
94251         freed expression differs from the tested one in embedded white
94252         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94253         $1 was used, so we can't make any regexp shy.  Improved tests now
94254         detect this.
94256         useless-if-before-free: accept white space in the expression.
94257         * build-aux/useless-if-before-free: For now, any white space
94258         in the expression must be identical in the free argument.
94260         useless-if-before-free: efficiency tweak
94261         * build-aux/useless-if-before-free: Make the expression-matching
94262         regexp "shy".
94263         Make the *outer* regexp shy, not the expr-matching one.
94265         update code-in-comment to accept cast of free arg
94266         * build-aux/useless-if-before-free: Update regexp.
94268 2008-05-25  Bruno Haible  <bruno@clisp.org>
94270         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94271         * modules/copy-file-tests (Files, Makefile.am): Update.
94272         * tests/test-copy-file.c (func_test_copy): Update.
94274 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94276         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94278 2008-05-23  Bruno Haible  <bruno@clisp.org>
94280         Improve support for ACLs on OSF/1.
94281         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94282         Remove fallback for unknown flavors of ACLs.
94284 2008-05-22  Bruno Haible  <bruno@clisp.org>
94286         Add support for ACLs on OSF/1.
94287         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94288         replacements.
94289         (acl_free_text): New macro fallback.
94290         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94291         acl_free.
94292         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94293         acl_free_text function. Require AC_C_INLINE.
94295 2008-05-22  Bruno Haible  <bruno@clisp.org>
94297         Make copy_acl work on MacOS X 10.5.
94298         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94299         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94300         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94301         If MODE_INSIDE_ACL, don't assume that every system has the same text
94302         representation for ACLs as FreeBSD.
94303         * lib/copy-acl.c (copy_acl): Add support for platforms with
94304         !MODE_INSIDE_ACL.
94305         * lib/file-has-acl.c (file_has_acl): Likewise.
94306         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94307         FreeBSD, MacOS X, or IRIX, respectively.
94309 2008-05-22  Bruno Haible  <bruno@clisp.org>
94311         * lib/acl.h: Don't include <sys/acl.h>.
94312         (GETACLCNT): Move fallback to lib/acl-internal.h.
94313         * lib/acl-internal.h: Include <sys/acl.h> here.
94314         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94316 2008-05-22  Bruno Haible  <bruno@clisp.org>
94318         Split off copy_acl function to separate file.
94319         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94320         * lib/acl.c (copy_acl): Moved function to separate file.
94321         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94322         * modules/acl (Files): Add lib/copy-acl.c.
94323         (Makefiles.am): Augment lib_SOURCES.
94325 2008-05-22  Bruno Haible  <bruno@clisp.org>
94327         * modules/copy-file-tests: New file.
94328         * tests/test-copy-file.sh: New file.
94329         * tests/test-copy-file.c: New file.
94330         * tests/test-copy-file-sameacls.c: New file.
94332 2008-05-22  Eric Blake  <ebb9@byu.net>
94334         Avoid gcc warning.
94335         * tests/test-memcmp.c (main): Pass NULL indirectly.
94337 2008-05-21  Bruno Haible  <bruno@clisp.org>
94339         Add reference doc about ACLs.
94340         * doc/acl-resources.txt: New file.
94341         * doc/acl-cygwin.txt: New file.
94343 2008-05-21  Bruno Haible  <bruno@clisp.org>
94345         Avoid one more warning from gcc.
94346         * lib/vasnprintf.c (IF_LINT): Update comments.
94347         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94349 2008-05-21  Jim Meyering  <meyering@redhat.com>
94351         avoid a warning from gcc
94352         * lib/vasnprintf.c (IF_LINT): Define.
94353         (scale10_round_decimal_long_double):
94354         Use it to avoid a "may be used uninitialized" warning.
94355         (scale10_round_decimal_double): Likewise.
94357 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94359         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94360         declared.
94362 2008-05-20  Bruno Haible  <bruno@clisp.org>
94364         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94365         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94367 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94369         * modules/memcmp-tests: New file.
94370         * tests/test-memcmp.c: New file.
94372 2008-05-19  Bruno Haible  <bruno@clisp.org>
94374         * modules/propername (Notice, configure.ac): Put quoted "..." into
94375         --keyword option.
94376         * lib/propername.h: Update comments accordingly.
94377         Reported by Eric Blake.
94379 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94381         * modules/getpass-gnu (Depends-on): Add fseeko.
94383 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94385         * modules/base64-tests: New file.
94387 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94389         * lib/base64.c (base64_decode_ctx): If a decode context structure
94390         was passed in use it to ignore newlines.  If a context structure
94391         was _not_ passed in, continue to treat newlines as garbage (this
94392         is the historical behavior).  Formerly base64_decode.
94393         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94394         takes a decode context structure.
94395         * lib/base64.h (base64_decode): Macro for four-argument calls.
94396         (base64_decode_alloc): Likewise.
94397         * lib/base64.c (base64_decode_ctx): If a decode context structure
94398         was passed in use it to ignore newlines.  If a context structure
94399         was _not_ passed in, continue to treat newlines as garbage (this
94400         is the historical behavior).  Formerly base64_decode.
94401         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94402         takes a decode context structure.
94403         * lib/base64.h (base64_decode): Macro for four-argument calls.
94404         (base64_decode_alloc): Likewise.
94406 2008-05-19  Jim Meyering  <meyering@redhat.com>
94408         avoid a warning from gcc
94409         * lib/trim.c (IF_LINT): Define.
94410         (trim2): Use it to avoid a "may be used uninitialized" warning.
94412         Fix doc typo.
94413         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94415 2008-05-19  Bruno Haible  <bruno@clisp.org>
94417         * doc/glibc-functions/getpass.texi: Document limits of other
94418         implementations.
94420 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94421             Bruno Haible <bruno@clisp.org>
94423         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94425 2008-05-18  Bruno Haible  <bruno@clisp.org>
94427         * modules/propername: New file, from GNU gettext.
94428         * lib/propername.h: New file, from GNU gettext.
94429         * lib/propername.c: New file, from GNU gettext.
94430         * MODULES.html.sh (Internationalization functions): Add propername.
94432 2008-05-16  Jim Meyering  <meyering@redhat.com>
94433             Bruno Haible  <bruno@clisp.org>
94435         Avoid some warnings from "gcc -Wshadow".
94436         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94438 2008-05-15  Eric Blake  <ebb9@byu.net>
94440         Extend previous patch to cygwin 1.7.0.
94441         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94442         fast implementation in cygwin >= 1.7.0.
94443         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94446 2008-05-15  Bruno Haible  <bruno@clisp.org>
94448         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94449         implementation in glibc >= 2.9.
94450         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94453 2008-05-15  Bruno Haible  <bruno@clisp.org>
94455         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94456         (Unicode string functions): Add unilbrk/*.
94457         Reported by Karl Berry.
94459 2008-05-15  Eric Blake  <ebb9@byu.net>
94461         Fix violation of <stdbool.h> replacement in regex.
94462         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94463         * lib/regexec.c (re_search_internal): Likewise.
94464         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94466 2008-05-15  Jim Meyering  <meyering@redhat.com>
94468         avoid distracting test output when git or cvs is not found
94469         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94470         * tests/test-vc-list-files-git.sh: Likewise.
94472 2008-05-15  Eric Blake  <ebb9@byu.net>
94474         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94475         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94476         glibc version.
94477         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94478         * doc/posix-functions/strstr.texi (strstr): Likewise.
94479         * lib/str-two-way.h (MAX): Sychronize with glibc.
94481 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94483         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94484         opr.ctx_type.
94485         (calc_first): Initialize constraint field.
94486         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94487         Fix grammar.
94488         (duplicate_node): Merge constraint field for all node types.
94489         (calc_eclosure_iter): Look at constraint field for all node types.
94490         * lib/regex_internal.c (create_cd_newstate): Don't look at
94491         opr.ctx_type.
94493 2008-05-14  Bruno Haible  <bruno@clisp.org>
94495         Help GCC to do better code generation.
94496         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94497         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94498         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94499         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94500         Declare with attribute 'malloc' if supported.
94502 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94504         use "echo STR|wc -c" rather than unportable "expr length STR"
94505         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94506         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94508 2008-05-14  Jim Meyering  <meyering@redhat.com>
94510         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94511         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94512         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94513         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94514         via Collin Lasse.
94516 2008-05-14  Eric Blake  <ebb9@byu.net>
94518         Avoid quadratic growth in gl_LIBSOURCES.
94519         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94520         Suggested by Bruno Haible.
94522         Test xmemdup0.
94523         * modules/xmemdup0-tests: New file.
94524         * tests/test-xmemdup0.c: Likewise.
94526 2008-05-13  Eric Blake  <ebb9@byu.net>
94528         Split xmemdup0 into its own module.
94529         * modules/xmemdup0: New file.
94530         * lib/xmemdup0.h: Likewise.
94531         * lib/xmemdup0.c: Likewise.
94532         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94533         * lib/xalloc.h (xmemdup0): Remove.
94534         * lib/xmalloc.c (xmemdup0): Likewise.
94536 2008-05-13  Eric Blake  <ebb9@byu.net>
94537             Bruno Haible  <bruno@clisp.org>
94539         Reduce number of forks required during autoconf.
94540         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94541         and gl_LIBSOURCES_DIR.
94542         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94543         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94544         m4_syscmd per file.
94545         <m4_foreach_w>: Move...
94546         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94548 2008-05-13  Eric Blake  <ebb9@byu.net>
94550         * gnulib-tool: Fix various comment typos.
94552 2008-05-12  Bruno Haible  <bruno@clisp.org>
94554         Tailor the linebreaking algorithm.
94555         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94557 2008-05-12  Bruno Haible  <bruno@clisp.org>
94559         Update to Unicode 5.0.0.
94560         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94561         LBP_JV, LBP_JT. Redistribute values.
94562         (unilbrk_table): Change size.
94563         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94564         Unicode TR#14 rev. 22.
94565         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94566         LBP_JV, LBP_JT. Redistribute values.
94567         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94568         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94569         Update.
94570         * lib/unilbrk/lbrkprop1.h: Regenerated.
94571         * lib/unilbrk/lbrkprop2.h: Regenerated.
94572         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94573         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94574         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94575         Likewise.
94576         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94577         Likewise.
94578         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94579         result.
94580         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94581         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94582         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94583         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94584         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94585         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94587 2008-05-11  Bruno Haible  <bruno@clisp.org>
94589         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94591 2008-05-11  Bruno Haible  <bruno@clisp.org>
94593         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94594         * modules/unilbrk/gen-lbrk: New file.
94596 2008-05-11  Bruno Haible  <bruno@clisp.org>
94598         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94599         * m4/sha512.m4 (gl_SHA512): Likewise.
94601 2008-05-11  Jim Meyering  <meyering@redhat.com>
94603         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94604         * modules/crypto/sha256: New file.
94605         * modules/crypto/sha512: Likewise.
94606         * lib/sha256.c: Likewise.
94607         * lib/sha256.h: Likewise.
94608         * lib/sha512.c: Likewise.
94609         * lib/sha512.h: Likewise.
94610         * lib/u64.h: Likewise.
94611         * m4/sha256.m4: Likewise.
94612         * m4/sha512.m4: Likewise.
94613         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94615 2008-05-10  Bruno Haible  <bruno@clisp.org>
94617         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94618         (Input/Output <stdio.h>): Add xprintf.
94619         (Signal handling <signal.h>): Add strsignal.
94620         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94621         (Core language properties): Add func.
94622         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94623         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94624         strings.
94625         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94626         (Input/output): New section.
94627         (File system functions): Add openat-die, stat-macros.
94628         (Networking functions): Add sockets.
94629         (Unicode string functions): Add unictype/*.
94630         (Support for building libraries and executables): Add gperf.
94631         (Support for building documentation): Add agpl-3.0.
94632         (Misc): Add nocrash.
94634 2008-05-10  Bruno Haible  <bruno@clisp.org>
94636         * modules/unictype/gen-ctype: New file.
94638 2008-05-10  Jim Meyering  <meyering@redhat.com>
94640         Make chdir-safer.c more efficient on a system with no symlinks.
94641         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94642         also if ELOOP is zero.  Suggested by Bruno Haible.
94644         Make chdir-safer.c slightly safer.
94645         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94646         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94648         Avoid compile failure on systems without ELOOP (like mingw).
94649         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94650         Reported by Bruno Haible.
94652 2008-05-10  Bruno Haible  <bruno@clisp.org>
94654         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94655         (is_utf8_encoding): Use a case-insensitive comparison.
94656         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94657         streq.
94659 2008-05-10  Bruno Haible  <bruno@clisp.org>
94661         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94662         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94663         * lib/unilbrk/ulc-common.h (iconv_string_length,
94664         iconv_string_keeping_offsets): Remove declarations.
94665         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94666         Don't include <iconv.h>, streq.h, xsize.h.
94667         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94668         conversion.
94669         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94670         <iconv.h>, streq.h, xsize.h.
94671         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94672         conversion.
94673         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94674         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94675         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94676         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94678 2008-05-10  Bruno Haible  <bruno@clisp.org>
94680         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94681         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94683         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94684         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94686         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94687         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94689         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94690         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94692         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94693         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94695         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94696         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94698         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94699         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94701         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94702         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94704 2008-05-10  Bruno Haible  <bruno@clisp.org>
94706         Split up 'linebreak' module.
94707         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94708         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94709         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94710         modifications.
94711         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94712         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94713         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94714         lib/linebreak.c.
94715         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94716         lib/linebreak.c.
94717         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94718         lib/linebreak.c.
94719         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94720         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94721         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94722         lib/linebreak.c.
94723         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94724         lib/linebreak.c.
94725         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94726         lib/linebreak.c.
94727         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94728         lib/linebreak.c.
94729         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94730         lib/linebreak.c.
94731         * modules/unilbrk/base: New file.
94732         * modules/unilbrk/tables: New file.
94733         * modules/unilbrk/u8-possible-linebreaks: New file.
94734         * modules/unilbrk/u16-possible-linebreaks: New file.
94735         * modules/unilbrk/u32-possible-linebreaks: New file.
94736         * modules/unilbrk/ulc-common: New file.
94737         * modules/unilbrk/ulc-possible-linebreaks: New file.
94738         * modules/unilbrk/u8-width-linebreaks: New file.
94739         * modules/unilbrk/u16-width-linebreaks: New file.
94740         * modules/unilbrk/u32-width-linebreaks: New file.
94741         * modules/unilbrk/ulc-width-linebreaks: New file.
94742         * lib/linebreak.h: Remove file.
94743         * lib/linebreak.c: Remove file.
94744         * m4/linebreak.m4: Remove file.
94745         * modules/linebreak: Remove file.
94746         * NEWS: Mention the changes.
94748 2008-05-09  Eric Blake  <ebb9@byu.net>
94750         Add xmemdup0.
94751         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94752         implementation.
94753         * lib/xmalloc.c (xmemdup0): New C implementation.
94755 2008-05-08  Bruno Haible  <bruno@clisp.org>
94757         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94759 2008-05-07  Eric Blake  <ebb9@byu.net>
94761         Support cross-compilation of <wctype.h>.
94762         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94763         AC_CACHE_CHECK.
94765 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94767         * build-aux/vc-list-files: Add support for bzr.
94769 2008-05-03  Jim Meyering  <meyering@redhat.com>
94771         avoid failed assertion with tight malloc
94772         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94774 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94776         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94777         are needed from arpa/inet.h.
94778         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94779         Reported by Bruno Haible.
94781 2008-05-02  Jim Meyering  <meyering@redhat.com>
94783         avoid compilation error on FreeBSD 6
94784         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94786 2008-05-01  Jim Meyering  <meyering@redhat.com>
94788         useless-if-before-free: correct --help's exit status description
94789         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94790         for one or more matches, etc.  Reported by Bruno Haible.
94792         vc-list-files: make the stand-alone gnulib test work
94793         * modules/vc-list-files-tests (configure.ac):
94794         Define and AC_SUBST abs_aux_dir.
94795         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94796         $(abs_top_srcdir) to each script and having each of them
94797         duplicate the work of setting PATH, set PATH here, using
94798         the new variable, abs_aux_dir instead.
94799         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94800         * tests/test-vc-list-files-git.sh: Likewise.
94801         Reported by Bruno Haible.
94803 2008-05-01  Bruno Haible  <bruno@clisp.org>
94805         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94806         reallocation. Rename 'done' to 'found_delimiter'.
94808 2008-05-01  Jim Meyering  <meyering@redhat.com>
94810         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94811         * build-aux/vc-list-files: Use `...`, not $(...).
94813 2008-04-30  Jim Meyering  <meyering@redhat.com>
94815         add tests for vc-list-files
94816         * modules/vc-list-files-tests: New module.
94817         * tests/test-vc-list-files-cvs.sh: New file.
94818         * tests/test-vc-list-files-git.sh: New file.
94820         avoid a warning from gcc
94821         * lib/getndelim2.c (IF_LINT): Define.
94822         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94824         vc-list-files: work properly with build-aux/cvsu, too
94825         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94826         to all cvs-based clauses.
94828         vc-list-files: work properly in the CVS+awk case, too
94829         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94831         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94832         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94833         take more than one file argument, so .  Add quotes, just in case $dir
94834         ever contains a shell meta-character.  Prompted by Soren Hansen in
94835         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94837 2008-04-29  Eric Blake  <ebb9@byu.net>
94839         Optimize getndelim2 to use block operations when possible.
94840         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94841         freadseek, and memchr2.
94842         * lib/getndelim2.c (getndelim2): Use them for block reads.
94844 2008-04-29  Bruno Haible  <bruno@clisp.org>
94846         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94847         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94848         * modules/inet_ntop (Depends-on): Add extensions.
94849         * modules/inet_pton (Depends-on): Likewise.
94850         Reported by Simon Josefsson.
94852 2008-04-29  Jim Meyering  <meyering@redhat.com>
94854         When the is more than one match in a block, match all of them.
94855         * build-aux/useless-if-before-free: Iterate through each block
94856         until there are no more matches.
94858         Fix broken useless-if-before-free script.
94859         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94860         the expression to match cast of argument to free-like function.
94862 2008-04-29  Eric Blake  <ebb9@byu.net>
94864         Use new header.
94865         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94867 2008-04-29  Jim Meyering  <meyering@redhat.com>
94869         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94870         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94871         by gnulib to exist and to declare e.g., inet_ntop.
94872         Don't include "inet_ntop.h", now removed.
94874         * m4/arpa_inet_h.m4: Remove trailing blanks.
94876 2008-04-29  Eric Blake  <ebb9@byu.net>
94878         Silence valgrind on safe reads beyond potential array bounds.
94879         * lib/rawmemchr.valgrind: New file.
94880         * lib/strchrnul.valgrind: Likewise.
94881         * modules/rawmemchr (Files): Distribute new file.
94882         * modules/strchrnul (Files): Likewise.
94883         Suggested by Bruno Haible.
94885 2008-04-29  Bruno Haible  <bruno@clisp.org>
94887         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94888         (inet_ntop, inet_pton): Change portability warning's wording.
94889         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94890         Invoke gl_CHECK_NEXT_HEADERS.
94891         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94892         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94893         set ARPA_INET_H.
94894         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94895         * modules/arpa_inet (Description): No longer only for systems that
94896         lack it.
94897         (Depends-on): Add include_next.
94898         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94899         HAVE_ARPA_INET_H.
94901 2008-04-29  Jim Meyering  <meyering@redhat.com>
94903         * modules/mkdir (License): Re-license as LGPLv2+.
94905 2008-04-29  Bruno Haible  <bruno@clisp.org>
94907         * modules/rawmemchr (Maintainer): Set to Eric.
94908         * modules/strchrnul (Maintainer): Likewise.
94910 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94912         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94913         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94915         * modules/arpa_inet (arpa/inet.h): Use them.
94917 2008-04-28  Eric Blake  <ebb9@byu.net>
94919         Test getndelim2.
94920         * modules/getndelim2-tests: New file.
94921         * tests/test-getndelim2.c: Likewise.
94922         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94923         stream.
94924         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94926         * MODULES.html.sh: Document new module.
94928 2008-04-20  Bruno Haible  <bruno@clisp.org>
94930         * lib/c-stack.c (die): Use raise.
94931         * modules/c-stack (Depends-on): Add raise.
94933 2008-04-28  Bruno Haible  <bruno@clisp.org>
94935         Expect rpmatch to be declared.
94936         * lib/yesno.c (rpmatch): Remove declaration.
94938         Declare rpmatch.
94939         * lib/stdlib.in.h (rpmatch): New declaration.
94940         * lib/rpmatch.c: Include <stdlib.h> first.
94941         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94942         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94944         HAVE_RPMATCH.
94945         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94946         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94947         (Include): Set to <stdlib.h>.
94948         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94949         HAVE_RPMATCH.
94950         * NEWS: Document the change.
94952 2008-04-28  Bruno Haible  <bruno@clisp.org>
94954         Change rpmatch to use nl_langinfo when appropriate.
94955         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94956         (N_): New macro.
94957         (localized_pattern): New function/macro.
94958         (try): Remove match, nomatch arguments. Copy the pattern into safe
94959         memory before caching it.
94960         (rpmatch): Use localized_pattern. Add translator comments.
94961         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94962         Suggested by Eric Blake.
94963         * modules/rpmatch (Depends-on): Add stdbool.
94965 2008-04-28  Eric Blake  <ebb9@byu.net>
94967         Add rawmemchr module, matching glibc.
94968         * modules/string (Makefile.am): New indicator.
94969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94970         * lib/string.in.h (rawmemchr): Declare when appropriate.
94971         * modules/rawmemchr: New file.
94972         * m4/rawmemchr.m4: Likewise.
94973         * lib/rawmemchr.c: Likewise.
94974         * modules/rawmemchr-tests: Likewise.
94975         * tests/test-rawmemchr.c: Likewise.
94976         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94977         module.
94978         * modules/strchrnul (Depends-on): Add rawmemchr.
94979         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94981         Whitespace cleanup.
94982         * tests/test-strchrnul.c: Reindent.
94983         * lib/strchrnul.c: Likewise.
94985         Optimize and test strchrnul.
94986         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94987         * modules/strchrnul-tests: New file.
94988         * tests/test-strchrnul.c: Likewise.
94990         Remove intprops dependency.
94991         * modules/memchr (Depends-on): Remove intprops.
94992         * modules/memrchr (Depends-on): Likewise.
94993         * modules/memchr2 (Depends-on): Likewise.
94994         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94995         * lib/memrchr.c (__memrchr): Likewise.
94996         * lib/memrchr2.c (memchr2): Likewise.
94997         Reported by Simon Josefsson.
94999 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95001         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95002         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95004 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95006         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95008         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95010         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95012         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95013         declarations.
95014         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95016         * m4/inet_pton.m4: Don't check for header files.
95018         * m4/inet_ntop.m4: Don't check for header files.
95020 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95022         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95023         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95024         trigger for cygwin).
95025         Reported by Bruno Haible  <bruno@clisp.org>.
95027 2008-04-28  Bruno Haible  <bruno@clisp.org>
95029         * doc/posix-functions/strdup.texi: Mention mingw problem.
95031 2008-04-27  Bruno Haible  <bruno@clisp.org>
95033         * modules/stat-time-tests (Depends-on): Add sleep.
95034         * tests/test-stat-time.c (force_unlink): New function.
95035         (cleanup): Use it.
95036         (test_mtime): Remove the ctime related tests.
95037         (test_ctime): New function, containing the ctime related tests.
95038         (main): Call test_ctime, except on native Windows platforms.
95040 2008-04-27  Bruno Haible  <bruno@clisp.org>
95042         * lib/rpmatch.c (rpmatch): Add some comments.
95043         Reported by James Youngman <jay@gnu.org>.
95045 2008-04-27  Bruno Haible  <bruno@clisp.org>
95047         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95048         quiet NaNs.
95050 2008-04-27  Bruno Haible  <bruno@clisp.org>
95052         Make test-yesno.sh work on mingw.
95053         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95054         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95055         (main): Set stdin to binary mode.
95056         * modules/yesno-tests (Depends-on): Add binary-io.
95058 2008-04-27  Bruno Haible  <bruno@clisp.org>
95060         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95061         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95062         argument that lie outside the IEEE 854 domain.
95063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95064         (gl_ISFINITE): Use it.
95065         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95067 2008-04-27  Bruno Haible  <bruno@clisp.org>
95069         Allow local renaming in config.h.
95070         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95072 2008-04-27  Bruno Haible  <bruno@clisp.org>
95074         * lib/memchr.c (__memchr): Change type of 'i'.
95075         * lib/memchr2.c (memchr2): Likewise.
95077 2008-04-26  Eric Blake  <ebb9@byu.net>
95078         and Bruno Haible  <bruno@clisp.org>
95080         Optimize and test memrchr.
95081         * modules/memrchr (Depends-on): Add intprops.
95082         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95083         * modules/memrchr-tests: New file.
95084         * tests/test-memrchr.c: New file.
95086 2008-04-26  Bruno Haible  <bruno@clisp.org>
95088         Add tentative support for DragonFly BSD.
95089         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95090         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95091         fp.
95092         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95093         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95094         * lib/fpurge.c (fpurge): Likewise.
95095         * lib/freadable.c (freaadable): Likewise.
95096         * lib/freadahead.c (freadahead): Likewise.
95097         * lib/freading.c (freading): Likewise.
95098         * lib/freadptr.c (freadptr): Likewise.
95099         * lib/freadseek.c (freadptrinc): Likewise.
95100         * lib/fseeko.c (fseeko): Likewise.
95101         * lib/fseterr.c (fseterr): Likewise.
95102         * lib/fwritable.c (fwritable): Likewise.
95103         * lib/fwriting.c (fwriting): Likewise.
95105 2008-04-26  Bruno Haible  <bruno@clisp.org>
95107         * lib/stdio-impl.h: New file.
95108         * lib/fbufmode.c: Include stdio-impl.h.
95109         (fbufmode): Use fp_, remove redundant #defines.
95110         * lib/fflush.c: Include stdio-impl.h.
95111         (clear_ungetc_buffer): Remove redundant #defines.
95112         * lib/fpurge.c: Include stdio-impl.h.
95113         (fpurge): Remove redundant #defines.
95114         * lib/freadable.c: Include stdio-impl.h.
95115         (freadable): Remove redundant #defines.
95116         * lib/freadahead.c: Include stdio-impl.h.
95117         (freadahead): Remove redundant #defines.
95118         * lib/freading.c: Include stdio-impl.h.
95119         (freading): Remove redundant #defines.
95120         * lib/freadptr.c: Include stdio-impl.h.
95121         (freadptr): Remove redundant #defines.
95122         * lib/freadseek.c: Include stdio-impl.h.
95123         (freadptrinc): Remove redundant #defines.
95124         * lib/fseeko.c: Include stdio-impl.h.
95125         (rpl_fseeko): Remove redundant #defines.
95126         * lib/fseterr.c: Include stdio-impl.h.
95127         (fseterr): Remove redundant #defines.
95128         * lib/fwritable.c: Include stdio-impl.h.
95129         (fwritable: Remove redundant #defines.
95130         * lib/fwriting.c: Include stdio-impl.h.
95131         (fwriting): Remove redundant #defines.
95132         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95133         * modules/fflush (Files): Likewise.
95134         * modules/fpurge (Files): Likewise.
95135         * modules/freadable (Files): Likewise.
95136         * modules/freadahead (Files): Likewise.
95137         * modules/freading (Files): Likewise.
95138         * modules/freadptr (Files): Likewise.
95139         * modules/freadseek (Files): Likewise.
95140         * modules/fseeko (Files): Likewise.
95141         * modules/fseterr (Files): Likewise.
95142         * modules/fwritable (Files): Likewise.
95143         * modules/fwriting (Files): Likewise.
95145 2008-04-26  Bruno Haible  <bruno@clisp.org>
95147         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95148         restore_seek_optimization, update_fpos_cache): New functions, extracted
95149         from rpl_fflush.
95150         (rpl_fflush): Use them.
95151         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95152         (gl_REPLACE_FFLUSH): Use it.
95154 2008-04-26  Bruno Haible  <bruno@clisp.org>
95156         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95157         on Solaris.
95158         * tests/test-xstrtoimax.sh: Likewise.
95159         * tests/test-xstrtoumax.sh: Likewise.
95160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95162 2008-04-26  Bruno Haible  <bruno@clisp.org>
95164         * modules/memchr-tests: New file.
95165         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95167 2008-04-26  Eric Blake  <ebb9@byu.net>
95168             Bruno Haible  <bruno@clisp.org>
95170         * lib/memchr.c: Include intprops.h.
95171         (__memchr): Optimize parallel detection of matching bytes. Rename local
95172         variables. Add explanatory comments.
95174 2008-04-26  Bruno Haible  <bruno@clisp.org>
95176         Fix module 'memchr', broken since 2000-10-28.
95177         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95179 2008-04-26  Bruno Haible  <bruno@clisp.org>
95181         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95182         comments.
95184 2008-04-25  Eric Blake  <ebb9@byu.net>
95186         Use native fstatat on cygwin 1.7.0.
95187         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95188         first.
95190 2008-04-23  Eric Blake  <ebb9@byu.net>
95192         Improve memchr2 performance.
95193         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95194         NUL bytes.
95195         * modules/memchr2 (Depends-on): Use intprops.h.
95197 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95199         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95200         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95201         <blp@cs.stanford.edu>.
95203 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95205         * lib/arpa_inet.in.h: New file.
95207         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95208         (Makefile.am): Sed in substitute header file.
95210         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95211         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95213         * modules/inet_ntop (configure.ac): Use
95214         gl_ARPA_INET_MODULE_INDICATOR.
95216         * modules/inet_pton (configure.ac): Use
95217         gl_ARPA_INET_MODULE_INDICATOR.
95219 2008-04-22  Jim Meyering  <meyering@redhat.com>
95221         * modules/verify (License): Re-license as LGPLv2+.
95223 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95225         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95226         parameter to void* as per POSIX standard (MinGW uses char*).
95228 2008-04-21  Bruno Haible  <bruno@clisp.org>
95230         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95231         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95232         Define to replacements if REPLACE_ISWCNTRL is 1.
95233         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95234         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95235         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95236         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95237         what it fixes.
95238         * doc/posix-functions/iswalpha.texi: Likewise.
95239         * doc/posix-functions/iswblank.texi: Likewise.
95240         * doc/posix-functions/iswcntrl.texi: Likewise.
95241         * doc/posix-functions/iswdigit.texi: Likewise.
95242         * doc/posix-functions/iswgraph.texi: Likewise.
95243         * doc/posix-functions/iswlower.texi: Likewise.
95244         * doc/posix-functions/iswprint.texi: Likewise.
95245         * doc/posix-functions/iswpunct.texi: Likewise.
95246         * doc/posix-functions/iswspace.texi: Likewise.
95247         * doc/posix-functions/iswupper.texi: Likewise.
95248         * doc/posix-functions/iswxdigit.texi: Likewise.
95249         Reported by Alain Guibert.
95251 2008-04-21  Bruno Haible  <bruno@clisp.org>
95253         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95254         Patch by Alain Guibert.
95256 2008-04-21  Bruno Haible  <bruno@clisp.org>
95258         Fix test failures on mingw.
95259         * tests/test-xstrtol.c (print_no_progname): New function.
95260         (main): Install it in error_print_progname hook.
95261         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95262         * tests/test-xstrtoimax.sh: Likewise.
95263         * tests/test-xstrtoumax.sh: Likewise.
95265 2008-04-21  Bruno Haible  <bruno@clisp.org>
95267         Fix test failure on mingw.
95268         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95270 2008-04-21  Bruno Haible  <bruno@clisp.org>
95272         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95273         Actually assign a value.
95275 2008-04-20  Bruno Haible  <bruno@clisp.org>
95277         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95278         take 2.
95279         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95280         'canonicalize-lgpl' module is also used.
95281         * lib/canonicalize-lgpl.c: Undo last change.
95282         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95284 2008-04-20  Bruno Haible  <bruno@clisp.org>
95286         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95287         config.h. Provide _mkdir based fallback for mingw.
95288         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95289         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95291         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95292         rather than defining mkdir in config.h.
95293         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95294         (gl_SYS_STAT_H_DEFAULTS): New macro.
95295         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95296         HAVE_IO_H any more.
95297         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95298         HAVE_DECL_MKDIR and HAVE_IO_H.
95300 2008-04-20  Bruno Haible  <bruno@clisp.org>
95302         * lib/isapipe.c: Port to native Windows platforms.
95304 2008-04-20  Bruno Haible  <bruno@clisp.org>
95306         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95308 2008-04-21  Eric Blake  <ebb9@byu.net>
95310         Work around preprocessors that don't handle UINTMAX_MAX.
95311         * lib/memchr2.c (memchr2): Avoid embedded #if.
95312         Reported by Alain Guibert, fix suggested by Bruno Haible.
95314 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95316         * doc/posix-functions/strftime.texi (strftime): Explain better
95317         Windows incompatibility.  Suggested by Micah Cowan
95318         <micah@cowan.name>.
95320 2008-04-20  Bruno Haible  <bruno@clisp.org>
95322         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95323         unistr/u8-mblen.
95325 2008-04-20  Bruno Haible  <bruno@clisp.org>
95327         Fix test failure on platforms with non-GNU iconv.
95328         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95329         (U_TO_U8): Use it, rather than u16_to_u8.
95330         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95331         units at the end of the input string.
95332         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95334 2008-04-20  Bruno Haible  <bruno@clisp.org>
95336         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95337         when the resulting length is 0.
95338         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95340 2008-04-20  Bruno Haible  <bruno@clisp.org>
95342         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95343         works.
95344         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95346 2008-04-20  Bruno Haible  <bruno@clisp.org>
95348         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95349         * modules/tsearch-tests (configure.ac): Test for initstate function.
95351 2008-04-20  Bruno Haible  <bruno@clisp.org>
95353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95354         for nlink_t if missing.
95355         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95357 2008-04-19  Bruno Haible  <bruno@clisp.org>
95359         Work around snprintf bug on Linux libc5.
95360         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95361         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95362         gl_SNPRINTF_SIZE1.
95363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95364         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95365         that test failed.
95366         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95367         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95368         * modules/snprintf (Files): Add m4/printf.m4.
95369         * modules/vsnprintf (Files): Likewise.
95370         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95371         * doc/posix-functions/vsnprintf.texi: Likewise.
95373 2008-04-19  Bruno Haible  <bruno@clisp.org>
95375         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95376         from 0.0058 to less than 10^-7.
95378 2008-04-19  Bruno Haible  <bruno@clisp.org>
95380         Fix rounding when a precision is given.
95381         * lib/vasnprintf.c (is_borderline): New function.
95382         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95383         9...9x.
95384         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95385         %e, %g.
95386         * tests/test-vasprintf-posix.c (test_function): Likewise.
95387         * tests/test-snprintf-posix.h (test_function): Likewise.
95388         * tests/test-sprintf-posix.h (test_function): Likewise.
95389         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95390         * tests/test-printf-posix.h (test_function): Likewise.
95391         * tests/test-printf-posix.output: Update.
95392         Reported by John Darrington <john@darrington.wattle.id.au> via
95393         Ben Pfaff <blp@cs.stanford.edu>.
95395 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95397         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95398         Suggested by Bruno Haible <bruno@clisp.org>.
95400 2008-04-17  Bruno Haible  <bruno@clisp.org>
95402         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95403         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95404         implementation.
95405         Patch by Bruce Merry <bmerry@gmail.com>.
95407 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95409         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95410         doesn't work under Windows.
95412 2008-04-16  Bruno Haible  <bruno@clisp.org>
95414         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95415         New macros.
95416         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95417         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95418         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95419         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95420         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95421         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95422         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95423         macros.
95424         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95425         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95426         Northern Sotho, Uighur.
95428 2008-04-16  Bruno Haible  <bruno@clisp.org>
95430         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95431         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95432         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95433         Reported by Daniel Bergström <daniel@octocode.com>.
95435 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95436             Bruno Haible  <bruno@clisp.org>
95438         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95439         function.
95440         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95441         New functions, mostly extracted from gl_locale_name_default.
95442         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95444 2008-04-16  Eric Blake  <ebb9@byu.net>
95446         Adjust strtod detection to catch glibc 2.7 bug.
95447         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95448         Reported by John Gatewood Ham.
95450 2008-04-16  Bruno Haible  <bruno@clisp.org>
95452         Add tentative support for Linux libc5.
95453         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95454         * lib/fpurge.c (fpurge): Likewise.
95455         * lib/freadable.c (freadable): Likewise.
95456         * lib/freadahead.c (freadahead): Likewise.
95457         * lib/freading.c (freading): Likewise.
95458         * lib/freadptr.c (freadptr): Likewise.
95459         * lib/freadseek.c (freadptrinc): Likewise.
95460         * lib/fseeko.c (rpl_fseeko): Likewise.
95461         * lib/fseterr.c (fseterr): Likewise.
95462         * lib/fwritable.c (fwritable): Likewise.
95463         * lib/fwriting.c (fwriting): Likewise.
95464         Reported by Alain Guibert <alguibert+bts@free.fr>.
95466 2008-04-15  Bruno Haible  <bruno@clisp.org>
95468         * modules/mathl (configure.ac): Define module indicator.
95470 2008-04-15  Bruno Haible  <bruno@clisp.org>
95472         * lib/logl.c (logl): Remove unused variables.
95474 2008-04-15  Bruno Haible  <bruno@clisp.org>
95476         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95477         fails.
95479 2008-04-15  Bruno Haible  <bruno@clisp.org>
95481         * lib/trim.c (trim2): Fix argument of isspace() macro.
95483 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95485         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95486         to 0.
95487         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95489 2008-04-14  Bruno Haible  <bruno@clisp.org>
95491         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95492         AC_LANG_PROGRAM argument.
95493         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95494         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95496         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95497         * m4/math_h.m4 (gl_MATH_H): Likewise.
95498         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95500         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95501         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95503         * m4/regex.m4 (gl_REGEX): Likewise.
95504         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95505         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95507         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95508         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95509         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95513 2008-04-14  Jim Meyering  <meyering@redhat.com>
95515         test-strtod: fix typos: s/abs/fabs/
95516         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95518 2008-04-13  Bruno Haible  <bruno@clisp.org>
95520         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95521         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95522         module is also used and while not building the reloc-wrapper.
95524 2008-04-13  Bruno Haible  <bruno@clisp.org>
95526         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95528 2008-04-13  Bruno Haible  <bruno@clisp.org>
95530         Fix AIX compilation failure introduced on 2008-04-02.
95531         * tests/test-frexp.c (exp): Undefine before redefining.
95532         * tests/test-frexpl.c (exp): Likewise.
95534 2008-04-13  Bruno Haible  <bruno@clisp.org>
95536         Work around a HP-UX stdio bug.
95537         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95538         * tests/test-ftello.c (main): Likewise.
95539         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95540         * doc/posix-functions/ftello.texi: Likewise.
95542 2008-04-13  Bruno Haible  <bruno@clisp.org>
95544         Make test-signbit pass on HP-UX/hppa.
95545         * tests/test-signbit.c (minus_zerol): New variable.
95546         (test_signbitl): Use it.
95548 2008-04-13  Bruno Haible  <bruno@clisp.org>
95550         Make truncl work on OSF/1 4.0.
95551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95552         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95553         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95555         HAVE_DECL_TRUNCL.
95556         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95557         HAVE_DECL_TRUNCL.
95558         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95560 2008-04-13  Bruno Haible  <bruno@clisp.org>
95562         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95564 2008-04-13  Bruno Haible  <bruno@clisp.org>
95566         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95567         expression, so as to avoid HP-UX 11 cc compiler bug.
95569 2008-04-13  Bruno Haible  <bruno@clisp.org>
95571         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95573 2008-04-13  Bruno Haible  <bruno@clisp.org>
95575         * lib/git-merge-changelog.c: Remove empty declaration outside of
95576         functions.
95578 2008-04-13  Bruno Haible  <bruno@clisp.org>
95580         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95582 2008-04-13  Bruno Haible  <bruno@clisp.org>
95584         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95585         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95587         also if it exists but lacks definitions of the SHUT_* macros.
95588         * modules/sys_socket (Description): Update.
95589         Reported by Elbert Pol <e.pol@chello.nl>.
95591 2008-04-13  Bruno Haible  <bruno@clisp.org>
95593         * lib/localcharset.c (OS2): Don't redefine if already defined.
95594         Reported by Elbert Pol <e.pol@chello.nl>.
95596 2008-04-13  Bruno Haible  <bruno@clisp.org>
95598         * lib/binary-io.h [__EMX__]: Include <io.h>.
95599         Reported by Elbert Pol <e.pol@chello.nl>.
95601 2008-04-12  Bruno Haible  <bruno@clisp.org>
95603         * lib/fpucw.h: Enable the definitions also for x86_64.
95604         Needed for NetBSD/x86_64.
95605         Reported by Thomas Klausner <tk@giga.or.at>.
95607 2008-04-12  Bruno Haible  <bruno@clisp.org>
95609         * tests/test-strtod.c: Include isnand.h.
95610         (main): Use isnand instead of isnan.
95611         Reported by Jim Meyering.
95613 2008-04-12  Bruno Haible  <bruno@clisp.org>
95615         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95616         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95618 2008-04-12  Jim Meyering  <meyering@redhat.com>
95620         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95622 2008-04-12  Bruno Haible  <bruno@clisp.org>
95624         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95625         Reported by Elbert Pol <e.pol@chello.nl>.
95627 2008-04-12  Eric Blake  <ebb9@byu.net>
95629         Work around Solaris 10 math.h bug.
95630         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95631         (gl_MATH_H_DEFAULTS): Set up default.
95632         * modules/math (Makefile.am): Replace new indicators.
95633         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95634         * tests/test-math.c (main): Test this.
95635         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95636         * doc/posix-headers/math.texi (math.h): Mention bug.
95637         Reported by Nelson H. F. Beebe and Jim Meyering.
95639 2008-04-11  Bruno Haible  <bruno@clisp.org>
95641         Adapt to future versions of Apple GCC.
95642         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95643         Reported by Peter O'Gorman <peter@pogma.com>.
95645 2008-04-11  Bruno Haible  <bruno@clisp.org>
95647         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95649 2008-04-11  Bruno Haible  <bruno@clisp.org>
95651         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95653         * modules/getaddrinfo-tests (Makefile.am): Define
95654         test_getaddrinfo_LDADD.
95656 2008-04-11  Bruno Haible  <bruno@clisp.org>
95658         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95659         (init): Fix syntax error.
95660         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95661         is declared.
95663 2008-04-11  Bruno Haible  <bruno@clisp.org>
95665         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95666         * modules/glob (Depends-on): Add stdbool.
95668 2008-04-11  Bruno Haible  <bruno@clisp.org>
95670         * lib/trim.c: Include <string.h>.
95672 2008-04-11  Eric Blake  <ebb9@byu.net>
95674         Avoid compile failure on OS/2.
95675         * lib/regex_internal.h (internal_function): Disable optimization
95676         on OS/2 (__EMX__), where it caused compiler error.
95677         Reported by Elbert Pol.
95679 2008-04-11  Bruno Haible  <bruno@clisp.org>
95681         Flush the standard error stream before aborting. Needed on mingw.
95682         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95683         * tests/test-array_list.c (ASSERT): Likewise.
95684         * tests/test-array_oset.c (ASSERT): Likewise.
95685         * tests/test-avltree_list.c (ASSERT): Likewise.
95686         * tests/test-avltree_oset.c (ASSERT): Likewise.
95687         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95688         * tests/test-binary-io.c (ASSERT): Likewise.
95689         * tests/test-byteswap.c (ASSERT): Likewise.
95690         * tests/test-c-ctype.c (ASSERT): Likewise.
95691         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95692         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95693         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95694         * tests/test-c-strstr.c (ASSERT): Likewise.
95695         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95696         * tests/test-canonicalize.c (ASSERT): Likewise.
95697         * tests/test-carray_list.c (ASSERT): Likewise.
95698         * tests/test-ceilf1.c (ASSERT): Likewise.
95699         * tests/test-ceilf2.c (ASSERT): Likewise.
95700         * tests/test-ceill.c (ASSERT): Likewise.
95701         * tests/test-count-one-bits.c (ASSERT): Likewise.
95702         * tests/test-fbufmode.c (ASSERT): Likewise.
95703         * tests/test-fflush2.c (ASSERT): Likewise.
95704         * tests/test-floorf1.c (ASSERT): Likewise.
95705         * tests/test-floorf2.c (ASSERT): Likewise.
95706         * tests/test-floorl.c (ASSERT): Likewise.
95707         * tests/test-fopen.c (ASSERT): Likewise.
95708         * tests/test-fpending.c (ASSERT): Likewise.
95709         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95710         * tests/test-fpurge.c (ASSERT): Likewise.
95711         * tests/test-freadable.c (ASSERT): Likewise.
95712         * tests/test-freadahead.c (ASSERT): Likewise.
95713         * tests/test-freading.c (ASSERT): Likewise.
95714         * tests/test-freadptr.c (ASSERT): Likewise.
95715         * tests/test-freadptr2.c (ASSERT): Likewise.
95716         * tests/test-freadseek.c (ASSERT): Likewise.
95717         * tests/test-freopen.c (ASSERT): Likewise.
95718         * tests/test-frexp.c (ASSERT): Likewise.
95719         * tests/test-frexpl.c (ASSERT): Likewise.
95720         * tests/test-fseek.c (ASSERT): Likewise.
95721         * tests/test-fseeko.c (ASSERT): Likewise.
95722         * tests/test-fstrcmp.c (ASSERT): Likewise.
95723         * tests/test-ftell.c (ASSERT): Likewise.
95724         * tests/test-ftello.c (ASSERT): Likewise.
95725         * tests/test-func.c (ASSERT): Likewise.
95726         * tests/test-fwritable.c (ASSERT): Likewise.
95727         * tests/test-fwriting.c (ASSERT): Likewise.
95728         * tests/test-getdelim.c (ASSERT): Likewise.
95729         * tests/test-getline.c (ASSERT): Likewise.
95730         * tests/test-i-ring.c (ASSERT): Likewise.
95731         * tests/test-iconv-utf.c (ASSERT): Likewise.
95732         * tests/test-iconv.c (ASSERT): Likewise.
95733         * tests/test-isfinite.c (ASSERT): Likewise.
95734         * tests/test-isnand.c (ASSERT): Likewise.
95735         * tests/test-isnanf.c (ASSERT): Likewise.
95736         * tests/test-isnanl.h (ASSERT): Likewise.
95737         * tests/test-ldexpl.c (ASSERT): Likewise.
95738         * tests/test-linked_list.c (ASSERT): Likewise.
95739         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95740         * tests/test-localename.c (ASSERT): Likewise.
95741         * tests/test-lseek.c (ASSERT): Likewise.
95742         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95743         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95744         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95745         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95746         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95747         * tests/test-mbschr.c (ASSERT): Likewise.
95748         * tests/test-mbscspn.c (ASSERT): Likewise.
95749         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95750         * tests/test-mbspbrk.c (ASSERT): Likewise.
95751         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95752         * tests/test-mbsrchr.c (ASSERT): Likewise.
95753         * tests/test-mbsspn.c (ASSERT): Likewise.
95754         * tests/test-mbsstr1.c (ASSERT): Likewise.
95755         * tests/test-mbsstr2.c (ASSERT): Likewise.
95756         * tests/test-mbsstr3.c (ASSERT): Likewise.
95757         * tests/test-memchr2.c (ASSERT): Likewise.
95758         * tests/test-memmem.c (ASSERT): Likewise.
95759         * tests/test-open.c (ASSERT): Likewise.
95760         * tests/test-printf-frexp.c (ASSERT): Likewise.
95761         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95762         * tests/test-printf-posix.c (ASSERT): Likewise.
95763         * tests/test-quotearg.c (ASSERT): Likewise.
95764         * tests/test-rbtree_list.c (ASSERT): Likewise.
95765         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95766         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95767         * tests/test-round1.c (ASSERT): Likewise.
95768         * tests/test-roundf1.c (ASSERT): Likewise.
95769         * tests/test-roundl.c (ASSERT): Likewise.
95770         * tests/test-signbit.c (ASSERT): Likewise.
95771         * tests/test-sleep.c (ASSERT): Likewise.
95772         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95773         * tests/test-snprintf.c (ASSERT): Likewise.
95774         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95775         * tests/test-stat-time.c (ASSERT): Likewise.
95776         * tests/test-strcasestr.c (ASSERT): Likewise.
95777         * tests/test-strerror.c (ASSERT): Likewise.
95778         * tests/test-striconv.c (ASSERT): Likewise.
95779         * tests/test-striconveh.c (ASSERT): Likewise.
95780         * tests/test-striconveha.c (ASSERT): Likewise.
95781         * tests/test-strsignal.c (ASSERT): Likewise.
95782         * tests/test-strstr.c (ASSERT): Likewise.
95783         * tests/test-strtod.c (ASSERT): Likewise.
95784         * tests/test-trunc1.c (ASSERT): Likewise.
95785         * tests/test-trunc2.c (ASSERT): Likewise.
95786         * tests/test-truncf1.c (ASSERT): Likewise.
95787         * tests/test-truncf2.c (ASSERT): Likewise.
95788         * tests/test-truncl.c (ASSERT): Likewise.
95789         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95790         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95791         * tests/test-vasnprintf.c (ASSERT): Likewise.
95792         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95793         * tests/test-vasprintf.c (ASSERT): Likewise.
95794         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95795         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95796         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95797         * tests/test-vsnprintf.c (ASSERT): Likewise.
95798         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95799         * tests/test-wcwidth.c (ASSERT): Likewise.
95800         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95801         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95802         * tests/test-xvasprintf.c (ASSERT): Likewise.
95803         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95804         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95805         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95806         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95807         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95808         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95809         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95810         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95811         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95812         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95813         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95814         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95815         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95816         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95817         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95818         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95819         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95820         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95821         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95822         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95823         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95824         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95825         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95826         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95827         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95828         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95829         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95830         * tests/unictype/test-combining.c (ASSERT): Likewise.
95831         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95832         * tests/unictype/test-digit.c (ASSERT): Likewise.
95833         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95834         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95835         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95836         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95837         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95838         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95839         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95840         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95841         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95842         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95843         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95844         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95845         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95846         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95847         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95848         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95849         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95850         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95851         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95852         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95853         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95854         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95855         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95856         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95857         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95858         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95859         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95860         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95861         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95862         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95863         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95864         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95865         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95866         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95867         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95868         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95869         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95870         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95871         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95872         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95873         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95874         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95875         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95876         Reported by Eric Blake.
95878 2008-04-11  Bruno Haible  <bruno@clisp.org>
95880         * lib/wchar.in.h: Tweak comment.
95882 2008-04-11  Bruno Haible  <bruno@clisp.org>
95884         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95885         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95886         gl_COMMON.
95887         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95889 2008-04-11  Bruno Haible  <bruno@clisp.org>
95891         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95893 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95895         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95896         of attempting to use non-existing /dev/*random.  Based on patch
95897         from Adam Strzelecki <ono@java.pl> in
95898         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95900 2008-04-08  Bruno Haible  <bruno@clisp.org>
95902         Add tentative support for emx+gcc.
95903         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95904         * lib/fpurge.c (fpurge): Likewise.
95905         * lib/freadable.c (freadable): Likewise.
95906         * lib/freadahead.c (freadahead): Likewise.
95907         * lib/freading.c (freading): Likewise.
95908         * lib/freadptr.c (freadptr): Likewise.
95909         * lib/freadseek.c (freadptrinc): Likewise.
95910         * lib/fseeko.c (rpl_fseeko): Likewise.
95911         * lib/fseterr.c (fseterr): Likewise.
95912         * lib/fwritable.c (fwritable): Likewise.
95913         * lib/fwriting.c (fwriting): Likewise.
95914         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95916 2008-04-09  Eric Blake  <ebb9@byu.net>
95918         Avoid some autoconf warnings.
95919         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95920         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95921         * m4/afs.m4 (gl_AFS): Likewise.
95922         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95923         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95925         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95926         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95927         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95928         (AC_CHECK_DECLS_ONCE): Likewise.
95929         Rename file...
95930         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95931         gnulib-tool requires autoconf 2.59 or better.
95932         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95934 2008-04-08  Eric Blake  <ebb9@byu.net>
95936         Use 'git describe --match' if present (added in git 1.5.5).
95937         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95938         if possible.
95940 2008-04-08  Bruno Haible  <bruno@clisp.org>
95942         Add tentative support for OpenServer.
95943         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95944         _ptr, _cnt.
95945         * lib/fpurge.c (fpurge): Likewise.
95946         * lib/freadable.c (freadable): Likewise.
95947         * lib/freadahead.c (freadahead): Likewise.
95948         * lib/freading.c (freading): Likewise.
95949         * lib/freadptr.c (freadptr): Likewise.
95950         * lib/freadseek.c (freadptrinc): Likewise.
95951         * lib/fseeko.c (rpl_fseeko): Likewise.
95952         * lib/fseterr.c (fseterr): Likewise.
95953         * lib/fwritable.c (fwritable): Likewise.
95954         * lib/fwriting.c (fwriting): Likewise.
95955         Reported by Roger Cornelius <rac@tenzing.org> and
95956         Brian K. White <brian@aljex.com>.
95958 2008-04-06  Jim Meyering  <meyering@redhat.com>
95960         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95962 2008-04-06  Bruno Haible  <bruno@clisp.org>
95964         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95965         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95966         * tests/test-printf-posix.sh: Likewise.
95967         * tests/test-vfprintf-posix.sh: Likewise.
95968         * tests/test-vprintf-posix.sh: Likewise.
95969         * tests/test-xprintf-posix.sh: Likewise.
95971 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95973         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95974         hide error from 'ls', needed on OS/2.
95975         Report by Elbert Pol <elbert.pol@gmail.com>.
95977 2008-04-04  Eric Blake  <ebb9@byu.net>
95979         Make test-fseeko.c failures meaningful.
95980         * tests/test-fseeko.c: Print line number on failure.
95981         * tests/test-fseek.c: Likewise.
95982         Reported by Nelson H. F. Beebe.
95984         Improve strtod bug detection check.
95985         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95986         required for Solaris 10.
95987         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95989 2008-04-04  Bruno Haible  <bruno@clisp.org>
95991         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95992         by m4/setenv.m4.
95994 2008-04-03  Eric Blake  <ebb9@byu.net>
95996         Ensure sane .version contents.
95997         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95998         version string.
95999         * build-aux/git-version-gen: Improve documentation.
96001         Make GNU make output nicer.
96002         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96003         MAKECMDGOALS to enforce message for all command line targets.  Set
96004         srcdir for use in maint.mk.
96006         Another maintainer tweak.
96007         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96008         a target that regenerates version.
96010 2008-04-03  Jim Meyering  <meyering@redhat.com>
96012         vc-list-files: don't cause coreutils "make po-check" failure
96013         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96015 2008-04-03  Eric Blake  <ebb9@byu.net>
96017         Allow VPATH usage of vc-list-files.
96018         * build-aux/vc-list-files (scriptversion): Add timestamp.
96019         (options): Add --help, --version, -C.
96020         (CVS): Support installed cvsu.
96022 2008-04-02  Bruno Haible  <bruno@clisp.org>
96024         Avoid some "statement with no effect" warnings from gcc.
96025         * tests/test-wctype.c (main): Explicitly ignore unused values.
96026         Reported by Jim Meyering.
96028 2008-04-02  Jim Meyering  <meyering@redhat.com>
96030         Avoid some warnings from "gcc -Wshadow".
96031         * tests/test-frexp.c (exp): Define to a different identifier.
96032         * tests/test-frexpl.c (exp): Likewise.
96034 2008-04-03  Jim Meyering  <meyering@redhat.com>
96036         bootstrap: remove dangling *.[ch] symlinks from lib
96037         * build-aux/bootstrap [dangling symlink removal]: Move find's
96038         -depth option to precede all others, to avoid a warning.
96039         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96041 2008-04-02  Bruno Haible  <bruno@clisp.org>
96043         Avoid some warnings from "gcc -Wshadow".
96044         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96045         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96046         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96047         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96048         Reported by Jim Meyering.
96050 2008-04-01  Bruno Haible  <bruno@clisp.org>
96052         Fix test to work on IRIX 6.5 with cc.
96053         * tests/test-math.c (numeric_equal): New function.
96054         (main): Use it.
96056 2008-04-01  Bruno Haible  <bruno@clisp.org>
96058         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96060 2008-04-01  Bruno Haible  <bruno@clisp.org>
96062         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96063         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96064         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96065         (Depends-on): Remove math.
96067         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96068         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96069         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96070         (Depends-on): Remove math.
96072         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96073         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96074         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96075         (Depends-on): Remove math.
96076         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96077         (Depends-on): Remove math.
96079         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96080         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96081         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96082         (Depends-on): Remove math.
96083         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96084         (Depends-on): Remove math.
96086         * tests/test-round1.c: Include nan.h.
96087         (main): Use NaNd instead of NAN.
96088         * modules/round-tests (Files): Add tests/nan.h.
96090         * tests/test-trunc1.c: Include nan.h.
96091         (main): Use NaNd instead of NAN.
96092         * modules/trunc-tests (Files): Add tests/nan.h.
96094         * tests/test-roundf1.c: Include nan.h.
96095         (main): Use NaNf instead of NAN.
96096         * modules/roundf-tests (Files): Add tests/nan.h.
96098         * tests/test-truncf1.c: Include nan.h.
96099         (main): Use NaNf instead of NAN.
96100         * modules/truncf-tests (Files): Add tests/nan.h.
96102         * tests/test-ceilf1.c: Include nan.h.
96103         (main): Use NaNf instead of NAN.
96104         * modules/ceilf-tests (Files): Add tests/nan.h.
96106         * tests/test-floorf1.c: Include nan.h.
96107         (main): Use NaNf instead of NAN.
96108         * modules/floorf-tests (Files): Add tests/nan.h.
96110         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96111         (main): Use NaNf instead of NAN.
96112         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96114         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96115         (main): Use NaNd instead of NAN.
96116         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96118         * tests/test-frexp.c: Include nan.h.
96119         (main): Use NaNd instead of NAN.
96120         * modules/frexp-tests (Files): Add tests/nan.h.
96122         * lib/isnan.c: Don't include <math.h>.
96123         (FUNC): Don't use NAN macro.
96124         * modules/isnand-nolibm (Depends-on): Remove math.
96125         * modules/isnanf-nolibm (Depends-on): Remove math.
96126         * modules/isnanl (Depends-on): Remove math.
96127         * modules/isnanl-nolibm (Depends-on): Remove math.
96129         * tests/nan.h: New file.
96131 2008-04-01  Eric Blake  <ebb9@byu.net>
96133         Fix typos.
96134         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96135         values to be the right type.
96137         For now, cater to gnulib strtod inaccuracies.
96138         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96139         fractional results.  While not as nice from a QoI perspective, it
96140         is a quicker patch than correctly implementing decimal to binary
96141         rounding.
96143 2008-03-31  Eric Blake  <ebb9@byu.net>
96145         Guarantee a definition of NAN.
96146         * lib/math.in.h (NAN): Define if missing.
96147         * tests/test-math.c (main): Test it.
96148         * doc/posix-headers/math.texi (math.h): Document this.
96149         * lib/isnan.c (rpl_isnand): Use it.
96150         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96151         * tests/test-floorf1.c (NaN): Likewise.
96152         * tests/test-frexp.c (NaN): Likewise.
96153         * tests/test-isnand.c (NaN): Likewise.
96154         * tests/test-isnanf.c (NaN): Likewise.
96155         * tests/test-round1.c (NaN): Likewise.
96156         * tests/test-roundf1.c (NaN): Likewise.
96157         * tests/test-snprintf-posix.h (NaN): Likewise.
96158         * tests/test-sprintf-posix.h (NaN): Likewise.
96159         * tests/test-trunc1.c (NaN): Likewise.
96160         * tests/test-truncf1.c (NaN): Likewise.
96161         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96162         * tests/test-vasprintf-posix.c (NaN): Likewise.
96163         * modules/isnand-nolibm (Depends-on): Add math.
96164         * modules/isnanf-nolibm (Depends-on): Likewise.
96165         * modules/isnanl (Depends-on): Likewise.
96166         * modules/isnanl-nolibm (Depends-on): Likewise.
96167         * modules/snprintf-posix-tests (Depends-on): Likewise.
96168         * modules/sprintf-posix-tests (Depends-on): Likewise.
96169         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96170         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96171         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96172         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96174 2008-03-31  Bruno Haible  <bruno@clisp.org>
96176         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96177         * doc/posix-functions/strtod.texi: Likewise.
96179 2008-03-31  Bruno Haible  <bruno@clisp.org>
96181         * tests/test-strtod.c (main): Don't use C99 syntax.
96183 2008-03-31  Bruno Haible  <bruno@clisp.org>
96185         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96186         Reported by Eric Blake.
96188 2008-03-31  Jim Meyering  <meyering@redhat.com>
96190         Don't compare actual signbit return values.
96191         * tests/test-strtod.c (main): Rather, compare only their
96192         zero/non-zero nature.
96194 2008-03-31  Eric Blake  <ebb9@byu.net>
96196         More strtod documentation.
96197         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96198         failures as distinct bugs.
96200 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96202         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96203         Problem reported by Erik Benada in
96204         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96206 2008-03-30  Bruno Haible  <bruno@clisp.org>
96208         * tests/test-strtod.c: Add comments about which assertion fails on which
96209         platform.
96210         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96212 2008-03-30  Eric Blake  <ebb9@byu.net>
96214         Test signbit behavior on zeros.
96215         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96216         (test_signbitd, test_signbitl): Likewise.
96218         More strtod touchups.
96219         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96220         sign of negative underflow, for now.  Use .5, not .1.
96221         * doc/posix-functions/strtod.texi (strtod): Mention these
96222         limitations.
96223         Reported by Jim Meyering.
96225 2008-03-30  Bruno Haible  <bruno@clisp.org>
96227         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96228         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96230 2008-03-30  Bruno Haible  <bruno@clisp.org>
96232         Avoid failure when attempting to return empty iconv results on some
96233         platforms.
96234         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96235         allocation, don't report ENOMEM when the resulting string is empty.
96237 2008-03-30  Bruno Haible  <bruno@clisp.org>
96239         Fix buffer overrun.
96240         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96241         Don't consider the width for tmp_length. Check count against tmp_length
96242         before doing the padding. Ensure enough allocation during padding.
96244 2008-03-30  Eric Blake  <ebb9@byu.net>
96246         strtod touchups.
96247         * lib/strtod.c (strtod): Avoid compiler warnings.
96248         Reported by Jim Meyering.
96250 2008-03-30  Bruno Haible  <bruno@clisp.org>
96252         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96253         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96254         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96255         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96256         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96257         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96258         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96259         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96261         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96262         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96263         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96264         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96265         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96266         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96267         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96268         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96270         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96271         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96272         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96273         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96274         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96275         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96276         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96277         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96279         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96280         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96282         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96283         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96285         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96286         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96288         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96290         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96292         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96294         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96296         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96297         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96298         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96300         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96302         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96304         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96305         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96307         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96308         (Depends-on): Add EOVERFLOW.
96309         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96310         (Depends-on): Add EOVERFLOW.
96311         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96312         (Depends-on): Add EOVERFLOW.
96313         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96314         (Depends-on): Add EOVERFLOW.
96315         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96316         (Depends-on): Add EOVERFLOW.
96317         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96318         (Depends-on): Add EOVERFLOW.
96319         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96320         (Depends-on): Add EOVERFLOW.
96321         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96322         (Depends-on): Add EOVERFLOW.
96324         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96326         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96328         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96330         * modules/snprintf (Depends-on): Add EOVERFLOW.
96332         * lib/poll.c (EOVERFLOW): Remove fallback.
96333         * modules/poll (Depends-on): Add EOVERFLOW.
96335         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96336         * modules/getugroups (Depends-on): Add EOVERFLOW.
96338         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96339         * modules/getdelim (Depends-on): Add EOVERFLOW.
96341         * lib/ftell.c (EOVERFLOW): Remove fallback.
96342         * modules/ftell (Depends-on): Add EOVERFLOW.
96344         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96346         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96348         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96350         * modules/EOVERFLOW-tests: New file.
96351         * tests/test-EOVERFLOW.c: New file.
96353         * modules/EOVERFLOW: New file.
96354         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96356 2008-03-30  Bruno Haible  <bruno@clisp.org>
96358         Fix bug introduced on 2007-06-10.
96359         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96360         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96362 2008-03-30  Bruno Haible  <bruno@clisp.org>
96364         Improve freadseek's efficiency after ungetc.
96365         * lib/freadseek.c: Include freadahead.h.
96366         (freadptrinc): New function, extracted from freadseek.
96367         (freadseek): Use it in a loop. Use freadahead to determine the number
96368         of loop iterations.
96369         * modules/freadseek (Depends-on): Add freadahead.
96370         (configure.ac): Require AC_C_INLINE.
96372 2008-03-30  Bruno Haible  <bruno@clisp.org>
96374         * lib/freadseek.c (freadseek): Don't ignore the return value of
96375         freadptr.
96377 2008-03-29  Eric Blake  <ebb9@byu.net>
96379         Add hex float support.
96380         * modules/strtod (Depends-on): Add c-ctype.
96381         (Link): Mention POW_LIB.
96382         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96383         whitespace between 'e' and exponent.
96384         * tests/test-strtod.c (main): Enable hex float tests.
96385         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96386         now provides.
96388         Document various strtod bugs, with some fixes.
96389         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96390         "-0x", "inf", "nan", and hex constants.
96391         * doc/posix-functions/atof.texi (atof): Likewise.
96392         * modules/stdlib (Makefile.am): Support strtod.
96393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96394         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96395         detect additional strtod bugs.
96396         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96397         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96398         bool where appropriate.  Parse 'inf' and 'nan'.
96399         * tests/test-strtod.c: New file.
96400         * modules/strtod (Depends-on): Add stdbool, stdlib.
96401         (configure.ac): Turn on module indicator.
96402         * modules/strtod-tests: New module.
96404 2008-03-29  Eric Blake  <ebb9@byu.net>
96406         Fix ftell on mingw.
96407         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96408         * modules/ftell-tests (Depends-on): Add binary-io.
96409         * modules/ftello-tests (Depends-on): Likewise.
96410         * tests/test-ftell.c (main): Enhance test to cover behavior after
96411         ungetc.  Enforce binary mode.
96412         * tests/test-ftello.c (main): Likewise.
96414         Pass test-freadseek on cygwin.
96415         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96416         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96417         ungetc buffer.
96419         * tests/test-fflush2.c (main): Fix typo.
96421 2008-03-29  Bruno Haible  <bruno@clisp.org>
96423         * tests/test-fflush2.c (main): Temporarily disable the contents of
96424         this test.
96425         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96426         Reported by Eric Blake.
96428 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96430         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96431         (GC_SHA224_DIGEST_SIZE): Add.
96433         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96434         (gc_hash_digest_length): Likewise.
96435         (gc_hash_buffer): Likewise.
96437 2008-03-25  Bruno Haible  <bruno@clisp.org>
96439         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96440         detail which gettext release to use.
96441         Reported by Simon Josefsson.
96443 2008-03-26  Jim Meyering  <meyering@redhat.com>
96445         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96446         * modules/gnumakefile (clean-GNUmakefile): Also, use
96447         test ... && ... || : syntax rather than if-then ... fi.
96449         gnumakefile: Don't double-quote-expand $(VPATH) value.
96450         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96452 2008-03-24  Eric Blake  <ebb9@byu.net>
96454         Alter GNUmakefile to install into top directory.
96455         * modules/maintainer-makefile: Split, and add dependency...
96456         * modules/gnumakefile: to this new module.
96457         * build-aux/GNUmakefile: Move...
96458         * top/GNUmakefile: ...here.
96459         * build-aux/maint.mk: Move...
96460         * top/maint.mk: ...here.
96461         * MODULES.html.sh (Support for maintaining...): Document new
96462         module.
96464 2008-03-23  Bruno Haible  <bruno@clisp.org>
96466         * gnulib-tool: New options --vc-files, --no-vc-files.
96467         (func_usage): Document them.
96468         (vc_files): New variable.
96469         (func_import): Consider vc_files.
96470         (func_create_testdir): Set vc_files to empty.
96471         Suggested by Jim Meyering and Karl Berry.
96473 2008-03-23  Bruno Haible  <bruno@clisp.org>
96475         Fix regex compilation error on HP-UX 11.
96476         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96477         * modules/regex (Files): Add m4/mbstate_t.m4.
96478         Reported by Ton Voon <ton.voon@altinity.com>.
96480 2008-03-23  Bruno Haible  <bruno@clisp.org>
96482         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96484 2008-03-23  Eric Blake  <ebb9@byu.net>
96485             Bruno Haible  <bruno@clisp.org>
96487         Install files from top/ in the destination directory.
96488         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96489         augmentation also for the files from top/.
96490         (func_import, func_create_testdir): Rewrite file names:
96491         top/filename -> filename.
96493 2008-03-23  Bruno Haible  <bruno@clisp.org>
96495         Tweak "gnulib --version" output.
96496         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96498 2008-03-23  Bruno Haible  <bruno@clisp.org>
96500         Tweak "gnulib --version" output.
96501         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96502         rather than contents of ChangeLog, when possible.
96504 2008-03-21  Eric Blake  <ebb9@byu.net>
96506         More --version tweaks.
96507         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96508         date of last ChangeLog entry.
96510 2008-03-21  Jim Meyering  <meyering@redhat.com>
96512         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96514 2008-03-20  Eric Blake  <ebb9@byu.net>
96516         VPATH fix.
96517         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96519 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96521         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96522         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96524 2008-03-20  Eric Blake  <ebb9@byu.net>
96526         Sync GNUmakefile with coreutils.
96527         * build-aux/GNUmakefile (have-Makefile): Rename...
96528         (_have-Makefile): ...to this, for namespace consideration.
96529         (GNUmakefile.cfg): Include, if present.
96530         (_autoreconf): Define a default.
96531         (_is-dist-target): New rule for rebuilds to pick up intra-release
96532         version.
96533         (maint-cfg.mk): Rename...
96534         (cfg.mk): ...to this.
96536 2008-03-18  Jim Meyering  <meyering@redhat.com>
96538         New script and module: mktempd
96539         * MODULES.html.sh (maint+release support): Add mktempd.
96540         * build-aux/mktempd: New file.
96541         * modules/mktempd: New file.
96543 2008-03-15  Jim Meyering  <meyering@redhat.com>
96545         Undo last change.
96546         * lib/sha1.c, lib/md5.c: 63 != ~63.
96547         Reported by Andreas Schwab.
96549         sha1.c, md5.c: Hoist a redundant expression.
96550         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96551         "ctx->buflen" only once, before calling *_process_block.
96552         * lib/md5.c (md5_process_bytes): Likewise.
96554 2008-03-14  Eric Blake  <ebb9@byu.net>
96556         Bump copyright year in files generated by gnulib-tool.
96557         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96558         gnulib-tool, rather than hard-coding it.
96560         Fix 'gnulib-tool --version' output to work with git.
96561         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96562         (startup): ...here.
96563         (func_version): Use it to invoke git-version-gen, rather than
96564         relying on CVS keyword expansion.  Modernize wording.
96565         (cvsdatestamp, last_checkin_date, version): Kill unused
96566         variables.
96568 2008-03-12  Jim Meyering  <meyering@redhat.com>
96570         Recognize optional cast of the argument to free.
96571         * build-aux/useless-if-before-free: Update regexps.
96573         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96575 2008-03-11  Bruno Haible  <bruno@clisp.org>
96577         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96578         by a single package.
96579         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96580         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96581         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96582         Reported by Sam Steingold <sds@gnu.org>.
96584 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96586         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96587         repositories.
96589 2008-03-11  Bruno Haible  <bruno@clisp.org>
96591         Avoid conflicts between local macro definitions.
96592         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96593         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96595 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96596             Bruno Haible  <bruno@clisp.org>
96598         Make va_copy work with some version of xlc on AIX 5.1.
96599         * lib/stdarg.in.h: New file.
96600         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96601         On AIX, use a <stdarg.h> file substitute.
96602         * modules/stdarg (Files): Add lib/stdarg.in.h.
96603         (Depends-on): Add include_next.
96604         (Makefile.am): Build a stdarg.h substitute if requested.
96605         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96607 2008-03-10  Bruno Haible  <bruno@clisp.org>
96609         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96610         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96611         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96613 2008-03-10  Bruno Haible  <bruno@clisp.org>
96615         * modules/stdlib (Depends-on): Add include_next, remove
96616         absolute-header.
96618 2008-03-09  Bruno Haible  <bruno@clisp.org>
96620         * lib/freadahead.h (freadahead): Document more precisely.
96621         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96622         the sum of both buffer sizes.
96623         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96624         * NEWS: Document the change.
96626 2008-03-09  Bruno Haible  <bruno@clisp.org>
96628         Extend freadptr to return also the buffer size.
96629         * lib/freadptr.h (freadptr): Add sizep argument.
96630         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96631         (freadptr): Add sizep argument. Determine buffer size like freadahead
96632         does.
96633         * tests/test-freadptr.c: Don't include freadahead.h.
96634         (main): Adapt for new calling convention of freadptr.
96635         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96636         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96637         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96638         tests/test-freadptr2.sh.
96639         (Depends): Remove freadahead.
96640         (TESTS): Add test-freadptr2.sh.
96641         (check_PROGRAMS): Add test-freadptr2.
96643 2008-03-09  Bruno Haible  <bruno@clisp.org>
96645         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96646         Report and solution by Simon Josefsson.
96648 2008-03-06  Bruno Haible  <bruno@clisp.org>
96650         Make fflush after ungetc work on BSD platforms.
96651         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96652         * tests/test-fflush2.c: New file.
96653         * tests/test-fflush2.sh: New file.
96654         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96655         tests/test-fflush2.c.
96656         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96657         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96659 2008-03-06  Eric Blake  <ebb9@byu.net>
96661         Likewise for ftello.
96662         * modules/ftello (Dependencies): Add extensions.
96663         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96665 2008-03-06  Bruno Haible  <bruno@clisp.org>
96667         * modules/fseeko (Dependencies): Add extensions.
96668         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96669         Needed on glibc systems.
96671 2008-03-06  Bruno Haible  <bruno@clisp.org>
96673         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96674         email address.
96675         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96677 2008-03-06  Bruno Haible  <bruno@clisp.org>
96679         * users.txt: Add libgnupdf.
96681 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96683         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96684         (Header File Substitutes, Function Substitutes,
96685         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96686         (Build robot for gnulib): Fix typo.
96688 2008-03-06  Bruno Haible  <bruno@clisp.org>
96690         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96691         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96693 2008-03-06  Bruno Haible  <bruno@clisp.org>
96695         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96696         * doc/gnulib.texi: Include it.
96698 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96700         * modules/func (License): Change license to unlimited; there was
96701         no LGPL parts in the module anyway.
96703 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96705         * modules/__func__: Renamed to modules/func.
96706         * modules/__func__-tests: Renamed to modules/func-tests.
96707         * tests/test-__func__.c: Renamed to tests/test-func.c.
96708         * m4/__func__.m4: Renamed to m4/func.m4.
96709         * doc/gnulib.texi (__func__): Section renamed to func.
96710         Suggested by Eric Blake <ebb9@byu.net>.
96712 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96714         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96715         about __func__.  Make example self-contained.  Suggested by Eric
96716         Blake <ebb9@byu.net>.
96718         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96719         Suggested by Eric Blake <ebb9@byu.net>.
96721 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96723         * modules/__func__: New file.
96724         * modules/__func__-tests: New file.
96725         * tests/test-__func__.c: New file.
96726         * m4/__func__.m4: New file.
96727         * doc/gnulib.texi (__func__): Document __func__ module.
96729 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96731         * modules/byteswap (License): Re-license as LGPLv2+.
96733 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96735         * doc/Makefile: Add pdf target.
96737 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96739         * modules/inline (License): Use 'unlimited', since there are only
96740         *.m4 files in this module.
96742 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96743             Bruno Haible  <bruno@clisp.org>
96745         Add support for HP C 7.1 on OpenVMS 8.3.
96746         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96748 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96750         Update VMS specifics.
96751         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96753 2008-03-02  Jim Meyering  <meyering@redhat.com>
96755         Remove the last dependency on the "free" module.
96756         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96757         Reported by Bob Proulx.
96759         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96761         Remove useless "if" tests before free.  Deprecate "free" module.
96762         * doc/posix-functions/free.texi: Mention that this
96763         module is no longer useful.
96764         * modules/free (Notice): Say this module is obsolete.
96765         * modules/readutmp (Depends-on): Remove free.
96766         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96767         * lib/putenv.c (putenv): Likewise.
96768         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96769         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96770         * tests/test-c-strcasestr.c (main): Likewise.
96771         * tests/test-c-strstr.c (main): Likewise.
96772         * tests/test-mbscasestr1.c (main): Likewise.
96773         * tests/test-mbscasestr2.c (main): Likewise.
96774         * tests/test-mbsstr1.c (main): Likewise.
96775         * tests/test-mbsstr2.c (main): Likewise.
96776         * tests/test-memmem.c (main): Likewise.
96777         * tests/test-strcasestr.c (main): Likewise.
96778         * tests/test-striconv.c (main): Likewise.
96779         * tests/test-striconveh.c (main): Likewise.
96780         * tests/test-striconveha.c (main): Likewise.
96781         * tests/test-strstr.c (main): Likewise.
96783         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96785         bootstrap: sync from coreutils again
96786         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96788 2008-03-01  Jim Meyering  <meyering@redhat.com>
96790         bootstrap: sync from coreutils
96791         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96792         also when the target doesn't exist.
96794 2008-03-01  Eric Blake  <ebb9@byu.net>
96796         Fix bugs in last patch.
96797         * lib/memchr2.c (memchr2): Fix typo.
96798         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96799         extension.
96800         Reported by Bruce Korb.
96802         New module 'memchr2'.
96803         * modules/memchr2: New file.
96804         * modules/memchr2-tests: Likewise.
96805         * lib/memchr2.h: Likewise.
96806         * lib/memchr2.c: Likewise, based on memchr.c.
96807         * tests/test-memchr2.c: New test.
96808         * MODULES.html.sh (String handling): Add memchr2.
96810 2008-02-29  Bruno Haible  <bruno@clisp.org>
96812         * modules/freadseek-tests: New file.
96813         * tests/test-freadseek.sh: New file.
96814         * tests/test-freadseek.c: New file.
96816         New module 'freadseek'.
96817         * modules/freadseek: New file.
96818         * lib/freadseek.h: New file.
96819         * lib/freadseek.c: New file.
96820         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96822 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96824         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96825         wydawca.
96827         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96828         program_invocation_name and program_invocation_short_name are
96829         present.
96831 2008-02-28  Bruno Haible  <bruno@clisp.org>
96833         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96834         * tests/test-freadptr.sh: Also test non-seekable stdin.
96836 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96838         * build-aux/bootstrap (source_base, m4_base)
96839         (doc_base, tests_base): New variables.
96840         (gnulib_tool_options): Do not hardcode base directories, use
96841         the above variables instead.
96843 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96845         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96847 2008-02-28  Bruno Haible  <bruno@clisp.org>
96849         * modules/freadptr-tests: New file.
96850         * tests/test-freadptr.sh: New file.
96851         * tests/test-freadptr.c: New file.
96853         New module 'freadptr'.
96854         * modules/freadptr: New file.
96855         * lib/freadptr.h: New file.
96856         * lib/freadptr.c: New file.
96857         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96859 2008-02-26  Karl Berry  <karl@freefriends.org>
96861         Sync from Libtool:
96862         * libltdl/argz.c (argz_add, argz_count): New functions.
96863         * libltdl/argz.in.h: Declare them.
96864         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96866 2008-02-22  Bruno Haible  <bruno@clisp.org>
96868         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96869         is a pointer type.  Needed for HP-UX 10.
96870         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96871         * doc/posix-functions/gmtime_r.texi: Likewise.
96872         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96874 2008-02-24  Bruno Haible  <bruno@clisp.org>
96876         * modules/environ-tests: New file.
96877         * tests/test-environ.c: New file.
96879         New module 'environ'.
96880         * modules/environ: New file.
96881         * lib/unistd.in.h (environ): New declaration.
96882         * m4/environ.m4: New file.
96883         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96884         after use.
96885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96886         HAVE_DECL_ENVIRON.
96887         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96888         HAVE_DECL_ENVIRON.
96889         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96890         wrong claim that 'environ' is missing on some systems.
96891         * modules/execute (Depends-on): Add environ.
96892         * lib/execute.c (environ): Remove fallback declaration.
96893         * modules/pipe (Depends-on): Add environ.
96894         * lib/pipe.c (environ): Remove fallback declaration.
96895         * modules/setenv (Depends-on): Add environ.
96896         * lib/setenv.c (environ): Remove fallback declaration.
96897         * modules/unsetenv (Depends-on): Add environ.
96898         * lib/unsetenv.c (environ): Remove fallback declaration.
96899         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96900         m4/environ.m4.
96901         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96902         (gl_PREREQ_UNSETENV): Likewise.
96904 2008-02-24  Bruno Haible  <bruno@clisp.org>
96906         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96908 2008-02-20  Bob Proulx  <bob@proulx.com>
96910         Enable use of older two part flavor 'git describe'.
96911         * build-aux/git-version-gen: If using the older two part flavor of
96912         git version then recreate the third part now present in the
96913         newer three part flavor of git describe.
96915 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96917         * lib/fts.c (fts_build): Typo correction to comment.
96919 2008-02-17  Bruno Haible  <bruno@clisp.org>
96921         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96922         generating no-op conflicts.
96924 2008-02-17  Bruno Haible  <bruno@clisp.org>
96926         Speed up by 10%.
96927         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96928         result_entries, rather than an index-based loop.
96930 2008-02-17  Bruno Haible  <bruno@clisp.org>
96932         Speed up by 25%.
96933         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96934         'hashcode_cached'.
96935         (entry_create): New function.
96936         (entry_hashcode): Use the cached hashcode if possible.
96937         (read_changelog_file, try_split_merged_entry): Use entry_create.
96939 2008-02-17  Bruno Haible  <bruno@clisp.org>
96941         Speed up from O(n^2) to O(n) for long ChangeLog files.
96942         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96943         (read_changelog_file): Change implementation of entries_reversed list
96944         to rbtreehash.
96945         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96947 2008-02-17  Bruno Haible  <bruno@clisp.org>
96949         New option --split-merged-entry.
96950         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96951         (find_paragraph_end, try_split_merged_entry): New functions.
96952         (long_options): Add option --split-merged-entry.
96953         (usage): Document option --split-merged-entry.
96954         (main): Implement option --split-merged-entry.
96955         Reported by Eric Blake.
96957 2008-02-17  Bruno Haible  <bruno@clisp.org>
96959         * lib/git-merge-changelog.c: Include c-strstr.h.
96960         (main): Support the "git pull --rebase" situation.
96961         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96962         Reported by Eric Blake.
96964 2008-02-16  Eric Blake  <ebb9@byu.net>
96966         Avoid doubling \ in common case of "c-maybe" quoting style.
96967         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96968         eliding outer quotes.
96969         * lib/quotearg.h: Document this.
96970         * tests/test-quotearg.c (result_strings, inputs, results_g)
96971         (flag_results, locale_results): Test it by adding a new string to
96972         each test group.
96973         (compare_strings): Test new string.
96975 2008-02-13  Eric Blake  <ebb9@byu.net>
96977         Avoid trigraph quoting in default output.
96978         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96979         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96980         unless explicitly requested.
96981         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96983 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96985         Don't rely on signed integer overflowing to negative value.
96986         * lib/getugroups.c (getugroups): Include <limits.h>.
96987         Instead, compare against INT_MAX, and increment only if the test passes.
96989 2008-02-13  Jim Meyering  <meyering@redhat.com>
96990         and Eric Blake  <ebb9@byu.net>
96992         Avoid shadowing warning and compile errors on Linux.
96993         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96994         forwarding macros on Linux.
96995         (dcgettext): Define a stub, for Linux.
96996         (results_g, main): Avoid warnings.
96998 2008-02-12  Eric Blake  <ebb9@byu.net>
97000         Silence warning in last patch.
97001         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97003         Quotearg part 4: add tests, fix c-maybe colon quoting.
97004         * lib/quotearg.h: Improve documentation.
97005         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97006         escapes when adding outer quotes.  When quoting trigraphs, use
97007         valid C notation.  When quoting NUL, omit extra characters if next
97008         character is not digit.  Alter prototype.
97009         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97010         callers.
97011         * modules/quotearg-tests: New module.
97012         * tests/test-quotearg.c: New test.
97014 2008-02-07  Eric Blake  <ebb9@byu.net>
97016         Quotearg part 3: add flag to control outer quote elision.
97017         * lib/quotearg.h (c_maybe_quoting_style): New style.
97018         (enum quoting_flags): Better documentation of flags.
97019         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97020         c-maybe style.
97021         (quotearg_buffer_restyled): Handle new flag to elide outer
97022         quotes.
97024         Quotearg part 2: add flag that can control NUL elision.
97025         * lib/quotearg.h (set_quoting_flags): New prototype.
97026         * lib/quotearg.c (struct quoting_options): Add flag field.
97027         (set_quoting_flags): New function.
97028         (quotearg_buffer_restyled): Add flags parameter.
97029         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97030         (quotearg_n_options): Set the flag, since length cannot be
97031         returned.
97032         (quoting_options_from_style): Default flags correctly.
97034         Quotearg part 1: more wrappers, restore quotearg_char state.
97035         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97036         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97037         (quotearg_colon_mem): New wrappers.
97038         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97039         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97040         functions.
97041         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97042         (quotearg_colon_mem): New functions.
97044 2008-02-11  Bruno Haible  <bruno@clisp.org>
97046         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97047         library in the current directory: it does not work with parallel make.
97048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97050 2008-02-11  Bruno Haible  <bruno@clisp.org>
97052         * .gitattributes: New file.
97054 2008-02-11  Jim Meyering  <meyering@redhat.com>
97056         useless-if-before-free: Fix reversed exit values.
97057         * build-aux/useless-if-before-free: Use correct values
97058         for EXIT_MATCH and EXIT_NO_MATCH.
97060         * build-aux/useless-if-before-free: Close stdout carefully.
97062 2008-02-10  Bruno Haible  <bruno@clisp.org>
97064         New module 'git-merge-changelog'.
97065         * modules/git-merge-changelog: New file.
97066         * lib/git-merge-changelog.c: New file.
97068 2008-02-10  Jim Meyering  <meyering@redhat.com>
97070         useless-if-before-free: New option: --list (-l).
97072         useless-if-before-free: Don't exit immediately upon open failure.
97073         * build-aux/useless-if-before-free: Exit 2 for errors.
97074         Upon failure to open a file, don't exit immediately.
97075         Rather, just warn and continue with any remaining files.
97077 2008-02-10  Bruno Haible  <bruno@clisp.org>
97079         New abstract list operation 'node_set_value'.
97080         * lib/gl_list.h (gl_list_node_set_value): New function.
97081         (struct gl_list_implementation): New field node_set_value.
97082         * lib/gl_list.c (gl_list_node_set_value): New function.
97083         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97084         (gl_array_list_implementation): Update.
97085         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97086         (gl_carray_list_implementation): Update.
97087         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97088         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97089         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97090         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97091         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97092         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97093         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97094         Update.
97095         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97096         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97097         (gl_sublist_list_implementation): Update.
97099 2008-02-10  Bruno Haible  <bruno@clisp.org>
97101         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97102         Needed when ELEMENT is #defined to 'some_type *'.
97104 2008-02-10  Jim Meyering  <meyering@redhat.com>
97106         New script and module: useless-if-before-free
97107         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97108         * build-aux/useless-if-before-free: New file.
97109         * modules/useless-if-before-free: New file.
97111         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97113         xstrtol_error: Fix typo.
97114         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97115         s/exit_failure/exit_status/.
97117 2008-02-09  Jim Meyering  <meyering@redhat.com>
97119         New script and module: gitlog-to-changelog
97120         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97121         * modules/gitlog-to-changelog: New file.
97122         * build-aux/gitlog-to-changelog: New file.
97124 2008-02-08  Jim Meyering  <meyering@redhat.com>
97126         Avoid two "parameter unused" warnings.
97127         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97128         Mark "st" as used.
97130         Use "git COMMAND", not "git-COMMAND".
97131         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97132         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97133         * build-aux/git-version-gen: Use "git status", not "git-status".
97135 2008-02-07  Bruno Haible  <bruno@clisp.org>
97137         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97138         Avoids a crash on Windows Vista.
97139         Reported by Adam Strzelecki <ono@java.pl> via
97140         Simon Josefsson <simon@josefsson.org>.
97142 2008-02-06  Bruno Haible  <bruno@clisp.org>
97144         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97145         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97146         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97148         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97150         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97151         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97159         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97160         left-adjust flag.
97161         * tests/test-snprintf-posix.h (test_function): Likewise.
97162         * tests/test-sprintf-posix.h (test_function): Likewise.
97163         * tests/test-vasprintf-posix.c (test_function): Likewise.
97164         * doc/posix-functions/fprintf.texi: Update.
97165         * doc/posix-functions/printf.texi: Update.
97166         * doc/posix-functions/snprintf.texi: Update.
97167         * doc/posix-functions/sprintf.texi: Update.
97168         * doc/posix-functions/vfprintf.texi: Update.
97169         * doc/posix-functions/vprintf.texi: Update.
97170         * doc/posix-functions/vsnprintf.texi: Update.
97171         * doc/posix-functions/vsprintf.texi: Update.
97172         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97174 2008-02-06  Bruno Haible  <bruno@clisp.org>
97176         Fix bug introduced on 2008-01-26.
97177         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97179 2008-02-06  Bruno Haible  <bruno@clisp.org>
97181         Fix bug introduced on 2007-06-10.
97182         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97183         !NEED_PRINTF_FLAG_ZERO.
97185 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97187         getloadavg: use libperfstat on AIX5
97188         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97190 2008-02-03  Bruno Haible  <bruno@clisp.org>
97192         * lib/diffseq.h: Add comments about required #includes.
97193         Reported by Michael Biggs <gnulib@doubleplum.net>.
97195 2008-02-01  Bruno Haible  <bruno@clisp.org>
97197         * users.txt: Add gnuit.
97199 2008-01-31  Bruno Haible  <bruno@clisp.org>
97201         * lib/md4.c (set_uint32): Mark as inline.
97202         * lib/md5.c (set_uint32): Likewise.
97203         * lib/sha1.c (set_uint32): Likewise.
97204         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97205         * m4/md5.m4 (gl_MD5): Likewise.
97206         * m4/sha1.m4 (gl_SHA1): Likewise.
97208 2008-01-31  Jim Meyering  <meyering@redhat.com>
97210         Use "sizeof VAR", rather than a literal "4".
97211         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97212         * lib/md4.c (md4_read_ctx): Likewise.
97213         * lib/sha1.c (sha1_read_ctx): Likewise.
97215 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97217         * tests/test-sha1.c: New file, based on test-md5.c.
97219         * modules/crypto/sha1-tests: New file.
97221 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97223         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97225 2008-01-31  Jim Meyering  <meyering@redhat.com>
97227         Prefer "sizeof v" over the equivalent "4".
97228         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97229         * lib/md5.c (set_uint32): Likewise.
97230         * lib/sha1.c (set_uint32): Likewise.
97232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97234         * lib/sha1.c (set_uint32): Mark function as static.
97236 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97238         md2: clarify comments to say that alignment is not required.
97239         * lib/md2.h: Remove warning about alignment in comment.
97240         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97241         never been required.
97243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97245         md4: adapt alignment constraint fix from sha1.
97246         * lib/md4.c (set_uint32): New function, from sha1.c
97247         (md4_read_ctx): Use it.
97248         (md4_finish_ctx): Doc fix.
97249         * lib/md4.h: Doc fix.
97251 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97253         md5: adapt alignment constraint fix from sha1.
97254         * lib/md5.c (set_uint32): New function, from sha1.c
97255         (md5_read_ctx): Use it.
97256         (md5_finish_ctx): Doc fix.
97257         * lib/md5.h: Doc fix.
97259 2008-01-30  Peter Palfrader  <weasel@debian.org>
97261         sha1: remove the result buffer alignment constraint
97262         * lib/sha1.c (set_uint32): New function.
97263         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97264         constraint.
97265         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97266         * lib/sha1.h: Likewise.
97268 2008-01-30  Andreas Schwab  <schwab@suse.de>
97269             Bruno Haible  <bruno@clisp.org>
97271         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97272         correct definition of LDBL_MIN_EXP.
97274 2008-01-30  Karl Berry  <karl@gnu.org>
97276         * config/srclist-update: try to preserve x bit on updates.
97277         * config/srclistvars.sh: update for karl.
97279 2008-01-29  Jim Meyering  <meyering@redhat.com>
97281         vasnprintf.c: Avoid warning about unused label
97282         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97283         "overflow" label definition and associated code with the
97284         same cpp condition that guards the sole use of that label.
97286 2008-01-26  Bruno Haible  <bruno@clisp.org>
97288         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97289         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97290         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97291         * lib/isnanl-nolibm.h (isnanl): Likewise.
97292         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97294 2008-01-26  Bruno Haible  <bruno@clisp.org>
97296         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97297         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97299 2008-01-26  Bruno Haible  <bruno@clisp.org>
97301         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97302         GCC >= 4.0 built-in.
97303         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97305 2008-01-26  Bruno Haible  <bruno@clisp.org>
97307         Rename isnan, applicable to 'double' only, to isnand.
97308         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97309         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97310         (configure.ac): Update.
97311         (Include): Replace "isnan.h" with "isnand.h".
97312         * m4/isnand.m4: Renamed from m4/isnan.m4.
97313         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97314         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97315         instead of isnan.c.
97316         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97317         instead of HAVE_ISNAN_IN_LIBC.
97318         (isnand): Renamed from isnan.
97319         * lib/isnand.c: New file.
97320         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97321         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97322         (Makefile.am): Update.
97323         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97324         Include isnand.h instead of isnan.h.
97325         (main): Test isnand instead of isnan.
97326         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97327         isnan-nolibm.
97328         * modules/frexp (Depends-on): Likewise.
97329         * modules/frexp-tests (Depends-on): Likewise.
97330         * modules/frexp-nolibm (Depends-on): Likewise.
97331         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97332         * modules/isfinite (Depends-on): Likewise.
97333         * modules/round-tests (Depends-on): Likewise.
97334         * modules/signbit (Depends-on): Likewise.
97335         * modules/signbit-tests (Depends-on): Likewise.
97336         * modules/snprintf-posix (Depends-on): Likewise.
97337         * modules/sprintf-posix (Depends-on): Likewise.
97338         * modules/trunc-tests (Depends-on): Likewise.
97339         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97340         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97341         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97342         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97343         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97344         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97345         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97346         * modules/vasnprintf-posix (Depends-on): Likewise.
97347         * modules/vasprintf-posix (Depends-on): Likewise.
97348         * modules/vfprintf-posix (Depends-on): Likewise.
97349         * modules/vsnprintf-posix (Depends-on): Likewise.
97350         * modules/vsprintf-posix (Depends-on): Likewise.
97351         * lib/frexp.c: Include isnand.h instead of isnan.h.
97352         (ISNAN): Set to isnand instead of isnan.
97353         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97354         (gl_isfinited): Use isnand instead of isnan.
97355         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97356         (gl_signbitd): Use isnand instead of isnan.
97357         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97358         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97359         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97360         (main): Use isnand instead of isnan.
97361         * tests/test-round1.c: Include isnand.h.
97362         (main): Use isnand instead of isnan.
97363         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97364         (ISNAN): Set to isnand instead of isnan.
97365         * tests/test-trunc1.c: Include isnand.h.
97366         (main): Use isnand instead of isnan.
97367         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97368         (equal): Use isnand instead of isnan.
97369         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97370         isnand-nolibm.
97371         * NEWS: Mention the change.
97373 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97374             Bruno Haible  <bruno@clisp.org>
97376         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97377         the GCC builtins for signbits are present and set
97378         REPLACE_SIGNBIT_USING_GCC if so.
97379         * lib/math.in.h (signbit): Define using GCC builtins if
97380         REPLACE_SIGNBIT_USING_GCC is set.
97381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97382         REPLACE_SIGNBIT_USING_GCC.
97383         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97385 2008-01-25  Jim Meyering  <meyering@redhat.com>
97387         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97388         * lib/poll.c: Include <config.h>, not "config.h".
97389         * tests/test-getaddrinfo.c: Likewise.
97391 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97393         * modules/sockets-tests: New file.
97395 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97397         * modules/sockets: New module, can be used to call WSA_Startup and
97398         WSA_Cleanup when needed.
97400         * lib/sockets.h, lib/sockets.c: New files.
97402         * m4/sockets.m4: New file.
97404         * tests/test-sockets.c: New file.
97406 2008-01-19  Bruno Haible  <bruno@clisp.org>
97408         * doc/posix-headers: Renamed from doc/headers.
97409         * doc/posix-functions: Renamed from doc/functions.
97410         * doc/gnulib.texi: Update.
97412 2008-01-19  Bruno Haible  <bruno@clisp.org>
97414         * doc/glibc-functions/strcasestr.texi: Include contents of
97415         doc/functions/strcasestr.texi, fixing the list of platforms.
97416         * doc/functions/strcasestr.texi: Remove file.
97418 2008-01-19  Bruno Haible  <bruno@clisp.org>
97420         * doc/glibc-functions/memmem.texi: Include contents of
97421         doc/functions/memmem.texi.
97422         * doc/functions/memmem.texi: Remove file.
97424 2008-01-18  Bruno Haible  <bruno@clisp.org>
97426         * doc/glibc-functions/*.texi: New files.
97427         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97428         to use the new files.
97430 2008-01-17  Bruno Haible  <bruno@clisp.org>
97432         * tests/test-gethostname.c (main): Fix printf statement.
97434 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97436         * modules/gethostname-tests: New file.
97438         * tests/test-gethostname.c: New file.
97440 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97442         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97443         used by the UNAME case.  Reported by Bruno Haible
97444         <bruno@clisp.org>.
97446 2008-01-17  Eric Blake  <ebb9@byu.net>
97448         Convert c-strcasestr to be more efficient.
97449         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97450         (Depends-on): Add c-strcase, remove malloca, strnlen.
97451         * tests/test-c-strcasestr.c (main): Enhance test.
97452         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97454 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97456         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97457         Use it in creating po/Makevars.
97459 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97461         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97462         Applications that requires it should initialize libgcrypt
97463         manually.
97465 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97467         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97469 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97471         Fix problem with getdate on mingw32 reported by Simon Josefsson
97472         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97473         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97474         tzname", when deciding whether to declare tzname.
97475         * lib/strftime.c (tzname): Likewise.
97477 2008-01-15  Bruno Haible  <bruno@clisp.org>
97479         Work around a MacOS X 10.5 bug in frexpl().
97480         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97481         * doc/functions/frexpl.texi: Document the bug.
97482         Reported by Elias Pipping <pipping@gentoo.org>.
97484 2008-01-14  Eric Blake  <ebb9@byu.net>
97486         Touch up previous patch.
97487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97488         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97490         Convert strcasestr module to use Two-Way algorithm.
97491         * modules/strcasestr-simple: New module, based on the old
97492         strcasestr, but with Two-Way rather than KMP.
97493         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97494         * lib/string.in.h (rpl_strcasestr): Declare.
97495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97496         performance.
97497         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97498         * modules/string (Makefile.am): Support strcasestr.
97499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97500         * modules/strcasestr-tests (Depends-on): Check for alarm.
97501         * tests/test-strcasestr.c: Augment test.
97502         * lib/str-two-way.h: Clean up stray macro.
97503         * NEWS: Document new module.
97504         * MODULES.html.sh (string handling): Likewise.
97505         * doc/functions/strcasestr.texi: New file.
97506         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97507         here, since it is not a POSIX function.
97509 2008-01-14  Colin Watson  <cjwatson@debian.org>
97510             Bruno Haible  <bruno@clisp.org>
97512         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97513         works fine; if not, set REPLACE_STRSIGNAL.
97514         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97516         REPLACE_STRSIGNAL.
97517         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97518         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97519         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97521 2008-01-14  Bruno Haible  <bruno@clisp.org>
97523         * modules/strsignal (Include): Change to <string.h>.
97525 2008-01-14  Colin Watson  <cjwatson@debian.org>
97527         * modules/argp (Notice): Add a notice recommending to change
97528         XGETTEXT_OPTIONS.
97529         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97531 2008-01-13  Colin Watson  <cjwatson@debian.org>
97533         * modules/strsignal-tests: New file.
97534         * tests/test-strsignal.c: New file.
97536         * lib/strsignal.c: New file, from glibc with modifications.
97537         * lib/siglist.h: New file, from glibc with modifications.
97538         * lib/string.in.h (strsignal): New declaration.
97539         * m4/strsignal.m4: New file.
97540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97541         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97542         * modules/strsignal: New file.
97543         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97544         HAVE_DECL_STRSIGNAL.
97546 2008-01-13  Bruno Haible  <bruno@clisp.org>
97548         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97549         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97550         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97551         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97553 2008-01-13  Bruno Haible  <bruno@clisp.org>
97555         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97556         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97557         * lib/argp.h (__attribute__): Likewise.
97558         * lib/c-stack.c (__attribute__): Likewise.
97559         * lib/error.h (__attribute__): Likewise.
97560         * lib/fts.c (__attribute__): Likewise.
97561         * lib/openat.h (__attribute__): Likewise.
97562         * lib/stdio.in.h (__attribute__): Likewise.
97563         * lib/string.in.h (__attribute__): Likewise.
97564         * lib/utimens.c (__attribute__): Likewise.
97565         * lib/vasnprintf.h (__attribute__): Likewise.
97566         * lib/xalloc.h (__attribute__): Likewise.
97567         * lib/xprintf.h (__attribute__): Likewise.
97568         * lib/xstrtol.h (__attribute__): Likewise.
97569         * lib/xvasprintf.h (__attribute__): Likewise.
97571 2008-01-12  Bruno Haible  <bruno@clisp.org>
97573         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97574         * doc/glibc-headers/a.out.texi: New file.
97575         * doc/glibc-headers/aliases.texi: New file.
97576         * doc/glibc-headers/alloca.texi: New file.
97577         * doc/glibc-headers/ar.texi: New file.
97578         * doc/glibc-headers/argp.texi: New file.
97579         * doc/glibc-headers/argz.texi: New file.
97580         * doc/glibc-headers/byteswap.texi: New file.
97581         * doc/glibc-headers/crypt.texi: New file.
97582         * doc/glibc-headers/endian.texi: New file.
97583         * doc/glibc-headers/envz.texi: New file.
97584         * doc/glibc-headers/err.texi: New file.
97585         * doc/glibc-headers/error.texi: New file.
97586         * doc/glibc-headers/execinfo.texi: New file.
97587         * doc/glibc-headers/fpu_control.texi: New file.
97588         * doc/glibc-headers/fstab.texi: New file.
97589         * doc/glibc-headers/fts.texi: New file.
97590         * doc/glibc-headers/getopt.texi: New file.
97591         * doc/glibc-headers/ieee754.texi: New file.
97592         * doc/glibc-headers/ifaddrs.texi: New file.
97593         * doc/glibc-headers/libintl.texi: New file.
97594         * doc/glibc-headers/mcheck.texi: New file.
97595         * doc/glibc-headers/mntent.texi: New file.
97596         * doc/glibc-headers/obstack.texi: New file.
97597         * doc/glibc-headers/paths.texi: New file.
97598         * doc/glibc-headers/printf.texi: New file.
97599         * doc/glibc-headers/pty.texi: New file.
97600         * doc/glibc-headers/resolv.texi: New file.
97601         * doc/glibc-headers/shadow.texi: New file.
97602         * doc/glibc-headers/sysexits.texi: New file.
97603         * doc/glibc-headers/ttyent.texi: New file.
97605 2008-01-12  Jim Meyering  <meyering@redhat.com>
97607         announce-gen: emit Gnulib's git-based version string.
97608         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97609         New option --gnulib-version=V, where V is expected to be
97610         the output of running git describe in the gnulib directory.
97611         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97612         not useful, and plan to stop publishing an xdelta file with each
97613         coreutils release.
97615         * build-aux/announce-gen: Also check for lzma-compressed files.
97617 2008-01-11  Bruno Haible  <bruno@clisp.org>
97619         * tests/test-memmem.c (main): Increase maximum allowed time.
97620         * tests/test-strstr.c (main): Likewise.
97622 2008-01-11  Bruno Haible  <bruno@clisp.org>
97624         * doc/functions/memmem.texi: Add more precisions about platforms.
97625         * doc/functions/strstr.texi: Likewise.
97627 2008-01-10  Eric Blake  <ebb9@byu.net>
97629         * m4/strstr.m4: Delete cruft from copy-n-paste.
97630         Reported by Bruno Haible.
97632 2008-01-10  Bruno Haible  <bruno@clisp.org>
97634         Make c-strstr rely on strstr.
97635         * lib/c-strstr.c: Don't include str-kmp.h.
97636         (c_strstr): Define in terms of strstr.
97637         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97638         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97640 2008-01-10  Bruno Haible  <bruno@clisp.org>
97642         * doc/gnulib.texi (String Functions in C Locale): New section.
97643         * doc/c-ctype.texi: New file.
97644         * doc/c-strcase.texi: New file.
97645         * doc/c-strcaseeq.texi: New file.
97646         * doc/c-strcasestr.texi: New file.
97647         * doc/c-strstr.texi: New file.
97648         * doc/c-strtod.texi: New file.
97649         * doc/c-strtold.texi: New file.
97651 2008-01-10  Eric Blake  <ebb9@byu.net>
97653         * lib/relocatable.h: Fix a comment.
97655 2008-01-10  Eric Blake  <ebb9@byu.net>
97657         Share two-way algorithm.
97658         * lib/str-two-way.h: New file, merged from...
97659         * lib/memmem.c: ...here...
97660         * lib/strstr.c: ...and here.
97661         * modules/memmem (Files): Use it.
97662         * modules/strstr (Files): Likewise.
97664         Avoid quadratic strstr implementations.
97665         * lib/strstr.c: New file.
97666         * m4/strstr.m4: Likewise.
97667         * modules/strstr: Likewise.
97668         * modules/strstr-tests: Likewise.
97669         * tests/test-strstr.c: Likewise.
97670         * lib/string.in.h (rpl_strstr): Declare.
97671         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97673         * modules/string (Makefile.am): Likewise.
97674         * MODULES.html.sh (string handling): Mention new module.
97675         * doc/functions/strstr.texi (strstr): Document the bug.
97677 2008-01-10  Bruno Haible  <bruno@clisp.org>
97679         * lib/relocatable.h (relocate): State whether result is freshly
97680         allocated or not.
97681         * lib/relocatable.c (relocate): Return a freshly allocated string
97682         instead of a pointer to a privately held string.
97683         Reported by Sylvain Beucler <beuc@gnu.org>.
97685 2008-01-10  Colin Watson  <cjwatson@debian.org>
97687         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97688         s/S_ISNLK/S_ISLNK/.
97690 2008-01-09  Bruno Haible  <bruno@clisp.org>
97692         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97693         and other files.
97694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97695         if it's only a guess.
97696         * modules/memmem: Simplify by depending on memmem-simple.
97698 2008-01-09  Bruno Haible  <bruno@clisp.org>
97700         Work around OpenBSD 4.0 tdelete() bug.
97701         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97702         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97703         macros and don't redefine the enum values.
97704         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97705         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97706         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97708 2008-01-09  Bruno Haible  <bruno@clisp.org>
97710         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97711         (main): Don't perform the tests if setlocale did not install a UTF-8
97712         locale. Needed on OpenBSD 4.0.
97713         * modules/wcwidth-tests (Depends-on): Add localcharset.
97715 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97717         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97718         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97719         * NEWS: announce this.
97720         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97722 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97723         and Eric Blake  <ebb9@byu.net>
97725         Add memmem-simple module.
97726         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97727         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97728         * modules/memmem-simple: New file.
97729         * modules/memmem (Description): Tweak.
97730         * MODULES.html.sh (string handling): Mention new module.
97731         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97732         addressed by memmem-simple.
97733         * NEWS: Document the difference.
97735 2008-01-09  Eric Blake  <ebb9@byu.net>
97737         Give gcc some memmem optimization hints.
97738         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97739         (strcasestr): Declare as pure.
97740         * modules/memmem (Maintainer): Claim my implementation.
97742 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97744         Support AIX 6.1 and higher.
97745         * build-aux/config.libpath: Likewise.
97746         * build-aux/config.rpath: Likewise.
97748 2008-01-08  Jim Meyering  <meyering@redhat.com>
97749             Bruno Haible  <bruno@clisp.org>
97751         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97752         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97753         Reported by Peter Fales in
97754         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97756 2008-01-08  Bruno Haible  <bruno@clisp.org>
97758         * modules/unictype/category-of (Depends-on): Add
97759         unictype/category-none.
97760         * modules/unictype/category-and-tests (Depends-on): Add
97761         unictype/category-{L,N,Lu,Nd}.
97762         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97763         * modules/unictype/category-or-tests (Depends-on): Add
97764         unictype/category-{L,N}.
97765         * modules/unictype/category-name-tests (Depends-on): Add
97766         unictype/category-{Z,Nl}.
97767         Reported by Simon Josefsson.
97769 2008-01-08  Bruno Haible  <bruno@clisp.org>
97771         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97772         convention better.
97773         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97774         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97775         Reported by Peter Miller <millerp@canb.auug.org.au>.
97777 2008-01-08  Eric Blake  <ebb9@byu.net>
97779         Rewrite memmem to guarantee linear complexity without malloc.
97780         * lib/memmem.c (memmem): Use Two-Way rather than
97781         Knuth-Morris-Pratt, to allow O(1) space usage.
97782         (critical_factorization, two_way_short_needle)
97783         (two_way_long_needle): New functions.
97784         (knuth_morris_pratt): Delete.
97785         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97786         Add stdint.
97787         * tests/test-memmem.c (main): Add tests for periodic needle and
97788         sublinear performance.
97789         * doc/functions/memmem.texi (memmem): Document other deficiencies
97790         in cygwin and older glibc.
97792 2008-01-08  Bruno Haible  <bruno@clisp.org>
97794         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97795         augmentation.
97797 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97799         Add a configure time option: --disable-acl.
97800         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97801         AC_ARG_ENABLE(acl).
97803 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97805         * tests/test-localename.c: Don't include obsolete "setenv.h".
97807         * modules/localename-tests (Depends-on): Need unsetenv.
97809 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97811         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97813 2008-01-06  Colin Watson  <cjwatson@debian.org>
97815         * users.txt: Add man-db.
97817 2008-01-07  Bruno Haible  <bruno@clisp.org>
97819         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97820         previous section name.
97822 2008-01-07  Bruno Haible  <bruno@clisp.org>
97824         * lib/progname.c (set_program_name): Don't strip off a leading
97825         "lt-" prefix outside a .libs directory.
97826         Suggested by Paul Eggert.
97828 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97829             Bruno Haible  <bruno@clisp.org>
97831         Improve memory cleanup in 'relocatable' module.
97832         * lib/relocatable.h (compute_curr_prefix): Change return type to
97833         'char *'.
97834         * lib/relocatable.c (compute_curr_prefix): Change return type to
97835         'char *'. Free curr_installdir after use.
97836         (relocate): Free curr_prefix_better after use.
97837         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97839 2008-01-01  Bruno Haible  <bruno@clisp.org>
97841         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97842         failure on older glibc systems.
97843         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97845 2008-01-05  Eric Blake  <ebb9@byu.net>
97847         Avoid quadratic system memmem.
97848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97849         Reported by Ralf Wildenhues.
97851         Fix memmem test for mingw.
97852         * modules/memmem-tests (configure.ac): Check for alarm.
97853         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97854         it.
97855         * doc/functions/memmem.texi: New file.
97856         * doc/gnulib.texi (Function Substitutes): Add memmem.
97857         Reported by Bruno Haible.
97859 2008-01-04  Bruno Haible  <bruno@clisp.org>
97861         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97862         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97863         gl_HEADER_STRING_H_DEFAULTS.
97865 2008-01-04  Eric Blake  <ebb9@byu.net>
97867         Shorten duration of memmem test.
97868         * tests/test-memmem.c (main): Use alarm to declare failure if test
97869         is taking too long.
97870         Reported by Ralf Wildenhues.
97872 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97874         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97875         string, needed by strerror.
97877 2008-01-03  Colin Watson  <cjwatson@debian.org>
97878             Bruno Haible  <bruno@clisp.org>
97880         * doc/gnulib-tool.texi (Localization): New section.
97882 2008-01-02  Bruno Haible  <bruno@clisp.org>
97884         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97885         variables to 'unsigned char *' type.
97886         Reported by Paul Eggert.
97888 2008-01-02  Jim Meyering  <jim@meyering.net>
97890         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97892 2007-12-31  Jim Meyering  <jim@meyering.net>
97894         Avoid use of private FTS type name.
97895         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97897 2007-12-30  Karl Berry  <karl@gnu.org>
97899         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97900         work around defect in Texinfo and/or the standalone Info browser.
97902 2007-12-30  Bruno Haible  <bruno@clisp.org>
97904         Unify 5 copies of the KMP code.
97905         * lib/str-kmp.h: New file.
97906         * lib/c-strcasestr.c: Include str-kmp.h.
97907         (knuth_morris_pratt): Remove function.
97908         (c_strcasestr): Update.
97909         * lib/c-strstr.c: Include str-kmp.h.
97910         (knuth_morris_pratt): Remove function.
97911         (c_strcasestr): Update.
97912         * lib/mbscasestr.c: Include str-kmp.h.
97913         (knuth_morris_pratt_unibyte): Remove function.
97914         * lib/mbsstr.c: Include str-kmp.h.
97915         (knuth_morris_pratt_unibyte): Remove function.
97916         * lib/strcasestr.c: Include str-kmp.h.
97917         (knuth_morris_pratt): Remove function.
97918         (strcasestr): Update.
97919         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97920         * modules/c-strstr (Files): Likewise.
97921         * modules/mbscasestr (Files): Likewise.
97922         * modules/mbsstr (Files): Likewise.
97923         * modules/strcasestr (Files): Likewise.
97924         Suggested by Paul Eggert.
97926 2007-12-30  Bruno Haible  <bruno@clisp.org>
97928         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97929         defined.
97931 2007-12-30  Bruno Haible  <bruno@clisp.org>
97933         * lib/xmalloca.h: Include xalloc.h.
97934         (xnmalloca): New macro.
97936 2007-12-30  Bruno Haible  <bruno@clisp.org>
97938         * lib/malloca.h (nmalloca): New macro.
97939         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97940         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97941         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97942         knuth_morris_pratt_multibyte): Likewise.
97943         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97944         knuth_morris_pratt_multibyte): Likewise.
97945         * lib/memmem.c (knuth_morris_pratt): Likewise.
97946         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97948 2007-12-25  Bruno Haible  <bruno@clisp.org>
97950         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97951         * lib/glob.c: Don't include openat.h.
97952         (link_exists2_p): Add back the code that deals with the
97953         !GLOB_ALTDIRFUNC case.
97954         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97955         let it do the filename concatenation.
97956         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97957         * modules/glob (Depends-on): Remove openat.
97959 2007-12-31  Bruno Haible  <bruno@clisp.org>
97961         * modules/dirfd (License): Change to LGPLv2+.
97962         Approved by Jim Meyering.
97964 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97966         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97967         when multiplying M by sizeof (size_t).
97969 2007-12-10  Martin Lambers  <marlam@marlam.de>
97971         Override getpagesize on mingw.
97972         * lib/getpagesize.c: New file.
97973         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97974         * modules/getpagesize (Files): Add lib/getpagesize.c.
97975         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97977         REPLACE_GETPAGESIZE.
97978         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97980 2007-12-25  Bruno Haible  <bruno@clisp.org>
97982         * modules/localcharset (Notice): New field.
97983         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97984         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97986 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97987             Bruno Haible  <bruno@clisp.org>
97989         Avoid using the syntax symbol() in formatted documentation.
97990         * MODULES.html.sh (func_module): When replacing symbol() with a
97991         hyperlink, remove the parentheses. Show an error if some remain.
97992         Recognize and render the '...' syntax.
97993         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97994         Rework. Add paragraph about GCC's inlining.
97995         * doc/alloca.texi: Likewise.
97996         * doc/error.texi: Remove parentheses from symbol reference.
97997         * doc/gnulib-intro.texi: Likewise.
97998         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97999         * modules/fnmatch (Description): Reword to say "the ... function".
98000         * modules/full-read (Description): Likewise.
98001         * modules/full-write (Description): Likewise.
98002         * modules/safe-read (Description): Likewise.
98003         * modules/safe-write (Description): Likewise.
98004         * modules/strchrnul (Description): Likewise.
98005         * modules/trim (Description): Likewise.
98006         * modules/error (Description): Remove parentheses from symbol
98007         references.
98008         * modules/verror (Description): Likewise.
98009         Reported by Karl Berry.
98011 2007-12-25  Bruno Haible  <bruno@clisp.org>
98013         Fixup after 2007-10-16 commit.
98014         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98016 2007-12-24  Bruno Haible  <bruno@clisp.org>
98018         Make --enable-relocatable work with DESTDIR.
98019         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98020         to compute installdir from destprog.
98021         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98022         also set the RELOC_DESTDIR variable.
98023         Reported by Левашев Иван <octagram@bluebottle.com>.
98025 2007-12-24  Bruno Haible  <bruno@clisp.org>
98027         Fix link error due to xalloc_die().
98028         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98029         of xreadlink.
98030         * lib/relocwrapper.c: Update comments.
98031         * build-aux/install-reloc: Remove xreadlink.c from file list.
98032         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98033         xreadlink.c.
98034         Reported by Левашев Иван <octagram@bluebottle.com>.
98036 2007-12-24  Bruno Haible  <bruno@clisp.org>
98038         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98039         * lib/setenv.h: Remove file.
98040         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98041         lib/setenv.h.
98042         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98043         (Depends-on): Add stdlib.
98044         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98045         gl_FUNC_UNSETENV.
98046         (Include): Replace setenv.h with <stdlib.h>.
98047         * modules/unsetenv: New file.
98048         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98049         * lib/unsetenv.c: Include <stdlib.h> first.
98050         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98051         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98052         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98053         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98054         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98055         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98057         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98058         * doc/functions/unsetenv.texi: Update.
98059         * modules/xsetenv (Depends-on): Add unsetenv.
98060         * modules/getdate (Depends-on): Likewise.
98061         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98062         * lib/xsetenv.c: Don't include setenv.h.
98063         * lib/getdate.y: Likewise.
98064         * lib/relocwrapper.c: Likewise.
98065         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98066         (Depends-on): Add stdlib.
98067         * NEWS: Mention the changes.
98068         Reported by Левашев Иван <octagram@bluebottle.com>.
98070 2007-12-23  Bruno Haible  <bruno@clisp.org>
98072         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98073         indentation.
98075 2007-12-23  Bruno Haible  <bruno@clisp.org>
98077         * lib/c-strcasestr.c: Add more comments.
98078         * lib/c-strstr.c: Likewise.
98079         * lib/mbscasestr.c: Likewise.
98080         * lib/mbsstr.c: Likewise.
98081         * lib/strcasestr.c: Likewise.
98082         * lib/memmem.c: Likewise.
98084 2007-12-23  Bruno Haible  <bruno@clisp.org>
98086         * tests/test-memmem.c: Include <string.h> first.
98088 2007-12-22  Bruno Haible  <bruno@clisp.org>
98090         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98091         the contents of $testsbase.
98092         Reported by Ralf Wildenhues.
98094 2007-12-22  Bruno Haible  <bruno@clisp.org>
98096         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98097         two variables local_ldadd_before, local_ldadd_last.
98099 2007-12-20  Eric Blake  <ebb9@byu.net>
98101         Work around circular library issue when cross-compiling.
98102         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98103         that progname.o does not need to pull in rpl_memcmp.
98105 2007-12-19  Eric Blake  <ebb9@byu.net>
98107         Fix memmem to avoid O(n^2) worst-case complexity.
98108         * lib/memmem.c (knuth_morris_pratt): New function.
98109         (memmem): Use it if first few naive iterations fail.
98110         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98111         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98112         * modules/memchr (License): Likewise.
98113         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98114         malloca.
98115         * tests/test-memmem.c: Rewrite, borrowing ideas from
98116         test-mbsstr1.c; the old version wouldn't even compile!
98117         * modules/memmem-tests: New file.
98118         * lib/string.in.h (rpl_memmem): Add declaration.
98119         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98121         REPLACE_MEMMEM.
98123 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98125         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98126         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98127         before any system include files, and undef after them all.  This
98128         should fix a problem on VMS reported by John E. Malmberg in
98129         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98131 2007-12-17  Eric Blake  <ebb9@byu.net>
98133         Revert addition of verify, for BSD/OS.
98134         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98135         can't handle large files, for the sake of obsolete platforms.
98136         * modules/fseeko (Depends-on): Remove verify.
98137         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98138         * doc/functions/ftello.texi (ftello): Likewise.
98139         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98140         Reported by Larry Jones.
98142 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98144         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98145         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98147 2007-12-17  Jim Meyering  <meyering@redhat.com>
98149         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98150         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98151         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98152         * modules/getcwd (Depends-on): Add openat.
98153         Reported by Petr Salinger.
98155 2007-12-17  Bruno Haible  <bruno@clisp.org>
98157         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98158         avoid a segmentation fault of the configure test on x86_64 systems.
98160 2007-12-15  Jim Meyering  <meyering@redhat.com>
98162         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98164 2007-12-13  Eric Blake  <ebb9@byu.net>
98166         Another fseek test.
98167         * tests/test-fseek.c (main): Also test ungetc handling.
98168         * tests/test-fseeko.c (main): Likewise.
98169         * modules/fseeko (Depends-on): Add verify.
98170         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98171         large.
98172         Reported by Larry Jones.
98174         Fix fseeko on mingw.
98175         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98176         seek.
98178         Beef up fseek tests.
98179         * tests/test-fseek.c (main): Also test eof handling.
98180         * tests/test-fseeko.c (main): Likewise.
98181         Reported by Larry Jones.
98183 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98185         Fix fseeko on BSD-based platforms.
98186         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98187         successful seek.
98189 2007-12-12  Eric Blake  <ebb9@byu.net>
98191         Allow circular dependency of separate libtests.a
98192         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98193         when use_libtests.
98195 2007-12-11  Eric Blake  <ebb9@byu.net>
98197         Fix bug with -0.0L in previous patch.
98198         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98199         * tests/test-isnan.c (main): Also test on zeroes.
98200         * tests/test-isnanf.c (main): Likewise.
98201         * tests/test-isnanl.h (main): Likewise.
98203         Detect pseudo-denormals on x86 even when cross-compiling.
98204         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98205         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98206         invalid bit patterns that happen to satisfy ==.
98208         Avoid link failures with separate libtests.a.
98209         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98210         last, to satisfy circular dependencies.
98212 2007-12-11  Eric Blake  <ebb9@byu.net>
98213         and Bruno Haible  <bruno@clisp.org>
98215         Fix OpenBSD 4.0 <float.h> handling of long double.
98216         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98217         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98218         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98220 2007-12-11  Jim Meyering  <meyering@redhat.com>
98222         * users.txt: Add libvirt.
98224         Support versions of autoconf prior to 2.59c.
98225         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98226         if it is not already defined.
98228 2007-12-09  Bruno Haible  <bruno@clisp.org>
98230         Let 'gnulib-tool --import' collect sources needed for the tests in
98231         tests/ rather than in lib/.
98232         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98233         argument. If true, add rules to generate libtests.a, and put libtests.a
98234         into $(LDADD). Consider source files in subdirectories and set
98235         uses_subdirs.
98236         (func_emit_initmacro_start, func_emit_initmacro_end,
98237         func_emit_initmacro_done): Pass all arguments explicitly.
98238         (func_import): Determine two module lists main_modules,
98239         testsrelated_modules. Determine use_libtests. Determine two variables
98240         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98241         instead of just sed_transform_lib_file. Determine two variables
98242         main_files and testsrelated_files. Compute 'files' as the union of
98243         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98244         func_add_or_update. In the generated gnulib-comp.m4, collect the
98245         object files for tests/ in different variables than those for lib/.
98246         Substitute LIBTESTS_LIBDEPS.
98247         (func_create_testdir): Combine the uses_subdirs results from
98248         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98250 2007-12-09  Bruno Haible  <bruno@clisp.org>
98252         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98253         the build-aux directory.
98255 2007-12-09  Bruno Haible  <bruno@clisp.org>
98257         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98258         introduced on 2006-09-09.
98260 2007-12-07  Jim Meyering  <meyering@redhat.com>
98262         Let these macros work also with autoconf-2.59.
98263         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98264         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98265         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98267 2007-12-06  Jim Meyering  <meyering@redhat.com>
98269         Avoid a configure-time syntax error in gl_FUNC_ACL.
98270         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98271         function in each branch, before testing the cache variable.
98273 2007-12-04  Eric Blake  <ebb9@byu.net>
98275         Make scripts executable.
98276         * build-aux/config.guess: Add execute permissions.
98277         * build-aux/config.sub: Likewise.
98278         * build-aux/gendocs.sh: Likewise.
98280         Fix frexp on mingw.
98281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98282         cross-compiling.
98283         * doc/functions/frexp.texi (frexp): Document the bug.
98285         Make cygwin fseeko check more reliable.
98286         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98287         version numbers, rather than unrelated feature check.
98288         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98289         * doc/functions/ftello.texi (ftello): Likewise.
98290         Reported by Bruno Haible.
98292         * m4/strerror.m4: Bump version number.
98294 2007-12-03  Bruno Haible  <bruno@clisp.org>
98296         * doc/functions/mprotect.texi: Mention the mingw problem.
98298 2007-12-03  Eric Blake  <ebb9@byu.net>
98300         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98301         REPLACE_STRERROR is initialized before this macro.
98303 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98305         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98306         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98307         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98308         put -lsec in even for programs other than 'ls'.  This fixes a problem
98309         for gettext reported by Bruno Haible in
98310         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98311         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98312         Add support for Solaris 10.  This isn't efficient, but should get the
98313         job done for now.
98315 2007-12-03  James Youngman  <jay@gnu.org>
98317         * doc/regexprops-generic.texi: change "an close-group" to "a
98318         close-group" and "illegal" to "not allowed".
98320 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98322         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98323         pr_byname.h. Needed for the rare case when the maintainer has done
98324         "make maintainer-clean" in the source directory and then attempts a
98325         build outside the source directory.
98326         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98327         scripts_byname.h.
98329 2007-12-02  Martin Lambers  <marlam@marlam.de>
98330             Bruno Haible  <bruno@clisp.org>
98332         * lib/getpagesize.h: Remove file.
98333         * lib/unistd.in.h: Include declaration of getpagesize here.
98334         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98335         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98336         HAVE_SYS_PARAM_H.
98337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98338         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98339         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98340         (Depends-on): Add unistd.
98341         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98342         (Include): Use <unistd.h> instead of getpagesize.h.
98343         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98344         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98345         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98346         gl_GETPAGESIZE invocation, already handled by module dependency.
98347         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98349 2007-12-02  Bruno Haible  <bruno@clisp.org>
98351         * modules/strings-tests: New file.
98352         * tests/test-strings.c: New file.
98354         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98355         * lib/strings.in.h: New file.
98356         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98357         * m4/strings_h.m4: New file.
98358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98359         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98360         * modules/strings: New file.
98361         * modules/string (Makefile.am): Update.
98362         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98363         Reported by Karl Berry.
98365 2007-12-01  Eric Blake  <ebb9@byu.net>
98367         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98368         accommodate fix in cygwin 1.5.25.
98370 2007-12-01  Jim Meyering  <meyering@redhat.com>
98372         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98373         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98374         that would inhibit utf8-optimization of a regexp containing line-
98375         or buffer-anchors, e.g., `^', `$'.
98377 2007-11-30  Bruno Haible  <bruno@clisp.org>
98379         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98380         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98381         glthread_recursive_lock_init.
98382         * lib/lock.c (glthread_recursive_lock_init)
98383         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98386 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98388         New function qset_acl, like set_acl but with syscall semantics.
98389         * lib/acl.h (qset_acl): New decl.
98390         * lib/acl.c (qset_acl): New function.
98391         (set_acl): Use new function.  Use more-consistent diagnostics.
98393 2007-11-28  Jim Meyering  <meyering@redhat.com>
98395         * modules/physmem (License): Change from GPL to LGPLv2+.
98397 2007-11-26  Bruno Haible  <bruno@clisp.org>
98399         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98400         'long double' type has excess precision.
98401         Reported by Jim Meyering in
98402         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98404 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98406         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98407         Sync from <http://gnu.org/licenses>.
98408         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98409         with license text from same location.
98410         * doc/maintain.texi, doc/standards.texi:  Sync from
98411         <http://savannah.gnu.org/projects/gnustandards>.
98413 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98414         and Jim Meyering  <meyering@redhat.com>
98416         Adjust getdate' grammar to accept a slightly more regular language.
98417         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98418         Before, the former was rejected.
98419         * lib/getdate.y (digits_to_date_time): New function, factored
98420         out of ...
98421         (number): ...here.  Just call digits_to_date_time.
98422         (hybrid): New non-terminal to handle an <unsigned number,
98423         signed relative offset> sequence consistently.
98425 2007-11-18  Jim Meyering  <meyering@redhat.com>
98427         Pull my changes from coreutils:
98428         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98429         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98430         use of $gnulib_tool_option_extras, so that it's separated from the
98431         preceding argument.
98433         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98434         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98435         parent destination directories before copying a file into place.
98437 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98439         bootstrap: work also with 4-argument variant of AC_INIT
98440         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98442 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98444         Port test-getaddrinfo to Solaris.
98445         Problem reported by Bruno Haible in
98446         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98447         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98448         explanation of setting 'hints'.
98449         Don't reject an implementation merely because it returns EAI_SERVICE.
98450         (EAI_SERVICE): Define to 0 if not defined.
98452 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98454         The license of gnu-make and posix-shell is now "GPLed build tool".
98455         * modules/gnu-make (License): Likewise.
98456         * modules/posix-shell (License): Likewise.
98458         New module posix-shell, for determining a POSIX shell
98459         or perhaps something that is close enough to a POSIX shell.
98460         * m4/posix-shell.m4: New file.
98461         * modules/posix-shell: New file.
98463         * MODULES.html.sh: Mention new module.
98465         New module gnu-make, for determining whether we're using GNU Make.
98466         * m4/gnu-make.m4: New file.
98467         * modules/gnu-make: New file.
98468         * MODULES.html.sh: Mention new module.
98470 2007-11-14  Jim Meyering  <meyering@redhat.com>
98472         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98473         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98474         use this macro to create a function _definition_.
98475         Remove useless "#undef ARGMATCH_DIE".
98477 2007-11-14  Bruno Haible  <bruno@clisp.org>
98479         * lib/config.charset: Update for OpenBSD 4.1.
98480         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98482 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98484         Document 64-bit #if problems in stdint.texi.
98485         * doc/headers/stdint.texi (stdint.h): Mention problems with
98486         64-bit-#if, and how to work around them.
98488         Don't insist on 'long long int' support in the preprocessor.  It
98489         breaks too many things.  For example, PRIdMAX still uses a 'long
98490         long int' format with the latest Sun compiler, even though
98491         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98492         preprocessor problem.  This causes the latest coreutils to dump
98493         core on Solaris 10 sparc with the Sun C compiler.
98494         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98495         the troublesome expressions at configure-time, not at #if-time.
98496         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98497         preprocessor.
98498         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98499         compile-time C checks, done at 'configure'-time.
98500         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98501         * modules/inttypes (Makefile): Substitute the new symbols that
98502         gl_INTTYPES_H now generates.
98503         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98505 2007-11-12  Bruno Haible  <bruno@clisp.org>
98507         Tests for Unicode character classification functions.
98509         * modules/unictype/bidicategory-byname-tests: New file.
98510         * modules/unictype/bidicategory-name-tests: New file.
98511         * modules/unictype/bidicategory-of-tests: New file.
98512         * modules/unictype/bidicategory-test-tests: New file.
98513         * modules/unictype/block-list-tests: New file.
98514         * modules/unictype/block-of-tests: New file.
98515         * modules/unictype/block-test-tests: New file.
98516         * modules/unictype/category-C-tests: New file.
98517         * modules/unictype/category-Cc-tests: New file.
98518         * modules/unictype/category-Cf-tests: New file.
98519         * modules/unictype/category-Cn-tests: New file.
98520         * modules/unictype/category-Co-tests: New file.
98521         * modules/unictype/category-Cs-tests: New file.
98522         * modules/unictype/category-L-tests: New file.
98523         * modules/unictype/category-Ll-tests: New file.
98524         * modules/unictype/category-Lm-tests: New file.
98525         * modules/unictype/category-Lo-tests: New file.
98526         * modules/unictype/category-Lt-tests: New file.
98527         * modules/unictype/category-Lu-tests: New file.
98528         * modules/unictype/category-M-tests: New file.
98529         * modules/unictype/category-Mc-tests: New file.
98530         * modules/unictype/category-Me-tests: New file.
98531         * modules/unictype/category-Mn-tests: New file.
98532         * modules/unictype/category-N-tests: New file.
98533         * modules/unictype/category-Nd-tests: New file.
98534         * modules/unictype/category-Nl-tests: New file.
98535         * modules/unictype/category-No-tests: New file.
98536         * modules/unictype/category-P-tests: New file.
98537         * modules/unictype/category-Pc-tests: New file.
98538         * modules/unictype/category-Pd-tests: New file.
98539         * modules/unictype/category-Pe-tests: New file.
98540         * modules/unictype/category-Pf-tests: New file.
98541         * modules/unictype/category-Pi-tests: New file.
98542         * modules/unictype/category-Po-tests: New file.
98543         * modules/unictype/category-Ps-tests: New file.
98544         * modules/unictype/category-S-tests: New file.
98545         * modules/unictype/category-Sc-tests: New file.
98546         * modules/unictype/category-Sk-tests: New file.
98547         * modules/unictype/category-Sm-tests: New file.
98548         * modules/unictype/category-So-tests: New file.
98549         * modules/unictype/category-Z-tests: New file.
98550         * modules/unictype/category-Zl-tests: New file.
98551         * modules/unictype/category-Zp-tests: New file.
98552         * modules/unictype/category-Zs-tests: New file.
98553         * modules/unictype/category-and-not-tests: New file.
98554         * modules/unictype/category-and-tests: New file.
98555         * modules/unictype/category-byname-tests: New file.
98556         * modules/unictype/category-name-tests: New file.
98557         * modules/unictype/category-none-tests: New file.
98558         * modules/unictype/category-of-tests: New file.
98559         * modules/unictype/category-or-tests: New file.
98560         * modules/unictype/category-test-withtable-tests: New file.
98561         * modules/unictype/combining-class-tests: New file.
98562         * modules/unictype/ctype-alnum-tests: New file.
98563         * modules/unictype/ctype-alpha-tests: New file.
98564         * modules/unictype/ctype-blank-tests: New file.
98565         * modules/unictype/ctype-cntrl-tests: New file.
98566         * modules/unictype/ctype-digit-tests: New file.
98567         * modules/unictype/ctype-graph-tests: New file.
98568         * modules/unictype/ctype-lower-tests: New file.
98569         * modules/unictype/ctype-print-tests: New file.
98570         * modules/unictype/ctype-punct-tests: New file.
98571         * modules/unictype/ctype-space-tests: New file.
98572         * modules/unictype/ctype-upper-tests: New file.
98573         * modules/unictype/ctype-xdigit-tests: New file.
98574         * modules/unictype/decimal-digit-tests: New file.
98575         * modules/unictype/digit-tests: New file.
98576         * modules/unictype/mirror-tests: New file.
98577         * modules/unictype/numeric-tests: New file.
98578         * modules/unictype/property-alphabetic-tests: New file.
98579         * modules/unictype/property-ascii-hex-digit-tests: New file.
98580         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98581         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98582         * modules/unictype/property-bidi-block-separator-tests: New file.
98583         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98584         * modules/unictype/property-bidi-common-separator-tests: New file.
98585         * modules/unictype/property-bidi-control-tests: New file.
98586         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98587         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98588         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98589         * modules/unictype/property-bidi-european-digit-tests: New file.
98590         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98591         * modules/unictype/property-bidi-left-to-right-tests: New file.
98592         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98593         * modules/unictype/property-bidi-other-neutral-tests: New file.
98594         * modules/unictype/property-bidi-pdf-tests: New file.
98595         * modules/unictype/property-bidi-segment-separator-tests: New file.
98596         * modules/unictype/property-bidi-whitespace-tests: New file.
98597         * modules/unictype/property-byname-tests: New file.
98598         * modules/unictype/property-combining-tests: New file.
98599         * modules/unictype/property-composite-tests: New file.
98600         * modules/unictype/property-currency-symbol-tests: New file.
98601         * modules/unictype/property-dash-tests: New file.
98602         * modules/unictype/property-decimal-digit-tests: New file.
98603         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98604         * modules/unictype/property-deprecated-tests: New file.
98605         * modules/unictype/property-diacritic-tests: New file.
98606         * modules/unictype/property-extender-tests: New file.
98607         * modules/unictype/property-format-control-tests: New file.
98608         * modules/unictype/property-grapheme-base-tests: New file.
98609         * modules/unictype/property-grapheme-extend-tests: New file.
98610         * modules/unictype/property-grapheme-link-tests: New file.
98611         * modules/unictype/property-hex-digit-tests: New file.
98612         * modules/unictype/property-hyphen-tests: New file.
98613         * modules/unictype/property-id-continue-tests: New file.
98614         * modules/unictype/property-id-start-tests: New file.
98615         * modules/unictype/property-ideographic-tests: New file.
98616         * modules/unictype/property-ids-binary-operator-tests: New file.
98617         * modules/unictype/property-ids-trinary-operator-tests: New file.
98618         * modules/unictype/property-ignorable-control-tests: New file.
98619         * modules/unictype/property-iso-control-tests: New file.
98620         * modules/unictype/property-join-control-tests: New file.
98621         * modules/unictype/property-left-of-pair-tests: New file.
98622         * modules/unictype/property-line-separator-tests: New file.
98623         * modules/unictype/property-logical-order-exception-tests: New file.
98624         * modules/unictype/property-lowercase-tests: New file.
98625         * modules/unictype/property-math-tests: New file.
98626         * modules/unictype/property-non-break-tests: New file.
98627         * modules/unictype/property-not-a-character-tests: New file.
98628         * modules/unictype/property-numeric-tests: New file.
98629         * modules/unictype/property-other-alphabetic-tests: New file.
98630         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98631         * modules/unictype/property-other-grapheme-extend-tests: New file.
98632         * modules/unictype/property-other-id-continue-tests: New file.
98633         * modules/unictype/property-other-id-start-tests: New file.
98634         * modules/unictype/property-other-lowercase-tests: New file.
98635         * modules/unictype/property-other-math-tests: New file.
98636         * modules/unictype/property-other-uppercase-tests: New file.
98637         * modules/unictype/property-paired-punctuation-tests: New file.
98638         * modules/unictype/property-paragraph-separator-tests: New file.
98639         * modules/unictype/property-pattern-syntax-tests: New file.
98640         * modules/unictype/property-pattern-white-space-tests: New file.
98641         * modules/unictype/property-private-use-tests: New file.
98642         * modules/unictype/property-punctuation-tests: New file.
98643         * modules/unictype/property-quotation-mark-tests: New file.
98644         * modules/unictype/property-radical-tests: New file.
98645         * modules/unictype/property-sentence-terminal-tests: New file.
98646         * modules/unictype/property-soft-dotted-tests: New file.
98647         * modules/unictype/property-space-tests: New file.
98648         * modules/unictype/property-terminal-punctuation-tests: New file.
98649         * modules/unictype/property-test-tests: New file.
98650         * modules/unictype/property-titlecase-tests: New file.
98651         * modules/unictype/property-unassigned-code-value-tests: New file.
98652         * modules/unictype/property-unified-ideograph-tests: New file.
98653         * modules/unictype/property-uppercase-tests: New file.
98654         * modules/unictype/property-variation-selector-tests: New file.
98655         * modules/unictype/property-white-space-tests: New file.
98656         * modules/unictype/property-xid-continue-tests: New file.
98657         * modules/unictype/property-xid-start-tests: New file.
98658         * modules/unictype/property-zero-width-tests: New file.
98659         * modules/unictype/scripts-tests: New file.
98660         * modules/unictype/syntax-c-ident-tests: New file.
98661         * modules/unictype/syntax-c-whitespace-tests: New file.
98662         * modules/unictype/syntax-java-ident-tests: New file.
98663         * modules/unictype/syntax-java-whitespace-tests: New file.
98664         * tests/unictype/test-bidi_byname.c: New file.
98665         * tests/unictype/test-bidi_name.c: New file.
98666         * tests/unictype/test-bidi_of.c: New file.
98667         * tests/unictype/test-bidi_test.c: New file.
98668         * tests/unictype/test-block_list.c: New file.
98669         * tests/unictype/test-block_of.c: New file.
98670         * tests/unictype/test-block_test.c: New file.
98671         * tests/unictype/test-categ_and.c: New file.
98672         * tests/unictype/test-categ_and_not.c: New file.
98673         * tests/unictype/test-categ_byname.c: New file.
98674         * tests/unictype/test-categ_name.c: New file.
98675         * tests/unictype/test-categ_none.c: New file.
98676         * tests/unictype/test-categ_of.c: New file.
98677         * tests/unictype/test-categ_or.c: New file.
98678         * tests/unictype/test-categ_test_withtable.c: New file.
98679         * tests/unictype/test-combining.c: New file.
98680         * tests/unictype/test-decdigit.c: New file.
98681         * tests/unictype/test-digit.c: New file.
98682         * tests/unictype/test-mirror.c: New file.
98683         * tests/unictype/test-numeric.c: New file.
98684         * tests/unictype/test-pr_byname.c: New file.
98685         * tests/unictype/test-pr_test.c: New file.
98686         * tests/unictype/test-predicate-part1.h: New file.
98687         * tests/unictype/test-predicate-part2.h: New file.
98688         * tests/unictype/test-scripts.c: New file.
98689         * tests/unictype/test-sy_c_ident.c: New file.
98690         * tests/unictype/test-sy_java_ident.c: New file.
98692         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98693         for Unicode 5.0.0.
98694         * tests/unictype/test-categ_Cc.c: Likewise.
98695         * tests/unictype/test-categ_Cf.c: Likewise.
98696         * tests/unictype/test-categ_Cn.c: Likewise.
98697         * tests/unictype/test-categ_Co.c: Likewise.
98698         * tests/unictype/test-categ_Cs.c: Likewise.
98699         * tests/unictype/test-categ_L.c: Likewise.
98700         * tests/unictype/test-categ_Ll.c: Likewise.
98701         * tests/unictype/test-categ_Lm.c: Likewise.
98702         * tests/unictype/test-categ_Lo.c: Likewise.
98703         * tests/unictype/test-categ_Lt.c: Likewise.
98704         * tests/unictype/test-categ_Lu.c: Likewise.
98705         * tests/unictype/test-categ_M.c: Likewise.
98706         * tests/unictype/test-categ_Mc.c: Likewise.
98707         * tests/unictype/test-categ_Me.c: Likewise.
98708         * tests/unictype/test-categ_Mn.c: Likewise.
98709         * tests/unictype/test-categ_N.c: Likewise.
98710         * tests/unictype/test-categ_Nd.c: Likewise.
98711         * tests/unictype/test-categ_Nl.c: Likewise.
98712         * tests/unictype/test-categ_No.c: Likewise.
98713         * tests/unictype/test-categ_P.c: Likewise.
98714         * tests/unictype/test-categ_Pc.c: Likewise.
98715         * tests/unictype/test-categ_Pd.c: Likewise.
98716         * tests/unictype/test-categ_Pe.c: Likewise.
98717         * tests/unictype/test-categ_Pf.c: Likewise.
98718         * tests/unictype/test-categ_Pi.c: Likewise.
98719         * tests/unictype/test-categ_Po.c: Likewise.
98720         * tests/unictype/test-categ_Ps.c: Likewise.
98721         * tests/unictype/test-categ_S.c: Likewise.
98722         * tests/unictype/test-categ_Sc.c: Likewise.
98723         * tests/unictype/test-categ_Sk.c: Likewise.
98724         * tests/unictype/test-categ_Sm.c: Likewise.
98725         * tests/unictype/test-categ_So.c: Likewise.
98726         * tests/unictype/test-categ_Z.c: Likewise.
98727         * tests/unictype/test-categ_Zl.c: Likewise.
98728         * tests/unictype/test-categ_Zp.c: Likewise.
98729         * tests/unictype/test-categ_Zs.c: Likewise.
98730         * tests/unictype/test-ctype_alnum.c: Likewise.
98731         * tests/unictype/test-ctype_alpha.c: Likewise.
98732         * tests/unictype/test-ctype_blank.c: Likewise.
98733         * tests/unictype/test-ctype_cntrl.c: Likewise.
98734         * tests/unictype/test-ctype_digit.c: Likewise.
98735         * tests/unictype/test-ctype_graph.c: Likewise.
98736         * tests/unictype/test-ctype_lower.c: Likewise.
98737         * tests/unictype/test-ctype_print.c: Likewise.
98738         * tests/unictype/test-ctype_punct.c: Likewise.
98739         * tests/unictype/test-ctype_space.c: Likewise.
98740         * tests/unictype/test-ctype_upper.c: Likewise.
98741         * tests/unictype/test-ctype_xdigit.c: Likewise.
98742         * tests/unictype/test-decdigit.h: Likewise.
98743         * tests/unictype/test-digit.h: Likewise.
98744         * tests/unictype/test-numeric.h: Likewise.
98745         * tests/unictype/test-pr_alphabetic.c: Likewise.
98746         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98747         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98748         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98749         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98750         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98751         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98752         * tests/unictype/test-pr_bidi_control.c: Likewise.
98753         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98754         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98755         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98756         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98757         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98758         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98759         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98760         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98761         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98762         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98763         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98764         * tests/unictype/test-pr_combining.c: Likewise.
98765         * tests/unictype/test-pr_composite.c: Likewise.
98766         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98767         * tests/unictype/test-pr_dash.c: Likewise.
98768         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98769         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98770         * tests/unictype/test-pr_deprecated.c: Likewise.
98771         * tests/unictype/test-pr_diacritic.c: Likewise.
98772         * tests/unictype/test-pr_extender.c: Likewise.
98773         * tests/unictype/test-pr_format_control.c: Likewise.
98774         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98775         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98776         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98777         * tests/unictype/test-pr_hex_digit.c: Likewise.
98778         * tests/unictype/test-pr_hyphen.c: Likewise.
98779         * tests/unictype/test-pr_id_continue.c: Likewise.
98780         * tests/unictype/test-pr_id_start.c: Likewise.
98781         * tests/unictype/test-pr_ideographic.c: Likewise.
98782         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98783         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98784         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98785         * tests/unictype/test-pr_iso_control.c: Likewise.
98786         * tests/unictype/test-pr_join_control.c: Likewise.
98787         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98788         * tests/unictype/test-pr_line_separator.c: Likewise.
98789         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98790         * tests/unictype/test-pr_lowercase.c: Likewise.
98791         * tests/unictype/test-pr_math.c: Likewise.
98792         * tests/unictype/test-pr_non_break.c: Likewise.
98793         * tests/unictype/test-pr_not_a_character.c: Likewise.
98794         * tests/unictype/test-pr_numeric.c: Likewise.
98795         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98796         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98797         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98798         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98799         * tests/unictype/test-pr_other_id_start.c: Likewise.
98800         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98801         * tests/unictype/test-pr_other_math.c: Likewise.
98802         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98803         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98804         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98805         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98806         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98807         * tests/unictype/test-pr_private_use.c: Likewise.
98808         * tests/unictype/test-pr_punctuation.c: Likewise.
98809         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98810         * tests/unictype/test-pr_radical.c: Likewise.
98811         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98812         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98813         * tests/unictype/test-pr_space.c: Likewise.
98814         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98815         * tests/unictype/test-pr_titlecase.c: Likewise.
98816         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98817         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98818         * tests/unictype/test-pr_uppercase.c: Likewise.
98819         * tests/unictype/test-pr_variation_selector.c: Likewise.
98820         * tests/unictype/test-pr_white_space.c: Likewise.
98821         * tests/unictype/test-pr_xid_continue.c: Likewise.
98822         * tests/unictype/test-pr_xid_start.c: Likewise.
98823         * tests/unictype/test-pr_zero_width.c: Likewise.
98824         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98825         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98827 2007-11-12  Bruno Haible  <bruno@clisp.org>
98829         Unicode character classification functions.
98830         * lib/unictype.h: New file.
98831         * modules/unictype/base: New file.
98832         * modules/unictype/category-L: New file.
98833         * modules/unictype/category-Lu: New file.
98834         * modules/unictype/category-Ll: New file.
98835         * modules/unictype/category-Lt: New file.
98836         * modules/unictype/category-Lm: New file.
98837         * modules/unictype/category-Lo: New file.
98838         * modules/unictype/category-M: New file.
98839         * modules/unictype/category-Mn: New file.
98840         * modules/unictype/category-Mc: New file.
98841         * modules/unictype/category-Me: New file.
98842         * modules/unictype/category-N: New file.
98843         * modules/unictype/category-Nd: New file.
98844         * modules/unictype/category-Nl: New file.
98845         * modules/unictype/category-No: New file.
98846         * modules/unictype/category-P: New file.
98847         * modules/unictype/category-Pc: New file.
98848         * modules/unictype/category-Pd: New file.
98849         * modules/unictype/category-Ps: New file.
98850         * modules/unictype/category-Pe: New file.
98851         * modules/unictype/category-Pi: New file.
98852         * modules/unictype/category-Pf: New file.
98853         * modules/unictype/category-Po: New file.
98854         * modules/unictype/category-S: New file.
98855         * modules/unictype/category-Sm: New file.
98856         * modules/unictype/category-Sc: New file.
98857         * modules/unictype/category-Sk: New file.
98858         * modules/unictype/category-So: New file.
98859         * modules/unictype/category-Z: New file.
98860         * modules/unictype/category-Zs: New file.
98861         * modules/unictype/category-Zl: New file.
98862         * modules/unictype/category-Zp: New file.
98863         * modules/unictype/category-C: New file.
98864         * modules/unictype/category-Cc: New file.
98865         * modules/unictype/category-Cf: New file.
98866         * modules/unictype/category-Cs: New file.
98867         * modules/unictype/category-Co: New file.
98868         * modules/unictype/category-Cn: New file.
98869         * modules/unictype/category-or: New file.
98870         * modules/unictype/category-of: New file.
98871         * modules/unictype/category-test: New file.
98872         * modules/unictype/category-test-withtable: New file.
98873         * modules/unictype/category-byname: New file.
98874         * modules/unictype/category-none: New file.
98875         * modules/unictype/category-and: New file.
98876         * modules/unictype/category-and-not: New file.
98877         * modules/unictype/category-name: New file.
98878         * modules/unictype/combining-class: New file.
98879         * modules/unictype/category-all: New file.
98880         * modules/unictype/bidicategory-all: New file.
98881         * modules/unictype/bidicategory-byname: New file.
98882         * modules/unictype/bidicategory-name: New file.
98883         * modules/unictype/bidicategory-of: New file.
98884         * modules/unictype/bidicategory-test: New file.
98885         * modules/unictype/decimal-digit: New file.
98886         * modules/unictype/digit: New file.
98887         * modules/unictype/numeric: New file.
98888         * modules/unictype/mirror: New file.
98889         * modules/unictype/property-white-space: New file.
98890         * modules/unictype/property-alphabetic: New file.
98891         * modules/unictype/property-other-alphabetic: New file.
98892         * modules/unictype/property-not-a-character: New file.
98893         * modules/unictype/property-default-ignorable-code-point: New file.
98894         * modules/unictype/property-other-default-ignorable-code-point: New
98895         file.
98896         * modules/unictype/property-deprecated: New file.
98897         * modules/unictype/property-logical-order-exception: New file.
98898         * modules/unictype/property-variation-selector: New file.
98899         * modules/unictype/property-private-use: New file.
98900         * modules/unictype/property-unassigned-code-value: New file.
98901         * modules/unictype/property-uppercase: New file.
98902         * modules/unictype/property-other-uppercase: New file.
98903         * modules/unictype/property-lowercase: New file.
98904         * modules/unictype/property-other-lowercase: New file.
98905         * modules/unictype/property-titlecase: New file.
98906         * modules/unictype/property-soft-dotted: New file.
98907         * modules/unictype/property-id-start: New file.
98908         * modules/unictype/property-other-id-start: New file.
98909         * modules/unictype/property-id-continue: New file.
98910         * modules/unictype/property-other-id-continue: New file.
98911         * modules/unictype/property-xid-start: New file.
98912         * modules/unictype/property-xid-continue: New file.
98913         * modules/unictype/property-pattern-white-space: New file.
98914         * modules/unictype/property-pattern-syntax: New file.
98915         * modules/unictype/property-join-control: New file.
98916         * modules/unictype/property-grapheme-base: New file.
98917         * modules/unictype/property-grapheme-extend: New file.
98918         * modules/unictype/property-other-grapheme-extend: New file.
98919         * modules/unictype/property-grapheme-link: New file.
98920         * modules/unictype/property-bidi-control: New file.
98921         * modules/unictype/property-bidi-left-to-right: New file.
98922         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98923         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98924         * modules/unictype/property-bidi-european-digit: New file.
98925         * modules/unictype/property-bidi-eur-num-separator: New file.
98926         * modules/unictype/property-bidi-eur-num-terminator: New file.
98927         * modules/unictype/property-bidi-arabic-digit: New file.
98928         * modules/unictype/property-bidi-common-separator: New file.
98929         * modules/unictype/property-bidi-block-separator: New file.
98930         * modules/unictype/property-bidi-segment-separator: New file.
98931         * modules/unictype/property-bidi-whitespace: New file.
98932         * modules/unictype/property-bidi-non-spacing-mark: New file.
98933         * modules/unictype/property-bidi-boundary-neutral: New file.
98934         * modules/unictype/property-bidi-pdf: New file.
98935         * modules/unictype/property-bidi-embedding-or-override: New file.
98936         * modules/unictype/property-bidi-other-neutral: New file.
98937         * modules/unictype/property-hex-digit: New file.
98938         * modules/unictype/property-ascii-hex-digit: New file.
98939         * modules/unictype/property-ideographic: New file.
98940         * modules/unictype/property-unified-ideograph: New file.
98941         * modules/unictype/property-radical: New file.
98942         * modules/unictype/property-ids-binary-operator: New file.
98943         * modules/unictype/property-ids-trinary-operator: New file.
98944         * modules/unictype/property-zero-width: New file.
98945         * modules/unictype/property-space: New file.
98946         * modules/unictype/property-non-break: New file.
98947         * modules/unictype/property-iso-control: New file.
98948         * modules/unictype/property-format-control: New file.
98949         * modules/unictype/property-dash: New file.
98950         * modules/unictype/property-hyphen: New file.
98951         * modules/unictype/property-punctuation: New file.
98952         * modules/unictype/property-line-separator: New file.
98953         * modules/unictype/property-paragraph-separator: New file.
98954         * modules/unictype/property-quotation-mark: New file.
98955         * modules/unictype/property-sentence-terminal: New file.
98956         * modules/unictype/property-terminal-punctuation: New file.
98957         * modules/unictype/property-currency-symbol: New file.
98958         * modules/unictype/property-math: New file.
98959         * modules/unictype/property-other-math: New file.
98960         * modules/unictype/property-paired-punctuation: New file.
98961         * modules/unictype/property-left-of-pair: New file.
98962         * modules/unictype/property-combining: New file.
98963         * modules/unictype/property-composite: New file.
98964         * modules/unictype/property-decimal-digit: New file.
98965         * modules/unictype/property-numeric: New file.
98966         * modules/unictype/property-diacritic: New file.
98967         * modules/unictype/property-extender: New file.
98968         * modules/unictype/property-ignorable-control: New file.
98969         * modules/unictype/property-test: New file.
98970         * modules/unictype/property-byname: New file.
98971         * modules/unictype/property-all: New file.
98972         * modules/unictype/scripts: New file.
98973         * modules/unictype/scripts-all: New file.
98974         * modules/unictype/block-of: New file.
98975         * modules/unictype/block-test: New file.
98976         * modules/unictype/block-list: New file.
98977         * modules/unictype/block-all: New file.
98978         * modules/unictype/syntax-c-whitespace: New file.
98979         * modules/unictype/syntax-java-whitespace: New file.
98980         * modules/unictype/syntax-c-ident: New file.
98981         * modules/unictype/syntax-java-ident: New file.
98982         * modules/unictype/ctype-alnum: New file.
98983         * modules/unictype/ctype-alpha: New file.
98984         * modules/unictype/ctype-cntrl: New file.
98985         * modules/unictype/ctype-digit: New file.
98986         * modules/unictype/ctype-graph: New file.
98987         * modules/unictype/ctype-lower: New file.
98988         * modules/unictype/ctype-print: New file.
98989         * modules/unictype/ctype-punct: New file.
98990         * modules/unictype/ctype-space: New file.
98991         * modules/unictype/ctype-upper: New file.
98992         * modules/unictype/ctype-xdigit: New file.
98993         * modules/unictype/ctype-blank: New file.
98994         * lib/unictype/bidi_byname.c: New file.
98995         * lib/unictype/bidi_name.c: New file.
98996         * lib/unictype/bidi_of.c: New file.
98997         * lib/unictype/bidi_test.c: New file.
98998         * lib/unictype/bitmap.h: New file.
98999         * lib/unictype/block_test.c: New file.
99000         * lib/unictype/blocks.c: New file.
99001         * lib/unictype/categ_C.c: New file.
99002         * lib/unictype/categ_Cc.c: New file.
99003         * lib/unictype/categ_Cf.c: New file.
99004         * lib/unictype/categ_Cn.c: New file.
99005         * lib/unictype/categ_Co.c: New file.
99006         * lib/unictype/categ_Cs.c: New file.
99007         * lib/unictype/categ_L.c: New file.
99008         * lib/unictype/categ_Ll.c: New file.
99009         * lib/unictype/categ_Lm.c: New file.
99010         * lib/unictype/categ_Lo.c: New file.
99011         * lib/unictype/categ_Lt.c: New file.
99012         * lib/unictype/categ_Lu.c: New file.
99013         * lib/unictype/categ_M.c: New file.
99014         * lib/unictype/categ_Mc.c: New file.
99015         * lib/unictype/categ_Me.c: New file.
99016         * lib/unictype/categ_Mn.c: New file.
99017         * lib/unictype/categ_N.c: New file.
99018         * lib/unictype/categ_Nd.c: New file.
99019         * lib/unictype/categ_Nl.c: New file.
99020         * lib/unictype/categ_No.c: New file.
99021         * lib/unictype/categ_P.c: New file.
99022         * lib/unictype/categ_Pc.c: New file.
99023         * lib/unictype/categ_Pd.c: New file.
99024         * lib/unictype/categ_Pe.c: New file.
99025         * lib/unictype/categ_Pf.c: New file.
99026         * lib/unictype/categ_Pi.c: New file.
99027         * lib/unictype/categ_Po.c: New file.
99028         * lib/unictype/categ_Ps.c: New file.
99029         * lib/unictype/categ_S.c: New file.
99030         * lib/unictype/categ_Sc.c: New file.
99031         * lib/unictype/categ_Sk.c: New file.
99032         * lib/unictype/categ_Sm.c: New file.
99033         * lib/unictype/categ_So.c: New file.
99034         * lib/unictype/categ_Z.c: New file.
99035         * lib/unictype/categ_Zl.c: New file.
99036         * lib/unictype/categ_Zp.c: New file.
99037         * lib/unictype/categ_Zs.c: New file.
99038         * lib/unictype/categ_and.c: New file.
99039         * lib/unictype/categ_and_not.c: New file.
99040         * lib/unictype/categ_byname.c: New file.
99041         * lib/unictype/categ_name.c: New file.
99042         * lib/unictype/categ_none.c: New file.
99043         * lib/unictype/categ_of.c: New file.
99044         * lib/unictype/categ_or.c: New file.
99045         * lib/unictype/categ_test.c: New file.
99046         * lib/unictype/combining.c: New file.
99047         * lib/unictype/ctype_alnum.c: New file.
99048         * lib/unictype/ctype_alpha.c: New file.
99049         * lib/unictype/ctype_blank.c: New file.
99050         * lib/unictype/ctype_cntrl.c: New file.
99051         * lib/unictype/ctype_digit.c: New file.
99052         * lib/unictype/ctype_graph.c: New file.
99053         * lib/unictype/ctype_lower.c: New file.
99054         * lib/unictype/ctype_print.c: New file.
99055         * lib/unictype/ctype_punct.c: New file.
99056         * lib/unictype/ctype_space.c: New file.
99057         * lib/unictype/ctype_upper.c: New file.
99058         * lib/unictype/ctype_xdigit.c: New file.
99059         * lib/unictype/decdigit.c: New file.
99060         * lib/unictype/digit.c: New file.
99061         * lib/unictype/identsyntaxmap.h: New file.
99062         * lib/unictype/mirror.c: New file.
99063         * lib/unictype/numeric.c: New file.
99064         * lib/unictype/pr_alphabetic.c: New file.
99065         * lib/unictype/pr_ascii_hex_digit.c: New file.
99066         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99067         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99068         * lib/unictype/pr_bidi_block_separator.c: New file.
99069         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99070         * lib/unictype/pr_bidi_common_separator.c: New file.
99071         * lib/unictype/pr_bidi_control.c: New file.
99072         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99073         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99074         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99075         * lib/unictype/pr_bidi_european_digit.c: New file.
99076         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99077         * lib/unictype/pr_bidi_left_to_right.c: New file.
99078         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99079         * lib/unictype/pr_bidi_other_neutral.c: New file.
99080         * lib/unictype/pr_bidi_pdf.c: New file.
99081         * lib/unictype/pr_bidi_segment_separator.c: New file.
99082         * lib/unictype/pr_bidi_whitespace.c: New file.
99083         * lib/unictype/pr_byname.c: New file.
99084         * lib/unictype/pr_byname.gperf: New file.
99085         * lib/unictype/pr_combining.c: New file.
99086         * lib/unictype/pr_composite.c: New file.
99087         * lib/unictype/pr_currency_symbol.c: New file.
99088         * lib/unictype/pr_dash.c: New file.
99089         * lib/unictype/pr_decimal_digit.c: New file.
99090         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99091         * lib/unictype/pr_deprecated.c: New file.
99092         * lib/unictype/pr_diacritic.c: New file.
99093         * lib/unictype/pr_extender.c: New file.
99094         * lib/unictype/pr_format_control.c: New file.
99095         * lib/unictype/pr_grapheme_base.c: New file.
99096         * lib/unictype/pr_grapheme_extend.c: New file.
99097         * lib/unictype/pr_grapheme_link.c: New file.
99098         * lib/unictype/pr_hex_digit.c: New file.
99099         * lib/unictype/pr_hyphen.c: New file.
99100         * lib/unictype/pr_id_continue.c: New file.
99101         * lib/unictype/pr_id_start.c: New file.
99102         * lib/unictype/pr_ideographic.c: New file.
99103         * lib/unictype/pr_ids_binary_operator.c: New file.
99104         * lib/unictype/pr_ids_trinary_operator.c: New file.
99105         * lib/unictype/pr_ignorable_control.c: New file.
99106         * lib/unictype/pr_iso_control.c: New file.
99107         * lib/unictype/pr_join_control.c: New file.
99108         * lib/unictype/pr_left_of_pair.c: New file.
99109         * lib/unictype/pr_line_separator.c: New file.
99110         * lib/unictype/pr_logical_order_exception.c: New file.
99111         * lib/unictype/pr_lowercase.c: New file.
99112         * lib/unictype/pr_math.c: New file.
99113         * lib/unictype/pr_non_break.c: New file.
99114         * lib/unictype/pr_not_a_character.c: New file.
99115         * lib/unictype/pr_numeric.c: New file.
99116         * lib/unictype/pr_other_alphabetic.c: New file.
99117         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99118         * lib/unictype/pr_other_grapheme_extend.c: New file.
99119         * lib/unictype/pr_other_id_continue.c: New file.
99120         * lib/unictype/pr_other_id_start.c: New file.
99121         * lib/unictype/pr_other_lowercase.c: New file.
99122         * lib/unictype/pr_other_math.c: New file.
99123         * lib/unictype/pr_other_uppercase.c: New file.
99124         * lib/unictype/pr_paired_punctuation.c: New file.
99125         * lib/unictype/pr_paragraph_separator.c: New file.
99126         * lib/unictype/pr_pattern_syntax.c: New file.
99127         * lib/unictype/pr_pattern_white_space.c: New file.
99128         * lib/unictype/pr_private_use.c: New file.
99129         * lib/unictype/pr_punctuation.c: New file.
99130         * lib/unictype/pr_quotation_mark.c: New file.
99131         * lib/unictype/pr_radical.c: New file.
99132         * lib/unictype/pr_sentence_terminal.c: New file.
99133         * lib/unictype/pr_soft_dotted.c: New file.
99134         * lib/unictype/pr_space.c: New file.
99135         * lib/unictype/pr_terminal_punctuation.c: New file.
99136         * lib/unictype/pr_test.c: New file.
99137         * lib/unictype/pr_titlecase.c: New file.
99138         * lib/unictype/pr_unassigned_code_value.c: New file.
99139         * lib/unictype/pr_unified_ideograph.c: New file.
99140         * lib/unictype/pr_uppercase.c: New file.
99141         * lib/unictype/pr_variation_selector.c: New file.
99142         * lib/unictype/pr_white_space.c: New file.
99143         * lib/unictype/pr_xid_continue.c: New file.
99144         * lib/unictype/pr_xid_start.c: New file.
99145         * lib/unictype/pr_zero_width.c: New file.
99146         * lib/unictype/scripts.c: New file.
99147         * lib/unictype/sy_c_ident.c: New file.
99148         * lib/unictype/sy_c_whitespace.c: New file.
99149         * lib/unictype/sy_java_ident.c: New file.
99150         * lib/unictype/sy_java_whitespace.c: New file.
99152         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99153         Unicode 5.0.0.
99154         * lib/unictype/blocks.h: Likewise.
99155         * lib/unictype/categ_C.h: Likewise.
99156         * lib/unictype/categ_Cc.h: Likewise.
99157         * lib/unictype/categ_Cf.h: Likewise.
99158         * lib/unictype/categ_Cn.h: Likewise.
99159         * lib/unictype/categ_Co.h: Likewise.
99160         * lib/unictype/categ_Cs.h: Likewise.
99161         * lib/unictype/categ_L.h: Likewise.
99162         * lib/unictype/categ_Ll.h: Likewise.
99163         * lib/unictype/categ_Lm.h: Likewise.
99164         * lib/unictype/categ_Lo.h: Likewise.
99165         * lib/unictype/categ_Lt.h: Likewise.
99166         * lib/unictype/categ_Lu.h: Likewise.
99167         * lib/unictype/categ_M.h: Likewise.
99168         * lib/unictype/categ_Mc.h: Likewise.
99169         * lib/unictype/categ_Me.h: Likewise.
99170         * lib/unictype/categ_Mn.h: Likewise.
99171         * lib/unictype/categ_N.h: Likewise.
99172         * lib/unictype/categ_Nd.h: Likewise.
99173         * lib/unictype/categ_Nl.h: Likewise.
99174         * lib/unictype/categ_No.h: Likewise.
99175         * lib/unictype/categ_P.h: Likewise.
99176         * lib/unictype/categ_Pc.h: Likewise.
99177         * lib/unictype/categ_Pd.h: Likewise.
99178         * lib/unictype/categ_Pe.h: Likewise.
99179         * lib/unictype/categ_Pf.h: Likewise.
99180         * lib/unictype/categ_Pi.h: Likewise.
99181         * lib/unictype/categ_Po.h: Likewise.
99182         * lib/unictype/categ_Ps.h: Likewise.
99183         * lib/unictype/categ_S.h: Likewise.
99184         * lib/unictype/categ_Sc.h: Likewise.
99185         * lib/unictype/categ_Sk.h: Likewise.
99186         * lib/unictype/categ_Sm.h: Likewise.
99187         * lib/unictype/categ_So.h: Likewise.
99188         * lib/unictype/categ_Z.h: Likewise.
99189         * lib/unictype/categ_Zl.h: Likewise.
99190         * lib/unictype/categ_Zp.h: Likewise.
99191         * lib/unictype/categ_Zs.h: Likewise.
99192         * lib/unictype/categ_of.h: Likewise.
99193         * lib/unictype/combining.h: Likewise.
99194         * lib/unictype/ctype_alnum.h: Likewise.
99195         * lib/unictype/ctype_alpha.h: Likewise.
99196         * lib/unictype/ctype_blank.h: Likewise.
99197         * lib/unictype/ctype_cntrl.h: Likewise.
99198         * lib/unictype/ctype_digit.h: Likewise.
99199         * lib/unictype/ctype_graph.h: Likewise.
99200         * lib/unictype/ctype_lower.h: Likewise.
99201         * lib/unictype/ctype_print.h: Likewise.
99202         * lib/unictype/ctype_punct.h: Likewise.
99203         * lib/unictype/ctype_space.h: Likewise.
99204         * lib/unictype/ctype_upper.h: Likewise.
99205         * lib/unictype/ctype_xdigit.h: Likewise.
99206         * lib/unictype/decdigit.h: Likewise.
99207         * lib/unictype/digit.h: Likewise.
99208         * lib/unictype/mirror.h: Likewise.
99209         * lib/unictype/numeric.h: Likewise.
99210         * lib/unictype/pr_alphabetic.h: Likewise.
99211         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99212         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99213         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99214         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99215         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99216         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99217         * lib/unictype/pr_bidi_control.h: Likewise.
99218         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99219         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99220         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99221         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99222         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99223         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99224         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99225         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99226         * lib/unictype/pr_bidi_pdf.h: Likewise.
99227         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99228         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99229         * lib/unictype/pr_combining.h: Likewise.
99230         * lib/unictype/pr_composite.h: Likewise.
99231         * lib/unictype/pr_currency_symbol.h: Likewise.
99232         * lib/unictype/pr_dash.h: Likewise.
99233         * lib/unictype/pr_decimal_digit.h: Likewise.
99234         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99235         * lib/unictype/pr_deprecated.h: Likewise.
99236         * lib/unictype/pr_diacritic.h: Likewise.
99237         * lib/unictype/pr_extender.h: Likewise.
99238         * lib/unictype/pr_format_control.h: Likewise.
99239         * lib/unictype/pr_grapheme_base.h: Likewise.
99240         * lib/unictype/pr_grapheme_extend.h: Likewise.
99241         * lib/unictype/pr_grapheme_link.h: Likewise.
99242         * lib/unictype/pr_hex_digit.h: Likewise.
99243         * lib/unictype/pr_hyphen.h: Likewise.
99244         * lib/unictype/pr_id_continue.h: Likewise.
99245         * lib/unictype/pr_id_start.h: Likewise.
99246         * lib/unictype/pr_ideographic.h: Likewise.
99247         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99248         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99249         * lib/unictype/pr_ignorable_control.h: Likewise.
99250         * lib/unictype/pr_iso_control.h: Likewise.
99251         * lib/unictype/pr_join_control.h: Likewise.
99252         * lib/unictype/pr_left_of_pair.h: Likewise.
99253         * lib/unictype/pr_line_separator.h: Likewise.
99254         * lib/unictype/pr_logical_order_exception.h: Likewise.
99255         * lib/unictype/pr_lowercase.h: Likewise.
99256         * lib/unictype/pr_math.h: Likewise.
99257         * lib/unictype/pr_non_break.h: Likewise.
99258         * lib/unictype/pr_not_a_character.h: Likewise.
99259         * lib/unictype/pr_numeric.h: Likewise.
99260         * lib/unictype/pr_other_alphabetic.h: Likewise.
99261         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99262         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99263         * lib/unictype/pr_other_id_continue.h: Likewise.
99264         * lib/unictype/pr_other_id_start.h: Likewise.
99265         * lib/unictype/pr_other_lowercase.h: Likewise.
99266         * lib/unictype/pr_other_math.h: Likewise.
99267         * lib/unictype/pr_other_uppercase.h: Likewise.
99268         * lib/unictype/pr_paired_punctuation.h: Likewise.
99269         * lib/unictype/pr_paragraph_separator.h: Likewise.
99270         * lib/unictype/pr_pattern_syntax.h: Likewise.
99271         * lib/unictype/pr_pattern_white_space.h: Likewise.
99272         * lib/unictype/pr_private_use.h: Likewise.
99273         * lib/unictype/pr_punctuation.h: Likewise.
99274         * lib/unictype/pr_quotation_mark.h: Likewise.
99275         * lib/unictype/pr_radical.h: Likewise.
99276         * lib/unictype/pr_sentence_terminal.h: Likewise.
99277         * lib/unictype/pr_soft_dotted.h: Likewise.
99278         * lib/unictype/pr_space.h: Likewise.
99279         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99280         * lib/unictype/pr_titlecase.h: Likewise.
99281         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99282         * lib/unictype/pr_unified_ideograph.h: Likewise.
99283         * lib/unictype/pr_uppercase.h: Likewise.
99284         * lib/unictype/pr_variation_selector.h: Likewise.
99285         * lib/unictype/pr_white_space.h: Likewise.
99286         * lib/unictype/pr_xid_continue.h: Likewise.
99287         * lib/unictype/pr_xid_start.h: Likewise.
99288         * lib/unictype/pr_zero_width.h: Likewise.
99289         * lib/unictype/scripts.h: Likewise.
99290         * lib/unictype/scripts_byname.gperf: Likewise.
99291         * lib/unictype/sy_c_ident.h: Likewise.
99292         * lib/unictype/sy_c_whitespace.h: Likewise.
99293         * lib/unictype/sy_java_ident.h: Likewise.
99294         * lib/unictype/sy_java_whitespace.h: Likewise.
99296         * lib/unictype/Makefile: New file.
99297         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99298         glibc.
99299         * lib/unictype/3level.h: New file, copied from glibc.
99300         * lib/unictype/3levelbit.h: New file.
99302 2007-11-11  Bruno Haible  <bruno@clisp.org>
99304         * modules/gperf: New file.
99305         * modules/iconv_open (Depends-on): Add it.
99306         (Makefile.am): Remove the GPERF definition.
99308 2007-11-11  Bruno Haible  <bruno@clisp.org>
99310         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99311         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99313 2007-11-11  Bruno Haible  <bruno@clisp.org>
99315         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99316         (usage): Remove function.
99318 2007-11-11  Bruno Haible  <bruno@clisp.org>
99320         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99321         gl_FUNC_CEILF_LIBS.
99322         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99323         gl_FUNC_CEIL_LIBS.
99324         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99325         gl_FUNC_CEILL_LIBS.
99326         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99327         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99328         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99330 2007-11-11  Bruno Haible  <bruno@clisp.org>
99332         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99333         roundf were declared but do not exist on functions.
99334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99335         roundl were declared but do not exist on functions.
99336         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99337         HAVE_FLOORL_AND_CEILL, respectively.
99338         Needed for Sun C on Solaris 10.
99340 2007-11-11  Bruno Haible  <bruno@clisp.org>
99342         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99343         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99344         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99345         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99346         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99347         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99348         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99349         HAVE_DECL_ROUNDF.
99350         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99351         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99353         of HAVE_DECL_ROUND*.
99354         * modules/math (Makefile.am): Update.
99356 2007-11-10  Bruno Haible  <bruno@clisp.org>
99358         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99359         ptrdiff_t as m4/intl.m4.
99361 2007-11-10  Jim Meyering  <meyering@redhat.com>
99363         Avoid link failure for the argmatch test.
99364         * tests/test-argmatch.c (usage): Define function to avoid a link
99365         failure: argmatch_die requires a usage function.
99367 2007-11-09  Bruno Haible  <bruno@clisp.org>
99369         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99370         * doc/functions/vsnprintf.texi: Likewise.
99371         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99372         with a size argument < 2.
99374 2007-11-09  Bruno Haible  <bruno@clisp.org>
99376         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99377         buffer. Fixes an inefficiency introduced on 2007-11-03.
99379 2007-11-09  Bruno Haible  <bruno@clisp.org>
99381         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99382         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99384 2007-11-08  Jim Meyering  <meyering@redhat.com>
99386         Change cache variable name prefix "jm_" to "gl_" everywhere.
99387         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99388         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99389         * m4/uptime.m4: s/gl_/jm_/
99391 2007-11-07  Bruno Haible  <bruno@clisp.org>
99393         Update to GNU gettext 0.17.
99394         * m4/intl.m4: Update to GNU gettext 0.17.
99395         * m4/po.m4: Likewise.
99396         * modules/gettext (Files): Remove m4/ulonglong.m4.
99397         (configure.ac): Require gettext infrastructure from version 0.17.
99399 2007-11-06  Bruno Haible  <bruno@clisp.org>
99401         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99402         symbolic values are not defined in a public header.
99403         * lib/freadable.c (freadable) [QNX]: Likewise.
99404         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99405         * lib/freading.c (freading) [QNX]: Likewise.
99406         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99407         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99408         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99409         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99410         Reported by Alain Magloire.
99412         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99414 2007-11-05  Bruno Haible  <bruno@clisp.org>
99416         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99417         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99418         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99419         Reported by Eric Blake.
99421 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99422             Bruno Haible  <bruno@clisp.org>
99424         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99425         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99426         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99427         (malloc): Undefine also before including <stdlib.h>.
99428         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99429         Needed on OSF/1 4.0.
99431 2007-11-05  Jim Meyering  <meyering@redhat.com>
99433         git-version-gen: sync from coreutils.
99434         * build-aux/git-version-gen: Add comments.
99435         Change the first '-' to '.' in the snapshot version string,
99436         e.g., 6.9-377-08144 -> 6.9.377-08144
99437         Remove first parameter.
99438         Don't declare a version "-dirty" merely because a time
99439         stamp has changed.
99441 2007-11-04  Bruno Haible  <bruno@clisp.org>
99443         * lib/lock.h: Protect all macro definitions containing an 'if'
99444         statement through a "do { ... } while (0)".
99445         * lib/tls.h: Likewise.
99447 2007-11-04  Bruno Haible  <bruno@clisp.org>
99449         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99451 2007-11-04  Bruno Haible  <bruno@clisp.org>
99453         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99454         * modules/fprintf-posix (Depends-on): Add nocrash.
99455         * modules/snprintf-posix (Depends-on): Likewise.
99456         * modules/sprintf-posix (Depends-on): Likewise.
99457         * modules/vasnprintf-posix (Depends-on): Likewise.
99458         * modules/vasprintf-posix (Depends-on): Likewise.
99459         * modules/vfprintf-posix (Depends-on): Likewise.
99460         * modules/vsnprintf-posix (Depends-on): Likewise.
99461         * modules/vsprintf-posix (Depends-on): Likewise.
99462         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99463         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99464         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99465         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99466         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99467         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99468         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99470 2007-11-04  Bruno Haible  <bruno@clisp.org>
99472         * modules/nocrash: New file.
99473         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99474         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99476 2007-11-04  Bruno Haible  <bruno@clisp.org>
99478         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99479         precision handling.
99480         * tests/test-vasprintf-posix.c (test_function): Likewise.
99481         * tests/test-snprintf-posix.h (test_function): Likewise.
99482         * tests/test-sprintf-posix.h (test_function): Likewise.
99484         Fix *printf behaviour for large precisions on mingw and BeOS.
99485         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99486         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99488         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99490         gl_PRINTF_PRECISION and test its result. Invoke
99491         gl_PREREQ_VASNPRINTF_PRECISION.
99492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99499         * doc/functions/fprintf.texi: Update.
99500         * doc/functions/printf.texi: Update.
99501         * doc/functions/snprintf.texi: Update.
99502         * doc/functions/sprintf.texi: Update.
99503         * doc/functions/vfprintf.texi: Update.
99504         * doc/functions/vprintf.texi: Update.
99505         * doc/functions/vsnprintf.texi: Update.
99506         * doc/functions/vsprintf.texi: Update.
99508 2007-11-04  Bruno Haible  <bruno@clisp.org>
99510         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99512 2007-11-04  Bruno Haible  <bruno@clisp.org>
99514         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99515         Reported by Sylvain Beucler <beuc@gnu.org>.
99517 2007-11-03  Bruno Haible  <bruno@clisp.org>
99519         * tests/test-fprintf-posix2.sh: New file.
99520         * tests/test-fprintf-posix2.c: New file.
99521         * modules/fprintf-posix-tests (Files): Add them.
99522         (TESTS): Add test-fprintf-posix2.sh.
99523         (configure.ac): Check for getrlimit and setrlimit.
99524         (check_PROGRAMS): Add test-fprintf-posix2.
99526         * tests/test-printf-posix2.sh: New file.
99527         * tests/test-printf-posix2.c: New file.
99528         * modules/printf-posix-tests (Files): Add them.
99529         (TESTS): Add test-printf-posix2.sh.
99530         (configure.ac): Check for getrlimit and setrlimit.
99531         (check_PROGRAMS): Add test-printf-posix2.
99533         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99534         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99535         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99536         (decode_double): New function, copied from decode_long_double.
99537         (scale10_round_decimal_decoded): New function, extracted from
99538         scale10_round_decimal_long_double.
99539         (scale10_round_decimal_long_double): Use it.
99540         (scale10_round_decimal_double): New function.
99541         (floorlog10): New function.
99542         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99544         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99546         gl_PRINTF_ENOMEM and test its result. Invoke
99547         gl_PREREQ_VASNPRINTF_ENOMEM.
99548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99555         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99556         * modules/snprintf-posix (Depends-on): Likewise.
99557         * modules/sprintf-posix (Depends-on): Likewise.
99558         * modules/vasnprintf-posix (Depends-on): Likewise.
99559         * modules/vasprintf-posix (Depends-on): Likewise.
99560         * modules/vfprintf-posix (Depends-on): Likewise.
99561         * modules/vsnprintf-posix (Depends-on): Likewise.
99562         * modules/vsprintf-posix (Depends-on): Likewise.
99563         * doc/functions/fprintf.texi: Update.
99564         * doc/functions/printf.texi: Update.
99565         * doc/functions/snprintf.texi: Update.
99566         * doc/functions/sprintf.texi: Update.
99567         * doc/functions/vfprintf.texi: Update.
99568         * doc/functions/vprintf.texi: Update.
99569         * doc/functions/vsnprintf.texi: Update.
99570         * doc/functions/vsprintf.texi: Update.
99572 2007-11-03  Bruno Haible  <bruno@clisp.org>
99574         * modules/frexp-nolibm-tests: New file.
99576         * modules/frexp-nolibm: New file.
99577         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99579 2007-11-03  Bruno Haible  <bruno@clisp.org>
99581         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99582         value is C99 compliant.
99583         Needed for OSF/1 5.1.
99585 2007-11-03  Bruno Haible  <bruno@clisp.org>
99587         Fix out-of-memory handling of vasnprintf.
99588         * lib/printf-parse.c: Include <errno.h>.
99589         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99590         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99591         is already set.
99593 2007-11-02  Eric Blake  <ebb9@byu.net>
99595         Fix tests on cygwin.
99596         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99598 2007-11-01  Bruno Haible  <bruno@clisp.org>
99600         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99601         warning.
99602         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99603         needed for POSIX compatibility.
99605 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99607         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99608         for compatibility with GNU.
99610 2007-11-01  Bruno Haible  <bruno@clisp.org>
99612         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99613         (putenv): Renamed from rpl_putenv. Change argument type from
99614         'const char *' to 'char *'.
99615         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99616         of defining putenv in config.h, just set REPLACE_PUTENV.
99617         * modules/putenv (Depends-on): Add stdlib.
99618         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99619         (Include): Use <stdlib.h>.
99620         * lib/stdlib.in.h (putenv): New declaration.
99621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99622         REPLACE_PUTENV.
99623         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99624         REPLACE_PUTENV.
99625         Needed for MacOS X 10.5.0.
99626         Reported by Peter O'Gorman <peter@pogma.com>.
99628 2007-11-01  Jim Meyering  <meyering@redhat.com>
99630         Treat an empty date string exactly like "0".
99631         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99632         if the remaining date string (to be parsed) is empty, use "0".
99633         Reported by Mischa Molhoek and discussed in this thread:
99634         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99636 2007-10-31  Bruno Haible  <bruno@clisp.org>
99638         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99639         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99640         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99641         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99642         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99643         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99645 2007-10-31  Bruno Haible  <bruno@clisp.org>
99647         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99648         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99649         (AC_TYPE_LONG_LONG_INT): Use it.
99650         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99651         it as well.
99652         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99653         to m4/longlong.m4.
99654         * modules/stdint (Files): Remove m4/ulonglong.m4.
99655         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99656         m4/ulonglong.m4.
99657         * modules/strtoumax (Files): Likewise.
99659 2007-10-30  Bruno Haible  <bruno@clisp.org>
99661         * modules/xvasprintf-posix: New file.
99662         Suggested by Eric Blake.
99664 2007-10-30  Bruno Haible  <bruno@clisp.org>
99666         * modules/xprintf-posix-tests: New file.
99667         * tests/test-xprintf-posix.sh: New file.
99668         * tests/test-xprintf-posix.c: New file.
99669         * tests/test-xfprintf-posix.c: New file.
99671         * modules/xprintf-posix: New file.
99673 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99675         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99676         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99677         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99679 2007-10-29  Bruno Haible  <bruno@clisp.org>
99681         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99682         contain the special marker '_cv_'.
99683         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99684         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99685         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99686         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99687         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99688         Reported by Ralf Wildenhues.
99690 2007-10-29  Bruno Haible  <bruno@clisp.org>
99692         * gnulib-tool (func_import): When --lgpl is not specified, set
99693         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99694         GPLv3.
99695         Reported by Simon Josefsson.
99697 2007-10-28  Bruno Haible  <bruno@clisp.org>
99699         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99700         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99701         HAVE_DECL_ISFINITE.
99702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99703         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99704         HAVE_DECL_ISFINITE.
99706 2007-10-28  Bruno Haible  <bruno@clisp.org>
99708         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99709         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99711 2007-10-28  Bruno Haible  <bruno@clisp.org>
99713         Fix link errors with Sun C 5.0 on Solaris 10.
99714         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99715         function is declared but not present in the compiler's libm.
99716         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99717         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99718         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99719         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99720         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99721         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99722         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99724         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99725         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99726         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99727         HAVE_DECL_FLOORL.
99729 2007-10-28  Bruno Haible  <bruno@clisp.org>
99731         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99732         gl_FUNC_FLOORL. Cache the result.
99733         (gl_FUNC_FLOORL): Use it.
99734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99735         gl_FUNC_CEILL. Cache the result.
99736         (gl_FUNC_CEILL): Use it.
99738         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99739         gl_FUNC_FLOOR. Cache the result.
99740         (gl_FUNC_FLOOR): Use it.
99741         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99742         gl_FUNC_CEIL. Cache the result.
99743         (gl_FUNC_CEIL): Use it.
99745         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99746         gl_FUNC_FLOORF. Cache the result.
99747         (gl_FUNC_FLOORF): Use it.
99748         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99749         gl_FUNC_CEILF. Cache the result.
99750         (gl_FUNC_CEILF): Use it.
99752 2007-10-28  Bruno Haible  <bruno@clisp.org>
99754         * gnulib-tool: Allow specifying the LGPL version number through
99755         --lgpl=2 or --lgpl=3.
99756         (func_usage): Document --lgpl with argument.
99757         Handle --lgpl=... arguments.
99758         (func_import): Recognize also gl_LGPL calls with an argument. When
99759         --lgpl=2 is used and the module's license is just LGPL, report an
99760         error. Set sed_transform_lib_file according to the lgpl variable. In
99761         the generated files, use --lgpl or gl_LGPL invocations with argument,
99762         if necessary.
99763         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99764         an LGPv2+ license.
99765         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99766         gl_LGPL macro.
99768 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99769             Bruno Haible  <bruno@clisp.org>
99771         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99772         (u16_uctomb_aux): Likewise.
99773         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99774         !HAVE_INLINE.
99775         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99777 2007-10-28  Bruno Haible  <bruno@clisp.org>
99779         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99780         Invoke AM_GETTEXT_OPTION if it exists.
99781         * modules/vasprintf: Likewise.
99782         * modules/verror: Likewise.
99783         * modules/xprintf: Likewise.
99784         * modules/xvasprintf: Likewise.
99786 2007-10-27  Ben Pfaff  <blp@gnu.org>
99788         * lib/math.in.h: Define isfinite macro and prototypes for
99789         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99790         implementations.
99791         * m4/math_h.m4: New substitutions for isfinite module.
99792         * lib/isfinite.c: New file.
99793         * m4/isfinite.m4: New file.
99794         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99795         * modules/isfinite: New file.
99796         * modules/isfinite-tests: New file.
99797         * tests/tests-isfinite.c: New file.
99798         * doc/functions/isfinite.texi: Mention isfinite module.
99799         * MODULES.html.sh: Mention new module.
99801 2007-10-27  Ben Pfaff  <blp@gnu.org>
99803         Ralf Wildenhues reported that Tru64 4.0D declares the round
99804         functions but does not have definitions.
99805         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99806         cannot be found in any library, set the output variable to
99807         "missing" instead of "".
99808         * m4/round.m4: Also use our substitute if we cannot find round in
99809         any library, even if it is declared.
99810         * m4/roundf.m4: Likewise for roundf.
99811         * m4/roundl.m4: Likewise for roundl.
99812         * lib/math.in.h: Undefine roundf, round, roundl before defining
99813         their replacements, to allow for hypothetical systems where these
99814         may be defined as macros but not available in libraries.
99816 2007-10-27  Bruno Haible  <bruno@clisp.org>
99818         * doc/gnulib.texi: Invoke @firstparagraphindent.
99819         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99820         changes in gnulib.
99821         (Source changes): New section.
99823 2007-10-26  Bruno Haible  <bruno@clisp.org>
99825         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99826         borrowed from autoconf.
99828 2007-10-26  Bruno Haible  <bruno@clisp.org>
99830         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99831         strerror returned the empty string. Needed on HP-UX 11.00.
99833 2007-10-24  Micah Cowan  <micah@cowan.name>
99835         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99836         * build-aux/bootstrap: Remove support for now-unnecessary option,
99837         --cvs-user, and envvars CVS_USER, CVS_RSH.
99839 2007-10-24  Jim Meyering  <meyering@redhat.com>
99841         Avoid diagnostics from sha1sum when there is no cached checksum.
99842         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99843         if the po.s1 file hasn't been created yet.
99845         * build-aux/bootstrap: Sync from coreutils:
99846         2007-10-24  Jim Meyering  <meyering@redhat.com>
99847         Get gnulib from the git repository, not from an obsolete cvs one.
99848         * build-aux/bootstrap: Suggestion from Micah Cowan.
99849         2007-10-04  Jim Meyering  <jim@meyering.net>
99850         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99851         (update_po_files): Work also when there are no .po files in po/.
99853 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99855         * README: Append ".git" to git and cg examples.
99856         Problem reported by Benoit Sigoure.
99858 2007-10-23  Micah Cowan  <micah@cowan.name>
99860         * users.txt: Add wget.
99862 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99864         Fix linking of some unistdio tests on FreeBSD.
99865         * modules/unistdio/u16-vsnprintf-tests
99866         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99867         * modules/unistdio/u16-vsprintf-tests
99868         (test_u16_vsnprintf1_LDADD): Likewise.
99869         * modules/unistdio/u32-vsnprintf-tests
99870         (test_u32_vsnprintf1_LDADD): Likewise.
99871         * modules/unistdio/u32-vsprintf-tests
99872         (test_u32_vsprintf1_LDADD): Likewise.
99873         * modules/unistdio/u8-vsnprintf-tests
99874         (test_u8_vsnprintf1_LDADD): Likewise.
99875         * modules/unistdio/u8-vsprintf-tests
99876         (test_u8_vsprintf1_LDADD): Likewise.
99877         * modules/unistdio/ulc-vsnprintf-tests
99878         (test_ulc_vsnprintf1_LDADD): Likewise.
99879         * modules/unistdio/ulc-vsprintf-tests
99880         (test_ulc_vsprintf1_LDADD): Likewise.
99882         Fix linking of some uniconv tests on FreeBSD.
99883         * modules/uniconv/u16-conv-from-enc-tests
99884         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99885         * modules/uniconv/u16-conv-to-enc-tests
99886         (test_u16_conv_to_enc_LDADD): Likewise.
99887         * modules/uniconv/u16-strconv-from-enc-tests
99888         (test_u16_strconv_from_enc_LDADD): Likewise.
99889         * modules/uniconv/u16-strconv-to-enc-tests
99890         (test_u16_strconv_to_enc_LDADD): Likewise.
99891         * modules/uniconv/u32-conv-from-enc-tests
99892         (test_u32_conv_from_enc_LDADD): Likewise.
99893         * modules/uniconv/u32-conv-to-enc-tests
99894         (test_u32_conv_to_enc_LDADD): Likewise.
99895         * modules/uniconv/u32-strconv-from-enc-tests
99896         (test_u32_strconv_from_enc_LDADD): Likewise.
99897         * modules/uniconv/u32-strconv-to-enc-tests
99898         (test_u32_strconv_to_enc_LDADD): Likewise.
99899         * modules/uniconv/u8-conv-from-enc-tests
99900         (test_u8_conv_from_enc_LDADD): Likewise.
99901         * modules/uniconv/u8-conv-to-enc-tests
99902         (test_u8_conv_to_enc_LDADD): Likewise.
99903         * modules/uniconv/u8-strconv-from-enc-tests
99904         (test_u8_strconv_from_enc_LDADD): Likewise.
99905         * modules/uniconv/u8-strconv-to-enc-tests
99906         (test_u8_strconv_to_enc_LDADD): Likewise.
99908 2007-10-22  Bruno Haible  <bruno@clisp.org>
99910         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99911         size.
99913 2007-10-22  Eric Blake  <ebb9@byu.net>
99915         Tweak x*printf documentation.
99916         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99917         variable name and comments.
99918         Suggested by Bruno Haible.
99920 2007-10-22  Bruno Haible  <bruno@clisp.org>
99922         * lib/acl.c (copy_acl): Fix file name in comment.
99924 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99926         Fix Tru64 problem with stdbool.h.
99927         * lib/stdbool.in.h (false, true):
99928         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99929         Don't declare as an enum in this situation; it runs afoul of Tru64.
99930         Problem reported by Steven M. Schweda in
99931         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99933 2007-10-22  Eric Blake  <ebb9@byu.net>
99935         Also wrap vf?printf.
99936         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99937         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99938         (xvprintf, xvfprintf): New functions.
99940 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99942         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99943         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99945         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99946         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99948 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99950         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99951         by Bruno Haible.
99953 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99955         * lib/getloadavg.c
99956         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99957         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99959         * tests/test-i-ring.c: Work for C89.
99961 2007-10-22  Bruno Haible  <bruno@clisp.org>
99963         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99964         -1u, in preprocessor expression, so that we don't test for the bug
99965         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99966         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99968 2007-10-22  Eric Blake  <ebb9@byu.net>
99970         * tests/test-yesno.sh: Silence stderr during test.
99972 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99974         * modules/crypto/gc-camellia: New file.
99976         * m4/gc-camellia.m4: New file.
99978         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99980         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99982 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99984         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99985         --help to stdout.  Reported by sms@antinode.org (Steven
99986         M. Schweda).
99988 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99990         * users.txt: Fix link to libksba.
99992 2007-10-21  Ben Pfaff  <blp@gnu.org>
99994         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99995         round.c roundf implementation that depends on floorf and ceilf to
99996         be tested unconditionally.
99998 2007-10-21  Ben Pfaff  <blp@gnu.org>
100000         * m4/check-libm-func.m4: Removed.
100001         * m4/check-math-lib.m4: New file.
100002         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100003         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100004         definition and lack of AC_LIBOBJ([roundf]).
100005         * m4/roundl.m4: Ditto, and similarly for roundl.
100006         * modules/round: Reference new m4 file.
100007         * modules/roundf: Ditto.
100008         * modules/roundl: Ditto.
100009         * tests/test-round2.c (main): Use ROUND instead of round.
100010         Bug report from Bruno Haible.
100012 2007-10-21  Bruno Haible  <bruno@clisp.org>
100014         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100015         context.
100017 2007-10-21  Bruno Haible  <bruno@clisp.org>
100019         * tests/test-wcwidth.c (main): Allow negative result for some control
100020         characters.
100022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100023         Needed on OSF/1 5.1.
100025 2007-10-21  Bruno Haible  <bruno@clisp.org>
100027         * tests/test-floorf1.c: Include isnanf.h.
100028         (main): Use isnanf() instead of isnan().
100029         * tests/test-ceilf1.c: Include isnanf.h.
100030         (main): Use isnanf() instead of isnan().
100031         * tests/test-truncf1.c: Include isnanf.h.
100032         (main): Use isnanf() instead of isnan().
100033         * tests/test-roundf1.c: Include isnanf.h.
100034         (main): Use isnanf() instead of isnan().
100036 2007-10-21  Eric Blake  <ebb9@byu.net>
100038         * users.txt: Update URL for m4.
100040 2007-10-21  Bruno Haible  <bruno@clisp.org>
100042         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100044 2007-10-21  Bruno Haible  <bruno@clisp.org>
100046         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100047         Git's management files if the CVS files are not present.
100049 2007-10-20  Bruno Haible  <bruno@clisp.org>
100051         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100052         gcc-3.4.x.
100054 2007-10-20  Ben Pfaff  <blp@gnu.org>
100056         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100057         implementations.
100058         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100059         * lib/round.c: New file.
100060         * lib/roundf.c: New file.
100061         * lib/roundl.c: New file.
100062         * m4/round.m4: New file.
100063         * m4/roundf.m4: New file.
100064         * m4/roundl.m4: New file.
100065         * m4/check-libm-func-m4: New file.
100066         * modules/math: Replace round, roundf, roundl related @VARS@ in
100067         math.in.h.
100068         * modules/round: New file.
100069         * modules/round-tests: New file.
100070         * modules/roundf: New file.
100071         * modules/roundf-tests: New file.
100072         * modules/roundl: New file.
100073         * modules/roundl-tests: New file.
100074         * tests/test-round1.c: New file.
100075         * tests/test-round2.c: New file.
100076         * tests/test-roundf1.c: New file.
100077         * tests/test-roundf2.c: New file.
100078         * tests/test-roundl.c: New file.
100079         * doc/functions/round.texi: Mention round module.
100080         * doc/functions/roundf.texi: Mention roundf module.
100081         * doc/functions/roundl.texi: Mention roundl module.
100082         * MODULES.html.sh: Mention new modules.
100083         Thanks to Bruno Haible for suggestions.
100085 2007-10-20  Jim Meyering  <meyering@redhat.com>
100087         * lib/xprintf.c: Include <config.h> unconditionally.
100089         Change xprintf's license to GPL.
100090         * modules/xprintf (License): s/LGPL/GPL/, since this module
100091         depends on modules (exit and exitfail) which are GPL.
100092         Suggestion from Bruno Haible.
100094         xprintf fixes.
100095         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100096         Use a clearer diagnostic.
100097         Patch from Bruno Haible.
100099 2007-10-20  Bruno Haible  <bruno@clisp.org>
100101         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100102         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100105 2007-10-20  Bruno Haible  <bruno@clisp.org>
100107         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100108         precision in the comparison result > x - 1 or similar.
100109         * tests/test-ceilf2.c (correct_result_p): Likewise.
100110         * tests/test-truncf2.c (correct_result_p): Likewise.
100111         * tests/test-trunc2.c (correct_result_p): Likewise.
100112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100114 2007-10-20  Bruno Haible  <bruno@clisp.org>
100116         * modules/ceil: New file.
100117         * m4/ceil.m4: New file.
100118         * doc/functions/ceil.texi: Mention the 'ceil' module.
100120 2007-10-20  Bruno Haible  <bruno@clisp.org>
100122         * modules/floor: New file.
100123         * m4/floor.m4: New file.
100124         * doc/functions/floor.texi: Mention the 'floor' module.
100126 2007-10-20  Bruno Haible  <bruno@clisp.org>
100128         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100129         of %a.
100130         * modules/floorf-tests (Depends-on): Likewise.
100131         * modules/truncf-tests (Depends-on): Likewise.
100132         * modules/trunc-tests (Depends-on): Likewise.
100133         Reported by Ben Pfaff.
100135 2007-10-19  Jim Meyering  <meyering@redhat.com>
100137         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100138         Don't bother testing specific errno values.  Just test ferror.
100140         New module: xprintf
100141         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100143 2007-10-19  Bruno Haible  <bruno@clisp.org>
100145         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100146         syntax.
100147         * modules/javaexec (Makefile.am): Likewise.
100148         * modules/relocatable-prog (Makefile.am): Likewise.
100149         Suggested by Jim Meyering.
100151 2007-10-18  Bruno Haible  <bruno@clisp.org>
100153         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100154         Reported by Jim Meyering.
100156 2007-10-18  Eric Blake  <ebb9@byu.net>
100158         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100160 2007-10-18  Bruno Haible  <bruno@clisp.org>
100162         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100163         the format string into writable memory. Needed in Fortify conditions.
100165 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100166             Bruno Haible  <bruno@clisp.org>
100168         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100169         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100170         * modules/trim (Depends-on): Add mbchar.
100171         (configure.ac): Add gl_FUNC_MBRTOWC.
100172         (Makefile.am): Augment lib_SOURCES.
100174 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100176         Modify glob.c to use fstatat and dirfd, to simplify it.
100177         Suggested by Eric Blake.
100178         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100179         Don't include <stdbool.h>; not used.
100180         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100181         (link_exists_p): Simplify implementation, since we can now assume
100182         dirfd and fstatat.
100183         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100185 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100187         * gnulib-tool (func_get_dependencies): Fix sed script to
100188         match only tests.
100190 2007-10-17  Bruno Haible  <bruno@clisp.org>
100192         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100193         allow locale names without encoding suffix.
100194         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100195         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100197 2007-10-16  Bruno Haible  <bruno@clisp.org>
100199         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100200         * lib/getgroups.c (getgroups): Likewise.
100201         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100203 2007-10-16  Bruno Haible  <bruno@clisp.org>
100205         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100206         * modules/malloc-posix (License): Likewise.
100207         * modules/realloc-posix (License): Likewise.
100208         * modules/calloc-posix (License): Likewise.
100209         * modules/intprops (License): Change from GPL to LGPL, with
100210         Paul Eggert's approval.
100212 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100214         Merge glibc changes into lib/glob.c.
100216         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100217         2007-10-15 04:59:03 UTC.  Here are the changes:
100219         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100221         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100223         * lib/glob.c: Add some branch prediction throughout.
100225         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100227         [BZ #5103]
100228         * lib/glob.c (glob): Recognize patterns starting \/.
100230         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100232         [BZ #3996]
100233         * lib/glob.c (attribute_hidden): Define if not defined.
100234         (glob): Unescape dirname, filename or username when needed and not
100235         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100236         is NULL.  Handle unescaped [ in pattern without closing ].
100237         Don't pass GLOB_CHECK down to recursive glob for directories.
100238         (__glob_pattern_type): New function.
100239         (__glob_pattern_p): Implement using __glob_pattern_type.
100240         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100241         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100242         Remove unreachable code.
100244         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100246         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100247         explain why there are no leaks.
100249         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100251         [BZ #3253]
100252         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100253         time, rather allocate increasingly bigger arrays of pointers, if
100254         possible with alloca, if too large with malloc.
100256 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100258         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100259         Problem reported by H.Merijn Brand in
100260         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100261         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100262         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100264 2007-10-15  Bruno Haible  <bruno@clisp.org>
100266         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100267         with explicit rpl_ prefix.
100268         * lib/fopen.c (fopen): Likewise.
100269         * lib/freopen.c (freopen): Likewise.
100270         * lib/iconv.c (iconv): Likewise.
100271         * lib/iconv_close.c (iconv_close): Likewise.
100273 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100275         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100277 2007-10-15  Bruno Haible  <bruno@clisp.org>
100279         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100280         <stddef.h> instead of <stdlib.h> since we only need NULL.
100281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100283 2007-10-15  Bruno Haible  <bruno@clisp.org>
100285         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100286         Replace paragraph talking about LIBOBJS.
100287         Reported by Colin Watson <cjwatson@debian.org>.
100289 2007-10-15  Bruno Haible  <bruno@clisp.org>
100291         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100292         <stdlib.h> before using NULL.
100294 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100296         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100297         Reported by Albert Chin <china@thewrittenword.com>.
100299 2007-10-14  Bruno Haible  <bruno@clisp.org>
100301         * modules/iconv_open-utf-tests: New file.
100302         * tests/test-iconv-utf.c: New file.
100304         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100305         * modules/iconv_open-utf: New file.
100306         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100307         (iconv, iconv_close): New declarations.
100308         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100309         be defined.
100310         (iconv_open): Add special handling of conversion between UTF-8 and
100311         UTF-{16,32}{BE,LE}.
100312         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100313         * lib/iconv_close.c: New file.
100314         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100315         gl_FUNC_ICONV_OPEN.
100316         (gl_FUNC_ICONV_OPEN): Use it.
100317         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100318         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100319         and REPLACE_ICONV_UTF.
100320         * modules/iconv_open (Depends-on): Add c-strcase.
100321         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100322         ICONV_CONST.
100323         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100325 2007-10-13  Albert Chin  <china@thewrittenword.com>
100326             Bruno Haible  <bruno@clisp.org>
100328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100329         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100331 2007-10-13  Bruno Haible  <bruno@clisp.org>
100333         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100334         defined, use the ISO C99 inline semantics.
100335         * lib/argp.h (ARGP_EI): Likewise.
100337 2007-10-13  Bruno Haible  <bruno@clisp.org>
100339         Handle 'inline' change in gcc 4.3.0.
100340         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100341         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100342         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100343         argp_fmtstream_point): Disable 'extern' declaration if the function
100344         definition is going to be provided inline.
100345         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100346         semantics, not the ISO C99 inline semantics.
100347         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100348         'extern' declaration if the function definition is going to be provided
100349         inline.
100350         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100351         the GNU C inline semantics, not the ISO C99 inline semantics. With
100352         GCC 4.2, avoid a warning.
100354 2007-10-13  Bruno Haible  <bruno@clisp.org>
100356         * lib/freading.h (freading): Enable the use of __freading for
100357         glibc >= 2.7.
100358         * lib/freading.c (freading): Likewise.
100360 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100362         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100363         "warning: C99 inline functions are not supported; using GNU89".
100365 2007-10-12  Bruno Haible  <bruno@clisp.org>
100367         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100368         of 2.
100369         * tests/test-ceilf2.c: New file.
100370         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100372         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100373         * modules/ceilf-tests: Update.
100375 2007-10-12  Bruno Haible  <bruno@clisp.org>
100377         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100378         of 2.
100379         * tests/test-floorf2.c: New file.
100380         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100382         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100383         * modules/floorf-tests: Update.
100385 2007-10-12  Bruno Haible  <bruno@clisp.org>
100387         * tests/test-trunc2.c: New file.
100388         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100390         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100391         * modules/trunc-tests: Update.
100393 2007-10-12  Bruno Haible  <bruno@clisp.org>
100395         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100396         of 2.
100397         * tests/test-truncf2.c: New file.
100398         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100400         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100401         * modules/truncf-tests: Update.
100403 2007-10-11  Eric Blake  <ebb9@byu.net>
100405         Don't claim strerror is broken on Interix.
100406         * doc/functions/strerror.texi (strerror): Known broken systems are
100407         now Solaris 8, and not Interix.
100408         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100409         Interix on cross-compile.
100410         Reported by Martin Koeppe in
100411         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100413 2007-10-11  Bruno Haible  <bruno@clisp.org>
100415         * modules/i-ring-tests: New file.
100416         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100417         instead of assert.
100419 2007-10-11  Bruno Haible  <bruno@clisp.org>
100421         * modules/filenamecat-tests: New file.
100422         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100423         * lib/filenamecat.c: Remove test code.
100425 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100427         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100429         * lib/strerror.c: Include <string.h> always, to test interface,
100430         and to remove the need for the dummy.
100431         Include intprops.h to compute width instead of doing it ourselves
100432         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100433         (strerror): Define it to return NULL if there's no system strerror.
100434         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100435         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100436         ancient pre-strerror Unix systems well any more.  Saying "unknown
100437         system error" is enough.
100438         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100439         simpler strerror.c implementation.
100440         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100441         Simplify the tests to reflect the simpler strerror implementation.
100442         * modules/strerror (Depends-on): Add intprops.
100444 2007-10-09  Eric Blake  <ebb9@byu.net>
100446         Silence test-fpending.
100447         * modules/fpending-tests (Files): Add wrapper script.
100448         * tests/test-fpending.sh: New file.
100450 2007-10-09  Bruno Haible  <bruno@clisp.org>
100452         * MODULES.html.sh (func_module): Don't create a hyperlink for
100453         function names like 'printf_frexp'.
100454         (Misc): Add crc, memxor.
100455         (Characteristics of floating types): New section.
100456         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100457         isnanf-nolibm, signbit, trunc, truncf, truncl.
100458         (Enhancements for ISO C 99 functions): New subsection Input/output.
100459         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100460         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100461         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100462         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100463         (Enhancements for POSIX:2001 functions): Add chdir-long.
100464         (File system functions): Add areadlink, chdir-safer, read-file.
100465         Remove cycle-check.
100466         (File system as inode set): New section.
100467         (Date and time): Add gethrxtime.
100468         (Multithreading): Add openmp.
100469         (Internationalization functions): Add localename.
100470         (Unicode string functions): Add unistr/u*-mbsnlen.
100471         (Support for maintaining and releasing projects): Add git-version-gen.
100472         (Lone files): Remove directories.
100474 2007-10-08  Ben Pfaff  <blp@gnu.org>
100476         * lib/xmalloca.h: Fix typo in comment.
100478 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100480         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100481         when avoiding problems with integer overflow.  Use a portable test
100482         instead.
100484 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100486         * modules/dummy (License): Change to LGPLv2+.
100487         * modules/float (License): Likewise
100488         * modules/realloc (License): Likewise
100489         * modules/stdlib (License): Likewise
100491 2007-10-07  Bruno Haible  <bruno@clisp.org>
100493         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100494         * floor.c (TWO_MANT_DIG): Likewise.
100495         * ceil.c (TWO_MANT_DIG): Likewise.
100496         Reported by Ben Pfaff.
100498 2007-10-07  Bruno Haible  <bruno@clisp.org>
100500         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100501         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100502         * lib/frexp.c (FUNC): Likewise.
100503         * lib/printf-frexp.h (printf_frexp): Likewise.
100504         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100505         * lib/printf-frexp.c (FUNC): Likewise.
100506         Suggested by Jim Meyering.
100508 2007-10-07  Jim Meyering  <meyering@redhat.com>
100510         Make xnanosleep's integer overflow test more robust.
100511         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100512         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100514 2007-10-07  Bruno Haible  <bruno@clisp.org>
100516         * NEWS: Mention the license change.
100518         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100519         abbreviations in the modules files.
100521         Change copyright notice from GPLv2+ to GPLv3+.
100522         * README: Change copyright notice.
100523         * MODULES.html.sh: Likewise.
100524         * build-aux/bootstrap.conf: Likewise.
100525         * build-aux/config.libpath: Likewise.
100526         * build-aux/csharpcomp.sh.in: Likewise.
100527         * build-aux/csharpexec.sh.in: Likewise.
100528         * build-aux/install-reloc: Likewise.
100529         * build-aux/javacomp.sh.in: Likewise.
100530         * build-aux/javaexec.sh.in: Likewise.
100531         * build-aux/ldd.sh.in: Likewise.
100532         * build-aux/reloc-ldflags: Likewise.
100533         * build-aux/relocatable.sh.in: Likewise.
100534         * build-aux/x-to-1.in: Likewise.
100535         * check-module: Likewise.
100536         * config/srclistvars.sh: Likewise.
100537         * gnulib-tool: Likewise.
100538         * lib/acl-internal.h: Likewise.
100539         * lib/acl.c: Likewise.
100540         * lib/acl.h: Likewise.
100541         * lib/acl_entries.c: Likewise.
100542         * lib/areadlink-with-size.c: Likewise.
100543         * lib/areadlink.c: Likewise.
100544         * lib/areadlink.h: Likewise.
100545         * lib/argmatch.c: Likewise.
100546         * lib/argmatch.h: Likewise.
100547         * lib/argp-ba.c: Likewise.
100548         * lib/argp-eexst.c: Likewise.
100549         * lib/argp-fmtstream.c: Likewise.
100550         * lib/argp-fmtstream.h: Likewise.
100551         * lib/argp-fs-xinl.c: Likewise.
100552         * lib/argp-help.c: Likewise.
100553         * lib/argp-namefrob.h: Likewise.
100554         * lib/argp-parse.c: Likewise.
100555         * lib/argp-pin.c: Likewise.
100556         * lib/argp-pv.c: Likewise.
100557         * lib/argp-pvh.c: Likewise.
100558         * lib/argp-xinl.c: Likewise.
100559         * lib/argp.h: Likewise.
100560         * lib/at-func.c: Likewise.
100561         * lib/atanl.c: Likewise.
100562         * lib/backupfile.c: Likewise.
100563         * lib/backupfile.h: Likewise.
100564         * lib/basename.c: Likewise.
100565         * lib/binary-io.h: Likewise.
100566         * lib/byteswap.in.h: Likewise.
100567         * lib/c-stack.c: Likewise.
100568         * lib/c-stack.h: Likewise.
100569         * lib/c-strcasestr.c: Likewise.
100570         * lib/c-strcasestr.h: Likewise.
100571         * lib/c-strstr.c: Likewise.
100572         * lib/c-strstr.h: Likewise.
100573         * lib/c-strtod.c: Likewise.
100574         * lib/calloc.c: Likewise.
100575         * lib/canon-host.c: Likewise.
100576         * lib/canon-host.h: Likewise.
100577         * lib/canonicalize-lgpl.c: Likewise.
100578         * lib/canonicalize.c: Likewise.
100579         * lib/canonicalize.h: Likewise.
100580         * lib/ceil.c: Likewise.
100581         * lib/ceilf.c: Likewise.
100582         * lib/ceill.c: Likewise.
100583         * lib/chdir-long.c: Likewise.
100584         * lib/chdir-long.h: Likewise.
100585         * lib/chdir-safer.c: Likewise.
100586         * lib/chdir-safer.h: Likewise.
100587         * lib/chown.c: Likewise.
100588         * lib/classpath.c: Likewise.
100589         * lib/classpath.h: Likewise.
100590         * lib/clean-temp.c: Likewise.
100591         * lib/clean-temp.h: Likewise.
100592         * lib/cloexec.c: Likewise.
100593         * lib/close-stream.c: Likewise.
100594         * lib/closein.c: Likewise.
100595         * lib/closein.h: Likewise.
100596         * lib/closeout.c: Likewise.
100597         * lib/closeout.h: Likewise.
100598         * lib/concat-filename.c: Likewise.
100599         * lib/copy-file.c: Likewise.
100600         * lib/copy-file.h: Likewise.
100601         * lib/count-one-bits.h: Likewise.
100602         * lib/crc.c: Likewise.
100603         * lib/crc.h: Likewise.
100604         * lib/creat-safer.c: Likewise.
100605         * lib/csharpcomp.c: Likewise.
100606         * lib/csharpcomp.h: Likewise.
100607         * lib/csharpexec.c: Likewise.
100608         * lib/csharpexec.h: Likewise.
100609         * lib/cycle-check.c: Likewise.
100610         * lib/cycle-check.h: Likewise.
100611         * lib/diacrit.c: Likewise.
100612         * lib/diacrit.h: Likewise.
100613         * lib/diffseq.h: Likewise.
100614         * lib/dirchownmod.c: Likewise.
100615         * lib/dirent.in.h: Likewise.
100616         * lib/dirfd.c: Likewise.
100617         * lib/dirfd.h: Likewise.
100618         * lib/dirname.c: Likewise.
100619         * lib/dirname.h: Likewise.
100620         * lib/dummy.c: Likewise.
100621         * lib/dup-safer.c: Likewise.
100622         * lib/dup2.c: Likewise.
100623         * lib/eealloc.h: Likewise.
100624         * lib/error.c: Likewise.
100625         * lib/error.h: Likewise.
100626         * lib/euidaccess.c: Likewise.
100627         * lib/exclude.c: Likewise.
100628         * lib/exclude.h: Likewise.
100629         * lib/execute.c: Likewise.
100630         * lib/execute.h: Likewise.
100631         * lib/exitfail.c: Likewise.
100632         * lib/exitfail.h: Likewise.
100633         * lib/expl.c: Likewise.
100634         * lib/fatal-signal.c: Likewise.
100635         * lib/fatal-signal.h: Likewise.
100636         * lib/fbufmode.c: Likewise.
100637         * lib/fbufmode.h: Likewise.
100638         * lib/fchdir.c: Likewise.
100639         * lib/fchmodat.c: Likewise.
100640         * lib/fchownat.c: Likewise.
100641         * lib/fcntl--.h: Likewise.
100642         * lib/fcntl-safer.h: Likewise.
100643         * lib/fcntl.in.h: Likewise.
100644         * lib/fd-safer.c: Likewise.
100645         * lib/fflush.c: Likewise.
100646         * lib/file-has-acl.c: Likewise.
100647         * lib/file-set.c: Likewise.
100648         * lib/file-type.c: Likewise.
100649         * lib/file-type.h: Likewise.
100650         * lib/fileblocks.c: Likewise.
100651         * lib/filemode.c: Likewise.
100652         * lib/filemode.h: Likewise.
100653         * lib/filename.h: Likewise.
100654         * lib/filenamecat.c: Likewise.
100655         * lib/filenamecat.h: Likewise.
100656         * lib/findprog.c: Likewise.
100657         * lib/findprog.h: Likewise.
100658         * lib/float.in.h: Likewise.
100659         * lib/floor.c: Likewise.
100660         * lib/floorf.c: Likewise.
100661         * lib/floorl.c: Likewise.
100662         * lib/fopen-safer.c: Likewise.
100663         * lib/fopen.c: Likewise.
100664         * lib/fpending.c: Likewise.
100665         * lib/fpending.h: Likewise.
100666         * lib/fprintf.c: Likewise.
100667         * lib/fprintftime.h: Likewise.
100668         * lib/fpucw.h: Likewise.
100669         * lib/fpurge.c: Likewise.
100670         * lib/fpurge.h: Likewise.
100671         * lib/freadable.c: Likewise.
100672         * lib/freadable.h: Likewise.
100673         * lib/freadahead.c: Likewise.
100674         * lib/freadahead.h: Likewise.
100675         * lib/freading.c: Likewise.
100676         * lib/freading.h: Likewise.
100677         * lib/free.c: Likewise.
100678         * lib/freopen.c: Likewise.
100679         * lib/frexp.c: Likewise.
100680         * lib/frexpl.c: Likewise.
100681         * lib/fseek.c: Likewise.
100682         * lib/fseterr.c: Likewise.
100683         * lib/fseterr.h: Likewise.
100684         * lib/fstatat.c: Likewise.
100685         * lib/fstrcmp.c: Likewise.
100686         * lib/fstrcmp.h: Likewise.
100687         * lib/fsusage.c: Likewise.
100688         * lib/fsusage.h: Likewise.
100689         * lib/ftell.c: Likewise.
100690         * lib/ftello.c: Likewise.
100691         * lib/fts-cycle.c: Likewise.
100692         * lib/fts.c: Likewise.
100693         * lib/fts_.h: Likewise.
100694         * lib/full-read.c: Likewise.
100695         * lib/full-read.h: Likewise.
100696         * lib/full-write.c: Likewise.
100697         * lib/full-write.h: Likewise.
100698         * lib/fwritable.c: Likewise.
100699         * lib/fwritable.h: Likewise.
100700         * lib/fwriteerror.c: Likewise.
100701         * lib/fwriteerror.h: Likewise.
100702         * lib/fwriting.c: Likewise.
100703         * lib/fwriting.h: Likewise.
100704         * lib/gcd.c: Likewise.
100705         * lib/gcd.h: Likewise.
100706         * lib/getcwd.c: Likewise.
100707         * lib/getdate.h: Likewise.
100708         * lib/getdate.y: Likewise.
100709         * lib/getdomainname.c: Likewise.
100710         * lib/getdomainname.h: Likewise.
100711         * lib/getgroups.c: Likewise.
100712         * lib/gethostname.c: Likewise.
100713         * lib/gethrxtime.c: Likewise.
100714         * lib/gethrxtime.h: Likewise.
100715         * lib/getloadavg.c: Likewise.
100716         * lib/getndelim2.c: Likewise.
100717         * lib/getndelim2.h: Likewise.
100718         * lib/getnline.c: Likewise.
100719         * lib/getnline.h: Likewise.
100720         * lib/getopt.c: Likewise.
100721         * lib/getopt.in.h: Likewise.
100722         * lib/getopt1.c: Likewise.
100723         * lib/getopt_int.h: Likewise.
100724         * lib/getpagesize.h: Likewise.
100725         * lib/getsubopt.c: Likewise.
100726         * lib/gettime.c: Likewise.
100727         * lib/getugroups.c: Likewise.
100728         * lib/getugroups.h: Likewise.
100729         * lib/getusershell.c: Likewise.
100730         * lib/gl_anyavltree_list1.h: Likewise.
100731         * lib/gl_anyavltree_list2.h: Likewise.
100732         * lib/gl_anyhash_list1.h: Likewise.
100733         * lib/gl_anyhash_list2.h: Likewise.
100734         * lib/gl_anylinked_list1.h: Likewise.
100735         * lib/gl_anylinked_list2.h: Likewise.
100736         * lib/gl_anyrbtree_list1.h: Likewise.
100737         * lib/gl_anyrbtree_list2.h: Likewise.
100738         * lib/gl_anytree_list1.h: Likewise.
100739         * lib/gl_anytree_list2.h: Likewise.
100740         * lib/gl_anytree_oset.h: Likewise.
100741         * lib/gl_anytreehash_list1.h: Likewise.
100742         * lib/gl_anytreehash_list2.h: Likewise.
100743         * lib/gl_array_list.c: Likewise.
100744         * lib/gl_array_list.h: Likewise.
100745         * lib/gl_array_oset.c: Likewise.
100746         * lib/gl_array_oset.h: Likewise.
100747         * lib/gl_avltree_list.c: Likewise.
100748         * lib/gl_avltree_list.h: Likewise.
100749         * lib/gl_avltree_oset.c: Likewise.
100750         * lib/gl_avltree_oset.h: Likewise.
100751         * lib/gl_avltreehash_list.c: Likewise.
100752         * lib/gl_avltreehash_list.h: Likewise.
100753         * lib/gl_carray_list.c: Likewise.
100754         * lib/gl_carray_list.h: Likewise.
100755         * lib/gl_linked_list.c: Likewise.
100756         * lib/gl_linked_list.h: Likewise.
100757         * lib/gl_linkedhash_list.c: Likewise.
100758         * lib/gl_linkedhash_list.h: Likewise.
100759         * lib/gl_list.c: Likewise.
100760         * lib/gl_list.h: Likewise.
100761         * lib/gl_oset.c: Likewise.
100762         * lib/gl_oset.h: Likewise.
100763         * lib/gl_rbtree_list.c: Likewise.
100764         * lib/gl_rbtree_list.h: Likewise.
100765         * lib/gl_rbtree_oset.c: Likewise.
100766         * lib/gl_rbtree_oset.h: Likewise.
100767         * lib/gl_rbtreehash_list.c: Likewise.
100768         * lib/gl_rbtreehash_list.h: Likewise.
100769         * lib/gl_sublist.c: Likewise.
100770         * lib/gl_sublist.h: Likewise.
100771         * lib/group-member.c: Likewise.
100772         * lib/group-member.h: Likewise.
100773         * lib/hard-locale.c: Likewise.
100774         * lib/hard-locale.h: Likewise.
100775         * lib/hash-pjw.c: Likewise.
100776         * lib/hash-pjw.h: Likewise.
100777         * lib/hash-triple.c: Likewise.
100778         * lib/hash.c: Likewise.
100779         * lib/hash.h: Likewise.
100780         * lib/human.c: Likewise.
100781         * lib/human.h: Likewise.
100782         * lib/i-ring.c: Likewise.
100783         * lib/i-ring.h: Likewise.
100784         * lib/idcache.c: Likewise.
100785         * lib/imaxabs.c: Likewise.
100786         * lib/imaxdiv.c: Likewise.
100787         * lib/inet_pton.c: Likewise.
100788         * lib/inet_pton.h: Likewise.
100789         * lib/intprops.h: Likewise.
100790         * lib/inttostr.c: Likewise.
100791         * lib/inttostr.h: Likewise.
100792         * lib/inttypes.in.h: Likewise.
100793         * lib/isapipe.c: Likewise.
100794         * lib/isdir.c: Likewise.
100795         * lib/isnan.c: Likewise.
100796         * lib/isnan.h: Likewise.
100797         * lib/isnanf.c: Likewise.
100798         * lib/isnanf.h: Likewise.
100799         * lib/isnanl-nolibm.h: Likewise.
100800         * lib/isnanl.c: Likewise.
100801         * lib/isnanl.h: Likewise.
100802         * lib/javacomp.c: Likewise.
100803         * lib/javacomp.h: Likewise.
100804         * lib/javaexec.c: Likewise.
100805         * lib/javaexec.h: Likewise.
100806         * lib/javaversion.c: Likewise.
100807         * lib/javaversion.h: Likewise.
100808         * lib/javaversion.java: Likewise.
100809         * lib/lbrkprop.h: Likewise.
100810         * lib/lchmod.h: Likewise.
100811         * lib/lchown.c: Likewise.
100812         * lib/ldexpl.c: Likewise.
100813         * lib/linebreak.c: Likewise.
100814         * lib/linebreak.h: Likewise.
100815         * lib/linebuffer.c: Likewise.
100816         * lib/linebuffer.h: Likewise.
100817         * lib/locale.in.h: Likewise.
100818         * lib/logl.c: Likewise.
100819         * lib/long-options.c: Likewise.
100820         * lib/long-options.h: Likewise.
100821         * lib/lstat.c: Likewise.
100822         * lib/lstat.h: Likewise.
100823         * lib/math.in.h: Likewise.
100824         * lib/mbchar.c: Likewise.
100825         * lib/mbchar.h: Likewise.
100826         * lib/mbfile.h: Likewise.
100827         * lib/mbiter.h: Likewise.
100828         * lib/mbscasecmp.c: Likewise.
100829         * lib/mbscasestr.c: Likewise.
100830         * lib/mbschr.c: Likewise.
100831         * lib/mbscspn.c: Likewise.
100832         * lib/mbslen.c: Likewise.
100833         * lib/mbsncasecmp.c: Likewise.
100834         * lib/mbsnlen.c: Likewise.
100835         * lib/mbspbrk.c: Likewise.
100836         * lib/mbspcasecmp.c: Likewise.
100837         * lib/mbsrchr.c: Likewise.
100838         * lib/mbssep.c: Likewise.
100839         * lib/mbsspn.c: Likewise.
100840         * lib/mbsstr.c: Likewise.
100841         * lib/mbstok_r.c: Likewise.
100842         * lib/mbswidth.c: Likewise.
100843         * lib/mbswidth.h: Likewise.
100844         * lib/mbuiter.h: Likewise.
100845         * lib/memcasecmp.c: Likewise.
100846         * lib/memcasecmp.h: Likewise.
100847         * lib/memchr.c: Likewise.
100848         * lib/memcmp.c: Likewise.
100849         * lib/memcoll.c: Likewise.
100850         * lib/memcoll.h: Likewise.
100851         * lib/memcpy.c: Likewise.
100852         * lib/memrchr.c: Likewise.
100853         * lib/mkancesdirs.c: Likewise.
100854         * lib/mkdir-p.c: Likewise.
100855         * lib/mkdir-p.h: Likewise.
100856         * lib/mkdir.c: Likewise.
100857         * lib/mkdirat.c: Likewise.
100858         * lib/mkdtemp.c: Likewise.
100859         * lib/mkstemp-safer.c: Likewise.
100860         * lib/mkstemp.c: Likewise.
100861         * lib/modechange.c: Likewise.
100862         * lib/modechange.h: Likewise.
100863         * lib/mountlist.c: Likewise.
100864         * lib/mountlist.h: Likewise.
100865         * lib/mpsort.c: Likewise.
100866         * lib/nanosleep.c: Likewise.
100867         * lib/obstack.c: Likewise.
100868         * lib/obstack.h: Likewise.
100869         * lib/open-safer.c: Likewise.
100870         * lib/open.c: Likewise.
100871         * lib/openat-die.c: Likewise.
100872         * lib/openat-priv.h: Likewise.
100873         * lib/openat-proc.c: Likewise.
100874         * lib/openat.c: Likewise.
100875         * lib/openat.h: Likewise.
100876         * lib/pagealign_alloc.c: Likewise.
100877         * lib/pagealign_alloc.h: Likewise.
100878         * lib/physmem.c: Likewise.
100879         * lib/physmem.h: Likewise.
100880         * lib/pipe-safer.c: Likewise.
100881         * lib/pipe.c: Likewise.
100882         * lib/pipe.h: Likewise.
100883         * lib/posixtm.c: Likewise.
100884         * lib/posixtm.h: Likewise.
100885         * lib/posixver.c: Likewise.
100886         * lib/printf-frexp.c: Likewise.
100887         * lib/printf-frexp.h: Likewise.
100888         * lib/printf-frexpl.c: Likewise.
100889         * lib/printf-frexpl.h: Likewise.
100890         * lib/printf.c: Likewise.
100891         * lib/progname.c: Likewise.
100892         * lib/progname.h: Likewise.
100893         * lib/progreloc.c: Likewise.
100894         * lib/putenv.c: Likewise.
100895         * lib/quote.c: Likewise.
100896         * lib/quote.h: Likewise.
100897         * lib/quotearg.c: Likewise.
100898         * lib/quotearg.h: Likewise.
100899         * lib/raise.c: Likewise.
100900         * lib/readline.c: Likewise.
100901         * lib/readline.h: Likewise.
100902         * lib/readlink.c: Likewise.
100903         * lib/readtokens.c: Likewise.
100904         * lib/readtokens.h: Likewise.
100905         * lib/readtokens0.c: Likewise.
100906         * lib/readtokens0.h: Likewise.
100907         * lib/readutmp.c: Likewise.
100908         * lib/readutmp.h: Likewise.
100909         * lib/realloc.c: Likewise.
100910         * lib/relocwrapper.c: Likewise.
100911         * lib/rename-dest-slash.c: Likewise.
100912         * lib/rename.c: Likewise.
100913         * lib/rmdir.c: Likewise.
100914         * lib/rpmatch.c: Likewise.
100915         * lib/safe-read.c: Likewise.
100916         * lib/safe-read.h: Likewise.
100917         * lib/safe-write.c: Likewise.
100918         * lib/safe-write.h: Likewise.
100919         * lib/same-inode.h: Likewise.
100920         * lib/same.c: Likewise.
100921         * lib/same.h: Likewise.
100922         * lib/save-cwd.c: Likewise.
100923         * lib/save-cwd.h: Likewise.
100924         * lib/savedir.c: Likewise.
100925         * lib/savedir.h: Likewise.
100926         * lib/savewd.c: Likewise.
100927         * lib/savewd.h: Likewise.
100928         * lib/search.in.h: Likewise.
100929         * lib/setenv.c: Likewise.
100930         * lib/setenv.h: Likewise.
100931         * lib/settime.c: Likewise.
100932         * lib/sh-quote.c: Likewise.
100933         * lib/sh-quote.h: Likewise.
100934         * lib/sig2str.c: Likewise.
100935         * lib/sig2str.h: Likewise.
100936         * lib/signal.in.h: Likewise.
100937         * lib/signbitd.c: Likewise.
100938         * lib/signbitf.c: Likewise.
100939         * lib/signbitl.c: Likewise.
100940         * lib/sigprocmask.c: Likewise.
100941         * lib/sincosl.c: Likewise.
100942         * lib/sleep.c: Likewise.
100943         * lib/sprintf.c: Likewise.
100944         * lib/sqrtl.c: Likewise.
100945         * lib/stat-time.h: Likewise.
100946         * lib/stdio--.h: Likewise.
100947         * lib/stdio-safer.h: Likewise.
100948         * lib/stdlib--.h: Likewise.
100949         * lib/stdlib-safer.h: Likewise.
100950         * lib/stdlib.in.h: Likewise.
100951         * lib/stpcpy.c: Likewise.
100952         * lib/stpncpy.c: Likewise.
100953         * lib/strchrnul.c: Likewise.
100954         * lib/strcspn.c: Likewise.
100955         * lib/strerror.c: Likewise.
100956         * lib/strftime.c: Likewise.
100957         * lib/strftime.h: Likewise.
100958         * lib/striconveh.c: Likewise.
100959         * lib/striconveh.h: Likewise.
100960         * lib/striconveha.c: Likewise.
100961         * lib/striconveha.h: Likewise.
100962         * lib/stripslash.c: Likewise.
100963         * lib/strnlen1.c: Likewise.
100964         * lib/strnlen1.h: Likewise.
100965         * lib/strtod.c: Likewise.
100966         * lib/strtoimax.c: Likewise.
100967         * lib/strtok_r.c: Likewise.
100968         * lib/strtol.c: Likewise.
100969         * lib/strtoll.c: Likewise.
100970         * lib/strtoul.c: Likewise.
100971         * lib/strtoull.c: Likewise.
100972         * lib/sysexits.in.h: Likewise.
100973         * lib/tempname.c: Likewise.
100974         * lib/tempname.h: Likewise.
100975         * lib/timespec.h: Likewise.
100976         * lib/tls.c: Likewise.
100977         * lib/tls.h: Likewise.
100978         * lib/tmpdir.c: Likewise.
100979         * lib/tmpdir.h: Likewise.
100980         * lib/tmpfile-safer.c: Likewise.
100981         * lib/tmpfile.c: Likewise.
100982         * lib/trigl.c: Likewise.
100983         * lib/trigl.h: Likewise.
100984         * lib/trim.c: Likewise.
100985         * lib/trim.h: Likewise.
100986         * lib/trunc.c: Likewise.
100987         * lib/truncf.c: Likewise.
100988         * lib/truncl.c: Likewise.
100989         * lib/tsearch.c: Likewise.
100990         * lib/unicodeio.c: Likewise.
100991         * lib/unicodeio.h: Likewise.
100992         * lib/unistd--.h: Likewise.
100993         * lib/unistd-safer.h: Likewise.
100994         * lib/unistdio/ulc-fprintf.c: Likewise.
100995         * lib/unistdio/ulc-vfprintf.c: Likewise.
100996         * lib/unlinkdir.c: Likewise.
100997         * lib/unlinkdir.h: Likewise.
100998         * lib/unlocked-io.h: Likewise.
100999         * lib/unsetenv.c: Likewise.
101000         * lib/userspec.c: Likewise.
101001         * lib/utime.c: Likewise.
101002         * lib/utimecmp.c: Likewise.
101003         * lib/utimecmp.h: Likewise.
101004         * lib/utimens.c: Likewise.
101005         * lib/verify.h: Likewise.
101006         * lib/verror.c: Likewise.
101007         * lib/verror.h: Likewise.
101008         * lib/version-etc-fsf.c: Likewise.
101009         * lib/version-etc.c: Likewise.
101010         * lib/version-etc.h: Likewise.
101011         * lib/vfprintf.c: Likewise.
101012         * lib/vprintf.c: Likewise.
101013         * lib/vsprintf.c: Likewise.
101014         * lib/w32spawn.h: Likewise.
101015         * lib/wait-process.c: Likewise.
101016         * lib/wait-process.h: Likewise.
101017         * lib/wcwidth.c: Likewise.
101018         * lib/write-any-file.c: Likewise.
101019         * lib/xalloc-die.c: Likewise.
101020         * lib/xalloc.h: Likewise.
101021         * lib/xasprintf.c: Likewise.
101022         * lib/xgetcwd.c: Likewise.
101023         * lib/xgetcwd.h: Likewise.
101024         * lib/xgetdomainname.c: Likewise.
101025         * lib/xgetdomainname.h: Likewise.
101026         * lib/xgethostname.c: Likewise.
101027         * lib/xmalloc.c: Likewise.
101028         * lib/xmalloca.c: Likewise.
101029         * lib/xmalloca.h: Likewise.
101030         * lib/xmemcoll.c: Likewise.
101031         * lib/xnanosleep.c: Likewise.
101032         * lib/xreadlink.c: Likewise.
101033         * lib/xreadlink.h: Likewise.
101034         * lib/xsetenv.c: Likewise.
101035         * lib/xsetenv.h: Likewise.
101036         * lib/xstriconv.c: Likewise.
101037         * lib/xstriconv.h: Likewise.
101038         * lib/xstrndup.c: Likewise.
101039         * lib/xstrndup.h: Likewise.
101040         * lib/xstrtod.c: Likewise.
101041         * lib/xstrtod.h: Likewise.
101042         * lib/xstrtol-error.c: Likewise.
101043         * lib/xstrtol.c: Likewise.
101044         * lib/xstrtol.h: Likewise.
101045         * lib/xtime.h: Likewise.
101046         * lib/xvasprintf.c: Likewise.
101047         * lib/xvasprintf.h: Likewise.
101048         * lib/yesno.c: Likewise.
101049         * lib/yesno.h: Likewise.
101050         * posix-modules: Likewise.
101051         * tests/test-alloca-opt.c: Likewise.
101052         * tests/test-arcfour.c: Likewise.
101053         * tests/test-arctwo.c: Likewise.
101054         * tests/test-argmatch.c: Likewise.
101055         * tests/test-argp-2.sh: Likewise.
101056         * tests/test-argp.c: Likewise.
101057         * tests/test-arpa_inet.c: Likewise.
101058         * tests/test-array_list.c: Likewise.
101059         * tests/test-array_oset.c: Likewise.
101060         * tests/test-atexit.c: Likewise.
101061         * tests/test-avltree_list.c: Likewise.
101062         * tests/test-avltree_oset.c: Likewise.
101063         * tests/test-avltreehash_list.c: Likewise.
101064         * tests/test-base64.c: Likewise.
101065         * tests/test-binary-io.c: Likewise.
101066         * tests/test-byteswap.c: Likewise.
101067         * tests/test-c-ctype.c: Likewise.
101068         * tests/test-c-strcasecmp.c: Likewise.
101069         * tests/test-c-strcasestr.c: Likewise.
101070         * tests/test-c-strncasecmp.c: Likewise.
101071         * tests/test-c-strstr.c: Likewise.
101072         * tests/test-canonicalize-lgpl.c: Likewise.
101073         * tests/test-canonicalize.c: Likewise.
101074         * tests/test-carray_list.c: Likewise.
101075         * tests/test-ceilf.c: Likewise.
101076         * tests/test-ceill.c: Likewise.
101077         * tests/test-count-one-bits.c: Likewise.
101078         * tests/test-crc.c: Likewise.
101079         * tests/test-dirname.c: Likewise.
101080         * tests/test-fbufmode.c: Likewise.
101081         * tests/test-fcntl.c: Likewise.
101082         * tests/test-fflush.c: Likewise.
101083         * tests/test-floorf.c: Likewise.
101084         * tests/test-floorl.c: Likewise.
101085         * tests/test-fopen.c: Likewise.
101086         * tests/test-fprintf-posix.c: Likewise.
101087         * tests/test-fprintf-posix.h: Likewise.
101088         * tests/test-fpurge.c: Likewise.
101089         * tests/test-freadable.c: Likewise.
101090         * tests/test-freadahead.c: Likewise.
101091         * tests/test-freading.c: Likewise.
101092         * tests/test-freopen.c: Likewise.
101093         * tests/test-frexp.c: Likewise.
101094         * tests/test-frexpl.c: Likewise.
101095         * tests/test-fseek.c: Likewise.
101096         * tests/test-fseeko.c: Likewise.
101097         * tests/test-fseterr.c: Likewise.
101098         * tests/test-fstrcmp.c: Likewise.
101099         * tests/test-ftell.c: Likewise.
101100         * tests/test-ftello.c: Likewise.
101101         * tests/test-fwritable.c: Likewise.
101102         * tests/test-fwriting.c: Likewise.
101103         * tests/test-getaddrinfo.c: Likewise.
101104         * tests/test-getpass.c: Likewise.
101105         * tests/test-gettimeofday.c: Likewise.
101106         * tests/test-hmac-md5.c: Likewise.
101107         * tests/test-hmac-sha1.c: Likewise.
101108         * tests/test-iconv.c: Likewise.
101109         * tests/test-iconvme.c: Likewise.
101110         * tests/test-inttypes.c: Likewise.
101111         * tests/test-isnan.c: Likewise.
101112         * tests/test-isnanf.c: Likewise.
101113         * tests/test-isnanl-nolibm.c: Likewise.
101114         * tests/test-isnanl.c: Likewise.
101115         * tests/test-isnanl.h: Likewise.
101116         * tests/test-ldexpl.c: Likewise.
101117         * tests/test-linked_list.c: Likewise.
101118         * tests/test-linkedhash_list.c: Likewise.
101119         * tests/test-locale.c: Likewise.
101120         * tests/test-localename.c: Likewise.
101121         * tests/test-lock.c: Likewise.
101122         * tests/test-lseek.c: Likewise.
101123         * tests/test-malloca.c: Likewise.
101124         * tests/test-math.c: Likewise.
101125         * tests/test-mbscasecmp.c: Likewise.
101126         * tests/test-mbscasestr1.c: Likewise.
101127         * tests/test-mbscasestr2.c: Likewise.
101128         * tests/test-mbscasestr3.c: Likewise.
101129         * tests/test-mbscasestr4.c: Likewise.
101130         * tests/test-mbschr.c: Likewise.
101131         * tests/test-mbscspn.c: Likewise.
101132         * tests/test-mbsncasecmp.c: Likewise.
101133         * tests/test-mbspbrk.c: Likewise.
101134         * tests/test-mbspcasecmp.c: Likewise.
101135         * tests/test-mbsrchr.c: Likewise.
101136         * tests/test-mbsspn.c: Likewise.
101137         * tests/test-mbsstr1.c: Likewise.
101138         * tests/test-mbsstr2.c: Likewise.
101139         * tests/test-mbsstr3.c: Likewise.
101140         * tests/test-md5.c: Likewise.
101141         * tests/test-memmem.c: Likewise.
101142         * tests/test-netinet_in.c: Likewise.
101143         * tests/test-open.c: Likewise.
101144         * tests/test-printf-frexp.c: Likewise.
101145         * tests/test-printf-frexpl.c: Likewise.
101146         * tests/test-printf-posix.c: Likewise.
101147         * tests/test-printf-posix.h: Likewise.
101148         * tests/test-rbtree_list.c: Likewise.
101149         * tests/test-rbtree_oset.c: Likewise.
101150         * tests/test-rbtreehash_list.c: Likewise.
101151         * tests/test-read-file.c: Likewise.
101152         * tests/test-rijndael.c: Likewise.
101153         * tests/test-search.c: Likewise.
101154         * tests/test-signbit.c: Likewise.
101155         * tests/test-sleep.c: Likewise.
101156         * tests/test-snprintf-posix.c: Likewise.
101157         * tests/test-snprintf-posix.h: Likewise.
101158         * tests/test-snprintf.c: Likewise.
101159         * tests/test-sprintf-posix.c: Likewise.
101160         * tests/test-sprintf-posix.h: Likewise.
101161         * tests/test-stat-time.c: Likewise.
101162         * tests/test-stdbool.c: Likewise.
101163         * tests/test-stdint.c: Likewise.
101164         * tests/test-stdio.c: Likewise.
101165         * tests/test-stdlib.c: Likewise.
101166         * tests/test-stpncpy.c: Likewise.
101167         * tests/test-strcasestr.c: Likewise.
101168         * tests/test-striconv.c: Likewise.
101169         * tests/test-striconveh.c: Likewise.
101170         * tests/test-striconveha.c: Likewise.
101171         * tests/test-string.c: Likewise.
101172         * tests/test-sys_select.c: Likewise.
101173         * tests/test-sys_socket.c: Likewise.
101174         * tests/test-sys_stat.c: Likewise.
101175         * tests/test-sys_time.c: Likewise.
101176         * tests/test-sysexits.c: Likewise.
101177         * tests/test-time.c: Likewise.
101178         * tests/test-tls.c: Likewise.
101179         * tests/test-trunc.c: Likewise.
101180         * tests/test-truncf.c: Likewise.
101181         * tests/test-truncl.c: Likewise.
101182         * tests/test-unistd.c: Likewise.
101183         * tests/test-vasnprintf-posix.c: Likewise.
101184         * tests/test-vasnprintf-posix2.c: Likewise.
101185         * tests/test-vasnprintf.c: Likewise.
101186         * tests/test-vasprintf-posix.c: Likewise.
101187         * tests/test-vasprintf.c: Likewise.
101188         * tests/test-verify.c: Likewise.
101189         * tests/test-vfprintf-posix.c: Likewise.
101190         * tests/test-vprintf-posix.c: Likewise.
101191         * tests/test-vsnprintf-posix.c: Likewise.
101192         * tests/test-vsnprintf.c: Likewise.
101193         * tests/test-vsprintf-posix.c: Likewise.
101194         * tests/test-wchar.c: Likewise.
101195         * tests/test-wctype.c: Likewise.
101196         * tests/test-wcwidth.c: Likewise.
101197         * tests/test-xstrtol.c: Likewise.
101198         * tests/test-xvasprintf.c: Likewise.
101199         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101200         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101201         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101202         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101203         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101204         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101205         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101206         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101207         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101208         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101209         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101210         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101211         * tests/uniname/test-uninames.c: Likewise.
101212         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101213         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101214         * tests/unistdio/test-u16-printf1.h: Likewise.
101215         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101216         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101217         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101218         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101219         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101220         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101221         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101222         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101223         * tests/unistdio/test-u32-printf1.h: Likewise.
101224         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101225         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101226         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101227         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101228         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101229         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101230         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101231         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101232         * tests/unistdio/test-u8-printf1.h: Likewise.
101233         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101234         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101235         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101236         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101237         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101238         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101239         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101240         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101241         * tests/unistdio/test-ulc-printf1.h: Likewise.
101242         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101243         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101244         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101245         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101246         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101247         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101248         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101249         * tests/uniwidth/test-u16-width.c: Likewise.
101250         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101251         * tests/uniwidth/test-u32-width.c: Likewise.
101252         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101253         * tests/uniwidth/test-u8-width.c: Likewise.
101254         * tests/uniwidth/test-uc_width.c: Likewise.
101255         * config/srclist-update: Likewise.
101256         (fixlicense): Update to GPLv3+.
101258         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101259         * tests/test-tsearch.c: Change copyright notice.
101261         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101262         * lib/c-strcaseeq.h: Change copyright notice.
101263         * lib/streq.h: Likewise.
101264         * lib/uniconv.h: Likewise.
101265         * lib/uniconv/u-conv-from-enc.h: Likewise.
101266         * lib/uniconv/u-conv-to-enc.h: Likewise.
101267         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101268         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101269         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101270         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101271         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101272         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101273         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101274         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101275         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101276         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101277         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101278         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101279         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101280         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101281         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101282         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101283         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101284         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101285         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101286         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101287         * lib/uniname.h: Likewise.
101288         * lib/uniname/uniname.c: Likewise.
101289         * lib/unistdio.h: Likewise.
101290         * lib/unistdio/u-asnprintf.h: Likewise.
101291         * lib/unistdio/u-asprintf.h: Likewise.
101292         * lib/unistdio/u-printf-args.c: Likewise.
101293         * lib/unistdio/u-printf-args.h: Likewise.
101294         * lib/unistdio/u-printf-parse.h: Likewise.
101295         * lib/unistdio/u-snprintf.h: Likewise.
101296         * lib/unistdio/u-sprintf.h: Likewise.
101297         * lib/unistdio/u-vasprintf.h: Likewise.
101298         * lib/unistdio/u-vsnprintf.h: Likewise.
101299         * lib/unistdio/u-vsprintf.h: Likewise.
101300         * lib/unistdio/u16-asnprintf.c: Likewise.
101301         * lib/unistdio/u16-asprintf.c: Likewise.
101302         * lib/unistdio/u16-printf-parse.c: Likewise.
101303         * lib/unistdio/u16-snprintf.c: Likewise.
101304         * lib/unistdio/u16-sprintf.c: Likewise.
101305         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101306         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101307         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101308         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101309         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101310         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101311         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101312         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101313         * lib/unistdio/u16-vasnprintf.c: Likewise.
101314         * lib/unistdio/u16-vasprintf.c: Likewise.
101315         * lib/unistdio/u16-vsnprintf.c: Likewise.
101316         * lib/unistdio/u16-vsprintf.c: Likewise.
101317         * lib/unistdio/u32-asnprintf.c: Likewise.
101318         * lib/unistdio/u32-asprintf.c: Likewise.
101319         * lib/unistdio/u32-printf-parse.c: Likewise.
101320         * lib/unistdio/u32-snprintf.c: Likewise.
101321         * lib/unistdio/u32-sprintf.c: Likewise.
101322         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101323         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101324         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101325         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101326         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101327         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101328         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101329         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101330         * lib/unistdio/u32-vasnprintf.c: Likewise.
101331         * lib/unistdio/u32-vasprintf.c: Likewise.
101332         * lib/unistdio/u32-vsnprintf.c: Likewise.
101333         * lib/unistdio/u32-vsprintf.c: Likewise.
101334         * lib/unistdio/u8-asnprintf.c: Likewise.
101335         * lib/unistdio/u8-asprintf.c: Likewise.
101336         * lib/unistdio/u8-printf-parse.c: Likewise.
101337         * lib/unistdio/u8-snprintf.c: Likewise.
101338         * lib/unistdio/u8-sprintf.c: Likewise.
101339         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101340         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101341         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101342         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101343         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101344         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101345         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101346         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101347         * lib/unistdio/u8-vasnprintf.c: Likewise.
101348         * lib/unistdio/u8-vasprintf.c: Likewise.
101349         * lib/unistdio/u8-vsnprintf.c: Likewise.
101350         * lib/unistdio/u8-vsprintf.c: Likewise.
101351         * lib/unistdio/ulc-asnprintf.c: Likewise.
101352         * lib/unistdio/ulc-asprintf.c: Likewise.
101353         * lib/unistdio/ulc-printf-parse.c: Likewise.
101354         * lib/unistdio/ulc-snprintf.c: Likewise.
101355         * lib/unistdio/ulc-sprintf.c: Likewise.
101356         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101357         * lib/unistdio/ulc-vasprintf.c: Likewise.
101358         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101359         * lib/unistdio/ulc-vsprintf.c: Likewise.
101360         * lib/unistr.h: Likewise.
101361         * lib/unistr/u-cpy-alloc.h: Likewise.
101362         * lib/unistr/u-cpy.h: Likewise.
101363         * lib/unistr/u-endswith.h: Likewise.
101364         * lib/unistr/u-move.h: Likewise.
101365         * lib/unistr/u-set.h: Likewise.
101366         * lib/unistr/u-startswith.h: Likewise.
101367         * lib/unistr/u-stpcpy.h: Likewise.
101368         * lib/unistr/u-stpncpy.h: Likewise.
101369         * lib/unistr/u-strcat.h: Likewise.
101370         * lib/unistr/u-strcpy.h: Likewise.
101371         * lib/unistr/u-strcspn.h: Likewise.
101372         * lib/unistr/u-strdup.h: Likewise.
101373         * lib/unistr/u-strlen.h: Likewise.
101374         * lib/unistr/u-strncat.h: Likewise.
101375         * lib/unistr/u-strncpy.h: Likewise.
101376         * lib/unistr/u-strnlen.h: Likewise.
101377         * lib/unistr/u-strpbrk.h: Likewise.
101378         * lib/unistr/u-strspn.h: Likewise.
101379         * lib/unistr/u-strstr.h: Likewise.
101380         * lib/unistr/u-strtok.h: Likewise.
101381         * lib/unistr/u16-check.c: Likewise.
101382         * lib/unistr/u16-chr.c: Likewise.
101383         * lib/unistr/u16-cmp.c: Likewise.
101384         * lib/unistr/u16-cpy-alloc.c: Likewise.
101385         * lib/unistr/u16-cpy.c: Likewise.
101386         * lib/unistr/u16-endswith.c: Likewise.
101387         * lib/unistr/u16-mblen.c: Likewise.
101388         * lib/unistr/u16-mbsnlen.c: Likewise.
101389         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101390         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101391         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101392         * lib/unistr/u16-mbtouc.c: Likewise.
101393         * lib/unistr/u16-mbtoucr.c: Likewise.
101394         * lib/unistr/u16-move.c: Likewise.
101395         * lib/unistr/u16-next.c: Likewise.
101396         * lib/unistr/u16-prev.c: Likewise.
101397         * lib/unistr/u16-set.c: Likewise.
101398         * lib/unistr/u16-startswith.c: Likewise.
101399         * lib/unistr/u16-stpcpy.c: Likewise.
101400         * lib/unistr/u16-stpncpy.c: Likewise.
101401         * lib/unistr/u16-strcat.c: Likewise.
101402         * lib/unistr/u16-strchr.c: Likewise.
101403         * lib/unistr/u16-strcmp.c: Likewise.
101404         * lib/unistr/u16-strcpy.c: Likewise.
101405         * lib/unistr/u16-strcspn.c: Likewise.
101406         * lib/unistr/u16-strdup.c: Likewise.
101407         * lib/unistr/u16-strlen.c: Likewise.
101408         * lib/unistr/u16-strmblen.c: Likewise.
101409         * lib/unistr/u16-strmbtouc.c: Likewise.
101410         * lib/unistr/u16-strncat.c: Likewise.
101411         * lib/unistr/u16-strncmp.c: Likewise.
101412         * lib/unistr/u16-strncpy.c: Likewise.
101413         * lib/unistr/u16-strnlen.c: Likewise.
101414         * lib/unistr/u16-strpbrk.c: Likewise.
101415         * lib/unistr/u16-strrchr.c: Likewise.
101416         * lib/unistr/u16-strspn.c: Likewise.
101417         * lib/unistr/u16-strstr.c: Likewise.
101418         * lib/unistr/u16-strtok.c: Likewise.
101419         * lib/unistr/u16-to-u32.c: Likewise.
101420         * lib/unistr/u16-to-u8.c: Likewise.
101421         * lib/unistr/u16-uctomb-aux.c: Likewise.
101422         * lib/unistr/u16-uctomb.c: Likewise.
101423         * lib/unistr/u32-check.c: Likewise.
101424         * lib/unistr/u32-chr.c: Likewise.
101425         * lib/unistr/u32-cmp.c: Likewise.
101426         * lib/unistr/u32-cpy-alloc.c: Likewise.
101427         * lib/unistr/u32-cpy.c: Likewise.
101428         * lib/unistr/u32-endswith.c: Likewise.
101429         * lib/unistr/u32-mblen.c: Likewise.
101430         * lib/unistr/u32-mbsnlen.c: Likewise.
101431         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101432         * lib/unistr/u32-mbtouc.c: Likewise.
101433         * lib/unistr/u32-mbtoucr.c: Likewise.
101434         * lib/unistr/u32-move.c: Likewise.
101435         * lib/unistr/u32-next.c: Likewise.
101436         * lib/unistr/u32-prev.c: Likewise.
101437         * lib/unistr/u32-set.c: Likewise.
101438         * lib/unistr/u32-startswith.c: Likewise.
101439         * lib/unistr/u32-stpcpy.c: Likewise.
101440         * lib/unistr/u32-stpncpy.c: Likewise.
101441         * lib/unistr/u32-strcat.c: Likewise.
101442         * lib/unistr/u32-strchr.c: Likewise.
101443         * lib/unistr/u32-strcmp.c: Likewise.
101444         * lib/unistr/u32-strcpy.c: Likewise.
101445         * lib/unistr/u32-strcspn.c: Likewise.
101446         * lib/unistr/u32-strdup.c: Likewise.
101447         * lib/unistr/u32-strlen.c: Likewise.
101448         * lib/unistr/u32-strmblen.c: Likewise.
101449         * lib/unistr/u32-strmbtouc.c: Likewise.
101450         * lib/unistr/u32-strncat.c: Likewise.
101451         * lib/unistr/u32-strncmp.c: Likewise.
101452         * lib/unistr/u32-strncpy.c: Likewise.
101453         * lib/unistr/u32-strnlen.c: Likewise.
101454         * lib/unistr/u32-strpbrk.c: Likewise.
101455         * lib/unistr/u32-strrchr.c: Likewise.
101456         * lib/unistr/u32-strspn.c: Likewise.
101457         * lib/unistr/u32-strstr.c: Likewise.
101458         * lib/unistr/u32-strtok.c: Likewise.
101459         * lib/unistr/u32-to-u16.c: Likewise.
101460         * lib/unistr/u32-to-u8.c: Likewise.
101461         * lib/unistr/u32-uctomb.c: Likewise.
101462         * lib/unistr/u8-check.c: Likewise.
101463         * lib/unistr/u8-chr.c: Likewise.
101464         * lib/unistr/u8-cmp.c: Likewise.
101465         * lib/unistr/u8-cpy-alloc.c: Likewise.
101466         * lib/unistr/u8-cpy.c: Likewise.
101467         * lib/unistr/u8-endswith.c: Likewise.
101468         * lib/unistr/u8-mblen.c: Likewise.
101469         * lib/unistr/u8-mbsnlen.c: Likewise.
101470         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101471         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101472         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101473         * lib/unistr/u8-mbtouc.c: Likewise.
101474         * lib/unistr/u8-mbtoucr.c: Likewise.
101475         * lib/unistr/u8-move.c: Likewise.
101476         * lib/unistr/u8-next.c: Likewise.
101477         * lib/unistr/u8-prev.c: Likewise.
101478         * lib/unistr/u8-set.c: Likewise.
101479         * lib/unistr/u8-startswith.c: Likewise.
101480         * lib/unistr/u8-stpcpy.c: Likewise.
101481         * lib/unistr/u8-stpncpy.c: Likewise.
101482         * lib/unistr/u8-strcat.c: Likewise.
101483         * lib/unistr/u8-strchr.c: Likewise.
101484         * lib/unistr/u8-strcmp.c: Likewise.
101485         * lib/unistr/u8-strcpy.c: Likewise.
101486         * lib/unistr/u8-strcspn.c: Likewise.
101487         * lib/unistr/u8-strdup.c: Likewise.
101488         * lib/unistr/u8-strlen.c: Likewise.
101489         * lib/unistr/u8-strmblen.c: Likewise.
101490         * lib/unistr/u8-strmbtouc.c: Likewise.
101491         * lib/unistr/u8-strncat.c: Likewise.
101492         * lib/unistr/u8-strncmp.c: Likewise.
101493         * lib/unistr/u8-strncpy.c: Likewise.
101494         * lib/unistr/u8-strnlen.c: Likewise.
101495         * lib/unistr/u8-strpbrk.c: Likewise.
101496         * lib/unistr/u8-strrchr.c: Likewise.
101497         * lib/unistr/u8-strspn.c: Likewise.
101498         * lib/unistr/u8-strstr.c: Likewise.
101499         * lib/unistr/u8-strtok.c: Likewise.
101500         * lib/unistr/u8-to-u16.c: Likewise.
101501         * lib/unistr/u8-to-u32.c: Likewise.
101502         * lib/unistr/u8-uctomb-aux.c: Likewise.
101503         * lib/unistr/u8-uctomb.c: Likewise.
101504         * lib/unitypes.h: Likewise.
101505         * lib/uniwidth.h: Likewise.
101506         * lib/uniwidth/cjk.h: Likewise.
101507         * lib/uniwidth/u16-strwidth.c: Likewise.
101508         * lib/uniwidth/u16-width.c: Likewise.
101509         * lib/uniwidth/u32-strwidth.c: Likewise.
101510         * lib/uniwidth/u32-width.c: Likewise.
101511         * lib/uniwidth/u8-strwidth.c: Likewise.
101512         * lib/uniwidth/u8-width.c: Likewise.
101513         * lib/uniwidth/width.c: Likewise.
101515 2007-10-07  Bruno Haible  <bruno@clisp.org>
101517         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101518         The file is still under LGPL (see modules/inttypes).
101520 2007-10-06  Bruno Haible  <bruno@clisp.org>
101522         * modules/trunc (Dependencies): Add 'extensions'.
101523         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101524         Reported by Ben Pfaff <blp@gnu.org>.
101526 2007-10-06  Bruno Haible  <bruno@clisp.org>
101528         * modules/freopen-tests: New file.
101529         * tests/test-freopen.c: New file.
101531         * modules/fopen-tests: New file.
101532         * tests/test-fopen.c: New file.
101534         * modules/fopen: New file.
101535         * lib/fopen.c: New file.
101536         * m4/fopen.m4: New file.
101537         * modules/freopen: New file.
101538         * lib/freopen.c: New file.
101539         * m4/freopen.m4: New file.
101540         * lib/stdio.in.h (fopen, freopen): New declarations.
101541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101542         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101543         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101544         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101545         * doc/functions/fopen.texi: Mention the 'fopen' module.
101546         * doc/functions/freopen.texi: Mention the 'freopen' module.
101548 2007-10-06  Bruno Haible  <bruno@clisp.org>
101550         * modules/open-tests: New file.
101551         * tests/test-open.c: New file.
101553         * modules/open: New file.
101554         * lib/open.c: New file.
101555         * m4/open.m4: New file.
101556         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101557         lib/open.c does.
101558         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101559         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101560         macros.
101561         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101562         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101563         REPLACE_OPEN.
101564         * doc/functions/open.texi: Mention the 'open' module.
101566 2007-10-04  Bruno Haible  <bruno@clisp.org>
101568         * modules/ceill-tests: New file.
101569         * tests/test-ceill.c: New file.
101571         * modules/ceill: New file.
101572         * lib/ceill.c: Replace entire file.
101573         * m4/ceill.m4: New file.
101574         * lib/math.in.h (ceill): Replace declaration.
101575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101576         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101577         * doc/functions/ceill.texi: Mention the 'ceill' module.
101578         * modules/mathl (Files): Remove lib/ceill.c.
101579         (Depends-on): Add ceill.
101581 2007-10-04  Bruno Haible  <bruno@clisp.org>
101583         * modules/ceilf-tests: New file.
101584         * tests/test-ceilf.c: New file.
101586         * modules/ceilf: New file.
101587         * lib/ceil.c: New file.
101588         * lib/ceilf.c: New file.
101589         * m4/ceilf.m4: New file.
101590         * lib/math.in.h (ceilf): New declaration.
101591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101592         HAVE_DECL_CEILF.
101593         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101594         HAVE_DECL_CEILF.
101595         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101597 2007-10-04  Bruno Haible  <bruno@clisp.org>
101599         * modules/floorl-tests: New file.
101600         * tests/test-floorl.c: New file.
101602         * modules/floorl: New file.
101603         * lib/floorl.c: Replace entire file.
101604         * m4/floorl.m4: New file.
101605         * lib/math.in.h (floorl): Replace declaration.
101606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101607         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101608         * doc/functions/floorl.texi: Mention the 'floorl' module.
101609         * modules/mathl (Files): Remove lib/floorl.c.
101610         (Depends-on): Add floorl.
101612 2007-10-04  Bruno Haible  <bruno@clisp.org>
101614         * modules/floorf-tests: New file.
101615         * tests/test-floorf.c: New file.
101617         * modules/floorf: New file.
101618         * lib/floor.c: New file.
101619         * lib/floorf.c: New file.
101620         * m4/floorf.m4: New file.
101621         * lib/math.in.h (floorf): New declaration.
101622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101623         HAVE_DECL_FLOORF.
101624         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101625         HAVE_DECL_FLOORF.
101626         * doc/functions/floorf.texi: Mention the 'floorf' module.
101628 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101629             Bruno Haible  <bruno@clisp.org>
101631         Advertise for the Git server instead of the CVS server.
101632         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101633         repository instead of the CVS one.
101634         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101635         about all VCS systems generically.
101636         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101638 2007-10-04  Bruno Haible  <bruno@clisp.org>
101640         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101641         means.
101642         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101644 2007-10-04  Bruno Haible  <bruno@clisp.org>
101646         * modules/truncl-tests: New file.
101647         * tests/test-truncl.c: New file.
101649         * modules/truncl: New file.
101650         * lib/truncl.c: New file.
101651         * m4/truncl.m4: New file.
101652         * lib/math.in.h (truncl): New declaration.
101653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101654         HAVE_DECL_TRUNCL.
101655         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101656         HAVE_DECL_TRUNCL.
101657         * doc/functions/truncl.texi: Mention the 'truncl' module.
101659 2007-10-04  Bruno Haible  <bruno@clisp.org>
101661         * modules/truncf-tests: New file.
101662         * tests/test-truncf.c: New file.
101664         * modules/truncf: New file.
101665         * lib/trunc.c: Make paramerizable through USE_* macros.
101666         * lib/truncf.c: New file.
101667         * m4/truncf.m4: New file.
101668         * lib/math.in.h (truncf): New declaration.
101669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101670         HAVE_DECL_TRUNCF.
101671         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101672         HAVE_DECL_TRUNCF.
101673         * doc/functions/truncf.texi: Mention the 'truncf' module.
101675 2007-10-03  Bruno Haible  <bruno@clisp.org>
101677         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101678         augmentation also for tests modules.
101679         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101680         * modules/atexit-tests (Makefile.am): Likewise.
101681         * modules/binary-io-tests (Makefile.am): Likewise.
101682         * modules/c-strcase-tests (Makefile.am): Likewise.
101683         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101684         * modules/canonicalize-tests (Makefile.am): Likewise.
101685         * modules/closein-tests (Makefile.am): Likewise.
101686         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101687         * modules/freadahead-tests (Makefile.am): Likewise.
101688         * modules/fseek-tests (Makefile.am): Likewise.
101689         * modules/fseeko-tests (Makefile.am): Likewise.
101690         * modules/ftell-tests (Makefile.am): Likewise.
101691         * modules/ftello-tests (Makefile.am): Likewise.
101692         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101693         * modules/isnanl-tests (Makefile.am): Likewise.
101694         * modules/lseek-tests (Makefile.am): Likewise.
101695         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101696         * modules/mbscasestr-tests (Makefile.am): Likewise.
101697         * modules/mbschr-tests (Makefile.am): Likewise.
101698         * modules/mbscspn-tests (Makefile.am): Likewise.
101699         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101700         * modules/mbspbrk-tests (Makefile.am): Likewise.
101701         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101702         * modules/mbsrchr-tests (Makefile.am): Likewise.
101703         * modules/mbsspn-tests (Makefile.am): Likewise.
101704         * modules/mbsstr-tests (Makefile.am): Likewise.
101705         * modules/printf-posix-tests (Makefile.am): Likewise.
101706         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101707         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101708         * modules/tsearch-tests (Makefile.am): Likewise.
101709         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101710         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101711         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101712         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101713         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101714         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101715         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101716         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101717         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101718         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101719         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101720         * modules/xstrtol-tests (Makefile.am): Likewise.
101721         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101722         * modules/yesno-tests (Makefile.am): Likewise.
101724 2007-10-03  Bruno Haible  <bruno@clisp.org>
101726         * modules/trunc-tests: New file.
101727         * tests/test-trunc.c: New file.
101729         * modules/trunc: New file.
101730         * lib/trunc.c: New file.
101731         * m4/trunc.m4: New file.
101732         * lib/math.in.h (trunc): New declaration.
101733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101734         HAVE_DECL_TRUNC.
101735         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101736         HAVE_DECL_TRUNC.
101737         * doc/functions/trunc.texi: Mention the 'trunc' module.
101739 2007-10-03  Bruno Haible  <bruno@clisp.org>
101741         * tests/test-fpending.c: New file, mostly copied
101742         from coreutils/lib/t-fpending.c.
101743         * modules/fpending-tests: New file.
101745 2007-10-03  Bruno Haible  <bruno@clisp.org>
101747         Port the stdio extensions to QNX (untested).
101748         * lib/fseterr.c (fseterr): Add support for QNX.
101749         * lib/fbufmode.c (fbufmode): Likewise.
101750         * lib/freadable.c (freadable): Likewise.
101751         * lib/fwritable.c (fwritable): Likewise.
101752         * lib/freading.c (freading): Likewise.
101753         * lib/fwriting.c (fwriting): Likewise.
101754         * lib/freadahead.c (freadahed): Likewise.
101755         * lib/fpurge.c (fpurge): Likewise.
101756         * lib/fseeko.c (rpl_fseeko): Likewise.
101758 2007-10-03  Bruno Haible  <bruno@clisp.org>
101759             Jim Meyering  <jim@meyering.net>
101760             Eric Blake  <ebb9@byu.net>
101762         * doc/relocatable.texi: Use @command instead of @program.
101764 2007-10-02  Jim Meyering  <jim@meyering.net>
101766         Perform one more "_.h" -> ".in.h" substitution.
101767         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101768         instead of unistd_.h here, too.
101770 2007-10-01  Bruno Haible  <bruno@clisp.org>
101772         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101773         Needed for the alloca-opt module.
101775 2007-09-30  Bruno Haible  <bruno@clisp.org>
101777         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101778         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101779         alloca_.h.
101780         * lib/argz.in.h: Renamed from lib/argz_.h.
101781         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101782         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101783         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101784         byteswap_.h.
101785         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101786         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101787         dirent_.h.
101788         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101789         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101790         fcntl_.h.
101791         * lib/float.in.h: Renamed from lib/float_.h.
101792         * modules/float (Files, Makefile.am): Use float.in.h instead of
101793         float_.h.
101794         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101795         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101796         fnmatch_.h.
101797         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101798         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101799         getopt_.h.
101800         * lib/glob.in.h: Renamed from lib/glob_.h.
101801         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101802         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101803         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101804         iconv_.h.
101805         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101806         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101807         inttypes_.h.
101808         * lib/locale.in.h: Renamed from lib/locale_.h.
101809         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101810         locale_.h.
101811         * lib/math.in.h: Renamed from lib/math_.h.
101812         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101813         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101814         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101815         of netinet_in_.h. Add dependency.
101816         * lib/poll.in.h: Renamed from lib/poll_.h.
101817         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101818         * lib/search.in.h: Renamed from lib/search_.h.
101819         * modules/search (Files, Makefile.am): Use search.in.h instead of
101820         search_.h.
101821         * lib/signal.in.h: Renamed from lib/signal_.h.
101822         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101823         _signal.h.
101824         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101825         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101826         stdbool_.h.
101827         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101828         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101829         stdint_.h.
101830         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101831         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101832         stdio_.h.
101833         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101834         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101835         stdlib_.h.
101836         * lib/string.in.h: Renamed from lib/string_.h.
101837         * modules/string (Files, Makefile.am): Use string.in.h instead of
101838         string_.h.
101839         * doc/gnulib-tool.texi (Initial import): Update.
101840         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101841         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101842         of sys_select_.h. Add dependency.
101843         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101844         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101845         of sys_socket_.h.
101846         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101847         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101848         sys_stat_.h.
101849         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101850         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101851         sys_time_.h.
101852         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101853         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101854         sysexits_.h.
101855         * lib/time.in.h: Renamed from lib/time_.h.
101856         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101857         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101858         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101859         unistd_.h.
101860         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101861         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101862         wchar_.h.
101863         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101864         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101865         wctype_.h.
101866         * build-aux/bootstrap (slurp): Update.
101867         * lib/.cppi-disable: Update.
101869 2007-09-30  Bruno Haible  <bruno@clisp.org>
101871         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101872         Needed on BeOS.
101874 2007-09-30  Bruno Haible  <bruno@clisp.org>
101876         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101878 2007-09-29  Bruno Haible  <bruno@clisp.org>
101880         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101882 2007-09-29  Bruno Haible  <bruno@clisp.org>
101884         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101885         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101886         * build-aux/install-reloc: Compile also areadlink.c.
101887         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101889 2007-09-29  Bruno Haible  <bruno@clisp.org>
101891         * gnulib-tool (func_emit_initmacro_done): Indentation.
101893 2007-09-29  Bruno Haible  <bruno@clisp.org>
101895         * README: Add CVS checkout update instructions.
101896         Info from Bob Proulx <bob@proulx.com>.
101898 2007-09-28  Eric Blake  <ebb9@byu.net>
101900         Provide move-if-change.
101901         * build-aux/move-if-change: New file, based on best practice
101902         rather than any canonical upstream location.
101904 2007-09-28  Jim Meyering  <jim@meyering.net>
101906         Fix canonicalize loop-detection corner case.
101907         Do not attempt to stat the symlink values stored via seen_triple.
101908         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101909         on linux-2.6.18, (but not 2.6.22).
101910         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101911         triple_compare.  The former compares dev,ino,filename, while the latter
101912         would actually stat dirname(filename) when dev and ino were equal.
101913         * lib/hash-triple.c: Install <string.h>.
101914         (STREQ): Define.
101915         (triple_compare_ino_str): New function.
101916         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101918 2007-09-28  Eric Blake  <ebb9@byu.net>
101920         Enforce that AC_REPLACE_FUNCS files exist.
101921         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101922         override check for typos.
101924         Fix test-closein on Solaris 10.
101925         * tests/test-closein.c (main): Don't assume stdin can be inherited
101926         closed on all systems.
101927         * tests/test-closein.sh: Likewise.
101928         Reported by Piotr Tarnowski.
101930 2007-09-28  Jim Meyering  <jim@meyering.net>
101932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101934 2007-09-27  Jim Meyering  <jim@meyering.net>
101936         canonicalize: Avoid a false-positive cycle failure.
101937         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101938         Sort.  Remove cycle-check.
101939         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101940         not cycle-check.h.
101941         (seen_triple): New function.
101942         (canonicalize_filename_mode): Use it instead of cycle-check.
101943         * tests/test-canonicalize.c: Add a test for this bug.
101944         * tests/test-canonicalize.sh: Set up and run the test.
101946         New module, file-set, from coreutils.
101947         * modules/file-set: Define it.
101948         * lib/file-set.c, lib/file-set.h: Implement.
101950         New module, hash-triple, from coreutils.
101951         * modules/hash-triple: Define it.
101952         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101954 2007-09-25  Eric Blake  <ebb9@byu.net>
101956         Fix strerror on Interix.
101957         * lib/string_.h (strerror): Declare replacement.
101958         * doc/functions/strerror.texi (strerror): Document the Interix
101959         shortcoming.
101960         * modules/string (Makefile.am): Support new hooks.
101961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101962         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101963         gl_FUNC_STRERROR_SEPARATE.
101964         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101965         * lib/strerror.c (rpl_strerror): Provide replacement.
101966         * modules/strerror (Depends-on): Add string.
101967         (configure.ac): Detect use of module.
101968         * tests/test-strerror.c: New file.
101969         * modules/strerror-tests: New test module.
101970         * modules/argp (Depends-on): Add strerror.
101971         * modules/error (Depends-on): Likewise.
101972         Reported by Martin Koeppe.
101974 2007-09-24  Bruno Haible  <bruno@clisp.org>
101976         * README: Update git instructions.
101978 2007-09-24  Eric Blake  <ebb9@byu.net>
101980         Revert fpending breakage from 2007-09-08.
101981         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101982         __fpending.c.
101984 2007-09-24  Jim Meyering  <jim@meyering.net>
101986         filenamecat.c: Add a test.
101987         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101988         showing how the function works when DIR is the empty string.
101990 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101992         * tests/test-canonicalize.sh: Turn on executable bit.
101994 2007-09-19  Eric Blake  <ebb9@byu.net>
101996         * README: Update CVS instructions.
101998 2007-09-18  Bruno Haible  <bruno@clisp.org>
102000         * modules/areadlink: New file.
102001         * lib/areadlink.h (areadlink): New declaration.
102002         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102004 2007-09-17  Jim Meyering  <jim@meyering.net>
102006         * lib/savewd.c (ESTALE) [!defined]: Define.
102007         Reported to be required on Interix by Martin Koeppe.
102009 2007-09-17  Bruno Haible  <bruno@clisp.org>
102011         * gnulib-tool (func_version): Use $version.
102013 2007-09-16  Bruno Haible  <bruno@clisp.org>
102015         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102016         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102017         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102018         Reported by Greg Schafer <gschafer@zip.com.au>.
102020 2007-09-15  Bruno Haible  <bruno@clisp.org>
102022         * gnulib-tool (sed): Try a little harder to make bash understand the
102023         alias.
102024         Reported by Bruce Korb <bruce.korb@gmail.com>.
102026 2007-09-13  Eric Blake  <ebb9@byu.net>
102028         * ChangeLog: Remove conflict markers.
102030 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102032         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102033         Reported by Bruno Haible <bruno@clisp.org>.
102035 2007-09-12  Bruno Haible  <bruno@clisp.org>
102037         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102038         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102039         is not defined.
102041 2007-09-12  Eric Blake  <ebb9@byu.net>
102043         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102044         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102045         Autoconf definition.
102046         * modules/euidaccess (Depends-on): Add extensions, for
102047         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102048         * modules/fnmatch (Depends-on): Likewise.
102049         * modules/getaddrinfo (Depends-on): Likewise.
102050         * modules/getdelim (Depends-on): Likewise.
102051         * modules/getline (Depends-on): Likewise.
102052         * modules/getsubopt (Depends-on): Likewise.
102053         * modules/gettext (Depends-on): Likewise.
102054         * modules/group-member (Depends-on): Likewise.
102055         * modules/mbchar (Depends-on): Likewise.
102056         * modules/memmem (Depends-on): Likewise.
102057         * modules/mempcpy (Depends-on): Likewise.
102058         * modules/memrchr (Depends-on): Likewise.
102059         * modules/pagealign_alloc (Depends-on): Likewise.
102060         * modules/readutmp (Depends-on): Likewise.
102061         * modules/stpcpy (Depends-on): Likewise.
102062         * modules/stpncpy (Depends-on): Likewise.
102063         * modules/strchrnul (Depends-on): Likewise.
102064         * modules/strndup (Depends-on): Likewise.
102065         * modules/strsep (Depends-on): Likewise.
102066         * modules/strverscmp (Depends-on): Likewise.
102067         * modules/vasprintf (Depends-on): Likewise.
102068         * modules/wcwidth (Depends-on): Likewise.
102069         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102070         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102071         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102074         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102075         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102076         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102077         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102078         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102079         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102082         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102083         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102084         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102085         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102086         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102088         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102089         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102090         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102091         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102092         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102093         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102095         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102096         so that lock.m4 can be used in gettext without extensions module.
102098 2007-09-11  Bruno Haible  <bruno@clisp.org>
102100         * m4/isc-posix.m4: Remove file.
102101         Suggested by Eric Blake.
102103 2007-09-11  Eric Blake  <ebb9@byu.net>
102105         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102107 2007-09-10  Bruno Haible  <bruno@clisp.org>
102109         * posix-modules: Fix typo in error message.
102110         Reported by Matt <mkraai@beckman.com>.
102112 2007-09-09  Bruno Haible  <bruno@clisp.org>
102114         * doc/functions/getdelim.texi: Update list of platforms lacking the
102115         function.
102116         * doc/functions/getline.texi: Likewise.
102118 2007-09-09  Jim Meyering  <jim@meyering.net>
102120         * lib/hash.c (hash_initialize): Detect calloc failure.
102121         Reported by Bruno Haible.
102123 2007-09-09  Bruno Haible  <bruno@clisp.org>
102125         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102126         malloc or realloc fails.
102128 2007-09-09  Bruno Haible  <bruno@clisp.org>
102130         * modules/getcwd (Depends-on): Add malloc-posix.
102131         * modules/glob (Depends-on): Likewise.
102132         * modules/putenv (Depends-on): Likewise.
102133         * modules/strdup (Depends-on): Likewise.
102134         * modules/getdelim (Depends-on): Add realloc-posix.
102135         * modules/read-file (Depends-on): Likewise.
102137 2007-09-09  Bruno Haible  <bruno@clisp.org>
102139         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102140         (gl_FUNC_MALLOC_POSIX): Require it.
102141         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102142         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102143         * modules/realloc (Files): Add m4/malloc.m4.
102144         * modules/calloc (Files): Likewise.
102146 2007-09-09  Bruno Haible  <bruno@clisp.org>
102148         * modules/malloc-posix: New file.
102149         * modules/malloc (Depends-on): Add malloc-posix.
102150         * lib/malloc.c: Include errno.h.
102151         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102152         and a POSIX-compatible malloc into a single function. Set ENOMEM
102153         when returning NULL.
102154         * m4/malloc.m4: New file.
102155         * doc/functions/malloc.texi: Mention the malloc-posix module.
102156         * lib/stdlib_.h (malloc): New declaration.
102157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102158         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102159         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102160         and HAVE_MALLOC_POSIX.
102162 2007-09-09  Bruno Haible  <bruno@clisp.org>
102164         * modules/realloc-posix: New file.
102165         * modules/realloc (Depends-on): Add realloc-posix.
102166         * lib/realloc.c: Include errno.h.
102167         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102168         and a POSIX-compatible realloc into a single function. Set ENOMEM
102169         when returning NULL.
102170         * m4/realloc.m4: New file.
102171         * doc/functions/realloc.texi: Mention the realloc-posix module.
102172         * lib/stdlib_.h (realloc): New declaration.
102173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102174         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102175         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102176         and HAVE_REALLOC_POSIX.
102178 2007-09-09  Bruno Haible  <bruno@clisp.org>
102180         * modules/calloc-posix: New file.
102181         * modules/calloc (Depends-on): Add calloc-posix.
102182         * lib/calloc.c: Include errno.h.
102183         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102184         and a POSIX-compatible calloc into a single function. Set ENOMEM
102185         when returning NULL.
102186         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102187         * doc/functions/calloc.texi: Mention the calloc-posix module.
102188         * lib/stdlib_.h (calloc): New declaration.
102189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102190         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102191         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102192         and HAVE_CALLOC_POSIX.
102194 2007-09-09  Bruno Haible  <bruno@clisp.org>
102196         Allow for modules to show an arbitrary notice.
102197         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102198         * gnulib-tool: New option --extract-notice.
102199         (func_usage): Document it.
102200         (sed_extract_prog): Update.
102201         (func_get_notice): New function.
102202         (func_modules_notice): New function.
102203         (func_import, func_create_testdir): Invoke it.
102204         Suggested by Jim Meyering.
102206 2007-09-09  Bruno Haible  <bruno@clisp.org>
102208         * gnulib-tool: New options --verbose, --quiet.
102209         (func_usage): Document them.
102210         (verbose): New variable.
102211         (func_execute_command): New function.
102212         (func_import): Don't show the module list and the file list if
102213         $verbose < 0.
102214         (func_create_testdir): Likewise. Use func_execute_command.
102215         (func_create_megatestdir): Use func_execute_command.
102217 2007-09-08  Bruno Haible  <bruno@clisp.org>
102219         * gnulib-tool (func_import): Prefer rsync over wget when available,
102220         for fetching the PO files.
102222 2007-09-08  Bruno Haible  <bruno@clisp.org>
102224         * posix-modules: New file. Portions copied from gnulib-tool.
102225         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102227 2007-09-08  Jim Meyering  <jim@meyering.net>
102229         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102230         * lib/fpending.h: Rename from __fpending.h.
102231         * lib/fpending.c: Rename from __fpending.c.
102232         Include "fpending.h", not "__fpending.h".
102233         * lib/__fpending.h, lib/__fpending.c: Remove files.
102234         * modules/fpending (Files): Reflect new file names.
102235         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102237 2007-09-08  Bruno Haible  <bruno@clisp.org>
102239         * m4/inttypes-h.m4: Remove stub file.
102241 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102243         * doc/headers/stdint.texi: Discuss #include_next issue.
102245 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102247         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102249 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102251         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102252         in variable name.
102254 2007-09-03  Jim Meyering  <jim@meyering.net>
102256         New module: git-version-gen.
102257         * modules/git-version-gen: New file.
102259         Import changes from coreutils for bootstrap script.
102261         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102263         bootstrap: uses rsync to download the .po files
102264         * build-aux/bootstrap (po_download_command_format): New global.
102265         (download_po_files): Use rsync.
102266         (update_po_files): Don't remove .po files after download,
102267         so future rsync runs can take advantage of the copies.
102269         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102271         Solve the unnecessary-.po-file-regeneration problem once and for all.
102272         * build-aux/bootstrap (download_po_files): New function, renamed from
102273         get_translations.  Now, downloads, but doesn't update LINGUAS.
102274         (update_po_files): New function.
102276         bootstrap: Ignore more.
102277         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102278         uniwidth to e.g., lib/.gitignore.
102279         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102281         * build-aux/bootstrap: New setting: vc_ignore.
102282         (insert_sorted_if_absent): Create $file if absent.
102283         Adapt to new, possibly empty, list: $vc_ignore.
102285         bootstrap: generate more ignorable names
102286         * build-aux/bootstrap (slurp): When generating ignorable names,
102287         also map .sin to .sed, .gperf to .c, and .y to .c.
102289 2007-09-03  Jim Meyering  <jim@meyering.net>
102291         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102292         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102294 2007-09-02  Bruno Haible  <bruno@clisp.org>
102296         Fix mis-recognition of 'mcs' on QNX 6.
102297         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102298         output contains the string "Mono".
102299         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102300         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102302 2007-09-01  Bruno Haible  <bruno@clisp.org>
102304         Fix collision between uniwidth/* and linebreak modules.
102305         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102306         u32_width): Remove declarations.
102307         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102308         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102309         streq3, streq2, streq1, streq0): Remove functions.
102310         (STREQ): Remove macro.
102311         (is_cjk_encoding): Remove function.
102312         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102313         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102314         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102315         * NEWS: Document the change.
102317 2007-09-01  Bruno Haible  <bruno@clisp.org>
102319         * lib/streq.h: Add double-inclusion guard.
102321 2007-09-01  Karl Berry  <karl@gnu.org>
102323         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102325 2007-08-28  Jim Meyering  <jim@meyering.net>
102327         Rename mreadlink_with_size to areadlink_with_size.
102328         * NEWS: Document the change.
102329         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102330         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102331         * lib/mreadlink.h: Rename this to...
102332         * lib/areadlink.h: ...this.
102333         * modules/mreadlink-with-size: Rename this to...
102334         * modules/areadlink-with-size: ...this.
102335         * lib/canonicalize.c: Reflect the renaming.
102336         * modules/canonicalize: Likewise.
102338 2007-08-26  Bruno Haible  <bruno@clisp.org>
102340         * gnulib-tool (func_import): When deciding which files to remove,
102341         consider also dangling symbolic links.
102342         Reported by Eric Blake.
102344 2007-08-26  Bruno Haible  <bruno@clisp.org>
102346         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102348 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102350         * lib/readline.c: Don't include getline.h, the prototype is now
102351         found in stdio.h.
102353 2007-08-23  Jim Meyering  <jim@meyering.net>
102355         Getdelim touchup.
102356         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102357         around the funlockfile call, since funlockfile never sets errno.
102358         Don't set errno upon failed realloc.
102360 2007-08-22  Eric Blake  <ebb9@byu.net>
102362         Getline touchups.
102363         * lib/getdelim.c (getdelim): Revert regression that required *n to
102364         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102365         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102366         getdelim, rather than whether implementation is missing.
102367         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102368         * lib/stdio_.h (getline): Also declare if replacement is
102369         required.
102370         * doc/functions/getdelim.texi: New file.
102371         * doc/functions/getline.texi: Likewise.
102372         * doc/gnulib.texi (Function Substitutes): Add new files.
102373         Reported by Bruno Haible.
102375 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102377         * users.txt: Add Guile.
102379 2007-08-22  Eric Blake  <ebb9@byu.net>
102381         * tests/test-getdelim.c (main): Use remove, not unlink.
102382         * tests/test-getline.c (main): Likewise.
102384         Move getline and getdelim into stdio.h, per POSIX 200x.
102385         * modules/getline (Files): Remove getline.h.
102386         (Depends-on): Add stdio.
102387         (configure.ac): Add module indicator.
102388         * modules/getdelim (Files): Remove getdelim.h.
102389         (Depends-on): Add stdio.
102390         (configure.ac): Add module indicator.
102391         * modules/stdio (Makefile.am): Work with new indicators.
102392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102393         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102394         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102395         * lib/getdelim.h: Delete.
102396         * lib/getline.h: Delete.
102397         * lib/stdio_.h (getdelim, getline): Declare.
102398         * modules/getdelim-tests: New module.
102399         * modules/getline-tests: Likewise.
102400         * tests/test-getdelim.c: New file.
102401         * tests/test-getline.c: Likewise.
102402         * NEWS: Document the change.
102403         * lib/getline.c: Update choice of header.
102404         * lib/csharpcomp.c: Likewise.
102405         * lib/getpass.c: Likewise.
102406         * lib/javacomp.c: Likewise.
102407         * lib/javaversion.c: Likewise.
102408         * lib/yesno.c: Likewise.
102409         * lib/getdelim.c: Likewise.
102410         (getdelim): Set errno on failure, and avoid memory leak.
102412 2007-08-19  Bruno Haible  <bruno@clisp.org>
102414         * modules/closein (Depends-on): Add freadahead.
102415         * lib/closein.c: Include freadahead.h.
102416         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102417         is zero.
102419 2007-08-19  Bruno Haible  <bruno@clisp.org>
102421         * modules/freadahead-tests: New file.
102422         * tests/test-freadahead.sh: New file.
102423         * tests/test-freadahead.c: New file.
102425         * modules/freadahead: New file.
102426         * lib/freadahead.h: New file.
102427         * lib/freadahead.c: New file.
102428         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102429         fbufmode, fpurge, freadable, fwritable.
102431 2007-08-19  Eric Blake  <ebb9@byu.net>
102433         Test yesno in combination with closein.
102434         * lib/yesno.c (yesno): Document use of stdin.
102435         * modules/yesno-tests (Files): New module.
102436         * tests/test-yesno.c (main): New file.
102437         * tests/test-yesno.sh: Likewise.
102439 2007-08-19  Bruno Haible  <bruno@clisp.org>
102441         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102442         * lib/fseeko.c (rpl_fseeko): Likewise.
102443         * lib/fseterr.c (fseterr): Likewise.
102445 2007-08-19  Bruno Haible  <bruno@clisp.org>
102447         * tests/test-lseek.c (main): Disable a test for BeOS.
102448         * doc/functions/lseek.texi: Document the BeOS bug.
102450 2007-08-19  Bruno Haible  <bruno@clisp.org>
102451             Eric Blake  <ebb9@byu.net>
102453         * lib/lseek.c: Include <sys/stat.h>.
102454         (rpl_lseek): Add workaround code also for Unix platforms.
102455         Needed for BeOS.
102456         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102457         * doc/functions/lseek.texi: Document BeOS definiency.
102459 2007-08-18  Bruno Haible  <bruno@clisp.org>
102461         * modules/fstrcmp-tests: New file.
102462         * tests/test-fstrcmp.c: New file.
102464 2007-08-18  Bruno Haible  <bruno@clisp.org>
102466         * modules/fstrcmp: New file, from GNU gettext with modifications.
102467         * lib/fstrcmp.h: New file, from GNU gettext.
102468         * lib/fstrcmp.c: New file, from GNU gettext.
102469         * MODULES.html.sh (String handling): Add fstrcmp.
102471 2007-08-18  Bruno Haible  <bruno@clisp.org>
102473         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102474         'bool'.
102475         (diag, compareseq): Remove const from the ctxt argument.
102476         (USE_HEURISTIC): Undefine at the end.
102478 2007-08-18  Jim Meyering  <jim@meyering.net>
102480         New file: lib/idcache.h
102481         * NEWS: Mention the addition.
102482         * modules/idcache (Files): Add lib/idcache.h
102483         * lib/idcache.c: Include "idcache.h".
102484         Don't include <sys/types.h>.
102485         Add a FIXME comment.
102486         Move file-scoped "static" declarations to the top.
102487         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102489 2007-08-17  Bruno Haible  <bruno@clisp.org>
102490         and Paul Eggert  <eggert@cs.ucla.edu>
102492         * MODULES.html.sh: Add diffseq.
102493         * modules/diffseq: New file.
102494         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102495         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102497 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102499         Import changes from coreutils for bootstrap script.
102501         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102503         * build-aux/bootstrap (slurp): Work even in environments where
102504         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102505         current code does not slurp files whose names start with ".", and
102506         this looks like it might be a troublesome area.
102508         2007-07-11  Jim Meyering  <jim@meyering.net>
102510         If there's a GPL vN copyright comment, require that N == 3.
102512         2007-07-08  Jim Meyering  <jim@meyering.net>
102514         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102515         * build-aux/bootstrap (mam_template): Move definition out of loop.
102517         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102519         * build-aux/bootstrap (symlink_to_dir): Rename function from
102520         symlink_to_gnulib.  Add a directory parameter.  Update all
102521         callers.
102522         (cp_mark_as_generated): Also check for -- and link to -- files in
102523         gl/.
102525         2007-07-08  Jim Meyering  <jim@meyering.net>
102527         Adapt to deeper hierarchy in gnulib.
102528         * build-aux/bootstrap (symlink_to_dir): If the destination
102529         directory doesn't exist, create it. This is required at least for
102530         "lib/uniwidth/cjk.h".
102532         2007-05-15  Jim Meyering  <jim@meyering.net>
102534         * build-aux/bootstrap: Now that generated Makefile.am files
102535         are no longer under version control, they must be created at
102536         bootstrap time.
102538 2007-08-14  Ben Pfaff  <blp@gnu.org>
102540         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102542 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102544         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102545         given the changes below.
102546         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102547         even on hosts that have padding bits beyond the supported 64.
102549 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102551         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102552         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102553         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102554         depends on it.
102555         (xstrtol_error): Remove.
102556         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102557         but with a different signature.
102558         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102559         * lib/xstrtol-error.c: Include exitfail.h.
102560         (xstrtol_fatal): New function, with a different signature from the
102561         old xstrtol_error, so that the caller need not worry about passing
102562         in an exit status, or about storage management of the option argument.
102563         (xstrtol_error): Now a static function.  Redo signature to
102564         implement xstrtol_fatal.  Output the correct number of hyphens in
102565         front of the option so that the caller need not worry about
102566         storage management.
102567         (N_): New macro.
102568         (_): Remove; not used now.
102569         * modules/xstrtol: Depend on getopt.
102570         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102571         of old STRTOL_FATAL_ERROR macro.
102572         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102573         of test program.
102574         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102575         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102577 2007-08-08  Eric Blake  <ebb9@byu.net>
102579         * lib/xstrtol-error.c: Add missing include.
102581         Move xstrtol messages into gnulib domain, when --pobase is used.
102582         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102583         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102584         * modules/xstrtol (Files): Distribute new file.
102585         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102586         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102587         * tests/test-xstrtol.c: ...into new file.
102588         * tests/test-xstrtoul.c: Also test xstrtoul.
102589         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102590         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102591         * tests/test-xstrtol.sh: Drive the tests.
102592         * tests/test-xstrtoimax.sh: Likewise.
102593         * tests/test-xstrtoumax.sh: Likewise.
102594         * modules/xstrtol-tests: New module.
102595         * modules/xstrtoimax-tests: Likewise.
102596         * modules/xstrtoumax-tests: Likewise.
102598 2007-08-08  Jim Meyering  <jim@meyering.net>
102600         New function: mfile_name_concat.
102601         * lib/filenamecat.c (mfile_name_concat): New function, just like
102602         file_name_concat, but return NULL upon failure rather than exiting
102603         with a diagnostic.
102604         * lib/filenamecat.h: Declare it.
102606 2007-08-07  Bruno Haible  <bruno@clisp.org>
102608         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102609         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102610         warning from gcc.
102611         Reported by Eric Blake.
102613 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102615         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102616         * modules/crypto/arcfour (License): Likewise.
102617         * modules/crypto/des-tests (License): Likewise.
102618         * modules/crypto/gc-arctwo-tests (License): Likewise.
102619         * modules/crypto/gc-des-tests (License): Likewise.
102620         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102621         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102622         * modules/crypto/gc-md2-tests (License): Likewise.
102623         * modules/crypto/gc-md4-tests (License): Likewise.
102624         * modules/crypto/gc-md5-tests (License): Likewise.
102625         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102626         * modules/crypto/gc-rijndael-tests (License): Likewise.
102627         * modules/crypto/gc-sha1-tests (License): Likewise.
102628         * modules/crypto/gc-tests (License): Likewise.
102629         * modules/crypto/hmac-md5 (License): Likewise.
102630         * modules/crypto/hmac-sha1 (License): Likewise.
102631         * modules/crypto/md2-tests (License): Likewise.
102632         * modules/crypto/md4-tests (License): Likewise.
102633         * modules/crypto/md5 (License): Likewise.
102634         * modules/crypto/rijndael (License): Likewise.
102635         * modules/crypto/sha1 (License): Likewise.
102636         * modules/memxor (License): Likewise.
102638 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102639         and Bruno Haible  <bruno@clisp.org>
102641         * NEWS: Describe interface changes to human, xstrtol.
102642         * lib/human.h: Include <xstrtol.h>.
102643         (human_options): Return enum strtol_error, not int.  Remove
102644         bool arg; take int * instead.
102645         * lib/human.c: Don't include "gettext.h".
102646         (_): Remove; no longer used.
102647         Don't include <xstrtol.h>, since human.h does it.
102648         (human_options): Adjust to abovementioned interface changes.
102649         Do not report error to stderr; that's now the caller's
102650         responsibility.
102651         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102652         interface change.
102653         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102654         Str, Argument_type_string.  All uses changed.  Put " argument"
102655         in diagnostics to make them clearer.  Change wording of suffix
102656         message for clarity.
102657         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102658         Argument_type_string.
102659         (STRTOL_FATAL_WARN): Remove; no longer used.
102660         * modules/human (Depends-on): Remove gettext-h.
102662 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102664         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102666 2007-07-31  Bruno Haible  <bruno@clisp.org>
102668         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102669         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102670         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102672 2007-07-31  Bruno Haible  <bruno@clisp.org>
102674         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102675         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102677 2007-07-30  Bruno Haible  <bruno@clisp.org>
102679         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102680         * modules/c-ctype (License): Likewise.
102681         * modules/c-strcase (License): Likewise.
102682         * modules/check-version (License): Likewise.
102683         * modules/iconv (License): Likewise.
102684         * modules/iconv_open (License): Likewise.
102685         * modules/read-file (License): Likewise.
102686         * modules/striconv (License): Likewise.
102687         * modules/strverscmp (License): Likewise.
102688         * modules/vasprintf (License): Likewise.
102689         * modules/crypto/des (License): Likewise.
102690         * modules/crypto/gc (License): Likewise.
102691         * modules/crypto/gc-arcfour (License): Likewise.
102692         * modules/crypto/gc-arctwo (License): Likewise.
102693         * modules/crypto/gc-des (License): Likewise.
102694         * modules/crypto/gc-hmac-md5 (License): Likewise.
102695         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102696         * modules/crypto/gc-md2 (License): Likewise.
102697         * modules/crypto/gc-md4 (License): Likewise.
102698         * modules/crypto/gc-md5 (License): Likewise.
102699         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102700         * modules/crypto/gc-random (License): Likewise.
102701         * modules/crypto/gc-rijndael (License): Likewise.
102702         * modules/crypto/gc-sha1 (License): Likewise.
102703         * modules/crypto/md2 (License): Likewise.
102704         * modules/crypto/md4 (License): Likewise.
102706 2007-07-30  Jim Meyering  <jim@meyering.net>
102708         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102709         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102710         it has valid stat data.  This bug would cause du not to count the
102711         sizes of inaccessible directories.
102712         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102713         in <http://bugzilla.redhat.com/250077>.
102715 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102716             Bruno Haible  <bruno@clisp.org>
102718         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102719         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102720         #include_next, gives a diagnostic about it, but reports no error in
102721         the exit code.
102722         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102724 2007-07-24  Ben Pfaff  <blp@gnu.org>
102726         Improve name: "count-one-bits" is better than "popcount".
102727         * MODULES.html.sh: Update name.
102728         * lib/popcount.h: Renamed lib/count-one-bits.h.
102729         (popcount): Renamed count_one_bits.
102730         (popcountl): Renamed count_one_bits_l.
102731         (popcountll): Renamed count_one_bits_ll.
102732         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102733         * modules/popcount: Renamed module/count-one-bits.
102734         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102735         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102737 2007-07-23  Ben Pfaff  <blp@gnu.org>
102739         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102740         better code generation, and add U to large constants to avoid
102741         warnings, in non-GCC case.
102742         Suggested by Bruno Haible.
102744 2007-07-23  Ben Pfaff  <blp@gnu.org>
102746         * lib/popcount.h: Use verify_true instead of if...abort.
102747         * modules/popcount: Depend on verify module.
102748         Suggested by Jim Meyering.
102750 2007-07-23  Bruno Haible  <bruno@clisp.org>
102752         * gnulib-tool (func_import): Create a .cvsignore file also when the
102753         directory is not yet in CVS but the toplevel directory is. When
102754         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102755         Reported by Karl Berry.
102757 2007-07-22  Ben Pfaff  <blp@gnu.org>
102759         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102760         case.
102761         Suggested by Eric Blake.
102763 2007-07-22  Ben Pfaff  <blp@gnu.org>
102765         New module: popcount.
102766         * MODULES.html.sh: Add popcount.
102767         * modules/popcount: New file.
102768         * modules/popcount-tests: New file.
102769         * tests/test-popcount.c: New file.
102770         * lib/popcount.h: New file.
102771         * m4/popcount.m4: New file.
102773 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102775         * build-aux/announce-gen: Update to GPLv3.
102777         * build-aux/config.guess: Update from config.
102779 2007-07-21  Bruno Haible  <bruno@clisp.org>
102781         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102782         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102784 2007-07-20  Jim Meyering  <jim@meyering.net>
102786         * check-module: Diagnose a self-dependency.
102788 2007-07-19  Bruno Haible  <bruno@clisp.org>
102790         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102791         empty.
102792         Reported by Eric Blake.
102794 2007-07-18  Bruno Haible  <bruno@clisp.org>
102796         * gnulib-tool: New options --po-base, --po-domain.
102797         (func_usage): Document them.
102798         (pobase, po_domain): New variables.
102799         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102800         DEFAULT_TEXT_DOMAIN.
102801         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102802         (func_import): Consider pobase and po_domain. Create a po/ directory.
102803         (func_create_testdir): Set pobase and po_domain to empty.
102804         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102805         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102807 2007-07-18  Bruno Haible  <bruno@clisp.org>
102809         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102810         EXTRA_DIST augmentation for files in build-aux/.
102812 2007-07-16  Bruno Haible  <bruno@clisp.org>
102814         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102815         * modules/getdelim (License): Likewise.
102817 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102819         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102820         * modules/d-type (License): Likewise.
102821         * modules/extensions (License): Likewise.
102822         * modules/fnmatch (License): Likewise.
102823         * modules/fseeko (License): Likewise.
102824         * modules/getaddrinfo (License): Likewise.
102825         * modules/getline (License): Likewise.
102826         * modules/getlogin_r (License): Likewise.
102827         * modules/getpass (License): Likewise.
102828         * modules/gettimeofday (License): Likewise.
102829         * modules/glob (License): Likewise.
102830         * modules/inet_ntop (License): Likewise.
102831         * modules/malloc (License): Likewise.
102832         * modules/malloca (License): Likewise.
102833         * modules/memmem (License): Likewise.
102834         * modules/mempcpy (License): Likewise.
102835         * modules/memset (License): Likewise.
102836         * modules/minmax (License): Likewise.
102837         * modules/mktime (License): Likewise.
102838         * modules/netinet_in (License): Likewise.
102839         * modules/pathmax (License): Likewise.
102840         * modules/poll (License): Likewise.
102841         * modules/regex (License): Likewise.
102842         * modules/snprintf (License): Likewise.
102843         * modules/stdbool (License): Likewise.
102844         * modules/stdint (License): Likewise.
102845         * modules/stdio (License): Likewise.
102846         * modules/strcase (License): Likewise.
102847         * modules/strcasestr (License): Likewise.
102848         * modules/strdup (License): Likewise.
102849         * modules/string (License): Likewise.
102850         * modules/strndup (License): Likewise.
102851         * modules/strnlen (License): Likewise.
102852         * modules/strpbrk (License): Likewise.
102853         * modules/strptime (License): Likewise.
102854         * modules/strsep (License): Likewise.
102855         * modules/sys_select (License): Likewise.
102856         * modules/sys_socket (License): Likewise.
102857         * modules/sys_stat (License): Likewise.
102858         * modules/sys_time (License): Likewise.
102859         * modules/time (License): Likewise.
102860         * modules/time_r (License): Likewise.
102861         * modules/timegm (License): Likewise.
102862         * modules/unistd (License): Likewise.
102863         * modules/vsnprintf (License): Likewise.
102864         * modules/wctype (License): Likewise.
102866 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102868         * modules/argz (License): LGPLv2+.
102870 2007-07-15  Karl Berry  <karl@gnu.org>
102872         * doc/gnulib.texi: revise node structure per new fdl.texi.
102874 2007-07-14  Bruno Haible  <bruno@clisp.org>
102876         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102877         the output file.
102878         * lib/uniname/uninames.h: Regenerated.
102880 2007-07-14  Karl Berry  <karl@gnu.org>
102882         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102883         omitting sectioning and index commands.
102885 2007-07-13  Bruno Haible  <bruno@clisp.org>
102887         New gnulib-tool option --more-symlinks.
102888         * gnulib-tool (func_usage): Document --more-symlinks.
102889         (do_copyrights): New variable.
102890         Recognize option --more-symlinks.
102891         (func_import): Don't add a copyright notice transform to
102892         sed_transform_lib_file if do_copyrights is empty.
102894 2007-07-13  Bruno Haible  <bruno@clisp.org>
102896         * lib/vasnprintf.c (decimal_point_char): Define also if
102897         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102898         && !NEED_PRINTF_DIRECTIVE_A.
102899         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102900         Gary V. Vaughan <gary@gnu.org>.
102902 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102904         * lib/inttypes_.h: Undo previous change, since it was fixed
102905         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102907 2007-07-13  Bruno Haible  <bruno@clisp.org>
102909         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102910         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102912 2007-07-13  Jim Meyering  <jim@meyering.net>
102914         df: Don't fail for Tru64's "file-on-file mount".
102915         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102916         so we fall through and use statfs instead.  Details here:
102917         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102918         Reported by Albert Chin.
102920 2007-07-13  Bruno Haible  <bruno@clisp.org>
102922         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102923         * modules/configmake (License): Likewise.
102924         * modules/gettext (License): Likewise.
102925         * modules/gettext-h (License): Likewise.
102926         * modules/include_next (License): Likewise.
102927         * modules/link-warning (License): Likewise.
102928         * modules/localcharset (License): Likewise.
102929         * modules/localename (License): Likewise.
102930         * modules/lock (License): Likewise.
102931         * modules/relocatable-lib-lgpl (License): Likewise.
102932         * modules/size_max (License): Likewise.
102933         * modules/vasnprintf (License): Likewise.
102934         * modules/wchar (License): Likewise.
102935         * modules/xsize (License): Likewise.
102937 2007-07-13  Bruno Haible  <bruno@clisp.org>
102939         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102940         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102942 2007-07-12  Bruno Haible  <bruno@clisp.org>
102944         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102945         in the modules files.
102947 2007-07-11  Karl Berry  <karl@gnu.org>
102949         * MODULES.html.sh (func_module): use
102950          sed -e '\|^'"${includefile}"'$|d'
102951          instead of /.../d, to avoid errors on $includefile's containing /.
102953 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102955         * gnulib-tool (func_import): Avoid duplication of --avoid
102956         statements
102957         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102958         names to `_' in variable names.
102960 2007-07-10  Eric Blake  <ebb9@byu.net>
102962         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102963         * NEWS: Document this change.
102965 2007-07-08  Bruno Haible  <bruno@clisp.org>
102967         Update to Unicode 5.0.
102968         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102969         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102970         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102971         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102972         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102973         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102974         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102975         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102976         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102977         U+10A3F, U+1D242..U+1D244.
102978         (nonspacing_table_ind): Update.
102979         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102980         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102982 2007-07-08  Bruno Haible  <bruno@clisp.org>
102984         Update to Unicode 5.0.
102985         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102986         code transform. Extend the name index field of unicode_name_to_code and
102987         unicode_code_to_name from 16 to 24 bits.
102988         * lib/uniname/uniname.c (unicode_character_name,
102989         unicode_name_character): Add the range 0x12xxx to the code transform.
102990         * lib/uniname/uninames.h: Regenerated.
102991         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102993 2007-07-07  Bruno Haible  <bruno@clisp.org>
102995         * modules/wcwidth-tests: New file.
102996         * tests/test-wcwidth.c: New file.
102998         Work around MacOS X wcwidth() bug.
102999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103000         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103001         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103002         original wcwidth in non-UTF-8 locales.
103003         * modules/wcwidth (Depends-on): Add localcharset, streq,
103004         uniwidth/width.
103005         * doc/functions/wcwidth.texi: Update.
103007 2007-07-07  Bruno Haible  <bruno@clisp.org>
103009         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103010         (wcwidth): New declaration.
103011         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103012         macros.
103013         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103014         here. Prepare for creating <wchar.h> unconditionally.
103015         * modules/wchar (Depends-on): Add link-warning.
103016         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103017         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103018         * lib/wcwidth.h: Remove file.
103019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103020         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103021         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103022         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103023         (Include): Replace wcwidth.h with <wchar.h>.
103024         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103025         * lib/mbchar.h: Don't include wcwidth.h.
103026         * lib/mbswidth.c: Likewise.
103027         * NEWS: Mention the change.
103029 2007-07-07  Bruno Haible  <bruno@clisp.org>
103031         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103032         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103033         definition with an external declaration.
103034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103035         defined as a function. Remove AC_C_INLINE requirement.
103036         * modules/wcwidth (Files): Add lib/wcwidth.c.
103037         (Makefile.am): Remove redundant statement.
103039 2007-07-07  Bruno Haible  <bruno@clisp.org>
103041         * MODULES.html.sh (Unicode string functions): Add the new modules.
103043         * tests/uniwidth/test-u32-strwidth.c: New file.
103044         * modules/uniwidth/u32-strwidth-tests: New file.
103046         * lib/uniwidth/u32-strwidth.c: New file.
103047         * modules/uniwidth/u32-strwidth: New file.
103049         * tests/uniwidth/test-u16-strwidth.c: New file.
103050         * modules/uniwidth/u16-strwidth-tests: New file.
103052         * lib/uniwidth/u16-strwidth.c: New file.
103053         * modules/uniwidth/u16-strwidth: New file.
103055         * tests/uniwidth/test-u8-strwidth.c: New file.
103056         * modules/uniwidth/u8-strwidth-tests: New file.
103058         * lib/uniwidth/u8-strwidth.c: New file.
103059         * modules/uniwidth/u8-strwidth: New file.
103061         * tests/uniwidth/test-u32-width.c: New file.
103062         * modules/uniwidth/u32-width-tests: New file.
103064         * lib/uniwidth/u32-width.c: New file.
103065         * modules/uniwidth/u32-width: New file.
103067         * tests/uniwidth/test-u16-width.c: New file.
103068         * modules/uniwidth/u16-width-tests: New file.
103070         * lib/uniwidth/u16-width.c: New file.
103071         * modules/uniwidth/u16-width: New file.
103073         * tests/uniwidth/test-u8-width.c: New file.
103074         * modules/uniwidth/u8-width-tests: New file.
103076         * lib/uniwidth/u8-width.c: New file.
103077         * modules/uniwidth/u8-width: New file.
103079         * tests/uniwidth/test-uc_width.c: New file.
103080         * modules/uniwidth/width-tests: New file.
103082         * lib/uniwidth/width.c: New file, from GNU libiconv.
103083         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103084         * modules/uniwidth/width: New file.
103086         * lib/uniwidth.h: New file, from GNU libiconv.
103087         * modules/uniwidth/base: New file.
103089 2007-07-07  Bruno Haible  <bruno@clisp.org>
103091         * lib/uniname.h: New file, from GNU gettext.
103092         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103093         * lib/uniname/uninames.h: New file, from GNU gettext.
103094         * lib/uniname/uniname.c: New file, from GNU gettext.
103095         * tests/uniname/test-uninames.sh: New file.
103096         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103097         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103098         * modules/uniname/base: New file.
103099         * modules/uniname/uniname: New file.
103100         * modules/uniname/uniname-tests: New file.
103101         * MODULES.html.sh (Unicode string functions): Add the new modules.
103103 2007-07-06  Bruno Haible  <bruno@clisp.org>
103105         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103107 2007-07-06  Bruno Haible  <bruno@clisp.org>
103109         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103110         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103111         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103112         include <sys/time.h>.
103113         Reported by Eric Blake.
103115 2007-07-06  Eric Blake  <ebb9@byu.net>
103117         Fix testing canonicalize on cygwin.
103118         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103119         Revert patch from 2007-06-19.
103120         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103121         canonicalize module is also in use.
103122         * tests/test-canonicalize.c: New file.
103123         * tests/test-canonicalize.sh: Likewise.
103124         * modules/canonicalize-tests: Likewise.
103126 2007-07-06  Jim Meyering  <jim@meyering.net>
103128         * lib/getugroups.c (getugroups): Detect getgrent failure.
103129         Adjust comment to reflect reality: this function may return -1.
103131 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103133         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103134         the new TP address.
103135         (usage): Fix typo
103136         (gnulib_mk): New variable.
103138 2007-07-05  Jim Meyering  <jim@meyering.net>
103140         Don't let endgrent clobber errno, no matter how improbable.
103141         * lib/getugroups.c (getugroups): Save and restore errno around
103142         endgrent call.
103144         Close the group DB even when failing with 2^31 or more members.
103145         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103147 2007-07-04  Jim Meyering  <jim@meyering.net>
103149         * lib/getugroups.h: New file.
103150         * lib/getugroups.c: Include "getugroups.h".
103151         Remove uses of "register" keyword.
103152         Move local variable, "cp", down into scope where used.
103153         Give "username" parameter the "const" attribute.
103154         * modules/getugroups (Files): Add lib/getugroups.h
103156 2007-07-04  Karl Berry  <karl@gnu.org>
103158         * MODULES.html.sh (func_all_modules): Complete rename of
103159         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103161 2007-07-02  Bruno Haible  <bruno@clisp.org>
103163         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103164         mode, when inttypes.h comes from gnulib.
103165         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103167 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103169         * NEWS: Mention lgpl module name change.
103171         * modules/lgpl-2.1: Renamed from lgpl.
103173         * NEWS: Mention gpl module name change.
103175         * modules/gpl-3.0: New file, based on gpl-2.0.
103177         * modules/gpl-2.0: Renamed from gpl.
103179         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103180         doc/gpl-2.0.texi.
103182 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103184         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103185         #define __STDC_LIMIT_MACROS temporarily while including
103186         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103187         Problem reported by Joel E. Denny in
103188         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103190 2007-07-01  Bruno Haible  <bruno@clisp.org>
103192         * lib/unistdio.h: New file.
103193         * lib/unistdio/u-asnprintf.h: New file.
103194         * lib/unistdio/u-asprintf.h: New file.
103195         * lib/unistdio/u-printf-args.c: New file.
103196         * lib/unistdio/u-printf-args.h: New file.
103197         * lib/unistdio/u-printf-parse.h: New file.
103198         * lib/unistdio/u-snprintf.h: New file.
103199         * lib/unistdio/u-sprintf.h: New file.
103200         * lib/unistdio/u-vasprintf.h: New file.
103201         * lib/unistdio/u-vsnprintf.h: New file.
103202         * lib/unistdio/u-vsprintf.h: New file.
103203         * lib/unistdio/ulc-asnprintf.c: New file.
103204         * lib/unistdio/ulc-asprintf.c: New file.
103205         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103206         * lib/unistdio/ulc-printf-parse.c: New file.
103207         * lib/unistdio/ulc-snprintf.c: New file.
103208         * lib/unistdio/ulc-sprintf.c: New file.
103209         * lib/unistdio/ulc-vasnprintf.c: New file.
103210         * lib/unistdio/ulc-vasprintf.c: New file.
103211         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103212         * lib/unistdio/ulc-vsnprintf.c: New file.
103213         * lib/unistdio/ulc-vsprintf.c: New file.
103214         * lib/unistdio/u8-asnprintf.c: New file.
103215         * lib/unistdio/u8-asprintf.c: New file.
103216         * lib/unistdio/u8-printf-parse.c: New file.
103217         * lib/unistdio/u8-snprintf.c: New file.
103218         * lib/unistdio/u8-sprintf.c: New file.
103219         * lib/unistdio/u8-vasnprintf.c: New file.
103220         * lib/unistdio/u8-vasprintf.c: New file.
103221         * lib/unistdio/u8-vsnprintf.c: New file.
103222         * lib/unistdio/u8-vsprintf.c: New file.
103223         * lib/unistdio/u8-u8-asnprintf.c: New file.
103224         * lib/unistdio/u8-u8-asprintf.c: New file.
103225         * lib/unistdio/u8-u8-snprintf.c: New file.
103226         * lib/unistdio/u8-u8-sprintf.c: New file.
103227         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103228         * lib/unistdio/u8-u8-vasprintf.c: New file.
103229         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103230         * lib/unistdio/u8-u8-vsprintf.c: New file.
103231         * lib/unistdio/u16-asnprintf.c: New file.
103232         * lib/unistdio/u16-asprintf.c: New file.
103233         * lib/unistdio/u16-printf-parse.c: New file.
103234         * lib/unistdio/u16-snprintf.c: New file.
103235         * lib/unistdio/u16-sprintf.c: New file.
103236         * lib/unistdio/u16-vasnprintf.c: New file.
103237         * lib/unistdio/u16-vasprintf.c: New file.
103238         * lib/unistdio/u16-vsnprintf.c: New file.
103239         * lib/unistdio/u16-vsprintf.c: New file.
103240         * lib/unistdio/u16-u16-asnprintf.c: New file.
103241         * lib/unistdio/u16-u16-asprintf.c: New file.
103242         * lib/unistdio/u16-u16-snprintf.c: New file.
103243         * lib/unistdio/u16-u16-sprintf.c: New file.
103244         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103245         * lib/unistdio/u16-u16-vasprintf.c: New file.
103246         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103247         * lib/unistdio/u16-u16-vsprintf.c: New file.
103248         * lib/unistdio/u32-asnprintf.c: New file.
103249         * lib/unistdio/u32-asprintf.c: New file.
103250         * lib/unistdio/u32-printf-parse.c: New file.
103251         * lib/unistdio/u32-snprintf.c: New file.
103252         * lib/unistdio/u32-sprintf.c: New file.
103253         * lib/unistdio/u32-vasnprintf.c: New file.
103254         * lib/unistdio/u32-vasprintf.c: New file.
103255         * lib/unistdio/u32-vsnprintf.c: New file.
103256         * lib/unistdio/u32-vsprintf.c: New file.
103257         * lib/unistdio/u32-u32-asnprintf.c: New file.
103258         * lib/unistdio/u32-u32-asprintf.c: New file.
103259         * lib/unistdio/u32-u32-snprintf.c: New file.
103260         * lib/unistdio/u32-u32-sprintf.c: New file.
103261         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103262         * lib/unistdio/u32-u32-vasprintf.c: New file.
103263         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103264         * lib/unistdio/u32-u32-vsprintf.c: New file.
103265         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103266         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103267         * tests/unistdio/test-ulc-printf1.h: New file.
103268         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103269         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103270         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103271         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103272         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103273         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103274         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103275         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103276         * tests/unistdio/test-u8-asnprintf1.c: New file.
103277         * tests/unistdio/test-u8-asnprintf1.h: New file.
103278         * tests/unistdio/test-u8-printf1.h: New file.
103279         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103280         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103281         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103282         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103283         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103284         * tests/unistdio/test-u8-vasprintf1.c: New file.
103285         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103286         * tests/unistdio/test-u8-vsprintf1.c: New file.
103287         * tests/unistdio/test-u16-asnprintf1.c: New file.
103288         * tests/unistdio/test-u16-asnprintf1.h: New file.
103289         * tests/unistdio/test-u16-printf1.h: New file.
103290         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103291         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103292         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103293         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103294         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103295         * tests/unistdio/test-u16-vasprintf1.c: New file.
103296         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103297         * tests/unistdio/test-u16-vsprintf1.c: New file.
103298         * tests/unistdio/test-u32-asnprintf1.c: New file.
103299         * tests/unistdio/test-u32-asnprintf1.h: New file.
103300         * tests/unistdio/test-u32-printf1.h: New file.
103301         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103302         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103303         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103304         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103305         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103306         * tests/unistdio/test-u32-vasprintf1.c: New file.
103307         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103308         * tests/unistdio/test-u32-vsprintf1.c: New file.
103309         * modules/unistdio/base: New file.
103310         * modules/unistdio/u-printf-args: New file.
103311         * modules/unistdio/ulc-asnprintf: New file.
103312         * modules/unistdio/ulc-asprintf: New file.
103313         * modules/unistdio/ulc-fprintf: New file.
103314         * modules/unistdio/ulc-printf-parse: New file.
103315         * modules/unistdio/ulc-snprintf: New file.
103316         * modules/unistdio/ulc-sprintf: New file.
103317         * modules/unistdio/ulc-vasnprintf: New file.
103318         * modules/unistdio/ulc-vasprintf: New file.
103319         * modules/unistdio/ulc-vfprintf: New file.
103320         * modules/unistdio/ulc-vsnprintf: New file.
103321         * modules/unistdio/ulc-vsprintf: New file.
103322         * modules/unistdio/u8-asnprintf: New file.
103323         * modules/unistdio/u8-asprintf: New file.
103324         * modules/unistdio/u8-printf-parse: New file.
103325         * modules/unistdio/u8-snprintf: New file.
103326         * modules/unistdio/u8-sprintf: New file.
103327         * modules/unistdio/u8-vasnprintf: New file.
103328         * modules/unistdio/u8-vasprintf: New file.
103329         * modules/unistdio/u8-vsnprintf: New file.
103330         * modules/unistdio/u8-vsprintf: New file.
103331         * modules/unistdio/u8-u8-asnprintf: New file.
103332         * modules/unistdio/u8-u8-asprintf: New file.
103333         * modules/unistdio/u8-u8-snprintf: New file.
103334         * modules/unistdio/u8-u8-sprintf: New file.
103335         * modules/unistdio/u8-u8-vasnprintf: New file.
103336         * modules/unistdio/u8-u8-vasprintf: New file.
103337         * modules/unistdio/u8-u8-vsnprintf: New file.
103338         * modules/unistdio/u8-u8-vsprintf: New file.
103339         * modules/unistdio/u16-asnprintf: New file.
103340         * modules/unistdio/u16-asprintf: New file.
103341         * modules/unistdio/u16-printf-parse: New file.
103342         * modules/unistdio/u16-snprintf: New file.
103343         * modules/unistdio/u16-sprintf: New file.
103344         * modules/unistdio/u16-vasnprintf: New file.
103345         * modules/unistdio/u16-vasprintf: New file.
103346         * modules/unistdio/u16-vsnprintf: New file.
103347         * modules/unistdio/u16-vsprintf: New file.
103348         * modules/unistdio/u16-u16-asnprintf: New file.
103349         * modules/unistdio/u16-u16-asprintf: New file.
103350         * modules/unistdio/u16-u16-snprintf: New file.
103351         * modules/unistdio/u16-u16-sprintf: New file.
103352         * modules/unistdio/u16-u16-vasnprintf: New file.
103353         * modules/unistdio/u16-u16-vasprintf: New file.
103354         * modules/unistdio/u16-u16-vsnprintf: New file.
103355         * modules/unistdio/u16-u16-vsprintf: New file.
103356         * modules/unistdio/u32-asnprintf: New file.
103357         * modules/unistdio/u32-asprintf: New file.
103358         * modules/unistdio/u32-printf-parse: New file.
103359         * modules/unistdio/u32-snprintf: New file.
103360         * modules/unistdio/u32-sprintf: New file.
103361         * modules/unistdio/u32-vasnprintf: New file.
103362         * modules/unistdio/u32-vasprintf: New file.
103363         * modules/unistdio/u32-vsnprintf: New file.
103364         * modules/unistdio/u32-vsprintf: New file.
103365         * modules/unistdio/u32-u32-asnprintf: New file.
103366         * modules/unistdio/u32-u32-asprintf: New file.
103367         * modules/unistdio/u32-u32-snprintf: New file.
103368         * modules/unistdio/u32-u32-sprintf: New file.
103369         * modules/unistdio/u32-u32-vasnprintf: New file.
103370         * modules/unistdio/u32-u32-vasprintf: New file.
103371         * modules/unistdio/u32-u32-vsnprintf: New file.
103372         * modules/unistdio/u32-u32-vsprintf: New file.
103373         * modules/unistdio/ulc-asnprintf-tests: New file.
103374         * modules/unistdio/ulc-vasnprintf-tests: New file.
103375         * modules/unistdio/ulc-vasprintf-tests: New file.
103376         * modules/unistdio/ulc-vsnprintf-tests: New file.
103377         * modules/unistdio/ulc-vsprintf-tests: New file.
103378         * modules/unistdio/u8-asnprintf-tests: New file.
103379         * modules/unistdio/u8-vasnprintf-tests: New file.
103380         * modules/unistdio/u8-vasprintf-tests: New file.
103381         * modules/unistdio/u8-vsnprintf-tests: New file.
103382         * modules/unistdio/u8-vsprintf-tests: New file.
103383         * modules/unistdio/u16-asnprintf-tests: New file.
103384         * modules/unistdio/u16-vasnprintf-tests: New file.
103385         * modules/unistdio/u16-vasprintf-tests: New file.
103386         * modules/unistdio/u16-vsnprintf-tests: New file.
103387         * modules/unistdio/u16-vsprintf-tests: New file.
103388         * modules/unistdio/u32-asnprintf-tests: New file.
103389         * modules/unistdio/u32-vasnprintf-tests: New file.
103390         * modules/unistdio/u32-vasprintf-tests: New file.
103391         * modules/unistdio/u32-vsnprintf-tests: New file.
103392         * modules/unistdio/u32-vsprintf-tests: New file.
103393         * MODULES.html.sh (Unicode string functions): Add the new modules.
103395 2007-07-01  Bruno Haible  <bruno@clisp.org>
103397         * lib/sprintf.c (sprintf): Limit the available length estimation,
103398         to avoid address wraparound.
103399         * lib/vsprintf.c (vsprintf): Likewise.
103400         * modules/sprintf-posix (Dependencies): Add stdint.
103401         * modules/vsprintf-posix (Dependencies): Likewise.
103403 2007-07-01  Bruno Haible  <bruno@clisp.org>
103405         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103406         Windows PATH as well. Conservative double-quoting. Comments.
103408 2007-07-01  Bruno Haible  <bruno@clisp.org>
103409             Eric Blake  <ebb9@byu.net>
103410             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103412         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103413         empty components in $PATH, denoting '.'.
103415 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103417         * gnulib-tool: Fix indentation.
103418         (func_create_megatestdir): Likewise.
103419         Report by Bruno Haible.
103421 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103423         Sync from Automake.
103424         * build-aux/gnupload: Fix shell portability issues with for loops.
103425         Report by Karl Berry.
103427 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103429         * build-aux/maint.mk (POURL): Use translationproject.org.
103431 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103432             Bruno Haible  <bruno@clisp.org>
103434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103435         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103436         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103437         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103438         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103440 2007-06-27  Bruno Haible  <bruno@clisp.org>
103442         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103443         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103445 2007-06-26  Karl Berry  <karl@gnu.org>
103447         * MODULES.html.sh: remove xreadlink-with-size.
103449 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103451         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103452         method that I hope also handles the double-include problem noted
103453         by Bruno Haible in
103454         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103456 2007-06-23  Bruno Haible  <bruno@clisp.org>
103458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103459         Don't let the 'mostlyclean' target fail if the last subdirectory could
103460         not be removed.
103461         Reported by Karl Berry.
103463 2007-06-23  Bruno Haible  <bruno@clisp.org>
103465         * gnulib-tool (echo): Add a speedier workaround for ksh.
103466         * tests/test-echo.sh: Likewise.
103468 2007-06-23  Bruno Haible  <bruno@clisp.org>
103470         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103471         * tests/test-echo.sh: Likewise.
103473 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103475         * gnulib-tool (IFS): Initialize early, so we don't set it to
103476         empty later.
103477         (self_abspathname): Rewrite algorithm to set it, reindent.
103478         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103479         (func_create_megatestdir): Merge some sed scripts.
103481 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103483         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103484         exposed by Sun Studio 11 cc on Solaris 8.
103486 2007-06-22  Bruno Haible  <bruno@clisp.org>
103488         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103489         backslashes.
103490         * tests/test-echo.sh: New file.
103492 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103494         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103495         simplify `sed_replace_build_aux' scripts, they are portable but
103496         echoing them with `echo' is not.
103497         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103499 2007-06-21  Karl Berry  <karl@gnu.org>
103501         * config/srclist.txt: guess we can't handle the licenses via
103502         srclist at the moment.
103504 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103506         * MODULES.html.sh: Add include_next.
103507         * modules/include_next: New file.
103509 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103511         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103512         INCLUDE_NEXT.
103513         (gl_CHECK_NEXT_HEADERS): New macro.
103514         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103515         the obsolescent gl_ABSOLUTE_HEADER.
103516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103517         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103518         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103519         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103520         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103521         * m4/math_h.m4 (gl_MATH_H): Likewise.
103522         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103523         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103524         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103525         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103526         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103527         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103528         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103532         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103533         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103534         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103535         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103536         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103537         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103538         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103539         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103540         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103541         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103542         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103543         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103544         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103545         * lib/float_.h: Likewise.
103546         * lib/inttypes_.h: Likewise.
103547         * lib/math_.h: Likewise.
103548         * lib/search_.h: Likewise.
103549         * lib/signal_.h: Likewise.
103550         * lib/stdint_.h: Likewise.
103551         * lib/stdio_.h: Likewise.
103552         * lib/stdlib_.h: Likewise.
103553         * lib/string_.h: Likewise.
103554         * lib/sys_stat_.h: Likewise.
103555         * lib/sys_time_.h: Likewise.
103556         * lib/time_.h: Likewise.
103557         * lib/unistd_.h: Likewise.
103558         * lib/wchar_.h: Likewise.
103559         * lib/wctype_.h: Likewise.
103560         * lib/dirent_.h: Likewise.
103561         * lib/iconv_.h: Likewise.
103562         * lib/locale_.h: Likewise.
103563         * lib/netinet_in_.h: Likewise.
103564         * lib/sys_select_.h: Likewise.
103565         * lib/sys_socket_.h: Likewise.
103566         * lib/sysexits_.h: Likewise.
103567         * modules/fcntl (Depends-on): Depend on include_next, not
103568         absolute_header.
103569         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103570         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103571         * modules/fchdir: Likewise.
103572         * modules/float: Likewise.
103573         * modules/iconv_open: Likewise.
103574         * modules/inttypes: Likewise.
103575         * modules/locale: Likewise.
103576         * modules/math: Likewise.
103577         * modules/netinet_in: Likewise.
103578         * modules/search: Likewise.
103579         * modules/signal: Likewise.
103580         * modules/stdint: Likewise.
103581         * modules/stdio: Likewise.
103582         * modules/stdlib: Likewise.
103583         * modules/string: Likewise.
103584         * modules/sys_select: Likewise.
103585         * modules/sys_socket: Likewise.
103586         * modules/sys_stat: Likewise.
103587         * modules/sys_time: Likewise.
103588         * modules/sysexits: Likewise.
103589         * modules/time: Likewise.
103590         * modules/unistd: Likewise.
103591         * modules/wchar: Likewise.
103592         * modules/wctype: Likewise.
103593         * modules/sys_stat: Change maintainer to "all".
103594         * modules/unistd: Likewise.
103596 2007-06-20  Karl Berry  <karl@gnu.org>
103598         * config/srclist.txt: track www changes in license files.
103600 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103602         * build-aux/bootstrap: Remove stray dot.
103603         Make sure build_aux settings are honored when linking
103604         gnulib_extra_files.
103606 2007-06-19  Eric Blake  <ebb9@byu.net>
103608         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103609         Allow compilation on cygwin.
103611 2007-06-19  Jim Meyering  <jim@meyering.net>
103613         xreadlink-with-size: Remove module.  No longer used.
103614         Ex-callers now use xreadlink or mreadlink-with-size.
103615         * modules/xreadlink-with-size: Remove module.
103616         * lib/xreadlink-with-size.c: Remove file.
103617         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103618         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103619         just before the function definition *is* accurate.
103621         Eliminate one way canonicalize_filename_mode could exit.
103622         * lib/canonicalize.c (canonicalize_filename_mode):
103623         Use mreadlink_with_size, not xreadlink_with_size.
103625 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103627         Detect porting problems to FreeBSD/arm, which has time_t wider than
103628         long int.  Original problem reported for GNU diff by Xin Li in
103629         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103630         * modules/getdate (Depends-on): Add intprops, verify.
103631         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103632         is an integer type no wider than long int.
103634 2007-06-18  Jim Meyering  <jim@meyering.net>
103636         New module: mreadlink-with-size.
103637         * MODULES.html.sh: Add mreadlink-with-size.
103638         * modules/mreadlink-with-size: New module
103639         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103640         not xreadlink-with-size.
103641         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103643 2007-06-16  Bruno Haible  <bruno@clisp.org>
103645         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103646         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103647         Reported by Gary V. Vaughan <gary@gnu.org>.
103649 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103651         Revamp lchown so that it lives in unistd.h where it belongs.
103652         * lib/lchown.h: Remove.
103653         * lib/dirchownmod.c: Don't include lib/lchown.h.
103654         * lib/fchownat.c: Likewise.
103655         * lib/openat.c: Likewise.
103656         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103657         does not follow symlinks.
103658         (EOPNOTSUPP): Define if not defined.
103659         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103660         is defined to 0.
103661         (lchown): New decl.
103662         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103663         Do not check for lchown decl.
103664         Set REPLACE_LCHOWN.
103665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103666         REPLACE_LCHOWN.
103667         * modules/chown: Make it clear it follows symlinks.
103668         * modules/lchown: Make it clear it doesn't follow symlinks.
103669         (Files): Remove lib/lchown.h
103670         (Depends-on): Add unistd.
103671         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103672         (Include): Include <unistd.h>, not "lchown.h".
103673         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103674         REPLACE_LCHOWN.
103676 2007-06-15  Jim Meyering  <jim@meyering.net>
103678         Change license (GPL to LGPL) of fsusage and dependents.
103679         * modules/fsusage (License): Change to LGPL.
103680         * modules/full-read (License): Likewise.
103681         * modules/full-write (License): Likewise.
103682         * modules/safe-read (License): Likewise.
103683         * modules/safe-write (License): Likewise.
103685 2007-06-14  Ben Pfaff  <blp@gnu.org>
103687         Missing part of allocsa -> malloca transition.
103688         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103689         gl_MALLOCA.
103691 2007-06-12  Bruno Haible  <bruno@clisp.org>
103693         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103694         to ia64, x86_64, i386.
103695         Reported by Eric Blake.
103697 2007-06-12  Bruno Haible  <bruno@clisp.org>
103699         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103700         cross-compiling to x86_64.
103702 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103704         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103705         glitch reported by Ralf Wildenhues in
103706         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103708         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103709         Vin Shelton.
103711 2007-06-11  Bruno Haible  <bruno@clisp.org>
103713         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103714         replacement string.
103715         Reported by Eric Blake.
103717 2007-06-10  Bruno Haible  <bruno@clisp.org>
103719         Prepare vasnprintf code for use with Unicode strings.
103720         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103721         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103722         TYPE_U32_STRING.
103723         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103724         a_u32_string variants.
103725         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103726         * lib/printf-args.c: Don't include config.h and the specification
103727         header if PRINTF_FETCHARGS is already defined.
103728         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103729         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103730         TYPE_U16_STRING, TYPE_U32_STRING.
103731         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103732         u16_directive, u16_directives, u32_directive, u32_directives): New
103733         types.
103734         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103735         New declarations.
103736         * lib/printf-parse.c: Don't include config.h and the specification
103737         header if PRINTF_PARSE is already defined. Eliminate the set of
103738         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103739         them now. Include c-ctype.h.
103740         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103741         directive and CHAR_T_ONLY_ASCII.
103742         * lib/vasnprintf.c: Don't include config.h and the specification header
103743         if VASNPRINTF is already defined.
103744         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103745         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103746         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103747         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103748         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103749         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103750         code accordingly.
103751         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103752         pad_ourselves also in this case, with the 'c' and 's' directives, and
103753         with a different notion of "width".
103754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103756 2007-06-10  Bruno Haible  <bruno@clisp.org>
103758         * modules/unistr/u32-mbsnlen: New file.
103759         * lib/unistr/u32-mbsnlen.c: New file.
103761         * modules/unistr/u16-mbsnlen: New file.
103762         * lib/unistr/u16-mbsnlen.c: New file.
103764         * modules/unistr/u8-mbsnlen: New file.
103765         * lib/unistr/u8-mbsnlen.c: New file.
103767         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103768         declarations.
103770 2007-06-10  Bruno Haible  <bruno@clisp.org>
103772         * lib/string_.h (mbsnlen): New declaration.
103773         * lib/mbsnlen.c: New file.
103774         * m4/mbsnlen.m4: New file.
103775         * modules/mbsnlen: New file.
103776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103777         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103778         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103780 2007-06-10  Bruno Haible  <bruno@clisp.org>
103782         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103784 2007-06-10  Bruno Haible  <bruno@clisp.org>
103786         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103787         * lib/mbuiter.h: Likewise.
103789 2007-06-10  Bruno Haible  <bruno@clisp.org>
103791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103792         declaration.
103794 2007-06-10  Karl Berry  <karl@gnu.org>
103796         * config/srclist.txt: remove gettext entries, Bruno prefers
103797         to update individually.
103799 2007-06-10  Bruno Haible  <bruno@clisp.org>
103801         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103802         'maxlen'. Ensure only length + width bytes are allocated, not
103803         length + 1 + width.
103805 2007-06-09  Bruno Haible  <bruno@clisp.org>
103807         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103808         (CHAR_T): Remove macro.
103809         (VASNPRINTF): Update.
103811 2007-06-09  Bruno Haible  <bruno@clisp.org>
103813         * MODULES.html.sh (Unicode string functions): Add the new modules.
103815         * modules/uniconv/u32-conv-to-enc: New file.
103816         * lib/uniconv/u32-conv-to-enc.c: New file.
103817         * modules/uniconv/u32-conv-to-enc-tests: New file.
103818         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103820         * modules/uniconv/u16-conv-to-enc: New file.
103821         * lib/uniconv/u16-conv-to-enc.c: New file.
103822         * lib/uniconv/u-conv-to-enc.h: New file.
103823         * modules/uniconv/u16-conv-to-enc-tests: New file.
103824         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103826         * modules/uniconv/u8-conv-to-enc: New file.
103827         * lib/uniconv/u8-conv-to-enc.c: New file.
103828         * modules/uniconv/u8-conv-to-enc-tests: New file.
103829         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103831         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103832         u32_conv_to_encoding): New declarations.
103834 2007-06-09  Bruno Haible  <bruno@clisp.org>
103836         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103838 2007-06-09  Bruno Haible  <bruno@clisp.org>
103840         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103841         * modules/malloca: Renamed from modules/allocsa, updated.
103842         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103843         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103844         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103845         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103846         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103847         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103848         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103849         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103850         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103851         * modules/c-strcasestr (Depends-on): Update.
103852         * lib/c-strcasestr.c: Update.
103853         * modules/c-strstr (Depends-on): Update.
103854         * lib/c-strstr.c: Update.
103855         * modules/canonicalize-lgpl (Depends-on): Update.
103856         * lib/canonicalize-lgpl.c: Update.
103857         * modules/clean-temp (Depends-on): Update.
103858         * lib/clean-temp.c: Update.
103859         * modules/csharpcomp (Depends-on): Update.
103860         * lib/csharpcomp.c: Update.
103861         * modules/csharpexec (Depends-on): Update.
103862         * lib/csharpexec.c: Update.
103863         * modules/javacomp (Depends-on): Update.
103864         * lib/javacomp.c: Update.
103865         * modules/javaexec (Depends-on): Update.
103866         * lib/javaexec.c: Update.
103867         * modules/mbscasestr (Depends-on): Update.
103868         * lib/mbscasestr.c: Update.
103869         * modules/mbsstr (Depends-on): Update.
103870         * lib/mbsstr.c: Update.
103871         * modules/setenv (Depends-on): Update.
103872         * lib/setenv.c: Update.
103873         * modules/strcasestr (Depends-on): Update.
103874         * lib/strcasestr.c: Update.
103875         * modules/striconveha (Depends-on): Update.
103876         * lib/striconveha.c: Update.
103877         * modules/relocatable-prog-wrapper (Files): Update.
103878         * lib/relocwrapper.c: Update.
103879         * build-aux/install-reloc: Update.
103880         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103882 2007-06-08  Bruno Haible  <bruno@clisp.org>
103884         Port to uClibc.
103885         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103886         * lib/fpurge.c (fpurge): Likewise.
103887         * lib/freading.c (freading): Likewise.
103888         * lib/fseeko.c (rpl_fseeko): Likewise.
103889         * lib/fseterr.c (fseterr): Likewise.
103890         * lib/fwriting.c (fwriting): Likewise.
103891         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103893 2007-06-08  Bruno Haible  <bruno@clisp.org>
103895         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103896         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103897         * modules/gettext (Files): Add m4/intlmacosx.m4.
103899 2007-06-07  Bruno Haible  <bruno@clisp.org>
103901         * modules/localename-tests: New file.
103902         * tests/test-localename.c: New file.
103904         New module 'localename'.
103905         * lib/localename.h: New file.
103906         * lib/localename.c: New file, from GNU gettext.
103907         * m4/localename.m4: New file.
103908         * modules/localename: New file.
103910 2007-06-07  Bruno Haible  <bruno@clisp.org>
103912         Work around the lack of <wchar.h> on some builds of uClibc.
103913         * doc/headers/wchar.texi: Update.
103914         * lib/wchar_.h: Include <wchar.h> only if it exists.
103915         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103916         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103917         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103918         doesn't exist.
103919         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103920         * modules/mbfile (Depends-on): Add wchar.
103921         * modules/mbiter (Depends-on): Likewise.
103922         * modules/mbuiter (Depends-on): Likewise.
103923         Reported by Simon Josefsson.
103925 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103927         Work around problem reported by Steven M. Schweda in
103928         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103929         Tru64 5.1B with the Compaq compiler environment installed declares
103930         an 'isblank' function but does not define it in the C library.
103931         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103932         * lib/regex_internal.h (isblank): Likewise.
103933         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103934         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103936 2007-06-05  Bruno Haible  <bruno@clisp.org>
103938         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103939         ia64.
103940         * modules/printf-safe: New file.
103941         * modules/fprintf-posix (Depends-on): Add printf-safe.
103942         * modules/printf-posix (Depends-on): Likewise.
103943         * modules/snprintf-posix (Depends-on): Likewise.
103944         * modules/sprintf-posix (Depends-on): Likewise.
103945         * modules/vasnprintf-posix (Depends-on): Likewise.
103946         * modules/vasprintf-posix (Depends-on): Likewise.
103947         * modules/vfprintf-posix (Depends-on): Likewise.
103948         * modules/vprintf-posix (Depends-on): Likewise.
103949         * modules/vsnprintf-posix (Depends-on): Likewise.
103950         * modules/vsprintf-posix (Depends-on): Likewise.
103951         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103952         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103953         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103954         "no" on i386, x86_64, ia64.
103955         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103956         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103957         on i386, x86_64, ia64.
103958         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103959         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103960         on i386, x86_64, ia64.
103961         * tests/test-vasnprintf-posix.c: Include float.h.
103962         (LDBL80_WORDS): New macro.
103963         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103964         on i386, x86_64, ia64.
103965         * tests/test-vasprintf-posix.c: Include float.h.
103966         (LDBL80_WORDS): New macro.
103967         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103968         on i386, x86_64, ia64.
103969         * tests/test-snprintf-posix.c: Include float.h.
103970         * tests/test-sprintf-posix.c: Likewise.
103971         * tests/test-vsnprintf-posix.c: Likewise.
103972         * tests/test-vsprintf-posix.c: Likewise.
103974 2007-06-05  Bruno Haible  <bruno@clisp.org>
103976         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103977         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103978         non-IEEE numbers on i386, x86_64, ia64.
103979         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103980         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103981         * tests/test-isnanl.h: Include float.h.
103982         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103984 2007-06-05  Bruno Haible  <bruno@clisp.org>
103986         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103987         also the %a / %A. Handle the %a / %A code before this extra handling.
103989 2007-06-05  Bruno Haible  <bruno@clisp.org>
103991         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103992         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103994 2007-06-05  Bruno Haible  <bruno@clisp.org>
103996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103997         typo in variable name.
103999 2007-06-05  Eric Blake  <ebb9@byu.net>
104001         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104002         Reported by Simon Josefsson.
104004 2007-06-04  Bruno Haible  <bruno@clisp.org>
104006         Avoid test failures on some PowerPC platforms.
104007         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104008         Define differently for PowerPC.
104009         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104010         Reported by Gary V. Vaughan <gary@gnu.org>.
104012 2007-06-02  Bruno Haible  <bruno@clisp.org>
104014         Fix test-stdint failure on FreeBSD/ia64.
104015         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104016         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104017         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104018         * doc/headers/stdint.texi: Update.
104020 2007-06-01  Bruno Haible  <bruno@clisp.org>
104022         * tests/test-binary-io.c (main): Pass a third argument to open().
104023         Reported by Gary V. Vaughan <gary@gnu.org>.
104025 2007-06-01  Bruno Haible  <bruno@clisp.org>
104027         * doc/functions/frexpl.texi: Update for mingw.
104029 2007-06-01  Bruno Haible  <bruno@clisp.org>
104031         * tests/test-lseek.c (main): Disable test of errno for invalid third
104032         argument.
104033         * doc/functions/lseek.texi: Update.
104034         Reported by Gary V. Vaughan <gary@gnu.org>.
104036 2007-05-28  Bruno Haible  <bruno@clisp.org>
104038         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104040 2007-05-31  Eric Blake  <ebb9@byu.net>
104042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104043         cross compiling.
104045 2007-05-30  Eric Blake  <ebb9@byu.net>
104046         and Bruno Haible  <bruno@clisp.org>
104048         Work around mingw test failures exposed by m4-1.4.9b.
104049         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104050         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104051         moment.
104053 2007-05-30  Bruno Haible  <bruno@clisp.org>
104055         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104056         assuming that they are closed. Needed on HP-UX 11.
104058 2007-05-29  Bruno Haible  <bruno@clisp.org>
104060         Fix a problem with #include_next.
104061         * lib/dirent_.h: Split the double-inclusion guard.
104062         * lib/fcntl_.h: Likewise.
104063         * lib/float_.h: Likewise.
104064         * lib/iconv_.h: Likewise.
104065         * lib/inttypes_.h: Likewise.
104066         * lib/locale_.h: Likewise.
104067         * lib/math_.h: Likewise.
104068         * lib/netinet_in_.h: Likewise.
104069         * lib/search_.h: Likewise.
104070         * lib/signal_.h: Likewise.
104071         * lib/stdint_.h: Likewise.
104072         * lib/stdio_.h: Likewise.
104073         * lib/stdlib_.h: Likewise.
104074         * lib/string_.h: Likewise.
104075         * lib/sys_select_.h: Likewise.
104076         * lib/sys_socket_.h: Likewise.
104077         * lib/sys_stat_.h: Likewise.
104078         * lib/sys_time_.h: Likewise.
104079         * lib/sysexits_.h: Likewise.
104080         * lib/time_.h: Likewise.
104081         * lib/unistd_.h: Likewise.
104082         * lib/wchar_.h: Likewise.
104083         * lib/wctype_.h: Likewise.
104085 2007-05-29  Bruno Haible  <bruno@clisp.org>
104087         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104088         for the moment.
104090 2007-05-29  Bruno Haible  <bruno@clisp.org>
104092         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104093         invocation.
104094         Reported by Eric Blake.
104096 2007-05-29  Bruno Haible  <bruno@clisp.org>
104098         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104099         compiling case.
104101 2007-05-29  Eric Blake  <ebb9@byu.net>
104102             Bruno Haible  <bruno@clisp.org>
104104         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104105         cross compiles.
104107 2007-05-28  Eric Blake  <ebb9@byu.net>
104109         * modules/closein-tests (test_closein_LDADD): Support test on
104110         cygwin with libtool.
104112 2007-05-28  Bruno Haible  <bruno@clisp.org>
104114         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104115         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104116         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104117         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104118         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104119         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104120         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104121         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104122         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104124 2007-05-28  Eric Blake  <ebb9@byu.net>
104126         Unconditionally include <config.h> in unit tests.
104127         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104128         * tests/test-allocsa.c, tests/test-arcfour.c,
104129         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104130         tests/test-array_list.c, tests/test-array_oset.c,
104131         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104132         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104133         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104134         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104135         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104136         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104137         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104138         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104139         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104140         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104141         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104142         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104143         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104144         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104145         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104146         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104147         test-md5.c, test-memmem.c, test-printf-posix.c,
104148         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104149         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104150         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104151         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104152         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104153         test-vasnprintf-posix2.c, test-vasnprintf.c,
104154         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104155         test-vfprintf-posix.c, test-vprintf-posix.c,
104156         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104157         test-xvasprintf.c: Likewise.
104159 2007-05-28  Bruno Haible  <bruno@clisp.org>
104161         * gnulib-tool (func_import): Remember the --with-tests command-line
104162         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104163         Reported by Eric Blake.
104165 2007-05-28  Bruno Haible  <bruno@clisp.org>
104167         * modules/ftell-tests: New file.
104168         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104169         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104171         * lib/ftell.c: New file.
104172         * modules/ftell: New file.
104173         * m4/ftell.m4: New file.
104174         * doc/functions/ftell.texi: Update.
104175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104176         REPLACE_FTELL.
104177         * lib/stdio_.h (rpl_ftell): New declaration.
104178         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104179         REPLACE_FTELL.
104181 2007-05-28  Eric Blake  <ebb9@byu.net>
104183         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104185 2007-05-28  Bruno Haible  <bruno@clisp.org>
104187         * modules/fseek-tests: New file.
104188         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104189         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104191         * lib/fseek.c: New file.
104192         * modules/fseek: New file.
104193         * m4/fseek.m4: New file.
104194         * doc/functions/fseek.texi: Update.
104195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104196         REPLACE_FSEEK.
104197         * lib/stdio_.h (rpl_fseek): New declaration.
104198         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104199         REPLACE_FSEEK.
104201 2007-05-28  Bruno Haible  <bruno@clisp.org>
104203         * lib/stdio_.h (fflush): More comments.
104205 2007-05-28  Bruno Haible  <bruno@clisp.org>
104207         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104208         runtime test.
104210 2007-05-28  Eric Blake  <ebb9@byu.net>
104212         Improve lseek module.
104213         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104214         * lib/unistd_.h (lseek): Scale back link warning message.
104215         * tests/test-lseek.c: Beef up test.
104216         * tests/test-lseek.sh: Exercise more facets of lseek.
104217         Reported by Bruno Haible.
104219 2007-05-28  Bruno Haible  <bruno@clisp.org>
104221         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104222         to define.
104224 2007-05-27  Bruno Haible  <bruno@clisp.org>
104226         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104228 2007-05-27  Bruno Haible  <bruno@clisp.org>
104230         * modules/openmp: New file.
104231         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104232         Noah Misch.
104234 2007-05-26  Bruno Haible  <bruno@clisp.org>
104236         * modules/chdir-long (Depends-on): Add fchdir.
104237         * modules/chdir-safer (Depends-on): Likewise.
104238         * modules/fts (Depends-on): Likewise.
104239         * modules/fts-lgpl (Depends-on): Likewise.
104240         * modules/openat (Depends-on): Likewise.
104241         * modules/savewd (Depends-on): Likewise.
104243 2007-05-24  Eric Blake  <ebb9@byu.net>
104245         Fix lseek on mingw.
104246         * modules/lseek: New module.
104247         * m4/lseek.m4: New file.
104248         * lib/lseek.c: New file.
104249         * modules/lseek-tests: New file.
104250         * tests/test-lseek.c: New file.
104251         * tests/test-lseek.sh: New file.
104252         * MODULES.html.sh: Document lseek module.
104253         * modules/fflush (Depends-on): Add lseek, fseeko.
104254         * modules/fseeko (Depends-on): Likewise.
104255         * modules/ftello (Depends-on): Likewise.
104256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104257         broken.
104258         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104259         broken.
104260         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104261         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104262         * lib/ftello.c (rpl_ftello): Likewise.
104263         * tests/test-fseeko.c (main): Test this.
104264         * tests/test-fseeko.sh: Likewise.
104265         * tests/test-ftello.c (main): Likewise.
104266         * tests/test-ftello.sh: Likewise.
104267         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104268         implies replacing fseek.
104269         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104270         HAVE_FTELLO.
104271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104272         * modules/unistd (Makefile.am): Likewise.
104273         * lib/unistd_.h (lseek): Declare a replacement.
104274         * doc/functions/lseek.texi (lseek): Document this fix.
104275         * doc/functions/fseek.texi (fseek): Likewise.
104276         * doc/functions/ftell.texi (ftell): Likewise.
104278 2007-05-24  Bruno Haible  <bruno@clisp.org>
104280         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104281         in the printed representation of a NaN.
104282         * tests/test-vasprintf-posix.c (test_function): Likewise.
104283         * tests/test-snprintf-posix.h (test_function): Likewise.
104284         * tests/test-sprintf-posix.h (test_function): Likewise.
104285         Reported by Eric Blake.
104287 2007-05-23  Eric Blake  <ebb9@byu.net>
104289         Fix fseeko/ftello on cygwin 1.5.24.
104290         * doc/functions/fseeko.texi (fseeko): Document the fix.
104291         * doc/functions/ftello.texi (ftello): Document the fix.
104292         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104293         * doc/functions/stdout.text (stdout): New file.
104294         * doc/functions/stderr.text (stderr): New file.
104295         * doc/gnulib.texi (Function Substitutes): Use new files.
104296         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104297         prior to 1.7.0.
104298         * tests/test-ftello.c (main): Likewise for ftello.
104299         * tests/test-fseeko.sh: New file.
104300         * tests/test-ftello.sh: New file.
104301         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104302         with seekable stdin.
104303         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104304         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104305         (gl_REPLACE_FSEEKO): New macro.
104306         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104307         * modules/fseeko (Files): Distribute fseeko.c.
104308         * modules/ftello (Files): Distribute ftello.c.
104309         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104310         mode.
104311         * lib/ftello.c (rpl_ftello): New file.
104312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104313         fseeko, ftello.
104314         (gl_STDIN_LARGE_OFFSET): New macro.
104315         * modules/stdio (Makefile.am): Perform the replacement.
104316         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104318 2007-05-23  Bruno Haible  <bruno@clisp.org>
104320         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104321         GNULIB_POSIXCHECK is defined.
104323 2007-05-21  Bruno Haible  <bruno@clisp.org>
104325         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104326         Check also the output for NaN arguments. When cross-compiling, guess
104327         no on IRIX.
104328         * lib/vasnprintf.c: Update comments.
104329         * tests/test-vasnprintf-posix.c (strisnan): New function.
104330         (test_function): Use it.
104331         * tests/test-vasprintf-posix.c (strisnan): New function.
104332         (test_function): Use it.
104333         * tests/test-snprintf-posix.h (strisnan): New function.
104334         (test_function): Use it.
104335         * tests/test-sprintf-posix.h (strisnan): New function.
104336         (test_function): Use it.
104337         Reported by Eric Blake.
104339 2007-05-20  Bruno Haible  <bruno@clisp.org>
104341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104342         numbers that fails on BeOS.
104343         * doc/functions/frexpl.texi: Update.
104345 2007-05-20  Jim Meyering  <jim@meyering.net>
104347         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104348         forced upon us by glibc-2.6.
104350 2007-05-20  Bruno Haible  <bruno@clisp.org>
104352         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104353         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104354         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104355         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104356         NEED_PRINTF_INFINITE.
104357         (is_infinitel): New function.
104358         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104360         gl_PREREQ_VASNPRINTF_INFINITE.
104361         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104362         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104363         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104364         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104365         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104366         gl_PREREQ_VASNPRINTF_INFINITE.
104367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104374         * doc/functions/fprintf.texi: Update.
104375         * doc/functions/printf.texi: Update.
104376         * doc/functions/snprintf.texi: Update.
104377         * doc/functions/sprintf.texi: Update.
104378         * doc/functions/vfprintf.texi: Update.
104379         * doc/functions/vprintf.texi: Update.
104380         * doc/functions/vsnprintf.texi: Update.
104381         * doc/functions/vsprintf.texi: Update.
104383 2007-05-20  Bruno Haible  <bruno@clisp.org>
104385         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104386         was not found in libc.
104387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104389 2007-05-20  Bruno Haible  <bruno@clisp.org>
104391         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104392         printed as "-nan" instead of "nan".
104393         * tests/test-vasprintf-posix.c (test_function): Likewise.
104394         * tests/test-snprintf-posix.h (test_function): Likewise.
104395         * tests/test-sprintf-posix.h (test_function): Likewise.
104396         Needed for HP-UX 11.
104398 2007-05-20  Jim Meyering  <jim@meyering.net>
104400         Fix buggy test for the fchownat-deref bug.
104401         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104402         symlink required for the run-test.  Without it, this test would
104403         always declare that fchownat doesn't work, and client code would
104404         unnecessarily use the replacement function with fixed libc.
104405         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104406         Reported by Greg Schafer.
104408 2007-05-19  Bruno Haible  <bruno@clisp.org>
104410         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104411         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104412         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104413         Needed for IRIX 6.5 and Solaris 2.5.1.
104415 2007-05-19  Bruno Haible  <bruno@clisp.org>
104417         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104418         (test_function): Skip tests involving -0.0 on platforms where
104419         -0.0 = 0.0.
104420         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104421         (test_function): Skip tests involving -0.0 on platforms where
104422         -0.0 = 0.0.
104423         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104424         (test_function): Skip tests involving -0.0 on platforms where
104425         -0.0 = 0.0.
104426         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104427         (test_function): Skip tests involving -0.0 on platforms where
104428         -0.0 = 0.0.
104429         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104430         tests.
104431         * tests/test-printf-posix.h (test_function): Likewise.
104432         * tests/test-printf-posix.output: Remove all -0.0 related results.
104433         Needed for IRIX 6.5.
104435 2007-05-19  Bruno Haible  <bruno@clisp.org>
104437         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104438         printed as "nan0x7fffffff" instead of "nan".
104439         * tests/test-vasprintf-posix.c (test_function): Likewise.
104440         * tests/test-snprintf-posix.h (test_function): Likewise.
104441         * tests/test-sprintf-posix.h (test_function): Likewise.
104442         * tests/test-fprintf-posix.h (NaN): Remove macro.
104443         (test_function): Remove all NaN related tests.
104444         * tests/test-printf-posix.h (NaN): Remove macro.
104445         (test_function): Remove all NaN related tests.
104446         * tests/test-printf-posix.output: Remove all NaN related results.
104447         Needed for IRIX 6.5.
104449 2007-05-19  Bruno Haible  <bruno@clisp.org>
104451         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104454 2007-05-19  Bruno Haible  <bruno@clisp.org>
104456         * lib/float_.h: New file.
104457         * m4/float_h.m4: New file.
104458         * modules/float: New file.
104459         * modules/isnanl (Dependencies): Add float.
104460         * modules/isnanl-nolibm (Dependencies): Likewise.
104461         * modules/mathl (Dependencies): Likewise.
104462         * modules/printf-frexpl (Dependencies): Likewise.
104463         * modules/signbit (Dependencies): Likewise.
104464         * modules/vasnprintf (Dependencies): Likewise.
104465         * doc/headers/float.texi: Update.
104467 2007-05-19  Jim Meyering  <jim@meyering.net>
104469         * lib/utimens.c (gl_futimens): Rename from futimens,
104470         now that glibc-2.6 declares futimens.
104471         * lib/utimens.h: Likewise.
104473 2007-05-19  Bruno Haible  <bruno@clisp.org>
104475         Avoid test failures on mingw.
104476         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104477         * tests/test-printf-posix.sh: Likewise.
104478         * tests/test-vfprintf-posix.sh: Likewise.
104479         * tests/test-vprintf-posix.sh: Likewise.
104481 2007-05-19  Bruno Haible  <bruno@clisp.org>
104483         Fix *printf result for NaN, Inf, -0.0 on mingw.
104484         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104485         * lib/vasnprintf.c: Include math.h and isnan.h.
104486         (is_infinite_or_zero): New function.
104487         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104488         values in the %f, %F, %e, %E, %g, %G directives.
104489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104490         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104491         gl_PRINTF_INFINITE and test its result. Invoke
104492         gl_PREREQ_VASNPRINTF_INFINITE.
104493         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104494         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104497         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104498         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104499         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104500         * doc/functions/fprintf.texi: Update.
104501         * doc/functions/printf.texi: Update.
104502         * doc/functions/snprintf.texi: Update.
104503         * doc/functions/sprintf.texi: Update.
104504         * doc/functions/vfprintf.texi: Update.
104505         * doc/functions/vprintf.texi: Update.
104506         * doc/functions/vsnprintf.texi: Update.
104507         * doc/functions/vsprintf.texi: Update.
104509 2007-05-19  Bruno Haible  <bruno@clisp.org>
104511         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104512         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104513         Instead of multiplying with 10^k, set extra_zeroes to k.
104514         (scale10_round_long_double): Remove function.
104516 2007-05-18  Bruno Haible  <bruno@clisp.org>
104518         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104519         introduced on 2007-05-06.
104521 2007-05-18  Bruno Haible  <bruno@clisp.org>
104523         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104524         %g directives.
104525         * tests/test-vasprintf-posix.c (test_function): Likewise.
104526         * tests/test-snprintf-posix.h (test_function): Likewise.
104527         * tests/test-sprintf-posix.h (test_function): Likewise.
104529 2007-05-18  Bruno Haible  <bruno@clisp.org>
104531         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104532         (strmatch): New function.
104533         (test_function): Test the %f directive on numbers of various exponents.
104534         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104535         (strmatch): New function.
104536         (test_function): Test the %f directive on numbers of various exponents.
104537         * tests/test-snprintf-posix.h (strmatch): New function.
104538         (test_function): Test the %f directive on numbers of various exponents.
104539         * tests/test-sprintf-posix.h (strmatch): New function.
104540         (test_function): Test the %f directive on numbers of various exponents.
104541         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104542         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104543         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104544         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104546 2007-05-18  Bruno Haible  <bruno@clisp.org>
104548         Add support for 'long double' number output.
104549         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104550         * lib/vasnprintf.c: Include math.h and float+.h.
104551         (mp_limb_t): New type.
104552         (GMP_LIMB_BITS): New macro.
104553         (mp_twolimb_t): New type.
104554         (GMP_TWOLIMB_BITS): New macro.
104555         (mpn_t): New type.
104556         (multiply, divide, convert_to_decimal, decode_long_double,
104557         scale10_round_long_double, scale10_round_decimal_long_double,
104558         floorlog10l): New functions.
104559         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104560         for the %f, %F, %e, %E, %g, %G directives.
104561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104563         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104564         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104572         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104573         * modules/snprintf-posix (Depends-on): Likewise.
104574         * modules/sprintf-posix (Depends-on): Likewise.
104575         * modules/vasnprintf-posix (Depends-on): Likewise.
104576         * modules/vasprintf-posix (Depends-on): Likewise.
104577         * modules/vfprintf-posix (Depends-on): Likewise.
104578         * modules/vsnprintf-posix (Depends-on): Likewise.
104579         * modules/vsprintf-posix (Depends-on): Likewise.
104580         * modules/vasnprintf (Files): Add lib/float+.h.
104581         * doc/functions/fprintf.texi: Update.
104582         * doc/functions/printf.texi: Update.
104583         * doc/functions/snprintf.texi: Update.
104584         * doc/functions/sprintf.texi: Update.
104585         * doc/functions/vfprintf.texi: Update.
104586         * doc/functions/vprintf.texi: Update.
104587         * doc/functions/vsnprintf.texi: Update.
104588         * doc/functions/vsprintf.texi: Update.
104590 2007-05-18  Bruno Haible  <bruno@clisp.org>
104592         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104594 2007-05-18  Bruno Haible  <bruno@clisp.org>
104596         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104597         for printing 64-bit integers. Needed for mingw.
104599 2007-05-18  Bruno Haible  <bruno@clisp.org>
104601         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104602         gl_FUNC_FREXPL_WORKS.
104603         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104605 2007-05-18  Bruno Haible  <bruno@clisp.org>
104607         * modules/frexpl-nolibm-tests: New file.
104609         * modules/frexpl-nolibm: New file.
104610         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104612 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104614         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104615         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104616         GCC 4.2, which otherwise issues a lot of warnings.
104617         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104618         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104619         Likewise.
104620         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104621         * modules/iconv_open (iconv.h): Likewise.
104622         * modules/locale (locale.h): Likewise.
104623         * modules/netinet_in (netinet/in.h): Likewise.
104624         * modules/sys_select (sys_select.h): Likewise.
104625         * modules/sys_socket (sys/socket.h): Likewise.
104626         * modules/sys_stat (sys/stat.h): Likewise.
104627         * modules/sysexits (sysexits.h): Likewise.
104628         * modules/unistd (unistd.h): Likewise.
104630 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104632         * modules/closein-tests (Makefile.am): Distribute
104633         `test-closein.sh'.
104635 2007-05-17  Bruno Haible  <bruno@clisp.org>
104637         * tests/test-printf-posix.output: Renamed from
104638         tests/test-fprintf-posix.out.
104639         * modules/fprintf-posix-tests: Update.
104640         * modules/printf-posix-tests: Update.
104641         * modules/vfprintf-posix-tests: Update.
104642         * modules/vprintf-posix-tests: Update.
104643         * tests/test-fprintf-posix.sh: Update.
104644         * tests/test-printf-posix.sh: Update.
104645         * tests/test-vfprintf-posix.sh: Update.
104646         * tests/test-vprintf-posix.sh: Update.
104647         Reported by Ralf Wildenhues.
104649 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104651         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104652         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104653         GCC 4.2, which otherwise issues a lot of warnings.
104654         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104655         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104656         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104657         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104658         it should no longer be needed.
104659         * lib/string_.h: Likewise.
104660         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104661         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104662         * modules/inttypes (inttypes.h): Likewise.
104663         * modules/math (math.h): Likewise.
104664         * modules/search (search.h): Likewise.
104665         * modules/signal (signal.h): Likewise.
104666         * modules/stdint (stdint.h): Likewise.
104667         * modules/stdio (stdio.h): Likewise.
104668         * modules/stdlib (stdlib.h): Likewise.
104669         * modules/string (string.h): Likewise.
104670         * modules/sys_time (sys/time.h): Likewise.
104671         * modules/time (time.h): Likewise.
104672         * modules/wchar (wchar.h): Likewise.
104673         * modules/wctype (wtype.h): Likewise.
104675 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104677         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104679 2007-05-13  Bruno Haible  <bruno@clisp.org>
104681         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104682         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104683         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104684         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104685         (gl_PREREQ_STRTOK_R): Don't require it here.
104687 2007-05-13  Bruno Haible  <bruno@clisp.org>
104689         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104690         when used in C++ mode.
104692 2007-05-12  Bruno Haible  <bruno@clisp.org>
104694         * lib/linebuffer.h: Tweak doc.
104695         * lib/linebuffer.c: Likewise.
104697 2007-05-12  James Youngman  <jay@gnu.org>
104699         * lib/linebuffer.c (readlinebuffer_delim): New function,
104700         like readlinebuffer, but use a caller-specified delimiter.
104701         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104702         as the delimiter.
104703         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104705 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104707         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104708         * modules/openat (Files): Remove openat-die.c.
104709         (Depends-on): Add openat-die.
104710         * modules/openat-die: New module.
104712 2007-05-06  Bruno Haible  <bruno@clisp.org>
104714         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104715         Update with info about Cygwin.
104716         * doc/functions/fprintf.texi: Update.
104717         * doc/functions/printf.texi: Update.
104718         * doc/functions/snprintf.texi: Update.
104719         * doc/functions/sprintf.texi: Update.
104720         * doc/functions/vfprintf.texi: Update.
104721         * doc/functions/vprintf.texi: Update.
104722         * doc/functions/vsnprintf.texi: Update.
104723         * doc/functions/vsprintf.texi: Update.
104724         Reported by Eric Blake.
104726 2007-05-06  Bruno Haible  <bruno@clisp.org>
104728         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104729         padding ourselves for the floating-point directives.
104730         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104733         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104734         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104735         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104737         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104739         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104741         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104742         * tests/test-snprintf-posix.h (test_function): Also check the width
104743         and some flags in the %f directive.
104744         * tests/test-sprintf-posix.h (test_function): Likewise.
104745         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104746         * tests/test-vasprintf-posix.c (test_function): Likewise.
104747         * doc/functions/fprintf.texi: Update.
104748         * doc/functions/printf.texi: Update.
104749         * doc/functions/snprintf.texi: Update.
104750         * doc/functions/sprintf.texi: Update.
104751         * doc/functions/vfprintf.texi: Update.
104752         * doc/functions/vprintf.texi: Update.
104753         * doc/functions/vsnprintf.texi: Update.
104754         * doc/functions/vsprintf.texi: Update.
104756 2007-05-06  Bruno Haible  <bruno@clisp.org>
104758         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104759         pass the ' flag character to sprintf or snprintf.
104760         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104762         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104763         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104764         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104766         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104772         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104773         flag.
104774         * tests/test-sprintf-posix.h (test_function): Likewise.
104775         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104776         * tests/test-vasprintf-posix.c (test_function): Likewise.
104777         * doc/functions/fprintf.texi: Update.
104778         * doc/functions/printf.texi: Update.
104779         * doc/functions/snprintf.texi: Update.
104780         * doc/functions/sprintf.texi: Update.
104781         * doc/functions/vfprintf.texi: Update.
104782         * doc/functions/vprintf.texi: Update.
104783         * doc/functions/vsnprintf.texi: Update.
104784         * doc/functions/vsprintf.texi: Update.
104786 2007-05-01  Bruno Haible  <bruno@clisp.org>
104788         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104790 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104792         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104793         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104795 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104797         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104798         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104799         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104801 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104803         * lib/argp-help.c (struct hol_entry): New member `ord'.
104804         (HOL_ENTRY_PTRCMP): Use ord for comparison
104805         (hol_sort): Initialize ord.
104807 2007-05-01  Bruno Haible  <bruno@clisp.org>
104809         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104810         Reported by Eric Blake.
104811         * doc/gnulib.texi (Function Substitutes): Update.
104813 2007-05-01  Bruno Haible  <bruno@clisp.org>
104815         * doc/functions.texi: Remove file, now redundant through
104816         doc/functions/*.texi.
104818 2007-05-01  Bruno Haible  <bruno@clisp.org>
104820         * modules/argp (Depends-on): Add sleep.
104822 2007-05-01  Bruno Haible  <bruno@clisp.org>
104824         * modules/sleep-tests: New file.
104825         * tests/test-sleep.c: New file.
104827         * modules/sleep: New file.
104828         * lib/sleep.c: New file.
104829         * m4/sleep.m4: New file.
104830         * lib/unistd_.h (sleep): New declaration.
104831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104832         HAVE_SLEEP.
104833         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104834         * doc/functions/sleep.texi: Document the sleep module.
104836 2007-05-01  Bruno Haible  <bruno@clisp.org>
104838         * lib/sigprocmask.h: Remove file.
104839         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104840         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104841         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104842         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104843         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104844         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104845         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104846         HAVE_SIGSET_T as a shell variable.
104847         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104848         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104849         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104850         (Depends-on): Add signal. Remove verify.
104851         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104852         (Include): Mention <signal.h> instead of sigprocmask.h.
104853         * NEWS: Mention the change.
104854         * lib/fatal-signal.c: Don't include sigprocmask.h.
104856 2007-05-01  Bruno Haible  <bruno@clisp.org>
104858         * modules/signal: New file.
104859         * lib/signal_.h: New file.
104860         * m4/signal_h.m4: New file.
104862 2007-05-01  Bruno Haible  <bruno@clisp.org>
104864         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104865         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104866         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104867         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104869 2007-05-01  Bruno Haible  <bruno@clisp.org>
104871         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104872         configure time.
104873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104874         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104875         * modules/sys_stat (Makefile.am): Substitute their values into
104876         sys/stat.h.
104878 2007-05-01  Bruno Haible  <bruno@clisp.org>
104880         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104881         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104882         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104884 2007-05-01  Bruno Haible  <bruno@clisp.org>
104886         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104887         'assert' module here.
104889 2007-05-01  Bruno Haible  <bruno@clisp.org>
104891         * doc/functions/*.texi: New files.
104892         * doc/functions/google-ranking.txt: New file.
104893         * doc/gnulib.texi (Function Substitutes): New chapter.
104894         (ctime, inet_ntoa): Remove sections.
104895         * doc/ctime.texi: Remove file.
104896         * doc/inet_ntoa.texi: Remove file.
104897         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104898         dependencies.
104899         (%.info): New rule, specifying a --reference-limit.
104901 2007-05-01  Bruno Haible  <bruno@clisp.org>
104903         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104905 2007-05-01  Bruno Haible  <bruno@clisp.org>
104907         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104908         the portability of 'mkdir' to mingw systems.
104910 2007-05-01  Bruno Haible  <bruno@clisp.org>
104912         * doc/headers/google-ranking.txt: New file.
104914 2007-04-30  Eric Blake  <ebb9@byu.net>
104916         Prefer fseeko to fseek.
104917         * modules/getpass (Depends-on): Add fseeko.
104918         * lib/getpass.c (getpass): Use fseeko, not fseek.
104920 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104922         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104923         assumes the sorting is stable, while most qsort implementations
104924         are not.  Use argument addresses to ensure they never compare as
104925         equal.
104927         * tests/test-argp-2.sh (usage-indent test): Fix output
104928         (func_compare): Restore diff options
104929         * tests/test-argp.c: Restore #include "progname.h"
104931 2007-04-29  Bruno Haible  <bruno@clisp.org>
104933         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104935         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104936         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104937         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104938         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104939         (TESTS, check_PROGRAMS): Add test-snprintf.
104940         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104941         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104942         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104943         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104944         assertions that fail on HP-UX, OSF/1, or IRIX.
104945         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104947 2007-04-29  Bruno Haible  <bruno@clisp.org>
104949         * MODULES.html.sh (posix_functions): Remove 'contents'.
104951 2007-04-29  Karl Berry  <karl@gnu.org>
104953         * config/srclist.txt (gendocs_template_min): new entry.
104955 2007-04-29  Bruno Haible  <bruno@clisp.org>
104957         Work around fpurge bug on BSD systems.
104958         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104960         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104961         fpurge to rpl_fpurge if the system already has this function.
104962         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104963         the case where the system already has this function. Correct invariants
104964         on BSD systems.
104965         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104966         BSD systems.
104968 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104970         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104971         proposed by Sven Verdoolaege.
104973         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104974         options.
104975         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104976         (usage and help tests): Update
104978 2007-04-29  Bruno Haible  <bruno@clisp.org>
104980         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104981         Print more information in case of failure. Disable a test on BeOS.
104983 2007-04-29  Bruno Haible  <bruno@clisp.org>
104985         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104986         This helps debugging on systems on which no gdb is available.
104988 2007-04-29  Bruno Haible  <bruno@clisp.org>
104990         * lib/freading.h: Improve comments.
104991         * lib/fwriting.h: Likewise.
104992         * tests/test-freading.c (main): Don't check freading immediately after
104993         repositioning. Needed for glibc.
104995 2007-04-29  Bruno Haible  <bruno@clisp.org>
104997         * lib/freading.c (freading): Trivial simplification.
104999 2007-04-28  Bruno Haible  <bruno@clisp.org>
105001         * tests/test-fwriting.c (main): Also test the interaction between
105002         fflush and fwriting.
105003         * modules/fwriting-tests (Depends-on): Add fflush.
105005         * tests/test-freading.c (main): Also test the interaction between
105006         fflush and freading.
105007         * modules/freading-tests (Depends-on): Add fflush.
105009 2007-04-28  Bruno Haible  <bruno@clisp.org>
105011         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105012         fseeko and ftello.
105013         Suggested by Eric Blake.
105015 2007-04-28  Jim Meyering  <jim@meyering.net>
105017         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105018         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105019         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105021 2007-04-27  Eric Blake  <ebb9@byu.net>
105023         * doc/headers/assert.texi (assert.h): Document assert module use.
105025 2007-04-27  Bruno Haible  <bruno@clisp.org>
105027         * doc/headers/*.texi: New files.
105028         * doc/gnulib.texi (Header File Substitutes): New chapter.
105029         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105030         dependencies.
105031         (standards.info ,standards.html, standards.dvi): Update dependencies.
105032         (mostlyclean, clean): New targets.
105034 2007-04-27  Bruno Haible  <bruno@clisp.org>
105036         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105037         * modules/sysexits (Files, Makefile.am): Update.
105039         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105040         * modules/sys_socket (Files, Makefile.am): Update.
105042         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105043         * modules/sys_stat (Files, Makefile.am): Update.
105045 2007-04-27  Eric Blake  <ebb9@byu.net>
105047         * lib/freading.h: Improve comments.
105048         * lib/fwriting.h: Likewise.
105049         * lib/fflush.c: Likewise.
105051         Fix closein for mingw.
105052         * modules/closein-tests: Add tests for closein.
105053         * tests/test-closein.c: New file.
105054         * tests/test-closein.sh: Likewise.
105055         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105056         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105058 2007-04-27  Bruno Haible  <bruno@clisp.org>
105060         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105061         version is < 6.
105062         * lib/math_.h [__DECC]: Likewise.
105063         * lib/stdio_.h [__DECC]: Likewise.
105064         * lib/stdlib_.h [__DECC]: Likewise.
105065         * lib/string_.h [__DECC]: Likewise.
105066         * lib/time_.h [__DECC]: Likewise.
105067         * lib/wchar_.h [__DECC]: Likewise.
105068         * lib/wctype_.h [__DECC]: Likewise.
105070 2007-04-27  Bruno Haible  <bruno@clisp.org>
105072         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105074 2007-04-27  Bruno Haible  <bruno@clisp.org>
105076         * lib/fflush.c: Add comments.
105077         * modules/fpurge-tests (Depends-on): Add fflush.
105078         * modules/freadable-tests (Depends-on): Likewise.
105079         * modules/fwritable-tests (Depends-on): Likewise.
105081 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105083         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105084         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105085         Report by Bruno Haible <bruno@clisp.org>.
105087 2007-04-26  Eric Blake  <ebb9@byu.net>
105089         Fix fflush on mingw.
105090         * modules/fflush (Depends-on): Add freading.
105091         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105092         but unread data.
105094 2007-04-26  Eric Blake  <ebb9@byu.net>
105095         and Bruno Haible  <bruno@clisp.org>
105097         Implement freading and fwriting.
105098         * lib/freading.c: New file.
105099         * lib/freading.h: Likewise.
105100         * m4/freading.m4: Likewise.
105101         * modules/freading: Likewise.
105102         * modules/freading-tests: Likewise.
105103         * tests/test-freading.c: Likewise.
105104         * lib/fwriting.c: New file.
105105         * lib/fwriting.h: Likewise.
105106         * m4/fwriting.m4: Likewise.
105107         * modules/fwriting: Likewise.
105108         * modules/fwriting-tests: Likewise.
105109         * tests/test-fwriting.c: Likewise.
105110         * MODULES.html.sh (File stream based Input/Output): Mention them.
105112 2007-04-26  Bruno Haible  <bruno@clisp.org>
105114         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105115         'long' when we assume it.
105116         Suggested by Eric Blake.
105118 2007-04-26  Bruno Haible  <bruno@clisp.org>
105120         Ensure fseeko, ftello are declared on glibc systems.
105121         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105122         * modules/fseeko (configure.ac-early): Likewise.
105123         * modules/ftello (configure.ac-early): Likewise.
105124         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105125         AC_FUNC_FSEEKO for this.
105126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105127         (gl_CHECK_FSEEKO): Remove macro.
105129 2007-04-26  Bruno Haible  <bruno@clisp.org>
105131         * tests/test-fflush.c (main): Also check the ftell result after
105132         fflush and fseek/fseeko.
105133         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105134         file descriptor position cache in the stream.
105135         * lib/fseeko.c (rpl_fseeko): Likewise.
105137 2007-04-26  Bruno Haible  <bruno@clisp.org>
105139         * modules/fflush-tests (Depends-on): Add fseeko.
105141 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105142             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105144         * lib/argz_.h: ensure error_t definition is obtained in same
105145         mechanism system argz.h would have.
105146         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105147         argz facilities are known bad.  Err on the side of caution if
105148         cross-compiling.
105150 2007-04-25  Eric Blake  <ebb9@byu.net>
105152         * lib/fpurge.c (includes): Use stdlib.h for free.
105153         * tests/test-fflush.c (main): Also test fflush-fseeko.
105155 2007-04-25  Bruno Haible  <bruno@clisp.org>
105157         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105158         * lib/fseeko.c: New file.
105159         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105160         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105161         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105162         gl_FUNC_FSEEKO.
105163         (gl_FUNC_FSEEKO): Invoke it.
105164         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105165         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105166         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105168 2007-04-25  Bruno Haible  <bruno@clisp.org>
105170         * modules/fflush (Depends-on): Add ftello.
105172 2007-04-25  Bruno Haible  <bruno@clisp.org>
105174         * modules/ftello-tests: New file.
105175         * tests/test-ftello.c: New file.
105177         * modules/ftello: New file.
105178         * m4/ftello.m4: New file.
105179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105180         HAVE_FTELLO.
105181         * lib/stdio_.h (ftello): New declaration.
105182         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105183         HAVE_FTELLO.
105185 2007-04-25  Bruno Haible  <bruno@clisp.org>
105187         * modules/fseeko-tests: New file.
105188         * tests/test-fseeko.c: New file.
105190         * modules/fseeko: New file.
105191         * m4/fseeko.m4: New file.
105192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105193         HAVE_FSEEKO.
105194         * lib/stdio_.h (fseeko): New declaration.
105195         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105196         HAVE_FSEEKO.
105198 2007-04-25  Bruno Haible  <bruno@clisp.org>
105200         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105202 2007-04-25  Bruno Haible  <bruno@clisp.org>
105204         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105205         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105206         * tests/test-unistd.c: Likewise.
105207         * tests/test-fcntl.c: Likewise.
105209 2007-04-23  Eric Blake  <ebb9@byu.net>
105211         * lib/fflush.c: Fix missing include.
105212         Reported by Bruno Haible.
105214 2007-04-23  Bruno Haible  <bruno@clisp.org>
105216         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105217         Reported by Eric Blake.
105219 2007-04-23  Bruno Haible  <bruno@clisp.org>
105221         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105223 2007-04-23  Bruno Haible  <bruno@clisp.org>
105225         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105227 2007-04-23  Bruno Haible  <bruno@clisp.org>
105229         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105230         Needed on HP-UX 11.
105232 2007-04-16  Eric Blake  <ebb9@byu.net>
105234         Make fflush rely on fpurge.
105235         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105236         open coding all variants.
105237         * modules/fflush (Depends-on): Add fpurge and unistd.
105238         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105239         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105241         Fix --with-tests compilation on cygwin.
105242         * modules/argmatch-tests (Makefile.am): List gnulib library first
105243         in LDADD.
105244         * modules/argp-tests (Makefile.am): Likewise.
105245         * modules/array-list-tests (Makefile.am): Likewise.
105246         * modules/array-oset-tests (Makefile.am): Likewise.
105247         * modules/avltree-list-tests (Makefile.am): Likewise.
105248         * modules/avltree-oset-tests (Makefile.am): Likewise.
105249         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105250         * modules/carray-list-tests (Makefile.am): Likewise.
105251         * modules/dirname-tests (Makefile.am): Likewise.
105252         * modules/frexp-tests (Makefile.am): Likewise.
105253         * modules/isnanl-tests (Makefile.am): Likewise.
105254         * modules/linked-list-tests (Makefile.am): Likewise.
105255         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105256         * modules/lock-tests (Makefile.am): Likewise.
105257         * modules/rbtree-list-tests (Makefile.am): Likewise.
105258         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105259         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105260         * modules/tls-tests (Makefile.am): Likewise.
105261         * modules/tsearch-tests (Makefile.am): Likewise.
105262         * modules/xvasprintf-tests (Makefile.am): Likewise.
105264         Fix fpurge for cygwin.
105265         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105266         value.
105267         * modules/fpurge-tests (Depends-on): Clean up trash.
105269 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105271         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105273         * m4/autobuild.m4: Re-indent.
105275 2007-04-13  Bruno Haible  <bruno@clisp.org>
105277         * modules/fpurge-tests: New file.
105278         * tests/test-fpurge.c: New file.
105280         * modules/fpurge: New file.
105281         * lib/fpurge.h: New file.
105282         * lib/fpurge.c: New file.
105283         * m4/fpurge.m4: New file.
105285 2007-04-13  Bruno Haible  <bruno@clisp.org>
105287         * modules/fbufmode-tests: New file.
105288         * tests/test-fbufmode.c: New file.
105290         * modules/fbufmode: New file.
105291         * lib/fbufmode.h: New file.
105292         * lib/fbufmode.c: New file.
105293         * m4/fbufmode.m4: New file.
105295 2007-04-13  Bruno Haible  <bruno@clisp.org>
105297         * modules/fwritable-tests: New file.
105298         * tests/test-fwritable.c: New file.
105300         * modules/fwritable: New file.
105301         * lib/fwritable.h: New file.
105302         * lib/fwritable.c: New file.
105303         * m4/fwritable.m4: New file.
105305 2007-04-13  Bruno Haible  <bruno@clisp.org>
105307         * modules/freadable-tests: New file.
105308         * tests/test-freadable.c: New file.
105310         * modules/freadable: New file.
105311         * lib/freadable.h: New file.
105312         * lib/freadable.c: New file.
105313         * m4/freadable.m4: New file.
105315 2007-04-13  Bruno Haible  <bruno@clisp.org>
105317         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105318         MOSTLYCLEANFILES.
105320 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105322         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105323         gzip bootstrap.conf to avoid dragging in i18n machinery.
105324         (gnulib_tool_option): Use it.
105326 2007-04-13  Bruno Haible  <bruno@clisp.org>
105328         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105329         %F directives.
105330         * tests/test-vasprintf-posix.c (test_function): Likewise.
105331         * tests/test-snprintf-posix.h (test_function): Likewise.
105332         * tests/test-sprintf-posix.h (test_function): Likewise.
105333         * tests/test-fprintf-posix.h (test_function): Likewise.
105334         * tests/test-printf-posix.h (test_function): Likewise.
105335         * tests/test-fprintf-posix.out: Likewise.
105337 2007-04-13  Bruno Haible  <bruno@clisp.org>
105339         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105340         * modules/tls-tests (configure.ac): Likewise.
105341         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105343 2007-04-13  Bruno Haible  <bruno@clisp.org>
105345         * lib/tls.c (glthread_tls_get): Fix return type.
105346         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105348 2007-04-12  Eric Blake  <ebb9@byu.net>
105350         * modules/gettime (Depends-on): Remove gettime.
105351         Reported by Dmitry V. Levin.
105353 2007-04-12  Bruno Haible  <bruno@clisp.org>
105355         * modules/fflush (Include): Mention <stdio.h>.
105356         * modules/strtoimax (Include): Mention <inttypes.h>.
105357         * modules/strtoumax (Include): Likewise.
105359 2007-04-12  Eric Blake  <ebb9@byu.net>
105361         * .cvsignore: New file.
105362         * .gitignore: Likewise.
105364 2007-04-12  Bruno Haible  <bruno@clisp.org>
105366         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105367         not before, since $(LDADD) often contains libgnu.a.
105368         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105369         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105370         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105371         Needed on Cygwin.
105373 2007-04-12  Eric Blake  <ebb9@byu.net>
105375         Work around glibc's failure to flush stdin on fclose.
105376         * lib/closein.c (close_stdin): Flush stdin before closing.
105378         Work around glibc's failure to reset seekable stdin on exit.
105379         * modules/closein: New module.
105380         * lib/closein.c: New file.
105381         * lib/closein.h: Likewise.
105382         * m4/closein.m4: Likewise.
105383         * MODULES.html.sh (File stream based Input/Output): Document it.
105385 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105387         * gnulib-tool: Rename generated 'autobuild' script to
105388         'do-autobuild' in --create-megatestdir output.
105390         * doc/gnulib.texi (Build robot for gnulib): Fix.
105392 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105394         * modules/sysexits (Depends-on): Add absolute-header.
105396 2007-04-12  Eric Blake  <ebb9@byu.net>
105398         No need to preserve errno on success.
105399         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105400         Reported by Bruno Haible.
105402 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105404         * MODULES.html.sh (Support for maintaining and releasing
105405         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105407 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105409         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105411 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105413         * modules/autobuild: New module.
105415         * m4/autobuild.m4: New file.
105417 2007-04-11  Bruno Haible  <bruno@clisp.org>
105419         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105420         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105438         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105444         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105445         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105446         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105447         Reported by Eric Blake.
105449 2007-04-11  Bruno Haible  <bruno@clisp.org>
105451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105453 2007-04-10  Bruno Haible  <bruno@clisp.org>
105455         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105456         for NaN and Infinity. Needed on FreeBSD 6.1.
105457         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105458         regarding results for "%010a" of Infinity and NaN.
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-10  Bruno Haible  <bruno@clisp.org>
105468         * modules/locale-tests: New file.
105469         * tests/test-locale.c: New file.
105471         * modules/locale: New file.
105472         * lib/locale_.h: New file.
105473         * m4/locale_h.m4: New file.
105475 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105476             Bruno Haible  <bruno@clisp.org>
105478         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105479         be determined, test for availability of the copysignf, copysign,
105480         copysignl functions.
105481         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105482         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105483         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105485 2007-04-09  Eric Blake  <ebb9@byu.net>
105487         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105488         * modules/stdio (Makefile.am): Support fflush.
105489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105490         * modules/fflush: New file.
105491         * lib/fflush.c: Likewise.
105492         * m4/fflush.m4: Likewise.
105493         * modules/fflush-tests: New test.
105494         * tests/test-fflush.c: Likewise.
105495         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105497 2007-04-06  Bruno Haible  <bruno@clisp.org>
105499         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105500         (VASNPRINTF): Use signbit for faster determination whether to print a
105501         minus sign.
105502         * modules/vasnprintf (Files): Remove lib/float+.h.
105503         * modules/fprintf-posix (Depends-on): Add signbit.
105504         * modules/snprintf-posix (Depends-on): Likewise.
105505         * modules/sprintf-posix (Depends-on): Likewise.
105506         * modules/vasnprintf-posix (Depends-on): Likewise.
105507         * modules/vasprintf-posix (Depends-on): Likewise.
105508         * modules/vfprintf-posix (Depends-on): Likewise.
105509         * modules/vsnprintf-posix (Depends-on): Likewise.
105510         * modules/vsprintf-posix (Depends-on): Likewise.
105512 2007-04-06  Bruno Haible  <bruno@clisp.org>
105514         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105515         * tests/test-frexpl.c (main): Likewise.
105516         * tests/test-ldexpl.c (main): Likewise.
105517         * modules/frexp-tests (Depends-on): Add signbit.
105518         * modules/frexpl-tests (Depdends-on): Likewise.
105519         * modules/ldexpl-tests (Depdends-on): Likewise.
105521 2007-04-06  Bruno Haible  <bruno@clisp.org>
105523         * modules/signbit-tests: New file.
105524         * tests/test-signbit.c: New file.
105526         * modules/signbit: New file.
105527         * lib/signbitf.c: New file.
105528         * lib/signbitd.c: New file.
105529         * lib/signbitl.c: New file.
105530         * m4/signbit.m4: New file.
105531         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105532         (signbit): New macro.
105533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105534         REPLACE_SIGNBIT.
105535         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105536         REPLACE_FREXPL into math.h.
105538 2007-04-06  Bruno Haible  <bruno@clisp.org>
105540         * modules/isnanf-nolibm-tests: New file.
105541         * tests/test-isnanf.c: New file.
105543         * modules/isnanf-nolibm: New file.
105544         * lib/isnanf.h: New file.
105545         * lib/isnanf.c: New file.
105546         * lib/isnan.c: Consider the USE_FLOAT macro.
105547         * m4/isnanf.m4: New file.
105549 2007-04-06  Bruno Haible  <bruno@clisp.org>
105551         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105552         (Link): New section.
105554         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105556 2007-04-06  Bruno Haible  <bruno@clisp.org>
105558         Assume the 'long double' type.
105559         * m4/longdouble.m4: Remove file.
105560         * config/srclist.txt: Don't mention longdouble.m4.
105561         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105562         * lib/float+.h: Likewise.
105563         * lib/frexp.c: Likewise.
105564         * lib/printf-args.h: Likewise.
105565         * lib/printf-args.c: Likewise.
105566         * lib/printf-frexp.c: Likewise.
105567         * lib/printf-parse.c: Likewise.
105568         * lib/vasnprintf.c: Likewise.
105569         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105570         * m4/intl.m4: Likewise.
105571         * m4/isnanl.m4: Likewise.
105572         * m4/printf.m4: Likewise.
105573         * m4/printf-frexpl.m4: Likewise.
105574         * m4/vasnprintf.m4: Likewise.
105575         * modules/allocsa (Files): Remove m4/longdouble.m4.
105576         * modules/gettext (Files): Likewise.
105577         * modules/relocatable-prog-wrapper (Files): Likewise.
105578         * modules/vasnprintf (Files): Likewise.
105579         * modules/isnanl (Files): Likewise.
105580         (Include): Simplify.
105581         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105582         (Include): Simplify.
105583         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105584         (Include): Simplify.
105585         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105586         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105587         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105588         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105589         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105590         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105591         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105592         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105593         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105594         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105595         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105596         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105597         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105598         * tests/test-isnanl.c: Likewise.
105599         * tests/test-snprintf-posix.h: Likewise.
105600         * tests/test-sprintf-posix.h: Likewise.
105601         * tests/test-vasnprintf-posix.c: Likewise.
105602         * tests/test-vasnprintf-posix2.c: Likewise.
105603         * tests/test-vasprintf-posix.c: Likewise.
105605 2007-04-06  Bruno Haible  <bruno@clisp.org>
105607         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105608         * lib/math_.h [__DECC]: Include the overridden include file through
105609         #include_next, outside the double-inclusion guard.
105610         * lib/stdio_.h [__DECC]: Likewise.
105611         * lib/stdlib_.h [__DECC]: Likewise.
105612         * lib/string_.h [__DECC]: Likewise.
105613         * lib/time_.h [__DECC]: Likewise.
105614         * lib/wchar_.h [__DECC]: Likewise.
105615         * lib/wctype_.h [__DECC]: Likewise.
105616         * lib/inttypes_.h [__DECC]: Likewise.
105617         Reported by Albert Chin <china@thewrittenword.com> in
105618         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105620 2007-04-04  Eric Blake  <ebb9@byu.net>
105622         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105623         1.5.x.
105625 2007-04-04  Bruno Haible  <bruno@clisp.org>
105627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105628         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105630 2007-04-04  Bruno Haible  <bruno@clisp.org>
105632         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105633         results for "%010a" of Infinity and NaN.
105634         * tests/test-vasprintf-posix.c (test_function): Likewise.
105635         * tests/test-snprintf-posix.h (test_function): Likewise.
105636         * tests/test-sprintf-posix.h (test_function): Likewise.
105637         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105638         * tests/test-printf-posix.h (test_function): Likewise.
105639         * tests/test-fprintf-posix.out: Update.
105640         Needed for FreeBSD 6.1.
105642 2007-04-04  Bruno Haible  <bruno@clisp.org>
105644         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105645         directly used by the gnulib modules nor by gnulib-tool.
105647 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105649         * DEPENDENCIES: Give overall description of version dependency
105650         desirability.  Use more-typical names for apps.
105651         Add shell, coreutils, diffutils, grep, tar, gzip.
105653 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105655         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105657 2007-04-04  Karl Berry  <karl@gnu.org>
105659         * MODULES.html.sh (func_module): missing '.
105661 2007-04-03  Bruno Haible  <bruno@clisp.org>
105663         * modules/argmatch-tests (Makefile.am): New variable
105664         test_argmatch_LDADD.
105665         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105666         * modules/array-list-tests (Makefile.am): New variable
105667         test_array_list_LDADD.
105668         * modules/array-oset-tests (Makefile.am): New variable
105669         test_array_oset_LDADD.
105670         * modules/avltree-list-tests (Makefile.am): New variable
105671         test_avltree_list_LDADD.
105672         * modules/avltree-oset-tests (Makefile.am): New variable
105673         test_avltree_oset_LDADD.
105674         * modules/avltreehash-list-tests (Makefile.am): New variable
105675         test_avltreehash_list_LDADD.
105676         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105677         test_canonicalize_lgpl_LDADD.
105678         * modules/carray-list-tests (Makefile.am): New variable
105679         test_carray_list_LDADD.
105680         * modules/dirname-tests (Makefile.am): New variable
105681         test_dirname_LDADD.
105682         * modules/linked-list-tests (Makefile.am): New variable
105683         test_linked_list_LDADD.
105684         * modules/linkedhash-list-tests (Makefile.am): New variable
105685         test_linkedhash_list_LDADD.
105686         * modules/rbtree-list-tests (Makefile.am): New variable
105687         test_rbtree_list_LDADD.
105688         * modules/rbtree-oset-tests (Makefile.am): New variable
105689         test_rbtree_oset_LDADD.
105690         * modules/rbtreehash-list-tests (Makefile.am): New variable
105691         test_rbtreehash_list_LDADD.
105692         * modules/xvasprintf-tests (Makefile.am): New variable
105693         test_xvasprintf_LDADD.
105694         Reported by Eric Blake.
105696 2007-04-03  Eric Blake  <ebb9@byu.net>
105698         * DEPENDENCIES: Weaken m4 requirements.
105700 2007-04-03  Bruno Haible  <bruno@clisp.org>
105702         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105703         * modules/isnanl-tests (configure.ac): Likewise.
105705 2007-04-03  Ben Pfaff  <blp@gnu.org>
105707         * modules/iconv_open: Add $(srcdir)/ to source directory
105708         references in Makefile fragments that call gperf, to fix VPATH
105709         builds.
105711 2007-04-03  Bruno Haible  <bruno@clisp.org>
105713         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105714         * lib/ldexpl.c: Undo last change.
105716 2007-04-03  Bruno Haible  <bruno@clisp.org>
105718         * modules/printf-frexpl (Depends-on): Undo last change.
105719         (Files): Add m4/ldexpl.m4.
105721 2007-04-03  Bruno Haible  <bruno@clisp.org>
105723         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105724         * modules/isnanl (Link): New section.
105726         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105727         * modules/frexp (Link): New section.
105729         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105730         * modules/frexpl (Link): New section.
105732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105733         * modules/ldexpl (Link): New section.
105735 2007-04-03  Bruno Haible  <bruno@clisp.org>
105737         * modules/TEMPLATE-EXTENDED: New file.
105738         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105740 2007-04-03  Bruno Haible  <bruno@clisp.org>
105742         * DEPENDENCIES: New file.
105743         Suggested by Simon Josefsson.
105745 2007-04-03  Bruno Haible  <bruno@clisp.org>
105747         * doc/gnulib.texi: Escape @.
105749 2007-04-03  James Youngman  <jay@gnu.org>
105750         and Paul Eggert  <eggert@cs.ucla.edu>
105752         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105753         birthtime on all systems that have birthtime, not just those which
105754         use st_birthtimensec rather than st_birthtim.  Putting zero in
105755         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105756         that the birth time is not available for files on an NFS mount.
105758 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105760         * modules/memxor: Move back from crypto/, suggested by Bruno.
105761         * modules/crypto/hmac-sha1: Fix memxor dependency.
105763         * modules/crypto/gc: Moved from ../.
105765 2007-04-02  Eric Blake  <ebb9@byu.net>
105767         * lib/ldexpl.c (includes): Avoid libm.
105769         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105771 2007-04-02  Bruno Haible  <bruno@clisp.org>
105773         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105774         on IRIX.
105776 2007-04-02  Bruno Haible  <bruno@clisp.org>
105778         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105779         x86 or x86_64 platforms running MacOS X.
105780         Reported by Ryan Schmidt <@ryandesign.com>.
105782 2007-04-02  Bruno Haible  <bruno@clisp.org>
105784         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105785         i386.
105787 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105789         * modules/crypto/arcfour: Moved from ../.
105790         * modules/crypto/arcfour-tests: Moved from ../.
105791         * modules/crypto/arctwo: Moved from ../.
105792         * modules/crypto/arctwo-tests: Moved from ../.
105793         * modules/crypto/des: Moved from ../.
105794         * modules/crypto/des-tests: Moved from ../.
105795         * modules/crypto/gc-arcfour: Moved from ../.
105796         * modules/crypto/gc-arcfour-tests: Moved from ../.
105797         * modules/crypto/gc-arctwo: Moved from ../.
105798         * modules/crypto/gc-arctwo-tests: Moved from ../.
105799         * modules/crypto/gc-des: Moved from ../.
105800         * modules/crypto/gc-des-tests: Moved from ../.
105801         * modules/crypto/gc-hmac-md5: Moved from ../.
105802         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105803         * modules/crypto/gc-hmac-sha1: Moved from ../.
105804         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105805         * modules/crypto/gc-md2: Moved from ../.
105806         * modules/crypto/gc-md2-tests: Moved from ../.
105807         * modules/crypto/gc-md4: Moved from ../.
105808         * modules/crypto/gc-md4-tests: Moved from ../.
105809         * modules/crypto/gc-md5: Moved from ../.
105810         * modules/crypto/gc-md5-tests: Moved from ../.
105811         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105812         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105813         * modules/crypto/gc-random: Moved from ../.
105814         * modules/crypto/gc-rijndael: Moved from ../.
105815         * modules/crypto/gc-rijndael-tests: Moved from ../.
105816         * modules/crypto/gc-sha1: Moved from ../.
105817         * modules/crypto/gc-sha1-tests: Moved from ../.
105818         * modules/crypto/gc-tests: Moved from ../.
105819         * modules/crypto/hmac-md5: Moved from ../.
105820         * modules/crypto/hmac-md5-tests: Moved from ../.
105821         * modules/crypto/hmac-sha1: Moved from ../.
105822         * modules/crypto/hmac-sha1-tests: Moved from ../.
105823         * modules/crypto/md2: Moved from ../.
105824         * modules/crypto/md2-tests: Moved from ../.
105825         * modules/crypto/md4: Moved from ../.
105826         * modules/crypto/md4-tests: Moved from ../.
105827         * modules/crypto/md5: Moved from ../.
105828         * modules/crypto/md5-tests: Moved from ../.
105829         * modules/crypto/memxor: Moved from ../.
105830         * modules/crypto/rijndael: Moved from ../.
105831         * modules/crypto/rijndael-tests: Moved from ../.
105832         * modules/crypto/sha1: Moved from ../.
105834 2007-03-30  James Youngman  <jay@gnu.org>
105836         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105837         rename() to change the ctime of a file (because ctime is unaffected
105838         by rename on jfs2 on AIX 5.1).
105839         (main): Start by doing cleanup, in case a previous run failed leaving
105840         test files behind.
105842 2007-03-31  Bruno Haible  <bruno@clisp.org>
105844         Support old proprietary implementations of iconv.
105845         * modules/iconv_open: New file.
105846         * lib/iconv_.h: New file.
105847         * m4/iconv_h.m4: New file.
105848         * lib/iconv_open.c: New file.
105849         * lib/iconv_open-aix.gperf: New file.
105850         * lib/iconv_open-hpux.gperf: New file.
105851         * lib/iconv_open-irix.gperf: New file.
105852         * lib/iconv_open-osf.gperf: New file.
105853         * m4/iconv_open.m4: New file.
105854         * modules/linebreak (Depends-on): Add iconv_open.
105855         * modules/striconv (Depends-on): Likewise.
105856         * modules/striconveh (Depends-on): Likewise.
105857         * modules/unicodeio (Depends-on): Likewise.
105858         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105859         (iconv_t)(-1).
105860         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105861         conversion if cd is (iconv_t)(-1).
105862         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105863         is not possible.
105865 2007-03-31  Bruno Haible  <bruno@clisp.org>
105867         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105868         work on Solaris either. Protect also second use of "autodetect_jp".
105870 2007-03-31  Bruno Haible  <bruno@clisp.org>
105872         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105873         the function is not present.
105875 2007-03-31  Bruno Haible  <bruno@clisp.org>
105877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105878         the function is not present.
105880 2007-03-31  Bruno Haible  <bruno@clisp.org>
105882         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105883         a bug in HP-UX iconv_open().
105885 2007-03-31  Bruno Haible  <bruno@clisp.org>
105887         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105888         (Mathematics <math.h>): New section, add fpieee.
105889         (Input/output <stdio.h>): Add fseterr.
105890         (Mathematics <math.h>): New section, add printf-frexp.
105891         (Container data structures): Add sublist.
105892         (Core language properties): Add fpucw, inline.
105893         (Functions for greatest-width integer types <inttypes.h>): Add
105894         imaxabs, imaxdiv, inttypes.
105895         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105896         isnanl-nolibm, ldexp.
105897         (Mathematics <math.h>): New section, add printf-frexpl.
105898         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105899         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105900         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105901         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105902         (Unicode string functions): Add unistr/u*-mbtoucr.
105903         (Java): Add javacomp-script, javaexec-script.
105904         (C#): Add csharpcomp-script, csharpexec-script.
105905         (Support for building libraries and executables): Add havelib,
105906         relocatable-*.
105907         (Support for maintaining and releasing projects): Renamed from
105908         'Support for maintaining and release projects'. Add announce-gen.
105910 2007-03-31  Bruno Haible  <bruno@clisp.org>
105912         * README: Talk primarily about git.
105913         (git and CVS): Renamed from CVS.
105914         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105915         gnulib is available through git.
105916         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105918 2007-03-30  Bruno Haible  <bruno@clisp.org>
105920         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105921         * lib/poll_.h: Likewise.
105922         * lib/stat_.h: Likewise.
105923         * lib/sys_time_.h: Likewise.
105924         * lib/sysexit_.h: Likewise.
105925         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105926         * lib/stdbool_.h: Likewise.
105927         * lib/byteswap_.h: Add double-inclusion guard.
105929 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105931         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105933 2007-03-30  Karl Berry  <karl@gnu.org>
105935         * config/srclist-update: double space after USA in the license
105936         substitution, since that's how it's usually (?) written.
105938 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105940         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105941         reported by Bruno Haible.
105943 2007-03-29  Bruno Haible  <bruno@clisp.org>
105945         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105946         a bug in AIX iconv().
105948 2007-03-29  Bruno Haible  <bruno@clisp.org>
105950         * modules/ldexpl-tests: New file.
105951         * tests/test-ldexpl.c: New file.
105953 2007-03-29  Bruno Haible  <bruno@clisp.org>
105955         * lib/ldexpl.c: Include fpucw.h.
105956         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105957         multiplication.
105958         * modules/ldexpl (Depends-on): Add fpucw.
105960 2007-03-29  Bruno Haible  <bruno@clisp.org>
105962         * modules/ldexpl: New file.
105963         * m4/ldexpl.m4: New file.
105964         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105965         set.
105966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105967         REPLACE_LDEXPL.
105968         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105969         REPLACE_LDEXPL.
105970         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105971         gl_FUNC_LDEXPL_WORKS.
105972         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105973         * modules/mathl (Files): Remove lib/ldexpl.c.
105974         (Depends-on): Add ldexpl.
105976 2007-03-29  Bruno Haible  <bruno@clisp.org>
105978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105980 2007-03-29  Bruno Haible  <bruno@clisp.org>
105982         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105983         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105984         and possibly also HP-UX.
105985         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105986         work on AIX, IRIX, HP-UX, OSF/1.
105987         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105988         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105989         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105990         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105991         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105992         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105994 2007-03-29  Bruno Haible  <bruno@clisp.org>
105996         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105998 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106000         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106001         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106003 2007-03-29  Eric Blake  <ebb9@byu.net>
106005         * lib/acl-internal.h: Remove redundant include.
106006         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106007         Cygwin when a file is locked.
106009 2007-03-29  Bruno Haible  <bruno@clisp.org>
106011         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106012         file.
106013         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106015 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106017         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106018         try to remove a parent directory if the child couldn't be removed
106019         (except for the first rmdir, which could fail because the child
106020         doesn't exist).  Problem reported by Jeff Blaine in
106021         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106023 2007-03-28  Bruno Haible  <bruno@clisp.org>
106025         * lib/striconveh.c (utf8conv_carefully): New function.
106026         (mem_cd_iconveh_internal): Invoke it.
106028 2007-03-28  Bruno Haible  <bruno@clisp.org>
106030         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106031         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106032         input.
106033         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106034         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106035         unistr/u8-uctomb.
106037 2007-03-28  Bruno Haible  <bruno@clisp.org>
106039         * modules/unistr/u8-mbtoucr: New file.
106040         * lib/unistr/u8-mbtoucr.c: New file.
106041         * modules/unistr/u16-mbtoucr: New file.
106042         * lib/unistr/u16-mbtoucr.c: New file.
106043         * modules/unistr/u16-mbtoucr: New file.
106044         * lib/unistr/u16-mbtoucr.c: New file.
106045         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106047 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106048             Bruno Haible  <bruno@clisp.org>
106050         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106051         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106052         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106054         * m4/stdio_h.m4: Add stubs for vasprintf too.
106056         * modules/stdio: Support vasprintf in sed command.
106058         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106059         vasprintf.h.  Add stdio module indicator.
106061         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106062         vasprintf.h.
106064         * lib/vasprintf.h: File removed.
106066         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106067         * lib/vasprintf.c: Ditto.
106068         * lib/xvasprintf.c: Ditto.
106069         * tests/test-vasprintf-posix.c: Ditto.
106070         * tests/test-vasprintf.c: Ditto.
106072 2007-03-27  Bruno Haible  <bruno@clisp.org>
106074         Make vasnprintf multithread-safe.
106075         * lib/vasnprintf.c (decimal_point_char): New function.
106076         (VASNPRINTF): Use it.
106077         Suggested by Simon Josefsson.
106079 2007-03-27  Eric Blake  <ebb9@byu.net>
106081         Support sub-second birthtime on cygwin.
106082         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106083         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106084         (get_stat_birthtime): Also work with st_birthtim.
106086 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106088         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106089         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106090         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106091         (get_stat_birthtime_ns): Simplify compile-time tests.
106092         (get_stat_birthtime): Change the API to look like
106093         get_stat_mtime etc., except return a negative tv_nsec on error.
106094         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106095         Don't check for "spare" fields.
106096         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106097         or for struct stat.st_birthtime, as these tests aren't used.
106098         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106100 2007-03-27  Bruno Haible  <bruno@clisp.org>
106102         * lib/stat-time.h: Include <sys/stat.h>.
106104 2007-03-27  James Youngman  <jay@gnu.org>
106106         * lib/stat-time.h (get_stat_birthtime): New function for
106107           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106108         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106109           and its variants.
106110         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106111         * modules/stat-time-test: New file.
106112         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106114 2007-03-26  Bruno Haible  <bruno@clisp.org>
106116         Better support of signalling NaNs.
106117         * lib/atanl.c: Include isnanl.h.
106118         (atanl): Perform test for NaN at the beginning of the function and
106119         through a call to isnanl.
106120         * lib/cosl.c: Include isnanl.h.
106121         (cosl): Perform test for NaN at the beginning of the function and
106122         through a call to isnanl.
106123         * lib/ldexpl.c: Include isnanl.h.
106124         (ldexpl): Perform test for NaN through a call to isnanl.
106125         * lib/logl.c: Include isnanl.h.
106126         (logl): Perform test for NaN at the beginning of the function and
106127         through a call to isnanl.
106128         * lib/sinl.c: Include isnanl.h.
106129         (sinl): Perform test for NaN at the beginning of the function and
106130         through a call to isnanl.
106131         * lib/sqrtl.c: Include isnanl.h.
106132         (sqrtl): Perform test for NaN at the beginning of the function and
106133         through a call to isnanl.
106134         * lib/tanl.c: Include isnanl.h.
106135         (tanl): Perform test for NaN at the beginning of the function and
106136         through a call to isnanl.
106137         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106138         * modules/mathl (Depends-on): Add isnanl.
106140 2007-03-26  Eric Blake  <ebb9@byu.net>
106142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106143         regression in logic sense of previous patch.
106145 2007-03-26  Bruno Haible  <bruno@clisp.org>
106147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106148         unportable shell command "if ! ...".
106149         Reported by Ralf Wildenhues.
106151 2007-03-25  Bruno Haible  <bruno@clisp.org>
106153         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106154         <sysexits.h> file, and only add EX_CONFIG.
106155         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106156         absolute file name and whether it is sufficient. Substitute also
106157         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106158         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106159         ABSOLUTE_SYSEXITS_H into sysexits.h.
106161 2007-03-25  Bruno Haible  <bruno@clisp.org>
106163         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106164         hints is NULL.
106166 2007-03-25  Bruno Haible  <bruno@clisp.org>
106168         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106169         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106171 2007-03-25  Bruno Haible  <bruno@clisp.org>
106173         * lib/vasnprintf.c: Include langinfo.h.
106174         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106175         multithread-safe.
106176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106185         Reported by Simon Josefsson.
106187 2007-03-25  Bruno Haible  <bruno@clisp.org>
106189         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106190         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106191         * modules/vasnprintf (Depends-on): Add stdint.
106193 2007-03-25  Bruno Haible  <bruno@clisp.org>
106195         * modules/fpieee: New file.
106196         * m4/fpieee.m4: New file.
106197         * modules/isnan-nolibm (Depends-on): Add fpieee.
106198         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106199         * modules/isnanl (Depends-on): Add fpieee.
106201 2007-03-25  Bruno Haible  <bruno@clisp.org>
106203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106205 2007-03-25  Bruno Haible  <bruno@clisp.org>
106207         Avoid test failures on IRIX 6.5.
106208         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106209         (main): Use it.
106210         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106211         macros.
106212         (main): Use them.
106214 2007-03-25  Bruno Haible  <bruno@clisp.org>
106216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106217         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106218         exists but doesn't work.
106219         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106220         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106222         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106223         math.h.
106225 2007-03-25  Bruno Haible  <bruno@clisp.org>
106227         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106228         returns inf. Needed on IRIX 6.5.
106230 2007-03-25  Bruno Haible  <bruno@clisp.org>
106232         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106233         (main): Use isnanl instead of x != x idiom.
106234         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106236         * tests/test-frexp.c: Include isnan.h.
106237         (main): Use isnan instead of x != x idiom.
106238         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106240 2007-03-25  Bruno Haible  <bruno@clisp.org>
106242         * tests/test-frexp.c (NaN): New function/macro.
106243         (main): Use it instead of 0.0 / 0.0.
106244         * tests/test-isnan.c (NaN): New function/macro.
106245         (main): Use it instead of 0.0 / 0.0.
106246         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106247         (test_function): Use it instead of 0.0 / 0.0.
106248         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106249         (test_function): Use it instead of 0.0 / 0.0.
106250         * tests/test-snprintf-posix.h (NaN): New function/macro.
106251         (test_function): Use it instead of 0.0 / 0.0.
106252         * tests/test-sprintf-posix.h (NaN): New function/macro.
106253         (test_function): Use it instead of 0.0 / 0.0.
106254         * tests/test-fprintf-posix.h (NaN): New function/macro.
106255         (test_function): Use it instead of 0.0 / 0.0.
106256         * tests/test-printf-posix.h (NaN): New function/macro.
106257         (test_function): Use it instead of 0.0 / 0.0.
106259         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106261 2007-03-25  Bruno Haible  <bruno@clisp.org>
106263         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106265 2007-03-25  Bruno Haible  <bruno@clisp.org>
106267         * lib/regexec.c (merge_state_with_log): Make static.
106269 2007-03-25  Bruno Haible  <bruno@clisp.org>
106271         * lib/trigl.c (kernel_rem_pio2): Make static.
106273 2007-03-25  Bruno Haible  <bruno@clisp.org>
106275         * lib/sincosl.c (sincosl_table): Make static.
106277 2007-03-25  Bruno Haible  <bruno@clisp.org>
106279         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106280         if the compiler does not support C99.
106282 2007-03-25  Bruno Haible  <bruno@clisp.org>
106284         * modules/time (Makefile.am): Ensure all rule action lines start with a
106285         tab.
106287 2007-03-24  Bruno Haible  <bruno@clisp.org>
106289         * modules/tsearch-tests: New file.
106290         * tests/test-tsearch.sh: New file.
106291         * tests/test-tsearch.c: New file, mostly copied from glibc.
106293         * modules/search-tests: New file.
106294         * tests/test-search.c: New file.
106296         * modules/search: New file.
106297         * lib/search_.h: New file, incorporating lib/tsearch.h.
106298         * m4/search_h.m4: New file.
106299         * lib/tsearch.h: Remove file.
106300         * lib/tsearch.c: Include search.h instead of tsearch.h.
106301         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106302         HAVE_TSEARCH.
106303         * modules/tsearch (Files): Remove lib/tsearch.h.
106304         (Depends-on): Add search.
106305         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106306         (Include): Change tsearch.h into search.h.
106308 2007-03-24  Bruno Haible  <bruno@clisp.org>
106310         * modules/fpucw: New file.
106311         * lib/fpucw.h: New file.
106312         * lib/frexp.c: Include fpucw.h.
106313         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106314         (FUNC): Use them.
106315         * lib/printf-frexp.c: Include fpucw.h.
106316         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106317         (FUNC): Use them.
106318         * lib/vasnprintf.c: Include fpucw.h.
106319         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106320         'long double' calculations.
106321         * tests/test-frexpl.c: Include fpucw.h.
106322         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106323         * tests/test-printf-frexpl.c: Include fpucw.h.
106324         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106325         * modules/frexpl (Depends-on): Add fpucw.
106326         * modules/printf-frexpl (Depends-on): Likewise.
106327         * modules/fprintf-posix (Depends-on): Likewise.
106328         * modules/snprintf-posix (Depends-on): Likewise.
106329         * modules/sprintf-posix (Depends-on): Likewise.
106330         * modules/vasnprintf-posix (Depends-on): Likewise.
106331         * modules/vasprintf-posix (Depends-on): Likewise.
106332         * modules/vfprintf-posix (Depends-on): Likewise.
106333         * modules/vsnprintf-posix (Depends-on): Likewise.
106334         * modules/vsprintf-posix (Depends-on): Likewise.
106335         * modules/frexpl-tests (Depends-on): Likewise.
106336         * modules/printf-frexpl-tests (Depends-on): Likewise.
106338 2007-03-24  Bruno Haible  <bruno@clisp.org>
106340         * lib/float+.h: New file.
106341         * lib/isnan.c: Include float+.h.
106342         (SIZE): New macro.
106343         (FUNC): Compare only SIZE bytes of the value.
106344         * lib/vasnprintf.c: Include float+.h.
106345         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106346         SIZEOF_LDBL or SIZEOF_DBL bytes.
106347         * modules/isnan-nolibm (Files): Add lib/float+.h.
106348         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106349         * modules/isnanl (Files): Add lib/float+.h.
106350         * modules/vasnprintf (Files): Add lib/float+.h.
106352 2007-03-24  Bruno Haible  <bruno@clisp.org>
106354         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106355         include isnanl-nolibm.h.
106357 2007-03-24  Bruno Haible  <bruno@clisp.org>
106359         * tests/test-read-file.c (main): Don't produce spurious output for
106360         expected situations. Make the test fail if it encountered unexpected
106361         results.
106363 2007-03-24  Bruno Haible  <bruno@clisp.org>
106365         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106366         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106368 2007-03-24  Bruno Haible  <bruno@clisp.org>
106370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106372 2007-03-24  Bruno Haible  <bruno@clisp.org>
106374         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106375         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106377         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106378         * modules/utf8-ucs4: Turn into a symbolic link to module
106379         unistr/u8-mbtouc.
106381         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106382         utf8-ucs4-unsafe.
106383         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106384         unistr/u8-mbtouc-unsafe.
106386         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106387         * modules/utf16-ucs4: Turn into a symbolic link to module
106388         unistr/u16-mbtouc.
106390         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106391         utf16-ucs4-unsafe.
106392         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106393         unistr/u16-mbtouc-unsafe.
106395         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106396         * modules/ucs4-utf8: Turn into a symbolic link to module
106397         unistr/u8-ubtomb.
106399         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106400         * modules/ucs4-utf16: Turn into a symbolic link to module
106401         unistr/u16-ubtomb.
106403 2007-03-24  Bruno Haible  <bruno@clisp.org>
106405         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106406         Enable the function only if HAVE_INLINE.
106407         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106408         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106409         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106410         Enable the function only if HAVE_INLINE.
106411         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106412         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106413         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106414         Enable the function only if HAVE_INLINE.
106415         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106416         Enable the function only if HAVE_INLINE.
106417         * modules/utf8-ucs4: Update.
106418         * modules/utf8-ucs4-unsafe: Update.
106419         * modules/utf16-ucs4: Update.
106420         * modules/utf16-ucs4-unsafe: Update.
106421         * modules/ucs4-utf8: Update.
106422         * modules/ucs4-utf16: Update.
106424 2007-03-24  Bruno Haible  <bruno@clisp.org>
106426         * lib/utf8-ucs4.h: Remove file.
106427         * lib/utf8-ucs4-unsafe.h: Remove file.
106428         * lib/utf16-ucs4.h: Remove file.
106429         * lib/utf16-ucs4-unsafe.h: Remove file.
106430         * lib/ucs4-utf8.h: Remove file.
106431         * lib/ucs4-utf16.h: Remove file.
106432         * lib/unistr.h: Include their previous contents.
106433         * m4/utf-ucs4.m4: Remove file.
106434         * m4/ucs4-utf.m4: Remove file.
106435         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106436         (Depends-on): Add unistr/base.
106437         (configure.ac): Remove gl_UTF_UCS4.
106438         (Makefile.am): Update.
106439         (Include): Change to unistr.h.
106440         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106441         (Depends-on): Add unistr/base.
106442         (configure.ac): Remove gl_UTF_UCS4.
106443         (Makefile.am): Update.
106444         (Include): Change to unistr.h.
106445         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106446         (Depends-on): Add unistr/base.
106447         (configure.ac): Remove gl_UTF_UCS4.
106448         (Makefile.am): Update.
106449         (Include): Change to unistr.h.
106450         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106451         (Depends-on): Add unistr/base.
106452         (configure.ac): Remove gl_UTF_UCS4.
106453         (Makefile.am): Update.
106454         (Include): Change to unistr.h.
106455         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106456         (Depends-on): Add unistr/base.
106457         (configure.ac): Remove gl_UCS4_UTF.
106458         (Makefile.am): Update.
106459         (Include): Change to unistr.h.
106460         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106461         (Depends-on): Add unistr/base.
106462         (configure.ac): Remove gl_UCS4_UTF.
106463         (Makefile.am): Update.
106464         (Include): Change to unistr.h.
106465         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106466         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106467         utf8-ucs4-unsafe.h.
106468         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106469         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106470         utf16-ucs4-unsafe.h.
106471         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106472         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106473         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106474         * lib/unistr/u8-strchr.c: Likewise.
106475         * lib/unistr/u8-strrchr.c: Likewise.
106476         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106477         * lib/unistr/u16-strchr.c: Likewise.
106478         * lib/unistr/u16-strrchr.c: Likewise.
106479         * lib/striconveh.c: Update.
106480         * lib/linebreak.c: Update.
106482 2007-03-24  Bruno Haible  <bruno@clisp.org>
106484         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106485         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106487 2007-03-22  Bruno Haible  <bruno@clisp.org>
106489         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106491 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106493         * MODULES.html.sh (File system functions): New module write-any-file.
106494         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106495         * m4/write-any-file.m4: New files.
106497 2007-03-23  Eric Blake  <ebb9@byu.net>
106499         * gnulib-tool: Rearrange space-tab sequences, since some editors
106500         like to eat them.
106502 2007-03-23  Eric Blake  <ebb9@byu.net>
106504         * lib/version-etc.c (version_etc_va): Update license wording to
106505         be more concise.  Recommended by Richard Stallman.
106507 2007-03-22  Bruno Haible  <bruno@clisp.org>
106509         * lib/poll.c (MSG_PEEK): New fallback definition.
106511 2007-03-22  Bruno Haible  <bruno@clisp.org>
106513         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106514         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106515         (main): Update.
106516         Fixes a compilation error on BeOS.
106518 2007-03-22  Bruno Haible  <bruno@clisp.org>
106520         * modules/frexpl-tests: New file.
106521         * tests/test-frexpl.c: New file.
106523         * modules/frexpl: New file.
106524         * m4/frexpl.m4: New file.
106525         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106526         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106528         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106529         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106530         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106532 2007-03-22  Bruno Haible  <bruno@clisp.org>
106534         * lib/frexpl.c: Share code with lib/frexp.c.
106535         * modules/mathl (Files): Add lib/frexp.c.
106536         (Depends-on): Add isnanl-nolibm.
106538 2007-03-22  Bruno Haible  <bruno@clisp.org>
106540         * modules/printf-frexp (Files): Add m4/frexp.m4.
106541         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106542         only if the found frexp function actually works.
106544 2007-03-22  Bruno Haible  <bruno@clisp.org>
106546         * lib/frexp.c: Remove older implementation that uses divisions.
106548 2007-03-21  Bruno Haible  <bruno@clisp.org>
106550         * modules/frexp-tests: New file.
106551         * tests/test-frexp.c: New file.
106553         * modules/frexp: New file.
106554         * lib/frexp.c: New file.
106555         * m4/frexp.m4: New file.
106556         * lib/math_.h (frexp): New declaration.
106557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106558         REPLACE_FREXP.
106559         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106561 2007-03-21  Bruno Haible  <bruno@clisp.org>
106563         * modules/isnanl-tests: New file.
106564         * tests/test-isnanl.c: New file.
106566         * modules/isnanl: New file.
106567         * lib/isnanl.h: New file.
106568         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106569         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106570         gl_FUNC_ISNANL_WORKS.
106571         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106572         New macros.
106574 2007-03-21  Bruno Haible  <bruno@clisp.org>
106576         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106577         lib/isnanl.h.
106578         (Include): Update.
106579         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106580         * lib/vasnprintf.c: Update.
106581         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106582         tests/test-isnanl.h, remove tests/test-isnanl.c.
106583         (Makefile.am): Update.
106584         * tests/test-isnanl-nolibm.c: New file.
106585         * tests/test-isnanl.h: New file.
106586         * tests/test-isnanl.c: Remove file.
106588 2007-03-21  Jim Meyering  <jim@meyering.net>
106590         When trying to open ".", treat ESTALE like EACCES.
106591         * lib/savewd.c (savewd_save): Resort to forking not just upon
106592         failure with EACCES, but also when errno is ESTALE.
106594 2007-03-20  Bruno Haible  <bruno@clisp.org>
106596         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106597         Needed on AIX 5.1. Reported by Matthew Woehlke.
106599 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106601         Suggestions by Bruno Haible:
106602         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106603         our own.
106604         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106605         * modules/acl (Depends-on): Add gettext.
106607 2007-03-19  Bruno Haible  <bruno@clisp.org>
106609         * modules/iconvme: Remove file.
106610         * lib/iconvme.h: Remove file.
106611         * lib/iconvme.c: Remove file.
106612         * m4/iconvme.m4: Remove file.
106614 2007-03-19  Bruno Haible  <bruno@clisp.org>
106616         * doc/relocatable-maint.texi: Break long shell script line.
106617         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106619 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106621         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106622         handle file_has_acl.
106623         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106624         * lib/acl.c: Move header inclusions and related macro defns into
106625         lib/acl-internal.h.
106626         (S_ISLNK): Remove defn, since that's now done for us.
106627         (file_has_acl): Move to lib/file-has-acl.c.
106628         Call acl_trivial if available.  This is the crucial part of the fix.
106629         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106630         shared within the library.  Rewrite a bit, partly to make it compatible
106631         with the GNU coding style.
106632         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106633         Remove unnecessary double-quotes.
106634         Don't test for acl_to_text; the build will catch that.
106635         Replace acl_entries if it doesn't exist and it is needed.
106636         Check for -lsec and acl_trivial (as used on Solaris 10).
106637         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106638         lib/file-has-acl.c.
106639         (Depends-on): Add sys_stat, for S_ISLNK.
106641 2007-03-19  Ben Pfaff  <blp@gnu.org>
106643         * doc/gnulib.texi: Fix typos.
106644         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106646 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106648         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106649         If size is zero here, buf must be zero.
106651 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106653         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106654         <bruno@clisp.org>.
106656 2007-03-18  Bruno Haible  <bruno@clisp.org>
106658         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106659         Suggested by Eric Blake.
106661 2007-03-18  Ben Pfaff  <blp@gnu.org>
106663         * doc/relocatable.texi: Recommend using as prefix a directory
106664         that does not exist and will never be created.  Based on
106665         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106666         and others.
106668 2007-03-17  Bruno Haible  <bruno@clisp.org>
106670         * lib/fchownat.c: Include lchown.h.
106672 2007-03-17  Bruno Haible  <bruno@clisp.org>
106674         Fix endless loop when the given allocated size was > INT_MAX.
106675         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106676         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106677         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106678         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106679         * lib/sprintf.c (sprintf): Likewise.
106681 2007-03-17  Bruno Haible  <bruno@clisp.org>
106683         * tests/test-argp-2.sh (func_compare): Output a context diff.
106685 2007-03-17  Bruno Haible  <bruno@clisp.org>
106687         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106688         locale's decimal-point character.
106690 2007-03-17  Bruno Haible  <bruno@clisp.org>
106692         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106693         before comparing it. Needed because on some platforms (e.g. x86) a
106694         'long double' occupies less bytes than sizeof (long double).
106696 2007-03-17  Bruno Haible  <bruno@clisp.org>
106698         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106699         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106700         * tests/test-getaddrinfo.c (simple): Likewise.
106701         * tests/test-read-file.c (main): Likewise.
106703 2007-03-17  Bruno Haible  <bruno@clisp.org>
106705         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106707 2007-03-17  Bruno Haible  <bruno@clisp.org>
106709         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106710         unused variable.
106712 2007-03-17  Bruno Haible  <bruno@clisp.org>
106714         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106715         * tests/test-c-strncasecmp.c: Likewise.
106717 2007-03-17  Bruno Haible  <bruno@clisp.org>
106719         * modules/stdlib (Depends-on): Add unistd.
106720         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106721         Needed for MacOS X 10.3.
106723 2007-03-17  Bruno Haible  <bruno@clisp.org>
106725         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106727 2007-03-17  Bruno Haible  <bruno@clisp.org>
106729         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106731 2007-03-17  Bruno Haible  <bruno@clisp.org>
106733         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106734         to reflect files copied from gnulib (with or without modifications).
106735         Suggested by Jim Meyering.
106737 2007-03-17  Eric Blake  <ebb9@byu.net>
106739         * NEWS: Document stdlib change from 2007-02-18.
106741 2007-03-17  Jim Meyering  <jim@meyering.net>
106743         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106744         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106745         someone uses a name containing shell meta-characters.
106746         Reported by Alfred M. Szmidt.
106748         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106750 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106752         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106753         and copy gettext configuration files only if configure.ac contains
106754         a use of AM_GNU_GETTEXT_VERSION.
106756 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106758         * build-aux/bootstrap (gnulib_name): New variable.
106759         (gnulib_tool_options): Use it.
106761 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106763         * tests/test-des.c: Use new namespace.
106765 2007-03-15  Bruno Haible  <bruno@clisp.org>
106767         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106768         Reported by James Youngman <jay@gnu.org>.
106770 2007-03-15  Bruno Haible  <bruno@clisp.org>
106772         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106773         declared prototype. Needed with cc on OSF/1 5.1.
106775 2007-03-15  Bruno Haible  <bruno@clisp.org>
106777         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106778         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106779         (struct gl_list_implementation): Add dispose_fn argument to the
106780         'create_empty', 'create' methods.
106781         (struct gl_list_impl_base): Add field 'dispose_fn'.
106782         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106783         argument.
106784         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106785         dispose_fn argument.
106786         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106787         dispose_fn on the dropped values.
106788         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106789         dispose_fn argument.
106790         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106791         dropped values.
106792         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106793         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106794         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106795         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106796         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106797         argument.
106798         (gl_tree_list_free): Call dispose_fn on the dropped values.
106799         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106800         the dropped values.
106801         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106802         Add dispose_fn argument.
106803         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106804         Call dispose_fn on the dropped values.
106805         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106806         Add dispose_fn argument.
106807         (gl_sublist_create): Initialize the 'dispose_fn' field.
106808         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106809         * tests/test-array_list.c (main): Update.
106810         * tests/test-carray_list.c (main): Update.
106811         * tests/test-avltree_list.c (main): Update.
106812         * tests/test-rbtree_list.c (main): Update.
106813         * tests/test-avltreehash_list.c (main): Update.
106814         * tests/test-rbtreehash_list.c (main): Update.
106815         * tests/test-linked_list.c (main): Update.
106816         * tests/test-linkedhash_list.c (main): Update.
106817         * tests/test-array_oset.c (main): Update.
106819 2007-03-15  Bruno Haible  <bruno@clisp.org>
106821         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106822         (gl_oset_create_empty): Add dispose_fn argument.
106823         (struct gl_oset_implementation): Add dispose_fn argument to
106824         'create_empty' method.
106825         (struct gl_oset_impl_base): Add dispose_fn field.
106826         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106827         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106828         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106829         values.
106830         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106831         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106832         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106833         dropped value.
106834         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106835         dropped value.
106836         * tests/test-array_oset.c (main): Update.
106837         * tests/test-avltree_oset.c (main): Update.
106838         * tests/test-rbtree_oset.c (main): Update.
106839         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106841 2007-03-13  Bruno Haible  <bruno@clisp.org>
106843         * tests/test-stdbool.c (i): Update after last patch.
106845 2007-03-12  Bruno Haible  <bruno@clisp.org>
106847         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106848         the iswprint macro. Needed on Solaris 2.5.1.
106850 2007-03-12  Bruno Haible  <bruno@clisp.org>
106852         * tests/test-printf-frexp.c (main): Declare x as volatile.
106854 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106856         * doc/gnulib.texi (Build robot for gnulib): New section.
106858 2007-03-12  Jim Meyering  <jim@meyering.net>
106860         * build-aux/bootstrap: New file.
106861         * build-aux/bootstrap.conf: New file, from coreutils.
106863 2007-03-11  Bruno Haible  <bruno@clisp.org>
106865         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106867 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106869         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106870         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106871         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106873 2007-03-11  Bruno Haible  <bruno@clisp.org>
106875         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106876         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106878 2007-03-11  Bruno Haible  <bruno@clisp.org>
106880         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106881         formula. Needed for SunPRO C 5.0.
106883 2007-03-11  Bruno Haible  <bruno@clisp.org>
106885         * modules/long-options (Depends-on): Add getopt.
106887 2007-03-11  Bruno Haible  <bruno@clisp.org>
106889         * modules/modechange (Depends-on): Add stdbool.
106891 2007-03-11  Bruno Haible  <bruno@clisp.org>
106893         * modules/i-ring (Depends-on): Add stdbool.
106895 2007-03-11  Bruno Haible  <bruno@clisp.org>
106897         * modules/gc-des (Depends-on): Add stdbool.
106899 2007-03-11  Bruno Haible  <bruno@clisp.org>
106901         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106903 2007-03-11  Bruno Haible  <bruno@clisp.org>
106905         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106907 2007-03-11  Bruno Haible  <bruno@clisp.org>
106909         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106911 2007-03-11  Bruno Haible  <bruno@clisp.org>
106913         * lib/vasnprintf.c (sprintf): Undefine.
106915 2007-03-11  Bruno Haible  <bruno@clisp.org>
106917         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106918         initializers in SunPRO C and Compaq C compilers.
106920 2007-03-11  Bruno Haible  <bruno@clisp.org>
106922         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106923         decrementing code ANSI C compliant.
106925 2007-03-11  Bruno Haible  <bruno@clisp.org>
106927         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106928         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106930 2007-03-11  Bruno Haible  <bruno@clisp.org>
106932         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106933         <stdbool.h> substitute doesn't pass.
106935 2007-03-11  Bruno Haible  <bruno@clisp.org>
106937         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106939 2007-03-11  Bruno Haible  <bruno@clisp.org>
106941         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106942         script, for submission to autobuild.josefsson.org.
106944 2007-03-10  Bruno Haible  <bruno@clisp.org>
106946         * modules/canonicalize-lgpl-tests: New file.
106947         * tests/test-canonicalize-lgpl.sh: New file.
106948         * tests/test-canonicalize-lgpl.c: New file.
106950         * modules/c-strcase-tests: New file.
106951         * tests/test-c-strcase.sh: New file.
106952         * tests/test-c-strcasecmp.c: New file.
106953         * tests/test-c-strncasecmp.c: New file.
106955         * modules/atexit-tests: New file.
106956         * tests/test-atexit.sh: New file.
106957         * tests/test-atexit.c: New file.
106959 2007-03-10  Bruno Haible  <bruno@clisp.org>
106961         * tests/test-binary-io.sh: Use temporary filenames that are not so
106962         likely to clash with those of other tests (in a parallel make).
106963         * tests/test-binary-io.c: Likewise.
106965 2007-03-10  Bruno Haible  <bruno@clisp.org>
106967         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106968         fallback; use #error instead.
106969         Suggested by Simon Josefsson.
106971 2007-03-10  Bruno Haible  <bruno@clisp.org>
106973         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106974         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106975         first and the last.
106977 2007-03-10  Bruno Haible  <bruno@clisp.org>
106979         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106981 2007-03-10  Bruno Haible  <bruno@clisp.org>
106983         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106984         "make distcheck".
106985         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106986         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106987         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106989 2007-03-10  Bruno Haible  <bruno@clisp.org>
106991         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106992         variable.
106993         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106994         variable.
106996 2007-03-09  Eric Blake  <ebb9@byu.net>
106997         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106999         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107000         types are not being provided by gnulib.
107001         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107002         types are supported.
107004 2007-03-10  Bruno Haible  <bruno@clisp.org>
107006         * lib/stdio_.h (__attribute__): New macro.
107007         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107008         vsprintf): Specify __attribute__ __format__ for GCC.
107009         Suggested by Eric Blake.
107011 2007-03-09  Bruno Haible  <bruno@clisp.org>
107013         * modules/printf-posix-tests: New file.
107014         * tests/test-printf-posix.sh: New file.
107015         * tests/test-printf-posix.c: New file.
107017         * modules/printf-posix: New file.
107018         * lib/printf.c: New file.
107019         * m4/printf-posix-rpl.m4: New file.
107020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107021         REPLACE_PRINTF.
107022         * lib/stdio_.h (printf): New declaration.
107023         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107024         ____strfmon____): New macros.
107025         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107026         REPLACE_PRINTF.
107028 2007-03-09  Bruno Haible  <bruno@clisp.org>
107030         * tests/test-vasnprintf-posix2.sh: New file.
107031         * tests/test-vasnprintf-posix2.c: New file.
107032         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107033         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107034         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107036         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107037         a locale dependent decimal point, rather than always '.'.
107039 2007-03-09  Eric Blake  <ebb9@byu.net>
107041         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107042         spite of platforms like Tandem/NSK that define it to -1.
107044 2007-03-08  Bruno Haible  <bruno@clisp.org>
107046         * modules/vprintf-posix-tests: New file.
107047         * tests/test-vprintf-posix.sh: New file.
107048         * tests/test-vprintf-posix.c: New file.
107049         * tests/test-printf-posix.h: New file.
107051         * modules/vprintf-posix: New file.
107052         * lib/vprintf.c: New file.
107053         * m4/vprintf-posix.m4: New file.
107054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107055         REPLACE_VPRINTF.
107056         * lib/stdio_.h (vprintf): New declaration.
107057         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107058         REPLACE_VPRINTF.
107060 2007-03-08  Bruno Haible  <bruno@clisp.org>
107062         * modules/fprintf-posix-tests: New file.
107063         * tests/test-fprintf-posix.sh: New file.
107064         * tests/test-fprintf-posix.c: New file.
107066         * modules/fprintf-posix: New file.
107067         * lib/fprintf.c: New file.
107068         * m4/fprintf-posix.m4: New file.
107069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107070         REPLACE_FPRINTF.
107071         * lib/stdio_.h (fprintf): New declaration.
107072         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107073         REPLACE_FPRINTF.
107075 2007-03-08  Bruno Haible  <bruno@clisp.org>
107077         * modules/vfprintf-posix-tests: New file.
107078         * tests/test-vfprintf-posix.sh: New file.
107079         * tests/test-vfprintf-posix.c: New file.
107080         * tests/test-fprintf-posix.h: New file.
107081         * tests/test-fprintf-posix.out: New file.
107083         * modules/vfprintf-posix: New file.
107084         * lib/vfprintf.c: New file.
107085         * m4/vfprintf-posix.m4: New file.
107086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107087         REPLACE_VFPRINTF.
107088         * lib/stdio_.h (vfprintf): New declaration.
107089         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107090         REPLACE_VFPRINTF.
107092 2007-03-08  Bruno Haible  <bruno@clisp.org>
107094         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107096 2007-03-08  Bruno Haible  <bruno@clisp.org>
107098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107099         instead of 'expr' invocations.
107100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107105         Suggested by Paul Eggert.
107107 2007-03-08  Bruno Haible  <bruno@clisp.org>
107109         * modules/fseterr-tests: New file.
107110         * tests/test-fseterr.c: New file.
107112         * modules/fseterr: New file.
107113         * lib/fseterr.h: New file.
107114         * lib/fseterr.c: New file.
107116 2007-03-08  Bruno Haible  <bruno@clisp.org>
107118         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107119         * lib/getopt_.h: Likewise.
107120         * lib/mbswidth.h: Likewise.
107121         * lib/setenv.h: Likewise.
107122         * lib/vasnprintf.h: Likewise.
107123         * lib/vasprintf.h: Likewise.
107124         * lib/verror.h: Likewise.
107125         * lib/xsetenv.h: Likewise.
107126         * lib/xvasprintf.h: Likewise.
107128 2007-03-08  Jim Meyering  <jim@meyering.net>
107130         * users.txt: Add parted.
107132         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107134 2007-03-07  Bruno Haible  <bruno@clisp.org>
107136         * m4/printf.m4: Make the shell script snippets copy&pastable.
107138 2007-03-02  Bruno Haible  <bruno@clisp.org>
107140         * lib/netinet_in_.h: New file.
107141         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107142         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107143         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107144         (Depends-on): Add absolute-header.
107145         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107146         into netinet/in.h.
107148 2007-03-03  Bruno Haible  <bruno@clisp.org>
107150         * lib/sys_select_.h: New file.
107151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107152         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107153         * modules/sys_select (Files): Add lib/sys_select_.h.
107154         (Depends-on): Add absolute-header.
107155         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107156         into sys/select.h.
107158 2007-03-02  Bruno Haible  <bruno@clisp.org>
107160         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107161         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107162         values.
107163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107164         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107165         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107166         * modules/sys_socket (Depends-on): Add absolute-header.
107167         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107168         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107169         (Include): Remove requirement of inclusion of <sys/types.h>.
107171 2007-03-02  Bruno Haible  <bruno@clisp.org>
107173         * lib/byteswap_.h (bswap_32): Fix formula.
107175 2007-03-06  Bruno Haible  <bruno@clisp.org>
107177         * modules/sprintf-posix-tests: New file.
107178         * tests/test-sprintf-posix.c: New file.
107180         * modules/sprintf-posix: New file.
107181         * lib/sprintf.c: New file.
107182         * m4/sprintf-posix.m4: New file.
107183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107184         REPLACE_SPRINTF.
107185         * lib/stdio_.h (sprintf): New declaration.
107186         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107187         REPLACE_SPRINTF.
107189 2007-03-06  Bruno Haible  <bruno@clisp.org>
107191         * modules/vsprintf-posix-tests: New file.
107192         * tests/test-vsprintf-posix.c: New file.
107193         * tests/test-sprintf-posix.h: New file.
107195         * modules/vsprintf-posix: New file.
107196         * lib/vsprintf.c: New file.
107197         * m4/vsprintf-posix.m4: New file.
107198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107199         REPLACE_VSPRINTF.
107200         * lib/stdio_.h (vsprintf): New declaration.
107201         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107202         REPLACE_VSPRINTF.
107204 2007-03-06  Bruno Haible  <bruno@clisp.org>
107206         * modules/vsnprintf (Depend-on): Remove minmax.
107208 2007-03-06  Bruno Haible  <bruno@clisp.org>
107210         * modules/snprintf-posix-tests: New file.
107211         * tests/test-snprintf-posix.c: New file.
107213         * modules/snprintf-posix: New file.
107214         * m4/snprintf-posix.m4: New file.
107215         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107216         gl_FUNC_SNPRINTF.
107217         (gl_FUNC_SNPRINTF): Invoke it.
107218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107219         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107220         is set.
107221         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107223 2007-03-06  Bruno Haible  <bruno@clisp.org>
107225         * modules/vsnprintf-posix-tests: New file.
107226         * tests/test-vsnprintf-posix.c: New file.
107227         * tests/test-snprintf-posix.h: New file.
107229         * modules/vsnprintf-posix: New file.
107230         * m4/vsnprintf-posix.m4: New file.
107231         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107232         gl_FUNC_VSNPRINTF.
107233         (gl_FUNC_VSNPRINTF): Invoke it.
107234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107235         * lib/stdio_.h (vsnprintf): Define as a replacement if
107236         REPLACE_VSNPRINTF is set.
107237         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107239 2007-03-06  Bruno Haible  <bruno@clisp.org>
107241         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107244 2007-03-06  Bruno Haible  <bruno@clisp.org>
107246         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107247         (asinl): Declare also if HAVE_DECL_ASINL is set.
107248         (atanl): Declare also if HAVE_DECL_ATANL is set.
107249         (ceill): Declare also if HAVE_DECL_CEILL is set.
107250         (cosl): Declare also if HAVE_DECL_COSL is set.
107251         (expl): Declare also if HAVE_DECL_EXPL is set.
107252         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107253         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107254         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107255         (logl): Declare also if HAVE_DECL_LOGL is set.
107256         (sinl): Declare also if HAVE_DECL_SINL is set.
107257         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107258         (tanl): Declare also if HAVE_DECL_TANL is set.
107259         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107261         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107262         declaration of frexpl, ldexpl.
107263         * modules/printf-frexpl (Depends-on): Add math.
107264         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107266 2007-03-05  Bruno Haible  <bruno@clisp.org>
107268         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107269         frexpl and ldexpl are declared.
107270         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107272 2007-03-05  Bruno Haible  <bruno@clisp.org>
107274         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107275         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107277 2007-03-05  Bruno Haible  <bruno@clisp.org>
107279         * lib/stdio_.h: Include <stddef.h>.
107281 2007-03-05  Bruno Haible  <bruno@clisp.org>
107283         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107285 2007-03-05  Bruno Haible  <bruno@clisp.org>
107287         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107288         NetBSD 4, from Ralf Wildenhues.
107290 2007-03-04  Bruno Haible  <bruno@clisp.org>
107292         * lib/vasprintf.h: Update #if logic for the case when the functions
107293         exist but are overridden.
107295 2007-03-04  Bruno Haible  <bruno@clisp.org>
107297         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107298         implementations: glibc-2.4 and MacOS X 10.3.
107299         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107300         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107301         * tests/test-vasprintf-posix.c (test_function): Likewise.
107303 2007-03-04  Bruno Haible  <bruno@clisp.org>
107305         * modules/vasprintf-posix-tests: New file.
107306         * tests/test-vasprintf-posix.c: New file.
107308         * modules/vasprintf-posix: New file.
107309         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107310         defined.
107311         * m4/vasprintf-posix.m4: New file.
107312         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107313         gl_FUNC_VASPRINTF.
107314         (gl_FUNC_VASPRINTF): Invoke it.
107315         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107316         here.
107317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107319 2007-03-04  Bruno Haible  <bruno@clisp.org>
107321         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107322         REPLACE_GETTIMEOFDAY.
107323         * modules/sys_time (Makefile.am): Likewise.
107324         * m4/sys_time_h.m4: Likewise.
107325         * m4/gettimeofday.m4: Likewise.
107327 2007-03-04  Bruno Haible  <bruno@clisp.org>
107329         * modules/vasnprintf-posix-tests: New file.
107330         * tests/test-vasnprintf-posix.c: New file.
107332         * modules/vasnprintf-posix: New file.
107333         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107334         printf-frexpl.h.
107335         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107336         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107337         REPLACE_VASNPRINTF is defined.
107338         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107339         gl_FUNC_VASNPRINTF.
107340         (gl_FUNC_VASNPRINTF): Invoke it.
107341         * m4/vasnprintf-posix.m4: New file.
107342         * m4/printf.m4: New file.
107344 2007-03-04  Bruno Haible  <bruno@clisp.org>
107346         Compile progreloc.c only if --enable-relocatable is specified.
107347         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107348         if --enable-relocatable was specified.
107349         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107350         lib_SOURCES.
107352 2007-03-04  Jim Meyering  <jim@meyering.net>
107354         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107355         Use it consistently, rather than enumerating errno constants.
107357 2007-03-04  Bruno Haible  <bruno@clisp.org>
107359         * modules/xvasprintf-tests: New file.
107360         * tests/test-xvasprintf.c: New file.
107362         * modules/vasprintf-tests: New file.
107363         * tests/test-vasprintf.c: New file.
107365         * modules/vasnprintf-tests: New file.
107366         * tests/test-vasnprintf.c: New file.
107368         * modules/vsnprintf-tests: New file.
107369         * tests/test-vsnprintf.c: New file.
107371         * modules/snprintf-tests: New file.
107372         * tests/test-snprintf.c: New file.
107374 2007-03-04  Bruno Haible  <bruno@clisp.org>
107376         Compile relocatable.c only if --enable-relocatable is specified.
107377         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107378         gl_RELOCATABLE_LIBRARY.
107379         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107380         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107381         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107382         gl_RELOCATABLE_LIBRARY.
107383         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107384         (Makefile.am): Remove lib_SOURCES.
107385         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107386         gl_RELOCATABLE_LIBRARY.
107387         (Makefile.am): Remove lib_SOURCES.
107388         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107389         always.
107390         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107391         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107393 2007-03-04  Bruno Haible  <bruno@clisp.org>
107395         * modules/argmatch-tests: New file.
107396         * tests/test-argmatch.c: New file.
107398         * tests/test-allocsa.c (main): Halve the number of loop runs.
107400         * modules/alloca-opt-tests: New file.
107401         * tests/test-alloca-opt.c: New file.
107403 2007-03-04  Jim Meyering  <jim@meyering.net>
107405         Work around difference between Linux ACLs and Solaris 10 ZFS.
107406         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107407         for EINVAL.
107409 2007-03-03  Bruno Haible  <bruno@clisp.org>
107411         * modules/relocatable-prog (Depends-on): Add back progreloc's
107412         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107414 2007-03-03  Bruno Haible  <bruno@clisp.org>
107416         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107417         * modules/relocatable-lib: New file.
107419 2007-03-03  Bruno Haible  <bruno@clisp.org>
107421         * modules/relocatable-prog: Renamed from modules/relocatable.
107422         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107424 2007-03-03  Bruno Haible  <bruno@clisp.org>
107426         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107427         m4/relocatable-lib.m4.
107428         (Depends-on): Remove 'relocatable'.
107429         (configure.ac): Add gl_RELOCATABLE_NOP.
107431 2007-03-03  Bruno Haible  <bruno@clisp.org>
107433         * modules/relocatable-prog-wrapper: New file.
107434         * modules/relocatable (Depends-on): Add it. Remove all other
107435         dependencies except progname.
107436         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107438         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107439         (gl_FUNC_STRERROR): Nop.
107440         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107442         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107443         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107445         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107446         (gl_FUNC_READLINK): Update.
107448         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107450 2007-03-03  Bruno Haible  <bruno@clisp.org>
107452         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107453         * modules/xreadlink (Depends-on): Add unistd.
107454         * modules/xreadlink-with-size (Depends-on): Likewise.
107456 2007-03-03  Bruno Haible  <bruno@clisp.org>
107458         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107459         extracted from gt_FUNC_SETENV.
107460         (gt_FUNC_SETENV): Remove macro.
107461         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107462         remove gt_FUNC_SETENV.
107464 2007-03-03  Bruno Haible  <bruno@clisp.org>
107466         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107467         ENABLE_RELOCATABLE here.
107468         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107470 2007-03-03  Bruno Haible  <bruno@clisp.org>
107472         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107473         * tests/test-rbtreehash_list.c: Include progname.h.
107474         (main): Call set_program_name.
107476         * modules/rbtree-oset-tests (Depends-on): Add progname.
107477         * tests/test-rbtree_oset.c: Include progname.h.
107478         (main): Call set_program_name.
107480         * modules/rbtree-list-tests (Depends-on): Add progname.
107481         * tests/test-rbtree_list.c: Include progname.h.
107482         (main): Call set_program_name.
107484         * modules/linked-list-tests (Depends-on): Add progname.
107485         * tests/test-linked_list.c: Include progname.h.
107486         (main): Call set_program_name.
107488 2007-03-03  Bruno Haible  <bruno@clisp.org>
107490         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107491         All uses of __restrict changed to _Restrict_.
107492         * lib/glob_.h (__restrict): Remove macro.
107494 2007-03-02  Bruno Haible  <bruno@clisp.org>
107496         * modules/gettext (configure.ac): Require gettext infrastructure
107497         from version 0.16.1.
107499 2007-03-02  Bruno Haible  <bruno@clisp.org>
107501         * modules/linkedhash-list-tests (Depends-on): Add progname.
107502         * tests/test-linkedhash_list.c: Include progname.h.
107503         (main): Call set_program_name.
107505         * modules/carray-list-tests (Depends-on): Add progname.
107506         * tests/test-carray_list.c: Include progname.h.
107507         (main): Call set_program_name.
107509         * modules/avltreehash-list-tests (Depends-on): Add progname.
107510         * tests/test-avltreehash_list.c: Include progname.h.
107511         (main): Call set_program_name.
107513         * modules/avltree-oset-tests (Depends-on): Add progname.
107514         * tests/test-avltree_oset.c: Include progname.h.
107515         (main): Call set_program_name.
107517         * modules/avltree-list-tests (Depends-on): Add progname.
107518         * tests/test-avltree_list.c: Include progname.h.
107519         (main): Call set_program_name.
107521         * modules/array-oset-tests (Depends-on): Add progname.
107522         * tests/test-array_oset.c: Include progname.h.
107523         (main): Call set_program_name.
107525         * modules/array-list-tests (Depends-on): Add progname.
107526         * tests/test-array_list.c: Include progname.h.
107527         (main): Call set_program_name.
107529         * modules/argp-tests (Depends-on): Add progname.
107530         * tests/test-argp.c: Include argp.h first. Include progname.h.
107531         (main): Call set_program_name.
107533 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107535         * doc/gnulib-tool.texi (Initial import): Reword description of
107536         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107537         limited effect even if defined after the first system include.
107539 2007-03-01  Bruno Haible  <bruno@clisp.org>
107541         * build-aux/config.libpath: Update to libtool-1.5.22.
107542         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107544 2007-03-01  Bruno Haible  <bruno@clisp.org>
107546         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107547         foo_CFLAGS.
107548         Reported by Ralf Wildenhues.
107550 2007-03-01  Bruno Haible  <bruno@clisp.org>
107552         * build-aux/install-reloc: Remove object files left over by some
107553         compilers.
107554         Reported by Ralf Wildenhues.
107556 2007-03-01  Bruno Haible  <bruno@clisp.org>
107558         * build-aux/install-reloc: Break long lines.
107560 2007-03-01  Bruno Haible  <bruno@clisp.org>
107562         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107563         Reported by Ralf Wildenhues.
107565 2007-03-01  Bruno Haible  <bruno@clisp.org>
107567         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107568         include ordering constraints.
107570 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107572         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107573         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107574         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107575         as another example.
107576         * lib/time_.h: Fix misspelling.
107577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107578         Require gl_HEADER_TIME_H_DEFAULTS.
107579         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107580         * m4/time_r.m4 (gl_TIME_R): Likewise.
107581         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107583 2007-03-01  Bruno Haible  <bruno@clisp.org>
107585         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107586         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107588 2007-03-01  Jim Meyering  <jim@meyering.net>
107590         * modules/xreadlink (Maintainer): Add my name.
107591         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107593 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107594             Bruno Haible  <bruno@clisp.org>
107596         * build-aux/install-reloc: Compile also c-ctype.c.
107597         * build-aux/relocatable.sh.in: New file.
107598         * doc/relocatable.texi: New file.
107599         * doc/relocatable-maint.texi: New file.
107600         * doc/gnulib.texi: Include relocatable-maint.texi.
107601         * lib/progreloc.c: Include unistd.h unconditionally.
107602         * lib/relocwrapper.c: Include unistd.h unconditionally.
107603         Include c-ctype.h.
107604         (add_dotbin): Use c_tolower.
107605         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107606         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107607         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107608         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107609         to m4/relocatable-lib.m4.
107610         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107611         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107612         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107613         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107614         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107615         * modules/relocatable: New file.
107616         * modules/relocatable-lib: New file.
107617         * modules/relocatable-script: New file.
107619 2007-02-28  Bruno Haible  <bruno@clisp.org>
107621         Import --enable-relocatable infrastructure.
107622         * build-aux/config.libpath: New file, from GNU gettext.
107623         * build-aux/install-reloc: New file, from GNU gettext.
107624         * build-aux/reloc-ldflags: New file, from GNU gettext.
107625         * lib/relocatable.h: New file, from GNU gettext.
107626         * lib/relocatable.c: New file, from GNU gettext.
107627         * lib/relocwrapper.c: New file, from GNU gettext.
107628         * m4/relocatable.m4: New file, from GNU gettext.
107630 2007-02-28  Bruno Haible  <bruno@clisp.org>
107632         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107634         * modules/xreadlink: New file, from GNU gettext with modifications.
107635         * lib/xreadlink.c: New file, from GNU gettext.
107636         * lib/xreadlink.h: Add comments.
107637         (xreadlink): New declaration.
107639         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107640         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107641         lib/xreadlink-with-size.c.
107642         (configure.ac): Remove gl_XREADLINK invocation.
107643         (Makefile.am): Augment lib_SOURCES.
107644         * m4/xreadlink.m4: Remove file.
107645         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107646         (xreadlink_with_size): Renamed from xreadink.
107647         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107648         * modules/canonicalize (Depends-on): Replace xreadlink with
107649         xreadlink-with-size.
107650         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107652 2007-02-25  Jim Meyering  <jim@meyering.net>
107654         * build-aux/announce-gen: When complaining about excess arguments,
107655         list them.
107657 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107659         * README: Document signed integer overflow situation more
107660         accurately.
107662 2007-02-25  Bruno Haible  <bruno@clisp.org>
107664         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107665         'a' or 'A' conversion.
107667 2007-02-25  Bruno Haible  <bruno@clisp.org>
107669         * modules/filename: Renamed from modules/pathname.
107670         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107671         lib/concatpath.c with lib/concat-filename.c.
107672         (Makefile.am): Update.
107673         (Include): Replace pathname.h with filename.h.
107674         * lib/filename.h: Renamed from lib/pathname.h.
107675         (concatenated_filename): Renamed from concatenated_pathname.
107676         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107677         (concatenated_filename): Renamed from concatenated_pathname.
107678         * lib/findprog.c: Include filename.h instead of pathname.h.
107679         (find_in_path): Update.
107680         * lib/javacomp.c: Include filename.h instead of pathname.h.
107681         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107682         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107683         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107684         is_oldgcj_14_13_usable, is_javac_usable): Update.
107685         * lib/javaexec.c: Include filename.h instead of pathname.h.
107686         (execute_java_class): Update.
107687         * modules/findprog: Update.
107688         * modules/javacomp: Update.
107689         * modules/javaexec: Update.
107690         * MODULES.html.sh (File system functions): Add 'filename', remove
107691         'pathname'.
107693 2007-02-25  Bruno Haible  <bruno@clisp.org>
107695         * modules/printf-frexpl-tests: New file.
107696         * tests/test-printf-frexpl.c: New file.
107698         * modules/printf-frexpl: New file.
107699         * lib/printf-frexpl.h: New file.
107700         * lib/printf-frexpl.c: New file.
107701         * m4/printf-frexpl.m4: New file.
107703 2007-02-25  Bruno Haible  <bruno@clisp.org>
107705         * modules/printf-frexp-tests: New file.
107706         * tests/test-printf-frexp.c: New file.
107708         * modules/printf-frexp: New file.
107709         * lib/printf-frexp.h: New file.
107710         * lib/printf-frexp.c: New file.
107711         * m4/printf-frexp.m4: New file.
107713 2007-02-25  Bruno Haible  <bruno@clisp.org>
107715         Assume automake >= 1.10 for the tests.
107716         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107717         * modules/arctwo-tests: Likewise.
107718         * modules/argp-tests: Likewise.
107719         * modules/avltree-list-tests: Likewise.
107720         * modules/avltree-oset-tests: Likewise.
107721         * modules/avltreehash-list-tests: Likewise.
107722         * modules/carray-list-tests: Likewise.
107723         * modules/crc-tests: Likewise.
107724         * modules/des-tests: Likewise.
107725         * modules/gc-arcfour-tests: Likewise.
107726         * modules/gc-arctwo-tests: Likewise.
107727         * modules/gc-des-tests: Likewise.
107728         * modules/gc-hmac-md5-tests: Likewise.
107729         * modules/gc-hmac-sha1-tests: Likewise.
107730         * modules/gc-md2-tests: Likewise.
107731         * modules/gc-md4-tests: Likewise.
107732         * modules/gc-md5-tests: Likewise.
107733         * modules/gc-pbkdf2-sha1-tests: Likewise.
107734         * modules/gc-rijndael-tests: Likewise.
107735         * modules/gc-sha1-tests: Likewise.
107736         * modules/gc-tests: Likewise.
107737         * modules/getaddrinfo-tests: Likewise.
107738         * modules/hmac-md5-tests: Likewise.
107739         * modules/hmac-sha1-tests: Likewise.
107740         * modules/linked-list-tests: Likewise.
107741         * modules/linkedhash-list-tests: Likewise.
107742         * modules/lock-tests: Likewise.
107743         * modules/md2-tests: Likewise.
107744         * modules/md4-tests: Likewise.
107745         * modules/md5-tests: Likewise.
107746         * modules/rbtree-list-tests: Likewise.
107747         * modules/rbtree-oset-tests: Likewise.
107748         * modules/rbtreehash-list-tests: Likewise.
107749         * modules/read-file-tests: Likewise.
107750         * modules/rijndael-tests: Likewise.
107751         * modules/stdint-tests: Likewise.
107752         * modules/tls-tests: Likewise.
107754 2007-02-24  Bruno Haible  <bruno@clisp.org>
107756         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107757         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107758         function; instead check whether isnan with a double argument links.
107759         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107760         function; instead check whether isnan with a 'long double' argument
107761         links.
107762         Reported by Eric Blake <ebb9@byu.net>.
107764 2007-02-24  Bruno Haible  <bruno@clisp.org>
107766         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107767         defined.
107768         * lib/isnanl.c: Remove all code. Just include isnan.c.
107769         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107771 2007-02-25  Jim Meyering  <jim@meyering.net>
107773         Avoid conflicting types for 'unsetenv' on FreeBSD.
107774         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107775         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107776         in stdlib.h.
107778 2007-02-24  Bruno Haible  <bruno@clisp.org>
107780         * modules/isnanl-nolibm-tests: New file.
107781         * tests/test-isnanl.c: New file.
107783         * modules/isnanl-nolibm: New file.
107784         * lib/isnanl.h: New file.
107785         * lib/isnanl.c: New file.
107786         * m4/isnanl.m4: New file.
107788 2007-02-24  Bruno Haible  <bruno@clisp.org>
107790         * modules/isnan-nolibm-tests: New file.
107791         * tests/test-isnan.c: New file.
107793         * modules/isnan-nolibm: New file.
107794         * lib/isnan.h: New file.
107795         * lib/isnan.c: New file.
107796         * m4/isnan.m4: New file.
107798 2007-02-24  Bruno Haible  <bruno@clisp.org>
107800         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107801         assume that an exponent fits in 20 bits.
107803 2007-02-24  Jim Meyering  <jim@meyering.net>
107805         * m4/regex.m4: Update the description of the configure-time option,
107806         --without-included-regex, to state accurately what the defaults are,
107807         and perhaps to give people an idea why using this option is risky.
107809 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107812         loops on small arguments.  This attempts to avoid the problem
107813         Bruno Haible reported for AIX 4.3.2 in
107814         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107816 2007-02-23  Bruno Haible  <bruno@clisp.org>
107818         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107819         Needed for help2man.
107821 2007-02-23  Karl Berry  <karl@gnu.org>
107823         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107824         exists, foo.h should be cvs-ignored, not committed.
107826 2007-02-23  Eric Blake  <ebb9@byu.net>
107828         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107829         * lib/stat-time.h (includes): Likewise.
107830         * lib/utimecmp.c (includes): Likewise.
107831         * lib/utimens.h (includes): Likewise.
107832         * lib/getdate.y (includes): Also include "timespec.h" for use
107833         internal to the module.
107834         * modules/utimens (Depends-on): Revert yesterday's patch.
107835         * modules/nanosleep (Depends-on): Add missing dependency.
107837 2007-02-22  Bruno Haible  <bruno@clisp.org>
107839         * lib/glob.c: Don't include getlogin_r.h.
107841 2007-02-22  Jim Meyering  <jim@meyering.net>
107843         * modules/utimens (Depends-on): Add timespec, required for
107844         utimens.h's inclusion of timespec.h.
107846 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107848         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107849         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107850         Schwab in
107851         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107852         I'll try to think of a better way to fix the Solaris problem.
107854         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107855         like glibc; on Solaris 10, it fails with errno == EINVAL.
107856         POSIX says the behavior is unspecified if the first argument is NULL,
107857         so play it safe and never pass NULL to the system getcwd.
107859 2007-02-21  Jim Meyering  <jim@meyering.net>
107861         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107862         of gettimeofday.  It would conflict with the one now always
107863         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107864         an IRIX 6.5 build failure.
107866 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107868         Minor fixups to port to Solaris 10 with Sun C 5.8.
107869         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107870         * modules/getcwd (Depends-on): Add dirfd.
107871         * lib/putenv.c (putenv): #undef it.
107872         (rpl_putenv): New decl.
107873         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107875 2007-02-20  Bruno Haible  <bruno@clisp.org>
107877         * modules/stdio-tests: New file.
107878         * tests/test-stdio.c: New file.
107880         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107881         (Depends-on): Add stdio.
107882         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107883         (Include): Use <stdio.h> instead of vsnprintf.h.
107884         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107885         HAVE_DECL_VSNPRINTF.
107886         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107888         * modules/snprintf (Files): Remove lib/snprintf.h.
107889         (Depends-on): Add stdio.
107890         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107891         (Include): Use <stdio.h> instead of snprintf.h.
107892         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107893         HAVE_DECL_SNPRINTF.
107894         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107895         * lib/getaddrinfo.c: Likewise.
107897         * modules/stdio: New file.
107898         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107899         * lib/snprintf.h: Remove file.
107900         * lib/vsnprintf.h: Remove file.
107901         * lib/.cppi-disable: Remove snprintf.h.
107902         * m4/stdio_h.m4: New file.
107903         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107905 2007-02-20  Jim Meyering  <jim@meyering.net>
107907         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107908         used by e.g., mingw.  From Bruno Haible.
107910 2007-02-19  Bruno Haible  <bruno@clisp.org>
107912         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107913         warnings.
107914         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107916 2007-02-19  Bruno Haible  <bruno@clisp.org>
107918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107919         from mingw users.
107921 2007-02-19  Bruno Haible  <bruno@clisp.org>
107923         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107924         warnings.
107925         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107927 2007-02-19  Jim Meyering  <jim@meyering.net>
107929         Don't use FD after a successful "fdopendir (fd)".
107930         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107931         Reset it by calling dirfd on the just-obtained DIR*.
107933         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107934         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107936 2007-02-18  Bruno Haible  <bruno@clisp.org>
107938         * lib/readlink.c: Include <unistd.h>.
107939         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107940         HAVE_READLINK.
107941         * modules/readlink (Depends-on): Add unistd.
107942         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107943         (Include): Add <unistd.h>.
107945         * lib/getlogin_r.h: Remove file.
107946         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107947         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107948         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107949         HAVE_DECL_GETLOGIN_R.
107950         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107952         (Include): Use <unistd.h> instead of getlogin_r.h.
107954         * lib/getcwd.h: Remove file.
107955         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107956         * lib/xgetcwd.c: Likewise.
107957         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107958         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107959         * modules/getcwd (Files): Remove lib/getcwd.h.
107960         (Depends-on): Add unistd.
107961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107962         (Include): Use <unistd.h> instad of getcwd.h.
107964         * lib/ftruncate.c: Include <unistd.h> first.
107965         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107966         Set HAVE_FTRUNCATE.
107967         * modules/ftruncate (Depends-on): Add unistd.
107968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107970         * lib/fchdir.c: Include <unistd.h> first.
107971         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107973         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107974         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107975         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107977         * lib/dup2.c: Include <unistd.h> first.
107978         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107979         HAVE_DUP2.
107980         * modules/dup2 (Depends-on): Add unistd.
107981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107983         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107984         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107985         REPLACE_CHOWN. Don't define chown as a macro here.
107986         * modules/chown (Depends-on): Add unistd.
107987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107989         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107990         Add definition for GL_LINK_WARNING.
107991         (chown, dup2): New declarations.
107992         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107993         link warning.
107994         (ftruncate): New declaration.
107995         (getcwd): New declaration, taken from old getcwd.h.
107996         (getlogin_r): New declaration, taken from old getlogin_r.h.
107997         (readlink): New declaration.
107998         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107999         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108000         (gl_PREREQ_UNISTD): Remove macro.
108001         (gl_UNISTD_MODULE_INDICATOR): New macro.
108002         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108003         many new variables. Don't set UNISTD_H.
108004         * modules/unistd (Description): Change.
108005         (Depends-on): Add link-warning.
108006         (configure.ac): Update.
108007         (Makefile.am): Create unistd.h always. Substitute many new variables
108008         into it.
108010 2007-02-18  Bruno Haible  <bruno@clisp.org>
108012         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108013         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108014         HAVE_GETSUBOPT.
108015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108016         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108017         * lib/getsubopt.h: Remove file.
108018         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108019         (Depends-on): Add stdlib.
108020         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108021         (Includes): Use <stdlib.h> instead of getsubopt.h.
108022         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108023         Set HAVE_GETSUBOPT.
108024         * lib/getsubopt.c: Don't include getsubopt.h.
108026 2007-02-18  Bruno Haible  <bruno@clisp.org>
108028         * modules/fchdir (Depends-on): Add dup2.
108030 2007-02-18  Bruno Haible  <bruno@clisp.org>
108032         * lib/stdlib_.h: Handle glibc's special invocation convention
108033         specially.
108035 2007-02-18  Bruno Haible  <bruno@clisp.org>
108037         * modules/stdlib-tests: New file.
108038         * tests/test-stdlib.c: New file.
108040         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108041         (Depends-on): Add stdlib.
108042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108043         (Includes): Use <stdlib.h> instead of mkstemp.h.
108044         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108045         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108046         * lib/mkstemp.c: Don't include mkstemp.h.
108047         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108048         * lib/stdlib--.h: Don't include mkstemp.h.
108050         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108051         (Depends-on): Add stdlib.
108052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108053         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108054         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108055         HAVE_MKDTEMP.
108056         * lib/mkdtemp.c: Don't include mkdtemp.h.
108057         * lib/clean-temp.c: Don't include mkdtemp.h.
108059         * modules/exit (Files): Remove lib/exit.h.
108060         (Depends-on): Add stdlib.
108061         (Makefile.am): Remove lib_SOURCES.
108062         (Include): Use <stdlib.h> instead of exit.h.
108063         * lib/argmatch.c: Don't include exit.h.
108064         * lib/execute.c: Likewise.
108065         * lib/pagealign_alloc.c: Likewise.
108066         * lib/pipe.c: Likewise.
108067         * lib/wait-process.c: Likewise.
108068         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108069         * lib/exitfail.c: Likewise.
108070         * lib/savewd.c: Likewise.
108071         * lib/xsetenv.c: Likewise.
108073         * modules/stdlib: New file.
108074         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108075         and extra comments about mkstemp().
108076         * lib/exit.h: Remove file.
108077         * lib/mkdtemp.h: Remove file.
108078         * lib/mkstemp.h: Remove file.
108079         * m4/stdlib_h.m4: New file.
108080         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108082 2007-02-18  Bruno Haible  <bruno@clisp.org>
108084         * modules/math-tests: New file.
108085         * tests/test-math.c: New file.
108087         * modules/math: New file.
108088         * modules/mathl (Files): Remove lib/mathl.h.
108089         (Depends-on): Add math.
108090         (Makefile.am): Don't mention mathl.h.
108091         (Include): Use <math.h> instead of mathl.h.
108092         * lib/math_.h: New file.
108093         * lib/mathl.h: Remove file.
108094         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108095         mathl.h.
108096         * lib/asinl.c: Likewise.
108097         * lib/atanl.c: Likewise.
108098         * lib/ceill.c: Likewise.
108099         * lib/cosl.c: Likewise.
108100         * lib/expl.c: Likewise.
108101         * lib/floorl.c: Likewise.
108102         * lib/frexpl.c: Likewise.
108103         * lib/ldexpl.c: Likewise.
108104         * lib/logl.c: Likewise.
108105         * lib/sincosl.c: Likewise.
108106         * lib/sinl.c: Likewise.
108107         * lib/sqrtl.c: Likewise.
108108         * lib/tanl.c: Likewise.
108109         * lib/trigl.c: Likewise.
108110         * m4/math_h.m4: New file.
108111         * MODULES.html.sh (Mathematics): Add math.
108113 2007-02-17  Bruno Haible  <bruno@clisp.org>
108115         * modules/wctype-tests: New file.
108116         * tests/test-wctype.c: New file.
108118         * modules/wchar-tests: New file.
108119         * tests/test-wchar.c: New file.
108121         * modules/unistd-tests: New file.
108122         * tests/test-unistd.c: New file.
108124         * modules/time-tests: New file.
108125         * tests/test-time.c: New file.
108127         * modules/sysexits-tests: New file.
108128         * tests/test-sysexits.c: New file.
108130         * modules/sys_time-tests: New file.
108131         * tests/test-sys_time.c: New file.
108133         * modules/sys_stat-tests: New file.
108134         * tests/test-sys_stat.c: New file.
108136         * modules/sys_socket-tests: New file.
108137         * tests/test-sys_socket.c: New file.
108139         * modules/sys_select-tests: New file.
108140         * tests/test-sys_select.c: New file.
108142         * modules/string-tests: New file.
108143         * tests/test-string.c: New file.
108145         * modules/stdbool-tests: New file.
108146         * tests/test-stdbool.c: New file.
108148         * modules/netinet_in-tests: New file.
108149         * tests/test-netinet_in.c: New file.
108151         * modules/inttypes-tests: New file.
108152         * tests/test-inttypes.c: New file.
108154         * modules/fcntl-tests: New file.
108155         * tests/test-fcntl.c: New file.
108157         * modules/byteswap-tests: New file.
108158         * tests/test-byteswap.c: New file.
108160         * modules/arpa_inet-tests: New file.
108161         * tests/test-arpa_inet.c: New file.
108163 2007-02-17  Bruno Haible  <bruno@clisp.org>
108165         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108166         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108167         if the corresponding module is not enabled. Emit link warnings if
108168         the function is used nevertheless.
108169         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108170         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108171         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108172         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108173         * modules/inttypes (Depends-on): Add link-warning.
108174         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108175         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108176         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108177         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108178         * modules/imaxdiv (configure.ac): Likewise.
108179         * modules/strtoimax (configure.ac): Likewise.
108180         * modules/strtoumax (configure.ac): Likewise.
108182 2007-02-17  Bruno Haible  <bruno@clisp.org>
108184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108185         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108186         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108187         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108189 2007-02-17  Bruno Haible  <bruno@clisp.org>
108191         * modules/link-warning: New file.
108192         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108193         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108194         * modules/string (Depends-on): Add link-warning.
108195         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108196         string.h.
108197         * MODULES.html.sh (Support for building libraries and executables): Add
108198         link-warning.
108200 2007-02-17  Bruno Haible  <bruno@clisp.org>
108202         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108203         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108204         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108205         long lines.
108207 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108208             Bruno Haible  <bruno@clisp.org>
108210         * modules/tmpfile: New file.
108211         * lib/tmpfile.c: New file.
108212         * m4/tmpfile.m4: New file.
108213         * MODULES.html.sh (func_all_modules): New section "Input/output".
108215 2007-02-15  Bruno Haible  <bruno@clisp.org>
108217         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108218         (supports_delete_on_close): New function.
108219         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108221 2007-02-14  Bruno Haible  <bruno@clisp.org>
108223         * modules/mbspcasecmp-tests: New file.
108224         * tests/test-mbspcasecmp.sh: New file.
108225         * tests/test-mbspcasecmp.c: New file.
108227         New module mbspcasecmp.
108228         * modules/mbspcasecmp: New file.
108229         * lib/mbspcasecmp.c: New file.
108230         * lib/string_.h (strncasecmp): Change warning message.
108231         (mbspcasecmp): New declaration.
108232         * m4/mbspcasecmp.m4: New file.
108233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108234         GNULIB_MBSPCASECMP.
108235         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108236         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108238 2007-02-14  Bruno Haible  <bruno@clisp.org>
108240         * modules/mbsncasecmp-tests: New file.
108241         * tests/test-mbsncasecmp.sh: New file.
108242         * tests/test-mbsncasecmp.c: New file.
108244         New module mbsncasecmp.
108245         * modules/mbsncasecmp: New file.
108246         * lib/mbsncasecmp.c: New file.
108247         * lib/string_.h (mbsncasecmp): New declaration.
108248         * m4/mbsncasecmp.m4: New file.
108249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108250         GNULIB_MBSNCASECMP.
108251         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108252         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108254 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108256         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108257         Verify that it doesn't overlap with our flags.
108258         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108259         do not have the desired effect in multibyte locales; instead, use
108260         mbscasecmp.
108261         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108262         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108263         we don't require GNU fnmatch ourselves (if our users require it, they
108264         should do so explicitly).
108266         Fix regex code so it doesn't rely on strcasecmp.
108267         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108268         Otherwise, include gnulib's langinfo.h.
108269         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108270         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108271         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108272         * modules/regex (FILES): Remove m4/codeset.m4.
108273         (Depends-on): Add localcharset.  Remove strcase.
108275 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108277         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108278         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108280 2007-02-13  Bruno Haible  <bruno@clisp.org>
108282         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108285 2007-02-12  Bruno Haible  <bruno@clisp.org>
108287         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108288         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108289         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108290         time warning rather than a link error.
108292 2007-02-12  Bruno Haible  <bruno@clisp.org>
108294         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108296         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108298 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108300         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108301         args, not 2.
108303 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108305         New module 'time', so that apps can include <time.h> as per
108306         POSIX and GNU instead of separate include files like time_r.h
108307         and timegm.h.  This implementation tries out a simpler approach
108308         for replacing decls in standard include files (as compared to
108309         the string module), somewhat as an experiment.
108311         * config/srclist.txt: Comment out mktime.c for now.
108312         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108313         since it doesn't apply any more.  Use generic wording instead.
108314         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108315         'time'.
108316         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108317         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108318         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108319         Don't include <sys/types.h>; no longer needed since we assume C89.
108320         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108321         * lib/strftime.c: Likewise.
108322         * lib/time_r.c: Likewise.
108323         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108324         * lib/nanosleep.c: Include <time.h> first, to check interface.
108325         * lib/strptime.c: Likewise.
108326         * lib/time_r.c: Likewise.
108327         * lib/timegm.c: Likewise.
108328         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108329         needed.
108330         * lib/timegm.c: Don't include timegm.h; no longer needed.
108331         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108332         time.h now handles any problems in that area.
108333         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108334         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108335         that time.h defines struct timespec.
108336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108337         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108338         handles that.
108339         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108340         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108341         needed.  Set REPLACE_LOCALTIME.
108342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108343         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108344         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108345         nanosleep; time_h.m4 now does that.  Don't require
108346         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108347         module handles this now.
108348         * modules/getdate (Depends-on): Remove timespec.  Add time.
108349         * modules/nanosleep (Depends-on): Likewise.
108350         * modules/stat-time (Depends-on): Likewise.
108351         * modules/nanosleep (Include): Include time.h, not timespec.h.
108352         * modules/strptime (Files): Remove lib/strptime.h.
108353         (Depends-on): Add extensions, time.
108354         (Include): Include time.h, not strptime.h.
108355         * modules/time_r (Files): Remove lib/time_r.h.
108356         (Depends-on): Add time.
108357         (Include): Include time.h, not time_r.h.
108358         * modules/timegm: Likewise.
108359         * modules/timespec (Description): Now does timespec-related decls
108360         of our own, instead of struct timespec itself.
108361         (Depends-on): Add time; remove extensions.
108362         (Maintainer): Add self.
108363         * modules/utimecmp (Depends-on): Add time; remove timespec.
108364         * modules/utimens (Depends-on): Likewise.
108365         * modules/xnanosleep (Depends-on): Likewise.
108367 2007-02-11  Bruno Haible  <bruno@clisp.org>
108369         * lib/c-strstr.c: Include allocsa.h.
108370         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108371         * lib/c-strcasestr.c: Include allocsa.h.
108372         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108373         * lib/strcasestr.c: Include allocsa.h.
108374         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108375         * lib/mbsstr.c: Include allocsa.h.
108376         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108377         allocsa/freesa instead of malloc/free.
108378         * lib/mbscasestr.c: Include allocsa.h.
108379         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108380         allocsa/freesa instead of malloc/free.
108381         * modules/c-strstr (Depends-on): Add allocsa.
108382         * modules/c-strcasestr (Depends-on): Likewise.
108383         * modules/strcasestr (Depends-on): Likewise.
108384         * modules/mbsstr (Depends-on): Likewise.
108385         * modules/mbscasestr (Depends-on): Likewise.
108387 2007-02-11  Bruno Haible  <bruno@clisp.org>
108389         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108391         * modules/mbsspn-tests: New file.
108392         * tests/test-mbsspn.sh: New file.
108393         * tests/test-mbsspn.c: New file.
108395 2007-02-11  Bruno Haible  <bruno@clisp.org>
108397         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108399         * modules/mbspbrk-tests: New file.
108400         * tests/test-mbspbrk.sh: New file.
108401         * tests/test-mbspbrk.c: New file.
108403 2007-02-11  Bruno Haible  <bruno@clisp.org>
108405         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108406         unneeded cast.
108408         * modules/mbscspn-tests: New file.
108409         * tests/test-mbscspn.sh: New file.
108410         * tests/test-mbscspn.c: New file.
108412 2007-02-11  Bruno Haible  <bruno@clisp.org>
108414         * modules/mbscasecmp-tests: New file.
108415         * tests/test-mbscasecmp.sh: New file.
108416         * tests/test-mbscasecmp.c: New file.
108418 2007-02-11  Bruno Haible  <bruno@clisp.org>
108420         Ensure O(n) worst-case complexity of mbscasestr.
108421         * lib/mbscasestr.c: Include stdbool.h.
108422         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108423         functions.
108424         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108425         the bookkeeping indicates that it's worth it.
108426         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108428         * modules/mbscasestr-tests: New file.
108429         * tests/test-mbscasestr1.c: New file.
108430         * tests/test-mbscasestr2.sh: New file.
108431         * tests/test-mbscasestr2.c: New file.
108432         * tests/test-mbscasestr3.sh: New file.
108433         * tests/test-mbscasestr3.c: New file.
108434         * tests/test-mbscasestr4.sh: New file.
108435         * tests/test-mbscasestr4.c: New file.
108436         * m4/locale-tr.m4: New file.
108438 2007-02-11  Bruno Haible  <bruno@clisp.org>
108440         Ensure O(n) worst-case complexity of mbsstr.
108441         * lib/mbsstr.c: Include stdbool.h.
108442         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108443         functions.
108444         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108445         bookkeeping indicates that it's worth it.
108446         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108448         * modules/mbsstr-tests: New file.
108449         * tests/test-mbsstr1.c: New file.
108450         * tests/test-mbsstr2.sh: New file.
108451         * tests/test-mbsstr2.c: New file.
108452         * tests/test-mbsstr3.sh: New file.
108453         * tests/test-mbsstr3.c: New file.
108454         * m4/locale-fr.m4: New file.
108456 2007-02-11  Bruno Haible  <bruno@clisp.org>
108458         * lib/mbsrchr.c (mbsrchr): Fix bug.
108460         * modules/mbsrchr-tests: New file.
108461         * tests/test-mbsrchr.sh: New file.
108462         * tests/test-mbsrchr.c: New file.
108464 2007-02-11  Bruno Haible  <bruno@clisp.org>
108466         * lib/mbschr.c (mbschr): Fix bug.
108468         * modules/mbschr-tests: New file.
108469         * tests/test-mbschr.sh: New file.
108470         * tests/test-mbschr.c: New file.
108471         * m4/locale-zh.m4: New file.
108473 2007-02-11  Bruno Haible  <bruno@clisp.org>
108475         Support for copying multibyte string iterators.
108476         * lib/mbiter.h: Include <string.h>.
108477         (mbiter_multi_copy): New function.
108478         (mbi_copy): New macro.
108479         * lib/mbuiter.h: Include <string.h>.
108480         (mbuiter_multi_copy): New function.
108481         (mbui_copy): New macro.
108483 2007-02-11  Bruno Haible  <bruno@clisp.org>
108485         New module mbslen.
108486         * modules/mbslen: New file.
108487         * lib/mbslen.c: New file.
108488         * lib/string_.h (mbslen): New declaration.
108489         * m4/mbslen.m4: New file.
108490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108491         GNULIB_MBSLEN.
108492         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108493         * MODULES.html.sh (Internationalization functions): Add mbslen.
108495 2007-02-11  Bruno Haible  <bruno@clisp.org>
108497         Ensure O(n) worst-case complexity of strcasestr substitute.
108498         * lib/strcasestr.c: Include stdbool.h.
108499         (knuth_morris_pratt): New function.
108500         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108501         bookkeeping indicates that it's worth it.
108502         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108504         * modules/strcasestr-tests: New file.
108505         * tests/test-strcasestr.c: New file.
108507 2007-02-11  Bruno Haible  <bruno@clisp.org>
108509         Ensure O(n) worst-case complexity of c_strcasestr.
108510         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108511         (knuth_morris_pratt): New function.
108512         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108513         the bookkeeping indicates that it's worth it.
108514         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108516         * modules/c-strcasestr-tests: New file.
108517         * tests/test-c-strcasestr.c: New file.
108519 2007-02-11  Bruno Haible  <bruno@clisp.org>
108521         Ensure O(n) worst-case complexity of c_strstr.
108522         * lib/c-strstr.c: Include stdbool.h, string.h.
108523         (knuth_morris_pratt): New function.
108524         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108525         bookkeeping indicates that it's worth it.
108526         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108528         * lib/c-strstr.c: Complete rewrite for maintainability.
108530         * modules/c-strstr-tests: New file.
108531         * tests/test-c-strstr.c: New file.
108533 2007-02-11  Bruno Haible  <bruno@clisp.org>
108535         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108536         5.2.1 and earlier, whereby \055 was treated just like the range
108537         delimiter '-'.
108538         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108540 2007-02-08  Bruno Haible  <bruno@clisp.org>
108542         * modules/regex (Depends-on): Add stdbool.
108543         Reported by Dalibor Topic <robilad@kaffe.org>.
108545 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108547         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108548         Prefer returning from main to exiting from it.
108549         Remove unnecessary parens after sizeof.
108551 2007-02-05  Bruno Haible  <bruno@clisp.org>
108553         New module mbssep.
108554         * modules/mbssep: New file.
108555         * lib/mbssep.c: New file.
108556         * lib/string_.h (strsep): Add a conditional link warning.
108557         (mbssep): New declaration.
108558         * m4/mbssep.m4: New file.
108559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108560         GNULIB_MBSSEP.
108561         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108562         * MODULES.html.sh (Internationalization functions): Add mbssep.
108564 2007-02-05  Bruno Haible  <bruno@clisp.org>
108566         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108567         Optimize search in case of 1 delimiter.
108569 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108571         * lib/acl.h: Include sys/types.h before sys/acl.h.
108573 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108575         Merge upstream fix for glibc bugzilla #3957:
108577         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108579         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108580         bit for RE_HAT_LISTS_NOT_NEWLINE.
108581         (build_charclass_op): Remove bogus comment.
108583 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108585         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108587 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108589         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108590         * lib/memmem.c [!defined _LIBC]: Include config.h.
108592 2007-02-04  Bruno Haible  <bruno@clisp.org>
108594         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108595         warning message.
108597 2007-02-04  Bruno Haible  <bruno@clisp.org>
108599         New module mbstok_r.
108600         * modules/mbstok_r: New file.
108601         * lib/mbstok_r.c: New file.
108602         * lib/string_.h (strtok_r): Change argument names to match the
108603         comments. Add a conditional link warning.
108604         (mbstok_r): New declaration.
108605         * m4/mbstok_r.m4: New file.
108606         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108607         GNULIB_MBSTOK_R.
108608         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108609         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108611 2007-02-04  Bruno Haible  <bruno@clisp.org>
108613         New module mbsspn.
108614         * modules/mbsspn: New file.
108615         * lib/mbsspn.c: New file.
108616         * lib/string_.h (strspn): Add a conditional link warning.
108617         (mbsspn): New declaration.
108618         * m4/mbsspn.m4: New file.
108619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108620         GNULIB_MBSSPN.
108621         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108622         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108624 2007-02-04  Bruno Haible  <bruno@clisp.org>
108626         New module mbspbrk.
108627         * modules/mbspbrk: New file.
108628         * lib/mbspbrk.c: New file.
108629         * lib/string_.h (strpbrk): Add a conditional link warning.
108630         (mbspbrk): New declaration.
108631         * m4/mbspbrk.m4: New file.
108632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108633         GNULIB_MBSPBRK.
108634         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108635         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108637 2007-02-04  Bruno Haible  <bruno@clisp.org>
108639         New module mbscspn.
108640         * modules/mbscspn: New file.
108641         * lib/mbscspn.c: New file.
108642         * lib/string_.h (strcspn): Add a conditional link warning.
108643         (mbscspn): New declaration.
108644         * m4/mbscspn.m4: New file.
108645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108646         GNULIB_MBSCSPN.
108647         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108648         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108650 2007-02-04  Bruno Haible  <bruno@clisp.org>
108652         New module mbscasestr, reduced goal of strcasestr.
108653         * modules/mbscasestr: New file.
108654         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108655         (mbscasestr): Renamed from strcasestr.
108656         * lib/strcasestr.c: Don't include mbuiter.h.
108657         (strcasestr): Remove support for multibyte locales.
108658         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108659         Change the conditional link warning.
108660         (mbscasestr): New declaration.
108661         * m4/mbscasestr.m4: New file.
108662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108663         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108664         REPLACE_STRCASESTR.
108665         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108667         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108668         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108669         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108670         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108671         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108672         (Depends-on): Remove mbuiter.
108673         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108675 2007-02-04  Bruno Haible  <bruno@clisp.org>
108677         Simplify handling of strncasecmp.
108678         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108679         the conditional link warning.
108680         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108681         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108682         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108683         * modules/strcase (configure.ac): Don't invoke
108684         gl_STRING_MODULE_INDICATOR.
108685         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108687 2007-02-04  Bruno Haible  <bruno@clisp.org>
108689         New module mbscasecmp, reduced goal of strcasecmp.
108690         * modules/mbscasecmp: New file.
108691         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108692         (mbscasecmp): Renamed from strcasecmp.
108693         * lib/strcasecmp.c: Don't include mbuiter.h.
108694         (strcasecmp): Remove support for multibyte locales.
108695         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108696         Change the conditional link warning.
108697         (mbscasecmp): New declaration.
108698         * m4/mbscasecmp.m4: New file.
108699         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108700         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108701         REPLACE_STRCASECMP.
108702         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108704         GNULIB_MBSCASECMP.
108705         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108706         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108707         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108708         (Depends-on): Remove mbuiter.
108709         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108711 2007-02-04  Bruno Haible  <bruno@clisp.org>
108713         New module mbsstr. Remove module strstr.
108714         * modules/mbsstr: New file.
108715         * modules/strstr: Remove file.
108716         * lib/mbsstr.c: Renamed from lib/strstr.c.
108717         (mbsstr): Renamed from strstr.
108718         * lib/string_.h (strstr): Remove declaration. Change the conditional
108719         link warning.
108720         (mbsstr): New declaration.
108721         * m4/mbsstr.m4: New file.
108722         * m4/strstr.m4: Remove file.
108723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108724         REPLACE_STRSTR.
108725         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108726         Don't initialize GNULIB_STRSTR.
108727         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108728         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108729         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108730         (Support for systems lacking ANSI C 89): Remove strstr.
108732 2007-02-04  Bruno Haible  <bruno@clisp.org>
108734         New module mbsrchr.
108735         * modules/mbsrchr: New file.
108736         * lib/mbsrchr.c: New file.
108737         * lib/string_.h (strrchr): Add a conditional link warning.
108738         (mbsrchr): New declaration.
108739         * m4/mbsrchr.m4: New file.
108740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108741         GNULIB_MBSRCHR.
108742         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108743         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108745 2007-02-04  Bruno Haible  <bruno@clisp.org>
108747         New module mbschr.
108748         * modules/mbschr: New file.
108749         * lib/mbschr.c: New file.
108750         * lib/string_.h (strchr): Add a conditional link warning.
108751         (mbschr): New declaration.
108752         * m4/mbschr.m4: New file.
108753         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108754         GNULIB_MBSCHR.
108755         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108756         * MODULES.html.sh (Internationalization functions): Add mbschr.
108758 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108760         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108762         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108764 2007-02-04  Bruno Haible  <bruno@clisp.org>
108766         New module description section 'configure.ac-early'.
108767         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108768         (func_get_autoconf_early_snippet): New function.
108769         (func_import, func_create_testdir): Use it. Remove special cases for
108770         modules 'extensions' and 'lock'.
108771         * modules/extensions (configure.ac-early): Require
108772         gl_USE_SYSTEM_EXTENSIONS.
108773         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108775 2007-02-04  Bruno Haible  <bruno@clisp.org>
108777         Make use of gcj-4.3's -fsource and -ftarget option.
108778         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108779         and if so try the options -fsource and -ftarget.
108780         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108781         source_version, ftarget_option, target_version arguments.
108782         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108783         (is_envjavac_oldgcj_14_14_usable): Renamed from
108784         is_envjavac_gcj_14_14_usable.
108785         (is_envjavac_oldgcj_14_13_usable): Renamed from
108786         is_envjavac_gcj_14_13_usable.
108787         (is_gcj_present): Update.
108788         (is_gcj_43, is_gcj43_usable): New functions.
108789         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108790         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108791         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108792         try the options -fsource and -ftarget.
108794 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108796         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108797         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108798         larger value.
108800 2007-02-03  Jim Meyering  <jim@meyering.net>
108802         Give tools a better chance to allocate space for very large buffers.
108803         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108805         Make pwd and readlink work also when run with an unreadable parent dir
108806         on systems with openat support.
108807         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108808         provided getcwd function, even when we have openat support.
108809         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108811 2007-02-02  Bruno Haible  <bruno@clisp.org>
108813         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108814         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108815         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108816         portability problems if one of these functions is only used on specific
108817         platforms.
108818         Reported by Paul Eggert.
108820 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108822         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108823         is causing more trouble than it's curing.
108824         * lib/regex_internal.h (__mempcpy): Remove.
108825         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108826         (and make the code a tad smaller to boot).
108827         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108829 2007-02-02  Jim Meyering  <jim@meyering.net>
108831         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108832         section, not in the Makefile.am: one.
108834 2007-02-02  Eric Blake  <ebb9@byu.net>
108836         * lib/strchrnul.c: Always include config.h first.
108838         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108839         gnulib strstr is not necessary here.
108841 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108843         * m4/socklen.m4: Fix typo.
108845 2007-02-02  Eric Blake  <ebb9@byu.net>
108847         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108848         * modules/netinet_in (Makefile.am): Likewise.
108850 2007-02-01  Bruno Haible  <bruno@clisp.org>
108852         * lib/string_.h (GL_LINK_WARNING): New macro.
108853         (strcasecmp, strstr, strcasestr): If provided by the system,
108854         conditionally define as a macro that leads to a warning instead of to
108855         an error.
108856         (strncasecmp): Conditionally define as a macro that leads to a warning.
108858 2007-02-01  Karl Berry  <karl@gnu.org>
108860         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108862 2007-02-01  Bruno Haible  <bruno@clisp.org>
108864         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108865         renamings.
108867 2007-02-01  Eric Blake  <ebb9@byu.net>
108869         * modules/regex (Depends-on): Revert dependence on mempcpy.
108870         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108871         module's definition of mempcpy.
108872         Reported by Paul Eggert.
108874 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108876         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108877         the symbol XYZ before redefining it.  This fixes a problem with
108878         programs that don't use XYZ, when compiled on systems that define
108879         XYZ to something else.
108881 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108883         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108884         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108885         writeable to group or other and (2) is intended to have a special
108886         mode bit that is set or cleared.  In such a case, the directory
108887         should be neither group- nor other-writeable until the special
108888         mode bits are right.
108890 2007-01-31  Eric Blake  <ebb9@byu.net>
108892         * modules/mountlist (Depends-on): Add strstr.
108894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108895         bug.
108896         * modules/string (Makefile.am): Remove redundant replacement.
108897         * modules/regex (Depends-on): Add mempcpy.
108899 2007-01-31  Bruno Haible  <bruno@clisp.org>
108901         New module description field 'Link'.
108902         * gnulib-tool (func_usage): Document --extract-link-directive.
108903         (sed_extract_prog): Recognize 'Link' directive.
108904         (func_get_link_directive): New function.
108905         (func_import): Show summary of link directives.
108906         Handle --extract-link-directive option.
108907         * modules/acl (Link): New section.
108908         * modules/clock-time (Link): New section.
108909         * modules/euidaccess (Link): New section.
108910         * modules/gettext (Link): New section.
108911         * modules/iconv (Link): New section.
108912         * modules/lock (Link): New section.
108913         * modules/nanosleep (Link): New section.
108914         * modules/readline (Link): New section.
108916 2007-01-27  Bruno Haible  <bruno@clisp.org>
108918         Enforce the use of gnulib modules for unportable <string.h> functions.
108919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108920         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108921         (gl_HEADER_STRING_H_BODY): Require it.
108922         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108923         the symbol XYZ to one that gives a link error.
108924         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108925         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108926         * modules/mempcpy (configure.ac): Likewise.
108927         * modules/memrchr (configure.ac): Likewise.
108928         * modules/stpcpy (configure.ac): Likewise.
108929         * modules/stpncpy (configure.ac): Likewise.
108930         * modules/strcase (configure.ac): Likewise.
108931         * modules/strcasestr (configure.ac): Likewise.
108932         * modules/strchrnul (configure.ac): Likewise.
108933         * modules/strdup (configure.ac): Likewise.
108934         * modules/strndup (configure.ac): Likewise.
108935         * modules/strnlen (configure.ac): Likewise.
108936         * modules/strpbrk (configure.ac): Likewise.
108937         * modules/strsep (configure.ac): Likewise.
108938         * modules/strstr (configure.ac): Likewise.
108939         * modules/strtok_r (configure.ac): Likewise.
108941 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108943         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108945 2007-01-30  Jim Meyering  <jim@meyering.net>
108947         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108949 2007-01-29  Bruno Haible  <bruno@clisp.org>
108951         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108952         * lib/execute.c: Likewise.
108953         * lib/pipe.c: Likewise.
108954         * lib/printf-args.h: Likewise.
108955         * lib/printf-args.c: Likewise.
108956         * lib/printf-parse.c: Likewise.
108957         * lib/vasnprintf.c: Likewise.
108959 2007-01-29  Eric Blake  <ebb9@byu.net>
108961         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108962         declaration.
108964 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108966         * lib/strptime.h (strptime): Use 'restrict' for args where
108967         POSIX requires this.
108968         * lib/strptime.c (strptime): Likewise.
108969         Change license notice from LGPL to GPL, since gnulib-tool will
108970         change this as needed.
108971         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108972         defined.
108973         Include "strptime.h" first, to check interface.
108974         Do not #undef _LIBC and _NL_CURRENT.
108975         Do not include <stdlib.h>; no longer needed.
108976         Include "time_r.h" and declare ptime_locale_status
108977         only if _LIBC is not defined.
108978         (__P): Remove unused macro.
108979         (match_string): Bring back glibc version, but use it only if _LIBC
108980         is defined.
108981         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108982         Remove unnecessary assertion and abort() call.
108983         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108984         * m4/strptime.m4: Fix serial number comment.
108985         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108986         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108987         (Depends-on): Add time_r.
108989 2007-01-29  Bruno Haible  <bruno@clisp.org>
108991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108992         strptime.
108993         * modules/strptime (Depends-on): Add stdbool.
108994         * lib/strptime.h: Include <time.h> always. Add comments.
108996 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108998         * modules/strptime: New file.
108999         * lib/strptime.h: New file.
109000         * lib/strptime.c: New file.
109001         * m4/strptime.m4: New file.
109003 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109005         * MODULES.html.sh: New module mpsort.
109006         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109008         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109009         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109010         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109011         All uses changed.
109012         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109013         All uses changed.
109014         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109015         to _Restrict_.
109016         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109017         the parameter matches the prototype.
109019 2007-01-28  Jim Meyering  <jim@meyering.net>
109021         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109022         sys/time.h here, reverting that part of the previous patch:
109023         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109025 2007-01-28  Bruno Haible  <bruno@clisp.org>
109027         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109028         value of $(SYS_TIME_H).
109029         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109030         remove it conditionally, too. [added by Jim Meyering]
109031         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109033         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109034         GETTIMEOFDAY_REPLACEMENT to 1.
109036 2007-01-28  Bruno Haible  <bruno@clisp.org>
109038         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109039         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109041         Set UNISTD_H instead of UNISTD_H2.
109042         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109044 2007-01-28  Bruno Haible  <bruno@clisp.org>
109046         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109047         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109049 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109051         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109052         (func_create_testdir): Ensure C locale for `grep' and `tr'
109053         character ranges.
109054         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109055         ACLOCAL_AMFLAGS parsing state machine.
109057 2007-01-27  Bruno Haible  <bruno@clisp.org>
109059         * modules/unistr/base: Update.
109061 2007-01-27  Bruno Haible  <bruno@clisp.org>
109063         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109064         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109065         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109066         modules/unistr/u32-mbtouc.
109067         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109068         * lib/unistr.h: Update.
109069         * lib/linebreak.c: Update.
109070         * modules/unistr/u32-mbtouc: Renamed from
109071         modules/unistr/u32-mbtouc-safe.
109072         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109073         * lib/unistr.h: Update.
109074         * lib/unistr/u32-to-u8.c: Update.
109075         * lib/unistr/u32-to-u16.c: Update.
109077 2007-01-27  Bruno Haible  <bruno@clisp.org>
109079         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109080         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109081         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109082         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109083         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109084         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109085         modules/unistr/u16-mbtouc.
109086         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109087         * lib/unistr.h: Update.
109088         * lib/linebreak.c: Update.
109089         * modules/linebreak: Update.
109090         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109091         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109092         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109093         * modules/unistr/u16-mbtouc: Renamed from
109094         modules/unistr/u16-mbtouc-safe.
109095         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109096         * lib/unistr.h: Update.
109097         * lib/unistr/u16-to-u8.c: Update.
109098         * modules/unistr/u16-to-u8: Update.
109099         * lib/unistr/u16-to-u32.c: Update.
109100         * modules/unistr/u16-to-u32: Update.
109102 2007-01-27  Bruno Haible  <bruno@clisp.org>
109104         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109105         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109106         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109107         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109108         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109109         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109110         modules/unistr/u8-mbtouc.
109111         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109112         * lib/unistr.h: Update.
109113         * lib/striconveh.c: Update.
109114         * modules/striconveh: Update.
109115         * lib/linebreak.c: Update.
109116         * modules/linebreak: Update.
109117         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109118         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109119         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109120         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109121         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109122         * lib/unistr.h: Update.
109123         * lib/striconveh.c: Update.
109124         * modules/striconveh: Update.
109125         * lib/unistr/u8-to-u16.c: Update.
109126         * modules/unistr/u8-to-u16: Update.
109127         * lib/unistr/u8-to-u32.c: Update.
109128         * modules/unistr/u8-to-u32: Update.
109130 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109132         Sync from Libtool.
109133         * lib/argz.c: Do not include strings.h nor memory.h, include
109134         string.h unconditionally.  Patch by Simon Josefsson.
109136 2007-01-27  Bruno Haible  <bruno@clisp.org>
109138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109139         from gl_HEADER_STRING_H_BODY.
109140         (gl_HEADER_STRING_H_BODY): Require it.
109141         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109142         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109143         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109144         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109146         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109148         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109149         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109152         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109153         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109154         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109155         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109157 2007-01-27  Bruno Haible  <bruno@clisp.org>
109159         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109160         check_PROGRAMS into noinst_PROGRAMS.
109161         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109162         check_PROGRAMS in this case.
109163         (func_import): Set for_test to false.
109164         (func_create_testdir): Set for_test to true.
109166 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109167             Bruno Haible  <bruno@clisp.org>
109169         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109170         (Depends-on): Add string.
109171         (Includes): Use <string.h> instead of strcasestr.h.
109172         * modules/string (Makefile.am): Also substitute the value of
109173         REPLACE_STRCASESTR.
109174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109175         assume strcasestr is declared in <string.h> not <strings.h>. Also
109176         set REPLACE_STRCASESTR.
109177         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109178         REPLACE_STRCASESTR.
109179         * lib/strcasestr.h: Remove file.
109180         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109181         * lib/string_.h (strcasestr): New declaration.
109183 2007-01-27  Bruno Haible  <bruno@clisp.org>
109185         * lib/string_.h: Use 'extern'.
109187 2007-01-27  Jim Meyering  <jim@meyering.net>
109189         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109190         of set-but-not-used local, "q".
109192         * lib/mempcpy.c: Include <config.h> before <string.h>.
109193         This fixes a compilation error on HP-UX, due to the system's
109194         "restrict"-using mempcpy prototype.
109196 2007-01-26  Bruno Haible  <bruno@clisp.org>
109198         Small optimization.
109199         * lib/javacomp.c: Include c-strstr.h.
109200          (is_envjavac_gcj): Use c_strstr instead of strstr.
109201         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109203 2007-01-26  Bruno Haible  <bruno@clisp.org>
109205         * MODULES.html.sh (Unicode string functions): Add the new modules.
109207         * modules/uniconv/u32-strconv-to-locale: New file.
109208         * lib/uniconv/u32-strconv-to-locale.c: New file.
109210         * modules/uniconv/u16-strconv-to-locale: New file.
109211         * lib/uniconv/u16-strconv-to-locale.c: New file.
109213         * modules/uniconv/u8-strconv-to-locale: New file.
109214         * lib/uniconv/u8-strconv-to-locale.c: New file.
109216         * modules/uniconv/u32-strconv-from-locale: New file.
109217         * lib/uniconv/u32-strconv-from-locale.c: New file.
109219         * modules/uniconv/u16-strconv-from-locale: New file.
109220         * lib/uniconv/u16-strconv-from-locale.c: New file.
109222         * modules/uniconv/u8-strconv-from-locale: New file.
109223         * lib/uniconv/u8-strconv-from-locale.c: New file.
109225         * modules/uniconv/u32-strconv-to-enc: New file.
109226         * lib/uniconv/u32-strconv-to-enc.c: New file.
109227         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109228         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109230         * modules/uniconv/u16-strconv-to-enc: New file.
109231         * lib/uniconv/u16-strconv-to-enc.c: New file.
109232         * lib/uniconv/u-strconv-to-enc.h: New file.
109233         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109234         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109236         * modules/uniconv/u8-strconv-to-enc: New file.
109237         * lib/uniconv/u8-strconv-to-enc.c: New file.
109238         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109239         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109241         * modules/uniconv/u32-strconv-from-enc: New file.
109242         * lib/uniconv/u32-strconv-from-enc.c: New file.
109243         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109244         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109246         * modules/uniconv/u16-strconv-from-enc: New file.
109247         * lib/uniconv/u16-strconv-from-enc.c: New file.
109248         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109249         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109251         * modules/uniconv/u8-strconv-from-enc: New file.
109252         * lib/uniconv/u8-strconv-from-enc.c: New file.
109253         * lib/uniconv/u-strconv-from-enc.h: New file.
109254         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109255         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109257         * modules/uniconv/u32-conv-from-enc: New file.
109258         * lib/uniconv/u32-conv-from-enc.c: New file.
109259         * modules/uniconv/u32-conv-from-enc-tests: New file.
109260         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109262         * modules/uniconv/u16-conv-from-enc: New file.
109263         * lib/uniconv/u16-conv-from-enc.c: New file.
109264         * lib/uniconv/u-conv-from-enc.h: New file.
109265         * modules/uniconv/u16-conv-from-enc-tests: New file.
109266         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109268         * modules/uniconv/u8-conv-from-enc: New file.
109269         * lib/uniconv/u8-conv-from-enc.c: New file.
109270         * modules/uniconv/u8-conv-from-enc-tests: New file.
109271         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109273         * modules/uniconv/base: New file.
109274         * lib/uniconv.h: New file.
109276 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109278         * doc/gnulib-tool.texi (Initial import): Update to match current
109279         behavior with strdup module.
109280         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109281         * lib/memmem.h: Remove; all uses removed.  This is now done
109282         by <string.h>.
109283         * lib/mempcpy.h: Likewise.
109284         * lib/memrchr.h: Likewise.
109285         * lib/stpcpy.h: Likewise.
109286         * lib/stpncpy.h: Likewise.
109287         * lib/strcase.h: Likewise.
109288         * lib/strchrnul.h: Likewise.
109289         * lib/strdup.h: Likewise.
109290         * lib/strndup.h: Likewise.
109291         * lib/strnlen.h: Likewise.
109292         * lib/strpbrk.h: Likewise.
109293         * lib/strsep.h: Likewise.
109294         * lib/strstr.h: Likewise.
109295         * lib/strtok_r.h: Likewise.
109296         * lib/string_.h: New file.
109297         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109298         Rely on <string.h> instead.
109299         * lib/canon-host.c: Likewise.
109300         * lib/chdir-long.c: Likewise.
109301         * lib/concatpath.c: Likewise.
109302         * lib/exclude.c: Likewise.
109303         * lib/fchdir.c: Likewise.
109304         * lib/getaddrinfo.c: Likewise.
109305         * lib/getcwd.c: Likewise.
109306         * lib/getsubopt.c: Likewise.
109307         * lib/glob.c: Likewise.
109308         * lib/hard-locale.c: Likewise.
109309         * lib/iconvme.c: Likewise.
109310         * lib/javacomp.c: Likewise.
109311         * lib/mempcpy.c: Likewise.
109312         * lib/memrchr.c: Likewise.
109313         * lib/regex_internal.h: Likewise.
109314         * lib/stpncpy.c: Likewise.
109315         * lib/strcasecmp.c: Likewise.
109316         * lib/strchrnul.c: Likewise.
109317         * lib/strdup.c: Likewise.
109318         * lib/striconv.c: Likewise.
109319         * lib/striconveh.c: Likewise.
109320         * lib/striconveha.c: Likewise.
109321         * lib/strncasecmp.c: Likewise.
109322         * lib/strndup.c: Likewise.
109323         * lib/strnlen.c: Likewise.
109324         * lib/strsep.c: Likewise.
109325         * lib/strstr.c: Likewise.
109326         * lib/strtok_r.c: Likewise.
109327         * lib/userspec.c: Likewise.
109328         * lib/w32spawn.h: Likewise.
109329         * lib/xstrndup.c: Likewise.
109330         * lib/mountlist.c (strstr): Remove decl.
109331         * m4/string_h.m4: New file.
109332         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109333         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109334         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109335         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109336         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109337         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109338         Set REPLACE_STRCASECMP if necessary.
109339         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109340         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109341         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109342         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109343         HAVE_DECL_STRDUP if necessary.
109344         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109345         since gl_FUNC_STRNDUP does that now.
109346         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109347         Check for decl here...
109348         (gl_PREREQ_STRNLEN): ... not here.
109349         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109350         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109351         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109352         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109353         necessary.
109354         * modules/string: New file.
109355         * modules/memmem (Files): Remove special-purpose include file.
109356         (Depends-on): Add string.
109357         (Include): Include <string.h>, not the removed file.
109358         * modules/mempcpy: Likewise.
109359         * modules/memrchr: Likewise.
109360         * modules/stpcpy: Likewise.
109361         * modules/stpncpy: Likewise.
109362         * modules/strcase: Likewise.
109363         * modules/strchrnul: Likewise.
109364         * modules/strdup: Likewise.
109365         * modules/strndup: Likewise.
109366         * modules/strnlen: Likewise.
109367         * modules/strpbrk: Likewise.
109368         * modules/strsep: Likewise.
109369         * modules/strstr: Likewise.
109370         * modules/strtok_r: Likewise.
109371         * tests/test-dirname.c: Don't include "strdup.h", since
109372         <string.h> now suffices.
109373         * tests/test-memmem.c: Don't include "memmem.h", since
109374         <string.h> now suffices.
109376 2007-01-25  Bruno Haible  <bruno@clisp.org>
109378         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109379         *resultp is 0.
109381         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109382         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109383         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109384         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109386         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109387         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109388         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109389         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109390         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109391         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109393 2007-01-24  Bruno Haible  <bruno@clisp.org>
109395         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109396         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109397         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109398         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109399         gl_FUNC_FTS_CORE.
109400         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109401         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109402         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109403         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109404         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109405         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109406         gl_FUNC_FCHOWNAT.
109407         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109408         gl_FUNC_STRFTIME.
109409         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109410         Reported by Ralf Wildenhues.
109412 2007-01-24  Bruno Haible  <bruno@clisp.org>
109414         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109415         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109416         gl_GETADDRINFO.
109417         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109418         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109419         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109421 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109423         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109424         Don't use 'exit'; just return from 'main'.
109425         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109427         * lib/fnmatch_.h: Readjust white space and comments to match
109428         glibc, to avoid spurious diffs.
109430 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109432         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109433         2004-12-01 change by Jakub Jelinek, since this code won't compile
109434         if !LIBC.  Problem reported by Bob Proulx.
109436 2007-01-23  Bruno Haible  <bruno@clisp.org>
109438         * lib/striconveh.c: Include c-strcaseeq.h.
109439         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109440         * modules/striconveh (Depends-on): Add c-strcaseeq.
109442 2007-01-23  Bruno Haible  <bruno@clisp.org>
109444         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109446         * modules/c-strcaseeq: New file.
109447         * lib/c-strcaseeq.h: New file.
109449         * modules/streq: New file.
109450         * lib/streq.h: New file.
109452 2007-01-23  Bruno Haible  <bruno@clisp.org>
109454         * modules/striconveha-tests: New file.
109455         * tests/test-striconveha.c: New file.
109457         * lib/striconveha.h: Include <stdbool.h>.
109458         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109459         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109460         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109461         (mem_iconveha): New function.
109462         (str_iconveha_notranslit): Renamed from str_iconveha.
109463         (str_iconveha): New function.
109464         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109465         c-strcase.
109467 2007-01-23  Bruno Haible  <bruno@clisp.org>
109469         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109470         encodings without forgiving before trying any encoding with handler.
109471         (str_iconveha): Try all encodings without forgiving before trying any
109472         encoding with handler.
109474 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109476         Import the following changes from libc.
109478         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109480         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109482         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109484         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109485         normal_bracket label.
109487         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109489         [BZ #361]
109490         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109491         to normal_bracket after fetching the next character.
109493 2007-01-22  Bruno Haible  <bruno@clisp.org>
109495         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109496         argument.
109497         * lib/striconveh.c (iconv_carefully_1): New function.
109498         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109499         argument.
109500         (str_cd_iconveh): Update.
109501         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109502         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109503         * tests/test-striconveh.c (MAGIC): New macro.
109504         (new_offsets): New function.
109505         (main): Test call with and without offsets.
109507 2007-01-22  Bruno Haible  <bruno@clisp.org>
109509         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109510         * modules/sys_select (Makefile.am): Likewise.
109511         * modules/sys_socket (Makefile.am): Likewise.
109512         * modules/sys_time (Makefile.am): Likewise.
109514 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109516         * modules/gettimeofday (License): Change from GPL to LGPL, since
109517         gettimeofday is a library function.
109519 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109521         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109523 2007-01-21  Bruno Haible  <bruno@clisp.org>
109525         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109527 2007-01-21  Bruno Haible  <bruno@clisp.org>
109529         * modules/striconveha: New file.
109530         * lib/striconveha.h: New file.
109531         * lib/striconveha.c: New file.
109532         * MODULES.html.sh (Internationalization functions): Add striconveha.
109533         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109534         string.
109535         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109537 2007-01-21  Bruno Haible  <bruno@clisp.org>
109539         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109540         * lib/striconveh.c (str_iconveh): Likewise.
109542 2007-01-21  Bruno Haible  <bruno@clisp.org>
109544         * lib/striconveh.h (mem_iconveh): New declaration.
109545         * lib/striconveh.c (mem_iconveh): New function.
109546         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109548 2007-01-21  Bruno Haible  <bruno@clisp.org>
109550         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109552         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109553         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109554         original result buffer.
109555         (str_cd_iconveh): Update.
109556         * tests/test-striconveh.c (main): Update.
109558         * lib/striconv.h (mem_cd_iconv): Change specification.
109559         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109560         result buffer.
109561         (str_cd_iconv): Update.
109562         * tests/test-striconv.c (main): Update.
109564 2007-01-21  Bruno Haible  <bruno@clisp.org>
109566         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109568 2007-01-20  Jim Meyering  <jim@meyering.net>
109570         * lib/userspec.c (parse_with_separator): If a user or group string
109571         starts with "+", skip the corresponding name-to-ID look-up, since
109572         such a look-up must fail: user and group names may not include "+".
109574 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109576         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109577         since we now assume the sys_time module.
109578         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109579         check for sys/time.h; no longer needed.
109580         * modules/poll (Depends-on): Depend on sys_time.
109582 2007-01-18  Bruno Haible  <bruno@clisp.org>
109584         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109585         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109587         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109588         gettimeofday.
109590         * tests/test-gettimeofday.c: Include <time.h>.
109591         (dummy): Remove variable.
109593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109594         gl_HEADER_SYS_TIME_H.
109595         (gl_HEADER_SYS_TIME_H): New macro.
109597         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109598         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109599         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109600         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109601         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109603         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109604         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109605         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109606         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109607         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109609         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109610         last change; it caused a compilation error when cross-compiling to
109611         Cygwin.
109613 2007-01-18  Jim Meyering  <jim@meyering.net>
109615         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109616         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109617         than the race-prone "test -d sys || mkdir sys".
109618         (configure.ac): Use AC_PROG_MKDIR_P.
109619         * modules/sys_select: Likewise.
109620         * modules/sys_socket: Likewise.
109621         * modules/sys_time: Likewise.
109623 2007-01-18  Eric Blake  <ebb9@byu.net>
109625         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109626         replace gettimeofday.
109627         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109628         name, to avoid infinite recursion.
109630 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109632         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109633         module sys_time.
109634         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109635         assume timespec.h defines struct timeval.
109636         * lib/settime.c: Likewise.
109637         * lib/utimens.c: Likewise.
109638         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109639         since we now assume the gettimeofday module.
109640         * lib/tempname.c (__gen_tempname): Likewise.
109641         * lib/gettimeofday.h: Remove.
109642         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109643         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109644         Include <time.h>, for 'time()'.
109645         (localtime_buffer_addr): Also use this workaround if
109646         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109647         to simplify the uses.  All uses changed.
109648         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109649         that #undef is inside {}, and 'const' follows type name consistently.
109650         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109651         (gettimeofday): Do not use the maximum possible value for
109652         tv->tv_usec, since that might break usages other than ls.c.
109653         Instead, we'll leave ls.c alone.  This undoes today's patch
109654         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109655         we've never observed the problem but might as well keep the
109656         canary.
109657         * lib/nanosleep.c: Include timespec.h first, for interface check.
109658         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109659         now assume the sys_time module.
109660         * lib/tempname.c: Likewise.
109661         * lib/timespec.h: Likewise.
109662         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109663         needed.
109664         * lib/strftime.c: Likewise.
109665         * lib/timespec.h: Likewise.
109666         * lib/posixtm.c: Include posixtm.h first, for interface check.
109667         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109668         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109669         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109670         * lib/sys_time_.h: New file.
109671         * lib/timespec.h (struct timespec): Use long int, not long.
109672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109673         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109674         Remove obsolescent call to AC_HEADER_TIME.
109675         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109677         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109678         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109679         Likewise.
109680         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109681         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109682         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109683         into the sys_time module.  Check for gettimeofday just once.
109684         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109685         for gettimeofday signature to just check the signature.  Merely
109686         compile it, since linking doesn't test signature.  Improve test for
109687         whether gettimeofday.o is actually needed.
109688         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109689         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109690         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109691         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109692         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109693         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109694         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109695         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109696         than worrying about sys/time.h.
109697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109698         Don't bother worrying about TIME_WITH_SYS_TIME.
109699         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109700         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109701         * m4/sys_time_h.m4: New file.
109702         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109703         Don't include sys/time.h.  Return from main rather than exiting.
109704         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109705         all uses changed.
109706         * modules/gethrxtime (Depends-on): Add sys_time.
109707         * modules/gettime (Depends-on): Likewise.
109708         * modules/gettimeofday (Depends-on): Likewise.
109709         * modules/nanosleep (Depends-on): Likewise.
109710         * modules/settime (Depends-on): Likewise.
109711         * modules/tempname (Depends-on): Likewise.
109712         * modules/utimens (Depends-on): Likewise.
109713         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109714         (Include): Change back to <sys/time.h>.
109715         (Maintainer): Add self.
109716         * modules/sys_time: New file.
109717         * modules/tempname (Depends-on): Add gettimeofday.
109718         * tests/test-gettimeofday.c: Include <sys/time.h>
109719         rather than gettimeofday.h.
109721 2007-01-17  Bruno Haible  <bruno@clisp.org>
109723         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109724         the license default to GPL.
109725         (func_create_testdir): Don't complain if a module is LGPL and its
109726         tests module depends on GPLed modules.
109728 2007-01-17  Bruno Haible  <bruno@clisp.org>
109730         * lib/gettimeofday.c (gettimeofday): Add code for the case
109731         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109732         maximum possible value for tv->tv_usec, rather than the minimum one.
109734 2005-10-08  Martin Lambers  <marlam@marlam.de>
109735 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109736 2007-01-16  Bruno Haible  <bruno@clisp.org>
109738         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109739         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109740         gl_FUNC_GETTIMEOFDAY.
109741         (Include): Add gettimeofday.h.
109742         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109743         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109744         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109745         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109746         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109747         * lib/gettimeofday.h: New file.
109748         * lib/gettimeofday.c: Include <sys/timeb.h>.
109749         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109750         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109751         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109752         fall back on time().
109754         * tests/test-gettimeofday.c: New file.
109755         * modules/gettimeofday-tests: New file.
109757 2007-01-16  Eric Blake  <ebb9@byu.net>
109759         * modules/fnmatch (Depends-on): Depend on wchar.
109760         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109761         * m4/fnmatch.m4: Likewise.
109762         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109763         * m4/mbchar.m4: Likewise.
109764         * modules/mbswidth (Depends-on): Depend on wchar.
109765         * lib/mbswidth.c: Assume <wchar.h>.
109766         * m4/mbswidth.m4: Likewise.
109767         * modules/quotearg (Depends-on): Depend on wchar.
109768         * lib/quotearg.c: Assume <wchar.h>.
109769         * m4/quotearg.m4: Likewise.
109770         * modules/regex (Depends-on): Depend on wchar.
109771         * lib/regex_internal.h: Assume <wchar.h>.
109772         * m4/regex.m4: Likewise.
109773         * modules/stdint (Depends-on): Depend on wchar.
109774         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109775         * m4/stdint.m4: Likewise.
109776         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109777         * modules/strftime (Depends-on): Depend on wchar.
109778         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109779         * modules/strtol (Depends-on): Depend on wchar.
109780         * lib/strtol.c: Assume <wchar.h>.
109781         * modules/wcwidth (Depends-on): Depend on wchar.
109782         * lib/wcwidth.h: Assume <wchar.h>.
109783         * m4/wcwidth.m4: Likewise.
109785 2007-01-16  Bruno Haible  <bruno@clisp.org>
109787         * modules/csharpexec-script: New, created from...
109788         * modules/csharpexec: ... this.
109790 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109792         * modules/javaexec-script: New, created from...
109793         * modules/javaexec: ... this.
109795 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109797         * modules/poll (Dependencies): Add sys_select.
109799 2007-01-15  Jim Meyering  <jim@meyering.net>
109801         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109802         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109803         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109804         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109806 2007-01-15  Bruno Haible  <bruno@clisp.org>
109808         * modules/striconveh: New file.
109809         * lib/striconveh.h: New file.
109810         * lib/striconveh.c: New file.
109811         * MODULES.html.sh (Internationalization functions): Add striconveh.
109813         * modules/striconveh-tests: New file.
109814         * tests/test-striconveh.c: New file.
109816 2007-01-15  Bruno Haible  <bruno@clisp.org>
109818         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109819         not from GNU libiconv or GNU libc.
109821 2007-01-15  Bruno Haible  <bruno@clisp.org>
109823         * doc/gnulib-intro.texi (Copyright): Explain the different license
109824         terms for module descriptions, autoconf macros, tests, documentation.
109826 2007-01-14  Bruno Haible  <bruno@clisp.org>
109828         * modules/striconv-tests: New file.
109829         * tests/test-striconv.c: New file.
109831 2007-01-14  Bruno Haible  <bruno@clisp.org>
109833         * modules/iconv-tests: New file.
109834         * tests/test-iconv.c: New file.
109836 2007-01-14  Bruno Haible  <bruno@clisp.org>
109838         * gnulib-tool (func_get_license): For test modules, use the license of
109839         the main module.
109841 2007-01-14  Bruno Haible  <bruno@clisp.org>
109843         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109844         if iconv is found to exist.
109846 2007-01-14  Bruno Haible  <bruno@clisp.org>
109848         * modules/c-ctype-tests: New file.
109849         * tests/test-c-ctype.c: New file.
109851 2007-01-14  Bruno Haible  <bruno@clisp.org>
109853         * modules/binary-io-tests: New file.
109854         * tests/test-binary-io.sh: New file.
109855         * tests/test-binary-io.c: New file.
109857 2007-01-14  Bruno Haible  <bruno@clisp.org>
109859         * modules/array-oset-tests: New file.
109860         * tests/test-array_oset.c: New file.
109862 2007-01-14  Bruno Haible  <bruno@clisp.org>
109864         * modules/array-list-tests: New file.
109865         * tests/test-array_list.c: New file.
109867 2007-01-14  Bruno Haible  <bruno@clisp.org>
109869         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109870         and make.
109871         Reported by Simon Josefsson in
109872         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109874 2007-01-14  Bruno Haible  <bruno@clisp.org>
109876         * modules/allocsa-tests: New file.
109877         * tests/test-allocsa.c: New file.
109879 2007-01-14  Bruno Haible  <bruno@clisp.org>
109881         * modules/fchdir (Depends-on): Add absolute-header.
109882         * modules/unistd (Depends-on): Likewise.
109884 2006-12-30  Bruno Haible  <bruno@clisp.org>
109886         * modules/fchdir: New file.
109887         * modules/unistd (Files): Add lib/unistd_.h.
109888         (Makefile.am): Generate unistd.h from unistd_.h.
109889         * lib/fchdir.c: New file.
109890         * lib/dirent_.h: New file.
109891         * lib/unistd_.h: New file.
109892         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109893         * m4/fchdir.m4: New file.
109894         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109895         (gl_HEADER_UNISTD): Invoke it.
109896         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109897         function.
109898         * lib/backupfile.c (opendir, closedir): Undefine.
109899         * lib/chown.c (open, close): Undefine.
109900         * lib/clean-temp.c (open, close): Undefine.
109901         * lib/copy-file.c (open, close): Undefine.
109902         * lib/execute.c (open, close): Undefine.
109903         * lib/fsusage.c (open, close): Undefine.
109904         * lib/gc-gnulib.c (open, close): Undefine.
109905         * lib/getcwd.c (opendir, closedir): Undefine.
109906         * lib/glob.c (opendir, closedir): Undefine.
109907         * lib/javacomp.c (open, close): Undefine.
109908         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109909         * lib/openat-proc.c (open, close): Undefine.
109910         * lib/pagealign_alloc.c (open, close): Undefine.
109911         * lib/pipe.c (open, close): Undefine.
109912         * lib/progreloc.c (open, close): Undefine.
109913         * lib/savedir.c (opendir, closedir): Undefine.
109914         * lib/utime.c (open, close): Undefine.
109915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109917 2007-01-10  Bruno Haible  <bruno@clisp.org>
109919         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109921 2007-01-12  Eric Blake  <ebb9@byu.net>
109923         Provide a robust <wchar.h>.  Further simplifications are now
109924         possible in other modules, but not included here.
109925         * modules/wchar: New module.
109926         * m4/wchar.m4: New file.
109927         * lib/wchar_.h: Likewise.
109928         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109929         of the new module.
109930         * MODULES.html.sh (Extended multibyte and wide character utilities):
109931         New section.
109933 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109935         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109936         to a reasonable default for memory allocation.
109937         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109938         file system that reports garbage st_size values for symlinks.
109939         Problem reported by Liyang Hu.
109941 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109943         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109944         Emacs .#* auto-save files).
109946 2007-01-11  Bruno Haible  <bruno@clisp.org>
109948         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109949         directory.
109951 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109953         Use @...@ consistently in lib/wctype_.h.
109954         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109955         on it being set to 1 or 0.
109956         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109957         go back to AC_SUBSTing it.
109958         * modules/wctype (Makefile.am): Undo previous change.
109960 2007-01-10  Eric Blake  <ebb9@byu.net>
109962         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109963         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109964         * modules/wctype (Makefile.am): Likewise.
109965         Reported by Chris McGuire.
109967 2007-01-10  Jim Meyering  <jim@meyering.net>
109969         fts.c: a small readability/maintainability improvement
109970         * lib/fts.c (fts_read): Make this code slightly more readable and
109971         maintainable by hoisting the "sp->fts_cur = p" assignments to
109972         immediately follow the statements that set P.  Derived from
109973         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109975 2007-01-10  Eric Blake  <ebb9@byu.net>
109977         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109978         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109980         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109981         Reported by Chris McGuire.
109983 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109985         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109986         in sed script.
109988 2007-01-09  Bruno Haible  <bruno@clisp.org>
109990         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109991         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109992         variables.
109993         (func_module): Use them.
109995 2007-01-09  Bruno Haible  <bruno@clisp.org>
109997         * modules/unistr/base: New file.
109998         * lib/unistr.h: New file.
110000         * modules/unistr/u8-to-u16: New file.
110001         * lib/unistr/u8-to-u16.c: New file.
110003         * modules/unistr/u8-to-u32: New file.
110004         * lib/unistr/u8-to-u32.c: New file.
110006         * modules/unistr/u16-to-u8: New file.
110007         * lib/unistr/u16-to-u8.c: New file.
110009         * modules/unistr/u16-to-u32: New file.
110010         * lib/unistr/u16-to-u32.c: New file.
110012         * modules/unistr/u32-to-u8: New file.
110013         * lib/unistr/u32-to-u8.c: New file.
110015         * modules/unistr/u32-to-u16: New file.
110016         * lib/unistr/u32-to-u16.c: New file.
110018         * modules/unistr/u8-check: New file.
110019         * modules/unistr/u16-check: New file.
110020         * modules/unistr/u32-check: New file.
110021         * lib/unistr/u8-check.c: New file.
110022         * lib/unistr/u16-check.c: New file.
110023         * lib/unistr/u32-check.c: New file.
110025         * modules/unistr/u8-chr: New file.
110026         * modules/unistr/u16-chr: New file.
110027         * modules/unistr/u32-chr: New file.
110028         * lib/unistr/u8-chr.c: New file.
110029         * lib/unistr/u16-chr.c: New file.
110030         * lib/unistr/u32-chr.c: New file.
110032         * modules/unistr/u8-cmp: New file.
110033         * modules/unistr/u16-cmp: New file.
110034         * modules/unistr/u32-cmp: New file.
110035         * lib/unistr/u8-cmp.c: New file.
110036         * lib/unistr/u16-cmp.c: New file.
110037         * lib/unistr/u32-cmp.c: New file.
110039         * modules/unistr/u8-cpy: New file.
110040         * modules/unistr/u16-cpy: New file.
110041         * modules/unistr/u32-cpy: New file.
110042         * lib/unistr/u8-cpy.c: New file.
110043         * lib/unistr/u16-cpy.c: New file.
110044         * lib/unistr/u32-cpy.c: New file.
110045         * lib/unistr/u-cpy.h: New file.
110047         * modules/unistr/u8-cpy-alloc: New file.
110048         * modules/unistr/u16-cpy-alloc: New file.
110049         * modules/unistr/u32-cpy-alloc: New file.
110050         * lib/unistr/u8-cpy-alloc.c: New file.
110051         * lib/unistr/u16-cpy-alloc.c: New file.
110052         * lib/unistr/u32-cpy-alloc.c: New file.
110053         * lib/unistr/u-cpy-alloc.h: New file.
110055         * modules/unistr/u8-endswith: New file.
110056         * modules/unistr/u16-endswith: New file.
110057         * modules/unistr/u32-endswith: New file.
110058         * lib/unistr/u8-endswith.c: New file.
110059         * lib/unistr/u16-endswith.c: New file.
110060         * lib/unistr/u32-endswith.c: New file.
110061         * lib/unistr/u-endswith.h: New file.
110063         * modules/unistr/u8-mblen: New file.
110064         * modules/unistr/u16-mblen: New file.
110065         * modules/unistr/u32-mblen: New file.
110066         * lib/unistr/u8-mblen.c: New file.
110067         * lib/unistr/u16-mblen.c: New file.
110068         * lib/unistr/u32-mblen.c: New file.
110070         * modules/unistr/u8-mbtouc: New file.
110071         * modules/unistr/u16-mbtouc: New file.
110072         * modules/unistr/u32-mbtouc: New file.
110073         * lib/unistr/u8-mbtouc.c: New file.
110074         * lib/unistr/u16-mbtouc.c: New file.
110075         * lib/unistr/u32-mbtouc.c: New file.
110077         * modules/unistr/u8-mbtouc-safe: New file.
110078         * modules/unistr/u16-mbtouc-safe: New file.
110079         * modules/unistr/u32-mbtouc-safe: New file.
110080         * lib/unistr/u8-mbtouc-safe.c: New file.
110081         * lib/unistr/u16-mbtouc-safe.c: New file.
110082         * lib/unistr/u32-mbtouc-safe.c: New file.
110084         * modules/unistr/u8-move: New file.
110085         * modules/unistr/u16-move: New file.
110086         * modules/unistr/u32-move: New file.
110087         * lib/unistr/u8-move.c: New file.
110088         * lib/unistr/u16-move.c: New file.
110089         * lib/unistr/u32-move.c: New file.
110090         * lib/unistr/u-move.h: New file.
110092         * modules/unistr/u8-next: New file.
110093         * modules/unistr/u16-next: New file.
110094         * modules/unistr/u32-next: New file.
110095         * lib/unistr/u8-next.c: New file.
110096         * lib/unistr/u16-next.c: New file.
110097         * lib/unistr/u32-next.c: New file.
110099         * modules/unistr/u8-prev: New file.
110100         * modules/unistr/u16-prev: New file.
110101         * modules/unistr/u32-prev: New file.
110102         * lib/unistr/u8-prev.c: New file.
110103         * lib/unistr/u16-prev.c: New file.
110104         * lib/unistr/u32-prev.c: New file.
110106         * modules/unistr/u8-set: New file.
110107         * modules/unistr/u16-set: New file.
110108         * modules/unistr/u32-set: New file.
110109         * lib/unistr/u8-set.c: New file.
110110         * lib/unistr/u16-set.c: New file.
110111         * lib/unistr/u32-set.c: New file.
110112         * lib/unistr/u-set.h: New file.
110114         * modules/unistr/u8-startswith: New file.
110115         * modules/unistr/u16-startswith: New file.
110116         * modules/unistr/u32-startswith: New file.
110117         * lib/unistr/u8-startswith.c: New file.
110118         * lib/unistr/u16-startswith.c: New file.
110119         * lib/unistr/u32-startswith.c: New file.
110120         * lib/unistr/u-startswith.h: New file.
110122         * modules/unistr/u8-stpcpy: New file.
110123         * modules/unistr/u16-stpcpy: New file.
110124         * modules/unistr/u32-stpcpy: New file.
110125         * lib/unistr/u8-stpcpy.c: New file.
110126         * lib/unistr/u16-stpcpy.c: New file.
110127         * lib/unistr/u32-stpcpy.c: New file.
110128         * lib/unistr/u-stpcpy.h: New file.
110130         * modules/unistr/u8-stpncpy: New file.
110131         * modules/unistr/u16-stpncpy: New file.
110132         * modules/unistr/u32-stpncpy: New file.
110133         * lib/unistr/u8-stpncpy.c: New file.
110134         * lib/unistr/u16-stpncpy.c: New file.
110135         * lib/unistr/u32-stpncpy.c: New file.
110136         * lib/unistr/u-stpncpy.h: New file.
110138         * modules/unistr/u8-strcat: New file.
110139         * modules/unistr/u16-strcat: New file.
110140         * modules/unistr/u32-strcat: New file.
110141         * lib/unistr/u8-strcat.c: New file.
110142         * lib/unistr/u16-strcat.c: New file.
110143         * lib/unistr/u32-strcat.c: New file.
110144         * lib/unistr/u-strcat.h: New file.
110146         * modules/unistr/u8-strchr: New file.
110147         * modules/unistr/u16-strchr: New file.
110148         * modules/unistr/u32-strchr: New file.
110149         * lib/unistr/u8-strchr.c: New file.
110150         * lib/unistr/u16-strchr.c: New file.
110151         * lib/unistr/u32-strchr.c: New file.
110153         * modules/unistr/u8-strcmp: New file.
110154         * modules/unistr/u16-strcmp: New file.
110155         * modules/unistr/u32-strcmp: New file.
110156         * lib/unistr/u8-strcmp.c: New file.
110157         * lib/unistr/u16-strcmp.c: New file.
110158         * lib/unistr/u32-strcmp.c: New file.
110160         * modules/unistr/u8-strcpy: New file.
110161         * modules/unistr/u16-strcpy: New file.
110162         * modules/unistr/u32-strcpy: New file.
110163         * lib/unistr/u8-strcpy.c: New file.
110164         * lib/unistr/u16-strcpy.c: New file.
110165         * lib/unistr/u32-strcpy.c: New file.
110166         * lib/unistr/u-strcpy.h: New file.
110168         * modules/unistr/u8-strcspn: New file.
110169         * modules/unistr/u16-strcspn: New file.
110170         * modules/unistr/u32-strcspn: New file.
110171         * lib/unistr/u8-strcspn.c: New file.
110172         * lib/unistr/u16-strcspn.c: New file.
110173         * lib/unistr/u32-strcspn.c: New file.
110174         * lib/unistr/u-strcspn.h: New file.
110176         * modules/unistr/u8-strdup: New file.
110177         * modules/unistr/u16-strdup: New file.
110178         * modules/unistr/u32-strdup: New file.
110179         * lib/unistr/u8-strdup.c: New file.
110180         * lib/unistr/u16-strdup.c: New file.
110181         * lib/unistr/u32-strdup.c: New file.
110182         * lib/unistr/u-strdup.h: New file.
110184         * modules/unistr/u8-strlen: New file.
110185         * modules/unistr/u16-strlen: New file.
110186         * modules/unistr/u32-strlen: New file.
110187         * lib/unistr/u8-strlen.c: New file.
110188         * lib/unistr/u16-strlen.c: New file.
110189         * lib/unistr/u32-strlen.c: New file.
110190         * lib/unistr/u-strlen.h: New file.
110192         * modules/unistr/u8-strmblen: New file.
110193         * modules/unistr/u16-strmblen: New file.
110194         * modules/unistr/u32-strmblen: New file.
110195         * lib/unistr/u8-strmblen.c: New file.
110196         * lib/unistr/u16-strmblen.c: New file.
110197         * lib/unistr/u32-strmblen.c: New file.
110199         * modules/unistr/u8-strmbtouc: New file.
110200         * modules/unistr/u16-strmbtouc: New file.
110201         * modules/unistr/u32-strmbtouc: New file.
110202         * lib/unistr/u8-strmbtouc.c: New file.
110203         * lib/unistr/u16-strmbtouc.c: New file.
110204         * lib/unistr/u32-strmbtouc.c: New file.
110206         * modules/unistr/u8-strncat: New file.
110207         * modules/unistr/u16-strncat: New file.
110208         * modules/unistr/u32-strncat: New file.
110209         * lib/unistr/u8-strncat.c: New file.
110210         * lib/unistr/u16-strncat.c: New file.
110211         * lib/unistr/u32-strncat.c: New file.
110212         * lib/unistr/u-strncat.h: New file.
110214         * modules/unistr/u8-strncmp: New file.
110215         * modules/unistr/u16-strncmp: New file.
110216         * modules/unistr/u32-strncmp: New file.
110217         * lib/unistr/u8-strncmp.c: New file.
110218         * lib/unistr/u16-strncmp.c: New file.
110219         * lib/unistr/u32-strncmp.c: New file.
110221         * modules/unistr/u8-strncpy: New file.
110222         * modules/unistr/u16-strncpy: New file.
110223         * modules/unistr/u32-strncpy: New file.
110224         * lib/unistr/u8-strncpy.c: New file.
110225         * lib/unistr/u16-strncpy.c: New file.
110226         * lib/unistr/u32-strncpy.c: New file.
110227         * lib/unistr/u-strncpy.h: New file.
110229         * modules/unistr/u8-strnlen: New file.
110230         * modules/unistr/u16-strnlen: New file.
110231         * modules/unistr/u32-strnlen: New file.
110232         * lib/unistr/u8-strnlen.c: New file.
110233         * lib/unistr/u16-strnlen.c: New file.
110234         * lib/unistr/u32-strnlen.c: New file.
110235         * lib/unistr/u-strnlen.h: New file.
110237         * modules/unistr/u8-strpbrk: New file.
110238         * modules/unistr/u16-strpbrk: New file.
110239         * modules/unistr/u32-strpbrk: New file.
110240         * lib/unistr/u8-strpbrk.c: New file.
110241         * lib/unistr/u16-strpbrk.c: New file.
110242         * lib/unistr/u32-strpbrk.c: New file.
110243         * lib/unistr/u-strpbrk.h: New file.
110245         * modules/unistr/u8-strrchr: New file.
110246         * modules/unistr/u16-strrchr: New file.
110247         * modules/unistr/u32-strrchr: New file.
110248         * lib/unistr/u8-strrchr.c: New file.
110249         * lib/unistr/u16-strrchr.c: New file.
110250         * lib/unistr/u32-strrchr.c: New file.
110252         * modules/unistr/u8-strspn: New file.
110253         * modules/unistr/u16-strspn: New file.
110254         * modules/unistr/u32-strspn: New file.
110255         * lib/unistr/u8-strspn.c: New file.
110256         * lib/unistr/u16-strspn.c: New file.
110257         * lib/unistr/u32-strspn.c: New file.
110258         * lib/unistr/u-strspn.h: New file.
110260         * modules/unistr/u8-strstr: New file.
110261         * modules/unistr/u16-strstr: New file.
110262         * modules/unistr/u32-strstr: New file.
110263         * lib/unistr/u8-strstr.c: New file.
110264         * lib/unistr/u16-strstr.c: New file.
110265         * lib/unistr/u32-strstr.c: New file.
110266         * lib/unistr/u-strstr.h: New file.
110268         * modules/unistr/u8-strtok: New file.
110269         * modules/unistr/u16-strtok: New file.
110270         * modules/unistr/u32-strtok: New file.
110271         * lib/unistr/u8-strtok.c: New file.
110272         * lib/unistr/u16-strtok.c: New file.
110273         * lib/unistr/u32-strtok.c: New file.
110274         * lib/unistr/u-strtok.h: New file.
110276         * modules/unistr/u8-uctomb: New file.
110277         * modules/unistr/u16-uctomb: New file.
110278         * modules/unistr/u32-uctomb: New file.
110279         * lib/unistr/u8-uctomb.c: New file.
110280         * lib/unistr/u16-uctomb.c: New file.
110281         * lib/unistr/u32-uctomb.c: New file.
110283         * MODULES.html.sh (Unicode string functions): Add the new modules.
110285 2007-01-08  Bruno Haible  <bruno@clisp.org>
110287         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110288         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110289         subdirectories.
110291 2007-01-08  Karl Berry  <karl@gnu.org>
110293         * doc/error.texi: mention that main() fns must set program_name
110294         when progname is used.
110296 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110298         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110299         WCTYPE_H is empty, for the benefit of builds from non-distclean
110300         directories.  Problem reported by Eric Blake in
110301         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110303 2007-01-08  Bruno Haible  <bruno@clisp.org>
110305         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110306         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110307         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110308         PROVIDE_CANONICALIZE_FILENAME_MODE.
110309         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110311 2007-01-08  Bruno Haible  <bruno@clisp.org>
110313         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110314         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110315         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110316         * lib/fts.c: Likewise.
110317         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110319 2006-12-25  Bruno Haible  <bruno@clisp.org>
110321         * modules/utf8-ucs4-safe: New file.
110322         * lib/utf8-ucs4-safe.h: New file.
110323         * lib/unistr/utf8-ucs4-safe.c: New file.
110325         * modules/utf16-ucs4-safe: New file.
110326         * lib/utf16-ucs4-safe.h: New file.
110327         * lib/unistr/utf16-ucs4-safe.c: New file.
110329         * MODULES.html.sh (Unicode string functions): Add the new modules.
110331 2007-01-08  Bruno Haible  <bruno@clisp.org>
110333         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110334         (Depends-on): Add unitypes.
110335         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110336         (u8_mbtouc_aux): Move out to separate file.
110337         (u8_mbtouc): Use ucs4_t, uint8_t types.
110338         * lib/unistr/utf8-ucs4.c: New file.
110340         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110341         (Depends-on): Add unitypes.
110342         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110343         (u16_mbtouc_aux): Move out to separate file.
110344         (u16_mbtouc): Use ucs4_t, uint16_t types.
110345         * lib/unistr/utf16-ucs4.c: New file.
110347         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110348         (Depends-on): Add unitypes.
110349         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110350         (u8_uctomb_aux): Move out to separate file.
110351         (u8_uctomb): Use ucs4_t, uint8_t types.
110352         * lib/unistr/ucs4-utf8.c: New file.
110354         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110355         (Depends-on): Add unitypes.
110356         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110357         (u16_uctomb_aux): Move out to separate file.
110358         (u16_uctomb): Use ucs4_t, uint16_t types.
110359         * lib/unistr/ucs4-utf16.c: New file.
110361 2006-12-25  Bruno Haible  <bruno@clisp.org>
110363         * modules/unitypes: New file.
110364         * lib/unitypes.h: New file.
110365         * MODULES.html.sh (func_all_modules): New section "Unicode string
110366         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110367         this section. Add unitypes.
110369 2007-01-08  Bruno Haible  <bruno@clisp.org>
110371         Avoid variable names that conflict with those from libtool.
110372         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110373         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110374         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110375         library_names_spec to acl_library_names_spec, hardcode_* to
110376         acl_hardcode_*.
110377         Reported by Ralf Wildenhues.
110379 2007-01-08  Bruno Haible  <bruno@clisp.org>
110381         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110382         definition.
110383         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110384         definition.
110385         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110386         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110387         definition.
110388         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110389         definition.
110390         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110391         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110392         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110393         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110394         definition.
110395         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110396         definition.
110397         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110398         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110399         GC_USE_<algorithm>.
110400         * lib/gc-libgcrypt.c: Likewise.
110401         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110402         * modules/gc-arctwo (configure.ac): Likewise.
110403         * modules/gc-des (configure.ac): Likewise.
110404         * modules/gc-hmac-md5 (configure.ac): Likewise.
110405         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110406         * modules/gc-md2 (configure.ac): Likewise.
110407         * modules/gc-md4 (configure.ac): Likewise.
110408         * modules/gc-md5 (configure.ac): Likewise.
110409         * modules/gc-random (configure.ac): Likewise.
110410         * modules/gc-rijndael (configure.ac): Likewise.
110411         * modules/gc-sha1 (configure.ac): Likewise.
110413 2007-01-08  Bruno Haible  <bruno@clisp.org>
110415         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110416         macro definition.
110417         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110418         definition.
110419         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110420         definition.
110421         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110422         * modules/fcntl-safer (configure.ac): Likewise.
110423         * modules/fopen-safer (configure.ac): Likewise.
110424         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110425         GNULIB_FWRITEERROR macro definition.
110427 2007-01-08  Bruno Haible  <bruno@clisp.org>
110429         * m4/gnulib-common.m4: New file.
110430         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110431         (func_get_filelist): Add m4/gnulib-common.m4.
110433 2007-01-08  Bruno Haible  <bruno@clisp.org>
110435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110436         command.
110438 2007-01-08  Jim Meyering  <jim@meyering.net>
110440         Use a more robust test for a "can't happen" condition.
110441         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110442         narrowed the st_size value.  Presuming the "can't happen" condition
110443         is true, that narrowing could conceivably convert an invalid st_size
110444         value into a valid one.  Instead, use a change based on Matthew
110445         Woehlke's original patch.
110447         Slight readability improvement: use an assert-like macro
110448         in place of literal "abort ()" uses.
110449         * lib/fts.c (fts_assert): Define.
110450         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110451         Use this macro instead of a bare 'abort'.
110453 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110455         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110456         simply work around them.
110457         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110458         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110459         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110460         declaring.
110461         Don't bother to define as macros, since the standard doesn't require it.
110462         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110463         longer worry about IRIX 5.3.
110464         (HAVE_WCTYPE_CTMP_BUG): Remove.
110466 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110468         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110469         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110470         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110471         Problems reported by Georg Schwarz for IRIX 5.3.
110473         * gnulib-tool (autoconf_minversion): Take the maximum version number
110474         found, not the minimum.  Problem reported by James Youngman.
110476 2007-01-03  Karl Berry  <karl@gnu.org>
110478         * doc/error.texi: new file, explaining interaction with progname.
110479         * doc/gnulib.texi: include it.  Update copyright.
110481 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110483         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110484         AC_CANONICAL_HOST, to improve autobuild outputs.
110486 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110487             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110489         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110490         sockets, server sockets, and other file descriptors.  Count errors
110491         to compute the return value.  Reorder the code a bit to be easier
110492         to follow.  Don't set event bits that were not requested (except
110493         POLLERR and POLLHUP).
110495 2007-01-01  Bruno Haible  <bruno@clisp.org>
110497         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110499 2007-01-03  Jim Meyering  <jim@meyering.net>
110501         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110503 2007-01-02  Bruno Haible  <bruno@clisp.org>
110505         * modules/settime (Include): Require timespec.h.
110506         * modules/nanosleep (Include): Likewise.
110508 2007-01-01  Bruno Haible  <bruno@clisp.org>
110510         * gnulib-tool (func_emit_copyright_notice): Bump year.
110511         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110513 2007-01-01  Bruno Haible  <bruno@clisp.org>
110515         Improve support for OpenBSD.
110516         * build-aux/config.rpath (libname_spec): Export.
110517         (library_names_spec): New variable. Export.
110518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110519         library_names_spec from the config.rpath output. Locate shared library
110520         through the name pattern in library_names_spec.
110522 2007-01-01  Eric Blake  <ebb9@byu.net>
110524         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110526 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110528         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110529         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110530         assume the C locale, and avoid an "eval" that could cause trouble.
110531         Problem with SORT reported by Bob Proulx.
110533         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110534         Define.  Trivial patch from Henning Nielsen Lund, originally
110535         sent to bug-grep@gnu.org today.
110537 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110539         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110540         struct stat.  Problem reported by Henning Nielsen Lund.
110541         * lib/acl.c: Include acl.h first, to check interface.  Don't
110542         bother to include sys/types.h and sys/stat.h again.
110544 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110546         Import the following change from libc; problem reported by
110547         Sven Verdoolaege.
110549         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110551         [BZ #1373]
110552         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110554 2006-12-28  Jim Meyering  <jim@meyering.net>
110556         * build-aux/announce-gen: Do not assume that the package
110557         builds any of tar.gz, tar.bz2, and .xdelta files.
110558         Suggestion from Simon Josefsson.
110560 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110562         * modules/announce-gen: New file.
110564 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110566         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110567         handles its gotchas now.
110568         * lib/mbswidth.c: Likewise.
110569         * lib/wcwidth.h: Likewise.
110570         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110571         and iswcntrl; the wctype module does this stuff now.
110572         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110574         * modules/mbchar (Depends-on): Add wctype.
110575         * modules/mbswidth (Depends-on): Likewise.
110576         * modules/wcwidth (Depends-on): Likewise.
110578 2006-12-27  Eric Blake  <ebb9@byu.net>
110580         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110581         module uses more than what <wctype.h> is required to provide.
110583 2006-12-26  Eric Blake  <ebb9@byu.net>
110585         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110587 2006-12-26  Eric Blake  <ebb9@byu.net>
110589         * modules/absolute-header: New module.
110590         * modules/fcntl (Depends-on): Depend on it.
110591         * modules/inttypes (Depends-on): Likewise.
110592         * modules/stdint (Depends-on): Likewise.
110593         * modules/sys_stat (Depends-on): Likewise.
110594         * modules/wctype (Depends-on): Likewise.
110595         * MODULES.html.sh (Support for building libraries and
110596         executables): Document it.
110598 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110600         * gnulib-tool (SED): Remove, undoing previous change.
110601         The problem was that it broke coreutils on Solaris, because
110602         "sed --posix" leaked into a makefile.
110603         (sed): New alias, if 'alias' and GNU sed.
110605 2006-12-24  Jim Meyering  <jim@meyering.net>
110607         Work around an fchownat bug in glibc-2.4:
110608         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110609         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110610         in spite of the -P option.
110611         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110612         New macros.
110613         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110614         * modules/openat (Files): Add lib/fchownat.c.
110615         * lib/openat.c (fchownat): Don't define here.  Move to...
110616         * lib/fchownat.c: ...this new file.
110618 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110620         Fix bug reported by Bruno Haible in
110621         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110622         where quotearg.c didn't compile on Mac OS X 10.2 because it
110623         lacks <wchar.h> and wint_t.
110624         * lib/wctype_.h (__wctype_wint_t): New type.
110625         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110626         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110627         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110628         Arg is now of type __wctype_wint_t, not wint_t.
110629         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110630         substitute HAVE_WINT_T.
110631         * modules/wctype (Files): Add m4/wint_t.m4.
110632         (wctype.h): Substitute HAVE_WINT_T.
110634 2006-12-23  Bruno Haible  <bruno@clisp.org>
110636         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110638 2006-12-23  Bruno Haible  <bruno@clisp.org>
110640         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110641         S_ISLNK.
110642         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110643         mingw.
110645 2006-12-22  Bruno Haible  <bruno@clisp.org>
110647         * lib/copy-file.c: Include acl.h.
110648         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110649         Close the file descriptors only after being done with copy_acl.
110650         * modules/copy-file (Depends-on): Add acl.
110652 2006-12-22  Bruno Haible  <bruno@clisp.org>
110654         * gnulib-tool (SED): New variable.
110655         Use $SED instead of sed everywhere.
110657 2006-12-22  Bruno Haible  <bruno@clisp.org>
110659         * modules/no-c++: New file.
110660         * m4/no-c++.m4: New file.
110661         * MODULES.html.sh (Support for building libraries and executables):
110662         Add no-c++.
110664 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110666         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110667         Include <limits.h>, and use its INT_MAX to rewrite the
110668         j loop so that it does not overflow 'int'.  Problem reported by
110669         Ralf Wildenhues in
110670         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110671         Play it safe by shifting left by 1 rather than multiplying by 2,
110672         as GCC is less likely to optimize this away when the value
110673         is signed (when it assumes overflow leads to undefined behavior).
110674         Also, don't assume time_t uses two's complement.
110676 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110678         * MODULES.html.sh: New module wctype.
110679         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110680         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110681         <wctype.h>, since the new wctype module should fix this.
110682         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110683         the wctype module should arrange for it.
110684         * lib/regex_internal.h: Likewise.
110685         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110686         since the wctype module should handle this now.
110687         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110688         * modules/fnmatch (Depends-on): Add wctype.
110689         * modules/quotearg (Depends-on): Likewise.
110690         * modules/regex (Depends-on): Likewise.
110692 2006-12-19  Bruno Haible  <bruno@clisp.org>
110694         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110695         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110697 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110699         * modules/savewd (Depends-on): Fix dependency on fcntl.
110701 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110703         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110704         conforms to C99, rather than relying on the user's environment
110705         setting of STDINT_H.
110707 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110708         and Eric Blake  <ebb9@byu.net>
110710         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110711         This is more consistent with the other defines here.
110712         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110713         Port to z/OS.  Problem reported by Paul Gilmartin.
110714         Change local vars to use gl_ prefix rather than ac_.
110715         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110716         with other defines.
110717         * modules/double-slash-root: New module.
110718         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110719         (Depends-on): Add double-slash-root.
110720         * MODULES.html.sh (File system functions): Mention new module.
110722 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110724         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110725         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110726         This is for the benefit of gzip, which doesn't do i18n.
110728 2006-12-12  Jim Meyering  <jim@meyering.net>
110730         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110731         Reported by Andreas Schwab <schwab@suse.de>.
110733 2006-12-12  Bruno Haible  <bruno@clisp.org>
110735         Merge these changes.
110736         2006-09-05  Bruno Haible  <bruno@clisp.org>
110737         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110738         iconv_alloc succeeded.
110739         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110740         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110741         test for " && dest " at the end - dest is always != NULL there. Call
110742         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110743         with 2xNULL arguments, also to flush the state storage. Handle the
110744         IRIX iconv behaviour. Realloc the final result, to throw away unused
110745         memory.
110747 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110749         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110750         and fchmodat unconditionally, since glibc 2.4 has them.
110751         Problem reported by Arkadiusz Miskiewicz.
110753 2006-12-10  Bruno Haible  <bruno@clisp.org>
110755         * gnulib-tool (func_import): Show the include files only for those
110756         modules that are copied and specified.
110757         Reported by Karl Berry.
110759 2006-12-08  Jim Meyering  <jim@meyering.net>
110761         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110762         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110764         * build-aux/announce-gen: Add two new options, both optional:
110765         --bootstrap-tools=TOOL_LIST
110766               a comma-separated list of tools, e.g.,
110767               autoconf,automake,bison,gnulib
110768         --gnulib-snapshot-date=DATE
110769               if gnulib is in the bootstrap tool list,
110770               then report this as the snapshot date.
110771               If not specified, use the current date/time.
110772               If you specify a date here, be sure it's UTC.
110774 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110776         * tests/test-argp-2.sh: Fix test to match actual output.
110777         (func_compare): Fix sed script to be portable.
110779 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110781         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110782         workaround for this case.  It is not autoconfigured now; offhand
110783         it's hard to see how to autoconfigure it.
110785 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110787         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110788         a directory that is about to be chowned.  Such a directory's
110789         initial file permissions should permit the owner only and this
110790         should not be changed until after the chown, since the group and
110791         other bits would be incorrect if they granted permission before
110792         the chown.
110794         Fix porting problem for iswctype reported by Georg Schwarz in:
110795         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110796         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110797         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110799         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110801 2006-12-03  Jim Meyering  <jim@meyering.net>
110803         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110804         p->fts_statp may not yet be defined.
110805         (fts_read): Instead, set it in the caller, once p->fts_statp is
110806         sure to be defined, and corresponds to a top-level directory.
110807         This bug made du -x fail.  Here's the coreutils test case:
110808         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110809         Reported by Mike Frysinger.
110811 2006-12-01  Jim Meyering  <jim@meyering.net>
110813         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110814         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110815         Reported by Simon Josefsson.
110817 2006-11-30  Jim Meyering  <jim@meyering.net>
110819         * m4/warning.m4: Use the all-permissive copyright notice
110820         recommended by RMS (rather than LGPL).
110821         * m4/vararrays.m4: Likewise.
110822         * m4/flexmember.m4: Likewise.
110824 2006-11-29  Bruno Haible  <bruno@clisp.org>
110826         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110827         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110828         using +=.
110829         Reported by Simon Josefsson <simon@josefsson.org>.
110831 2006-11-28  James Youngman  <jay@gnu.org>
110833         * README: Advise users that they might find the bug-gnulib@gnu.org
110834         and autotools-announce@gnu.org mailing lists useful.
110836 2006-11-28  Bruno Haible  <bruno@clisp.org>
110838         * m4/ptrdiff_max.m4: Remove file.
110840 2006-11-21  Bruno Haible  <bruno@clisp.org>
110842         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110843         _AC_COMPUTE_INT.
110844         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110845         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110846         _AC_COMPUTE_INT.
110847         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110848         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110849         _AC_COMPUTE_INT.
110850         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110852 2006-11-28  Jim Meyering  <jim@meyering.net>
110854         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110855         warning from "gcc -Wshadow" about shadowing the builtin.
110857 2006-11-27  Bruno Haible  <bruno@clisp.org>
110859         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110860         _AC_COMPUTE_INT.
110861         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110863 2006-11-27  Bruno Haible  <bruno@clisp.org>
110864             Paul Eggert  <eggert@cs.ucla.edu>
110866         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110868 2006-11-26  Bruno Haible  <bruno@clisp.org>
110870         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110871         noinst_LTLIBRARIES.
110873 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110874             Bruno Haible  <bruno@clisp.org>
110876         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110877         if compiling with "gcc -ansi".
110879 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110881         Fix some incompatibilities with gcc -ansi -pedantic.
110882         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110883         if compiling pedantically with GCC, unless it's C99 or later.
110884         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110885         it mishandles gcc -ansi -pedantic as well.
110886         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110887         if gcc -pedantic.
110888         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110889         initializers for struct if -pedantic, unless it's C99 or later.
110891 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110893         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110894         Don't close an fd more than once. Identical atimes indicate
110895         success, not failure.
110897 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110899         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110901 2006-11-23  Jim Meyering  <jim@meyering.net>
110903         * build-aux/announce-gen: New file.  From coreutils.
110905 2006-11-22  Jim Meyering  <jim@meyering.net>
110907         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110908         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110909         (fts_read): Use a temporary to narrow the overused st_size member
110910         before using it in a switch statement.  Reported by Matthew Woehlke.
110912         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110913         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110915 2006-11-20  Bruno Haible  <bruno@clisp.org>
110917         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110918         changequote instead of pairs of brackets.
110919         Reported by Andreas Schwab <schwab@suse.de>.
110921 2006-11-21  Jim Meyering  <jim@meyering.net>
110923         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110924         so as to remain compatible with older compilers.
110925         Patch from Michael Deutschmann.
110927 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110929         * MODULES.html.sh (File system functions): Add openat.
110931         * lib/openat.h (rpl_fstatat): New macro, if
110932         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110933         (fstatat): Define to rpl_fstatat under the same conditions,
110934         unless COMPILING_FSTATAT.
110935         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110936         seems to have the bug.
110937         * lib/fstatat.c: New file.
110938         * modules/openat (Files): Add it.
110940 2006-11-20  Bruno Haible  <bruno@clisp.org>
110942         * Makefile: New file.
110944 2006-11-20  Jim Meyering  <jim@meyering.net>
110946         The beginnings of syntax-related checks for gnulib.
110947         * lib/Makefile: New file.
110948         * lib/t-idcache: New script.  Ensure that the two halves of
110949         idcache.c stay in sync.
110951         * lib/idcache.c: Adjust comments in user- and group- portions to
110952         be more accurate, and to be consistent with one another.
110954 2006-11-20  Jim Meyering  <jim@meyering.net>
110956         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110957         continue using the flexible array member (thus, this module performs
110958         half as many malloc calls), with the addition that...
110959         (getgroup, getuser): Consistently record a non-match via an empty
110960         "name" string, and map an empty string match to a NULL return value.
110961         * modules/idcache (Depends-on): Re-add flexmember.
110963         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110964         (getuidbyname, getgroup, getgidbyname): Likewise.
110966         Use cleaner syntax: NULL rather than 0.
110967         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110969 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110971         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110972         It mishandled the case where the group was missing.
110973         Problem reported by Greg Schafer.
110974         * modules/idcache: Likewise.
110976 2006-11-18  Jim Meyering  <jim@meyering.net>
110978         * check-module (%exempt_header): Add exception for some
110979         conditionally-included headers.
110981         * modules/i-ring (Depends-on): Add verify.
110982         (License): Change to LGPL.
110984 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110986         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110987         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110988         and inttostr.h.  Use snprintf rather than uinttostr, so that
110989         LGPLed code doesn't depend on GPLed.
110991 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110993         * modules/inline (License): Change from GPL to LGPL.
110995 2006-11-17  Jim Meyering  <jim@meyering.net>
110997         * modules/d-type (License): Switch to LGPL.
110999 2006-11-15  Bruno Haible  <bruno@clisp.org>
111001         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111003 2006-11-15  Eric Blake  <ebb9@byu.net>
111005         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111006         the module dependency.
111008 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111009             Bruno Haible  <bruno@clisp.org>
111011         * gnulib-tool (func_create_testdir): Add license consistency check.
111013 2006-11-15  Eric Blake  <ebb9@byu.net>
111015         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111016         random "(cached)" in configure output.
111018 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111020         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111021         test for conforming inttypes.h is both announced and cached.
111023         * MODULES.html.sh (seen_modules, seen_files): New variables.
111024         (func_module): Rewrite to use a few less gnulib-tool and sed
111025         invocations.  Avoid a couple of quadratic algorithms for ...
111026         (missed_modules, missed_files): ... these, with ...
111027         (func_append, func_tmpdir): ... these new functions, from
111028         gnulib-tool.  Analogously, install traps for cleanup.
111030         * tests/test-gc.c (main): Remove unused variables.
111031         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111033 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111035         * modules/inttostr (License): Change to LGPL.
111037 2006-11-14  Eric Blake  <ebb9@byu.net>
111039         * modules/tempname (License): Change to LGPL.
111041 2006-11-14  Eric Blake  <ebb9@byu.net>
111043         * doc/functions.texi (Function Portability): *printf functions on
111044         Cygwin now understand all POSIX size specifiers.
111046 2006-11-14  Bruno Haible  <bruno@clisp.org>
111048         * modules/c-ctype (License): Change to LGPL.
111050 2006-11-12  Bruno Haible  <bruno@clisp.org>
111052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111053         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111054         for GNOME libraries, for which the include files are installed in
111055         subdirectories of $prefix/include.
111057 2006-11-12  Bruno Haible  <bruno@clisp.org>
111059         * m4/lib-link.m4: Require at least autoconf-2.54.
111060         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111061         name to underscores for the --with option.
111063 2006-11-13  Bruno Haible  <bruno@clisp.org>
111065         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111066         the tests directory.
111067         Reported by Ralf Wildenhues.
111069 2006-11-13  Bruno Haible  <bruno@clisp.org>
111071         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111072         (func_emit_initmacro_end): Undo the override here.
111073         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111074         Works around the famous automake error in coreutils.
111076 2006-11-13  Eric Blake  <ebb9@byu.net>
111078         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111079         element, not its node.
111081 2006-11-12  Bruno Haible  <bruno@clisp.org>
111083         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111084         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111086 2006-11-12  Bruno Haible  <bruno@clisp.org>
111088         * gnulib-tool: New option --local-symlink.
111089         (func_usage): Document it.
111090         (lsymbolic): New variable.
111091         (func_import, func_create_testdir): If --symlink was not specified,
111092         test whether --local-symlink was specified and the file comes from
111093         the local_gnulib_dir.
111095 2006-11-12  Bruno Haible  <bruno@clisp.org>
111097         * gnulib-tool (func_ln): New function.
111098         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111100 2006-11-12  Bruno Haible  <bruno@clisp.org>
111102         Finish support for source files in subdirectories.
111103         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111104         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111105         AUTOMAKE_OPTIONS.
111106         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111108 2006-11-12  Bruno Haible  <bruno@clisp.org>
111110         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111111         EXTRA_lib_SOURCES augmentation.
111112         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111114 2006-11-12  Jim Meyering  <jim@meyering.net>
111116         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111117         file descriptors.  This also averts a failure on systems with
111118         native openat support when a traversed directory lacks "x" access.
111119         * lib/fts_.h: Include "i-ring.h"
111120         (struct FTS) [fts_fd_ring]: New member.
111121         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111122         (FCHDIR): Add parentheses.
111123         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111124         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111125         When descending, rather than simply closing the previous
111126         fts_cwd_fd value, push that file descriptor onto the ring.
111127         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111128         (fts_open): Initialize the new fd_ring member.
111129         (fts_close): Clear the ring.
111130         (fts_safe_changedir): When possible, use our new fd_ring to skip
111131         the diropen and fstat and dev/ino comparison that would normally
111132         accompany a virtual `chdir ("..")'.
111134         * modules/fts (Depends-on): Add i-ring.
111135         * modules/i-ring: New module.
111136         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111137         * m4/i-ring.m4: New file.
111139 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111141         * gnulib-tool (func_create_testdir): Fix replacement of
111142         `build-aux' in configure.ac.  Run autotools in gltests
111143         subdirectory.
111144         (func_create_testdir, func_create_megatestdir, test): There is
111145         no need for '--force' in most autotool invocations in a new
111146         tree.  Actually fail the whole test if any of the tools, or the
111147         configure or make stages fail.
111149         Sync from Automake.
111150         * build-aux/gnupload: Revert last change.  Add pointer to upload
111151         instructions of the GNU Maintenance Instructions.
111152         Suggestion by Karl Berry.
111154 2006-11-10  Jim Meyering  <jim@meyering.net>
111156         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111158 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111160         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111161         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111162         (bind_textdomain_codeset) [! ENABLE_NLS]:
111163         Evaluate all the arguments.  That way, callers get compatible behavior
111164         if the arguments have side effects.  Also, it avoids some GCC
111165         diagnostics in some cases; Joel E. Denny reported problems when Bison
111166         was configured with --enable-gcc-warnigs.
111168 2006-11-10  Jim Meyering  <jim@meyering.net>
111170         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111171         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111172         account.
111174 2006-11-10  Jim Meyering  <jim@meyering.net>
111176         * modules/inline: New file/module.
111177         * modules/xalloc (Files): Remove m4/inline.m4.
111178         (Depends-on): Add inline, instead.
111179         * modules/oset: Likewise.
111180         * modules/list: Likewise.
111182 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111184         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111185         Problem reported by Matthew Woehlke.
111187 2006-11-09  Bruno Haible  <bruno@clisp.org>
111189         * lib/tempname.c (gen_tempname): Remove variant that invokes
111190         __gen_tempname.
111191         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111192         __gen_tempname.
111194 2006-11-08  Bruno Haible  <bruno@clisp.org>
111196         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111197         to 'yes' instead of 'cross-compiling'.
111199 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111201         * lib/quotearg.h (quotearg_free): New decl.
111202         * lib/quotearg.c (quotearg_free): New function.
111203         (slot0, nslots, slotvec0, slotvec):
111204         Now file-scope so that quotearg_free can get at them.
111206 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111208         Sync from Automake.
111209         * build-aux/gnupload: Add missing 'gnu' to example URL.
111210         Report by Karl Berry.
111212 2006-11-08  Bruno Haible  <bruno@clisp.org>
111214         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111215         Suggested by Paul Eggert.
111217 2006-11-08  Jim Meyering  <jim@meyering.net>
111219         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111220         It's already included if !_LIBC.
111221         (fts_safe_changedir): Add a comment.
111223 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111225         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111226         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111227         Matthew Woehlke.
111229         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111230         definitions up, to avoid colliding with change below.
111231         (static_inline) [HAVE_INLINE]: New macro.
111232         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111233         Provide extern decls when !HAVE_INLINE.  Do not define unless
111234         static_inline is defined, either by us or by xmalloc.c.  Use
111235         static_inline rather than static inline.
111236         (XCALLOC): Optimize sizeof(T) = 1 case.
111237         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111239 2006-11-07  Bruno Haible  <bruno@clisp.org>
111241         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111242         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111243         AC_C_INLINE.
111244         * modules/xalloc (Files): Add m4/inline.m4.
111246 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111248         * README: Fix typo.
111249         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111250         (Miscellanous Notes): ...from this.
111252 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111254         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111255         Mention that offsetof should be used instead of sizeof.
111256         From Bruno Haible.
111258 2006-11-07  Bruno Haible  <bruno@clisp.org>
111260         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111262 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111264         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111265         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111266         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111267         (gl_tree_add_before, gl_tree_add_after):
111268         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111269         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111270         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111271         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111272         (gl_linked_add_after, gl_linked_add_at): Likewise.
111273         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111274         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111275         (gl_tree_add_before, gl_tree_add_after): Likewise.
111276         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111277         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111278         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111280 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111282         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111284 2006-11-06  Bruno Haible  <bruno@clisp.org>
111286         * m4/inline.m4: New file.
111287         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111288         * modules/list (Files): Add m4/inline.m4.
111289         * modules/oset (Files): Likewise.
111291 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111293         * lib/idcache.c: Include <stddef.h>, for offsetof.
111294         (struct userid.name): Change from char * to a flexible array member.
111295         All uses changed.
111296         * modules/idcache (Depends-on): Add flexmember.
111298         * MODULES.html.sh (Core language properties): New module flexmember.
111299         * modules/flexmember, m4/flexmember.m4: New files.
111301         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111302         inline functions that are identical with the old xnmalloc_inline,
111303         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111304         that we can avoid some unnecessary integer multiplications and
111305         divisions in the common case where the element size is known at
111306         compile time.
111307         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111308         needed.
111309         (xnboundedmalloc): Remove.
111310         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111311         arguments, for consistency with rest of this header.
111312         (xcharalloc): Rewrite using XNMALLOC.
111313         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111314         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111315         versions have been moved to lib/xalloc.h and renamed to be the
111316         non-*_inline versions.
111317         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111318         and xnrealloc functions, since those functions are now inline and
111319         now call us.
111320         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111321         renaming described above.
111322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111323         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111324         captures the dependency in AC_C_INLINE.
111326         New module canonicalize-lgpl, proposed by Charles Wilson in
111327         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111328         with a few small changes afterwards.
111329         * MODULES.html.sh (File system functions): New module
111330         canonicalize-lgpl.
111331         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111332         and canonicalize_file_name.
111333         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111334         * modules/canonicalize-lgpl: New files.
111336 2006-11-05  Bruno Haible  <bruno@clisp.org>
111338         * gnulib-tool (func_import, func_create_testdir): Create directories
111339         also for files in subdirectories of lib/.
111341 2006-11-05  Bruno Haible  <bruno@clisp.org>
111343         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111344         ANSI C compliant.
111346 2006-11-03  Bruno Haible  <bruno@clisp.org>
111348         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111349         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111350         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111351         (xnboundedmalloc): New inline function.
111352         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111353         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111354         xmalloc.
111355         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111356         xmalloc.
111357         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111358         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111359         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111360         xmalloc.
111361         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111362         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111363         xmalloc.
111364         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111365         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111366         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111367         xmalloc.
111368         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111369         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111370         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111371         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111372         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111373         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111374         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111376 2006-11-03  Bruno Haible  <bruno@clisp.org>
111378         * lib/c-ctype.h [C++]: Define functions without name mangling.
111379         * lib/fwriteerror.h [C++]: Likewise.
111380         * lib/gcd.h [C++]: Likewise.
111381         * lib/linebreak.h [C++]: Likewise.
111383 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111385         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111386         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111387         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111388         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111389         Check for functions and headers just once.
111390         Check for declaration of canonicalize_file_name.
111391         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111393 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111395         * gnulib-tool (func_import): Fix typo in actioncmd.
111397 2006-11-02  Bruno Haible  <bruno@clisp.org>
111399         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111400         newline sequence in the Makefile.am snippet as a space, like "make"
111401         does.
111402         Reported by Roger Persson <perrog@gmail.com>.
111404 2006-11-01  Bruno Haible  <bruno@clisp.org>
111406         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111407         already declared in <string.h>.
111408         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111410 2006-11-01  Bruno Haible  <bruno@clisp.org>
111412         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111413         * lib/strcase.h: Include <string.h>.
111414         (strcasecmp): Define to rpl_strcasecmp here.
111416 2006-11-01  Bruno Haible  <bruno@clisp.org>
111418         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111420 2006-11-01  Eric Blake  <ebb9@byu.net>
111422         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111426 2006-10-29  Bruno Haible  <bruno@clisp.org>
111428         Make it compile in C++ mode.
111429         * lib/full-write.c (full_rw): Add a cast.
111431 2006-11-01  Bruno Haible  <bruno@clisp.org>
111433         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111434         be POSIX compliant.
111435         Reported by Roger Persson <perrog@gmail.com>.
111437 2006-11-01  Eric Blake  <ebb9@byu.net>
111439         * lib/getopt_.h: Fix comments.
111441 2006-10-31  Eric Blake  <ebb9@byu.net>
111443         * modules/tmpdir (Depends-on): Add sys_stat.
111444         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111445         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111446         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111447         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111448         tempname.
111450 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111452         Avoid some C++ diagnostics reported by Bruno Haible.
111453         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111454         xmalloc.
111455         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111456         (struct slotvec): Move to top level.
111457         (quotearg_n_options): Rewrite to avoid xmalloc.
111458         * lib/xalloc.h (xcharalloc): New function.
111459         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111460         [defined __cplusplus]: Add function template that provides result
111461         type propagation.  This part of the change is from Bruno Haible.
111463 2006-10-29  Bruno Haible  <bruno@clisp.org>
111465         Make it compile in C++ mode.
111466         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111467         * lib/strnlen1.c (strnlen1): Cast memchr result.
111468         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111469         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111470         (create_temp_dir): Rename local variable 'template'.
111471         (compile_csharp_using_sscli): Add cast.
111472         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111473         * lib/findprog.c (find_in_path): Likewise.
111474         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111475         * lib/wait-process.c (register_slave_subprocess): Likewise.
111477 2006-10-22  Bruno Haible  <bruno@clisp.org>
111479         * modules/tsearch: New file.
111480         * lib/tsearch.h: New file.
111481         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111482         * m4/tsearch.m4: New file.
111483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111485 2006-10-29  Eric Blake  <ebb9@byu.net>
111487         * lib/arcfour.c: Assume config.h.
111488         * lib/arctwo.c: Likewise.
111489         * lib/base64.c: Likewise.
111490         * lib/check-version.c: Likewise.
111491         * lib/crc.c: Likewise.
111492         * lib/des.c: Likewise.
111493         * lib/gc-gnulib.c: Likewise.
111494         * lib/gc-libgcrypt.c: Likewise.
111495         * lib/gc-pbkdf2-sha1.c: Likewise.
111496         * lib/getaddrinfo.c: Likewise.
111497         * lib/getdelim.c: Likewise.
111498         * lib/getline.c: Likewise.
111499         * lib/hmac-md5.c: Likewise.
111500         * lib/hmac-sha1.c: Likewise.
111501         * lib/iconvme.c: Likewise.
111502         * lib/md2.c: Likewise.
111503         * lib/md4.c: Likewise.
111504         * lib/memxor.c: Likewise.
111505         * lib/read-file.c: Likewise.
111506         * lib/readline.c: Likewise.
111507         * lib/rijndael-alg-fst.c: Likewise.
111508         * lib/rijndael-api-fst.c: Likewise.
111509         * lib/xgetdomainname.c: Likewise.
111511 2006-10-28  Eric Blake  <ebb9@byu.net>
111513         * lib/xstrndup.c: Assume config.h.
111515 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111517         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111518         stat-macros.h is now for our own macros, whereas stat_h is for
111519         macros in the <sys/stat.h> name space.
111520         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111521         (STAT_MACROS_H): Remove.
111522         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111523         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111524         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111525         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111526         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111527         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111528         Move these macros to ...
111529         * lib/stat_.h: here.  Don't include stat-macros.h.
111530         * lib/canonicalize.c: Don't include stat-macros.h.
111531         * lib/chown.c: Likewise.
111532         * lib/euidaccess.c: Likewise.
111533         * lib/file-type.c: Likewise.
111534         * lib/filemode.c: Likewise.
111535         * lib/glob.c: Likewise.
111536         * lib/isapipe.c: Likewise.
111537         * lib/lchown.c: Likewise.
111538         * lib/lstat.c: Likewise.
111539         * lib/mkdir-p.c: Likewise.
111540         * lib/rmdir.c: Likewise.
111541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111543         unless mkdir isn't declared, to speed up 'configure'.
111544         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111545         would define all the S_* symbols.
111546         * modules/canonicalize (Depends-on):
111547         Depend on sys_stat, not stat-macros.
111548         * modules/chown: Likewise.
111549         * modules/euidaccess: Likewise.
111550         * modules/filemode: Likewise.
111551         * modules/file-type: Likewise.
111552         * modules/glob: Likewise.
111553         * modules/isapipe: Likewise.
111554         * modules/lchown: Likewise.
111555         * modules/lstat: Likewise.
111556         * modules/mkancesdirs: Likewise.
111557         * modules/rmdir: Likewise.
111558         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111559         * modules/modechange: Likewise.
111560         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111561         (configure.ac): Remove gl_STAT_MACROS.
111562         * modules/sys_stat (Depends-on): Remove stat-macros.
111564 2006-10-27  Bruno Haible  <bruno@clisp.org>
111566         * m4/signed.m4: Remove file.
111567         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111568         invocation.
111569         * modules/vasnprintf (Files): Remove m4/signed.m4.
111571 2006-10-27  Bruno Haible  <bruno@clisp.org>
111573         Update to GNU gettext 0.16.
111574         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111575         m4/inttypes-h.m4, m4/signed.m4.
111576         * m4/gettext.m4: Update to GNU gettext 0.16.
111577         * m4/intl.m4: New file, from GNU gettext.
111578         * m4/intldir.m4: New file, from GNU gettext.
111579         * config/srclist.txt: Update
111581 2006-10-27  Eric Blake  <ebb9@byu.net>
111583         * MODULES.html.sh: Document tempname.
111584         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111585         dependencies.
111586         (Files): Move lib/tempname.c...
111587         * modules/tempname: ...to this new module.
111588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111589         (gl_PREREQ_TEMPNAME): Move...
111590         * m4/tempname.m4: ...to this new file.
111591         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111592         * modules/sys_stat (Depends-on): Add stat-macros.
111593         * lib/stat_.h (includes): Pick up stat macros.
111594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111595         if stat macros are broken.
111596         * lib/tempname.c (includes): No need to include "stat-macros.h".
111597         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111598         (direxists, __path_search) [!_LIBC]: Don't compile these in
111599         gnulib; the tmpdir module covers that.
111600         * lib/tempname.h: New file.
111602 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111604         * COPYING: Explain how gnulib-tool converts licence headers.
111605         Almost all wording by Eric Blake.
111607 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111609         * lib/mbchar.h (is_basic_table): Make read-only.
111610         * lib/mbchar.c (is_basic_table): Likewise.
111611         Reported by John Darrington.
111613 2006-10-25  Bruno Haible  <bruno@clisp.org>
111615         * lib/progname.h (set_program_name): Undefine before defining.
111617 2006-10-25  Bruno Haible  <bruno@clisp.org>
111619         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111620         false for non-gcc C++ compilers.
111621         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111623 2006-10-24  Bruno Haible  <bruno@clisp.org>
111625         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111626         iconv implementations like Irix iconv.
111628 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111630         * modules/vararrays: New file.
111631         * m4/vararrays.m4: New file, taken from diffutils.
111632         * MODULES.html.sh: New module vararrays.
111634 2006-10-24  Karl Berry  <karl@gnu.org>
111636         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111637         Don't call GNU Unix.
111639 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111641         * users.txt: Add Libtool.
111643         Sync from Libtool:
111645         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111647         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111648         to gnulib's policy of including config.h unconditionally.
111650 2006-10-24  Bruno Haible  <bruno@clisp.org>
111652         * modules/wcwidth (Files): Add m4/wint_t.m4.
111653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111654         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111656 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111658         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111659         to pacify GCC with some -W flags enabled.  Problem reported by
111660         Bruno Haible.
111662 2006-10-24  Jim Meyering  <jim@meyering.net>
111664         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111665         Reported by Karl Berry.
111667 2006-10-23  Bruno Haible  <bruno@clisp.org>
111669         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111671 2006-10-24  Bruno Haible  <bruno@clisp.org>
111673         * lib/gl_list.h: Use C comment style, not C++ comment style.
111675 2006-10-23  Eric Blake  <ebb9@byu.net>
111677         * lib/getaddrinfo.c (includes): Add missing include.
111679 2006-10-23  Bruno Haible  <bruno@clisp.org>
111680             Paul Eggert  <eggert@cs.ucla.edu>
111682         Ability to rename obstack_free.
111683         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111684         obstack_free.
111685         (obstack_free): Invoke the __obstack_free macro.
111686         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111688 2006-10-23  Bruno Haible  <bruno@clisp.org>
111689             Paul Eggert  <eggert@cs.ucla.edu>
111691         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111692         __argc, __argv from the declaration. (They are defined as macros on
111693         mingw.)
111695 2006-10-22  Bruno Haible  <bruno@clisp.org>
111697         * doc/gnulib-intro.texi: New file.
111698         * doc/gnulib.texi: Include it.
111700 2006-10-21  Bruno Haible  <bruno@clisp.org>
111702         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111703         "Introduction", "Miscellanous Notes", "Particular Modules".
111705 2006-10-21  Bruno Haible  <bruno@clisp.org>
111707         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111708         Change mostlyclean-local rule to avoid sh syntax error from bash
111709         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111711 2006-10-23  Jim Meyering  <jim@meyering.net>
111713         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111714         in place of snprintf.
111716         * modules/inttostr (Files): Add lib/uinttostr.c.
111717         * lib/uinttostr.c (inttostr): New file/function.
111718         * lib/inttostr.h (uinttostr): Declare.
111719         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111720         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111721         Add uinttostr.
111722         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111724 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111726         * lib/canonicalize.c (ELOOP): Define if not already defined.
111727         Problem reported by Bruno Haible in
111728         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111730 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111732         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111733         Problem reported by Perry Smith and Ville Laurikari.
111735         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111736         uses.
111738 2006-10-19  Bruno Haible  <bruno@clisp.org>
111740         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111741         for mingw.
111743 2006-10-19  Bruno Haible  <bruno@clisp.org>
111745         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111746         Needed for mingw.
111748 2006-10-19  Bruno Haible  <bruno@clisp.org>
111750         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111752 2006-10-19  Bruno Haible  <bruno@clisp.org>
111754         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111755         it.
111757 2006-10-19  Bruno Haible  <bruno@clisp.org>
111759         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111760         invocation.
111762 2006-10-19  Bruno Haible  <bruno@clisp.org>
111764         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111765         mountlist by default.
111767 2006-10-16  Bruno Haible  <bruno@clisp.org>
111769         * lib/c-strstr.c: Include c-strstr.h.
111771 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111773         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111774         in a slash.
111776 2006-10-18  Bruno Haible  <bruno@clisp.org>
111778         * lib/lock.h [C++]: Wrap definitions in extern "C".
111780 2006-10-18  Bruno Haible  <bruno@clisp.org>
111782         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111783         gl_LIBOBJS list.
111785 2006-10-18  Bruno Haible  <bruno@clisp.org>
111787         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111789 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111791         * lib/xstrtol.h: Include gettext.h.
111792         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111793         Problem reported by Eric Blake.
111794         * modules/xstrtol (Depends-on): Add gettext-h.
111796 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111798         * lib/strftime.c (advance): New macro.
111799         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111800         incomplete type, so you can't add 0 to it.  Problem and patch
111801         reported by Eelco Dolstra for dietlibc.
111803 2006-10-18  Jim Meyering  <jim@meyering.net>
111805         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111806         type for a local, and rename it: s/up/user_proc/.
111808 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111810         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111811         READ_UTMP_USER_PROCESS.
111812         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111814 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111816         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111817         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111819 2006-10-17  Eric Blake  <ebb9@byu.net>
111821         * lib/sigprocmask.c (sigprocmask): Fix typo.
111823         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111825         * modules/clean-temp (Makefile.am): Don't add to make output...
111826         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111827         config.h.
111829 2006-10-17  Bruno Haible  <bruno@clisp.org>
111831         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111832         differently if DEFAULT_TEXT_DOMAIN is set.
111834 2006-10-16  Bruno Haible  <bruno@clisp.org>
111836         * lib/clean-temp.c: Include fwriteerror.h.
111838 2006-10-16  Bruno Haible  <bruno@clisp.org>
111840         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111842 2006-10-16  Bruno Haible  <bruno@clisp.org>
111844         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111845         * lib/sigprocmask.h: Include <sys/types.h>.
111846         (sigset_t): Use the system's definition if present.
111848 2006-10-17  Eric Blake  <ebb9@byu.net>
111850         * lib/xvasprintf.c (includes): Assume config.h.
111851         * lib/xasprintf.c (includes): Likewise.
111853 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111855         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111856         at least as wide as intmax_t.
111858 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111860         (Imported from Automake.)
111861         * build-aux/gnupload: Update to version 1.1 of directive file.
111863 2006-10-16  Eric Blake  <ebb9@byu.net>
111865         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111866         match Automake 1.10a.
111868 2006-10-14  Bruno Haible  <bruno@clisp.org>
111870         * modules/sigprocmask: New file.
111871         * lib/sigprocmask.h: New file.
111872         * lib/sigprocmask.c: New file.
111873         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111874         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111875         request sigprocmask.o.
111876         (gl_PREREQ_SIGPROCMASK): New macro.
111877         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111878         (Depends-on): Add sigprocmask.
111879         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111880         gt_SIGNALBLOCKING. Test for 'raise' only once.
111881         * lib/fatal-signal.c: Include sigprocmask.h.
111882         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111883         unblock_fatal_signals): Define always.
111884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111885         sigprocmask.
111887 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111889         Sync from Automake.
111890         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111891         which incorrectly sets the mode of an existing destination
111892         directory.  In some cases the unpatched install-sh could do the
111893         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111894         system.  We hope this is rare in practice, but it's clearly worth
111895         fixing.  Problem reported by Alex Unleashed in
111896         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111897         Also, don't bother to check for -m bugs unless we're using -m;
111898         suggested by Stepan Kasal.
111900 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111902         Sync from Automake.
111903         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111904         `-c' flag, so they appear at the same position as in %FASTDEP%
111905         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111906         which ignores unknown options only after the first non-option.
111907         Bug report against M4 by Nelson H. F. Beebe.
111909 2006-10-13  Jim Meyering  <jim@meyering.net>
111911         Fix a bug in yesterday's change.
111912         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111913         p->fts_statp->st_dev would be used uninitialized.
111914         Ensures that we always call fts_stat on the very first entry.
111915         Miklos Szeredi reported that find -xdev stopped working.
111917 2006-10-12  Bruno Haible  <bruno@clisp.org>
111919         * gnulib-tool (func_get_automake_snippet): Append an automatically
111920         computed EXTRA_DIST augmentation.
111921         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111922         * modules/alloca-opt (Makefile.am): Likewise.
111923         * modules/allocsa (Makefile.am): Likewise.
111924         * modules/arcfour (Makefile.am): Likewise.
111925         * modules/arctwo (Makefile.am): Likewise.
111926         * modules/argmatch (Makefile.am): Likewise.
111927         * modules/argz (Makefile.am): Likewise.
111928         * modules/atexit (Makefile.am): Likewise.
111929         * modules/backupfile (Makefile.am): Likewise.
111930         * modules/byteswap (Makefile.am): Likewise.
111931         * modules/c-strtod (Makefile.am): Likewise.
111932         * modules/c-strtold (Makefile.am): Likewise.
111933         * modules/calloc (Makefile.am): Likewise.
111934         * modules/canon-host (Makefile.am): Likewise.
111935         * modules/canonicalize (Makefile.am): Likewise.
111936         * modules/chdir-long (Makefile.am): Likewise.
111937         * modules/chdir-safer (Makefile.am): Likewise.
111938         * modules/check-version (Makefile.am): Likewise.
111939         * modules/chown (Makefile.am): Likewise.
111940         * modules/cloexec (Makefile.am): Likewise.
111941         * modules/close-stream (Makefile.am): Likewise.
111942         * modules/closeout (Makefile.am): Likewise.
111943         * modules/crc (Makefile.am): Likewise.
111944         * modules/csharpexec (Makefile.am): Likewise.
111945         * modules/cycle-check (Makefile.am): Likewise.
111946         * modules/des (Makefile.am): Likewise.
111947         * modules/dev-ino (Makefile.am): Likewise.
111948         * modules/dirfd (Makefile.am): Likewise.
111949         * modules/dirname (Makefile.am): Likewise.
111950         * modules/dup2 (Makefile.am): Likewise.
111951         * modules/eealloc (Makefile.am): Likewise.
111952         * modules/error (Makefile.am): Likewise.
111953         * modules/euidaccess (Makefile.am): Likewise.
111954         * modules/exclude (Makefile.am): Likewise.
111955         * modules/exitfail (Makefile.am): Likewise.
111956         * modules/fcntl-safer (Makefile.am): Likewise.
111957         * modules/fcntl (Makefile.am): Likewise.
111958         * modules/file-type (Makefile.am): Likewise.
111959         * modules/fileblocks (Makefile.am): Likewise.
111960         * modules/filemode (Makefile.am): Likewise.
111961         * modules/filenamecat (Makefile.am): Likewise.
111962         * modules/fnmatch (Makefile.am): Likewise.
111963         * modules/fopen-safer (Makefile.am): Likewise.
111964         * modules/fpending (Makefile.am): Likewise.
111965         * modules/fprintftime (Makefile.am): Likewise.
111966         * modules/free (Makefile.am): Likewise.
111967         * modules/fsusage (Makefile.am): Likewise.
111968         * modules/ftruncate (Makefile.am): Likewise.
111969         * modules/fts (Makefile.am): Likewise.
111970         * modules/gc-arcfour (Makefile.am): Likewise.
111971         * modules/gc-des (Makefile.am): Likewise.
111972         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111973         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111974         * modules/gc-md4 (Makefile.am): Likewise.
111975         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111976         * modules/gc-sha1 (Makefile.am): Likewise.
111977         * modules/gc (Makefile.am): Likewise.
111978         * modules/getaddrinfo (Makefile.am): Likewise.
111979         * modules/getcwd (Makefile.am): Likewise.
111980         * modules/getdelim (Makefile.am): Likewise.
111981         * modules/getdomainname (Makefile.am): Likewise.
111982         * modules/getgroups (Makefile.am): Likewise.
111983         * modules/gethostname (Makefile.am): Likewise.
111984         * modules/gethrxtime (Makefile.am): Likewise.
111985         * modules/getline (Makefile.am): Likewise.
111986         * modules/getloadavg (Makefile.am): Likewise.
111987         * modules/getlogin_r (Makefile.am): Likewise.
111988         * modules/getndelim2 (Makefile.am): Likewise.
111989         * modules/getopt (Makefile.am): Likewise.
111990         * modules/getpagesize (Makefile.am): Likewise.
111991         * modules/getpass-gnu (Makefile.am): Likewise.
111992         * modules/getpass (Makefile.am): Likewise.
111993         * modules/getsubopt (Makefile.am): Likewise.
111994         * modules/gettime (Makefile.am): Likewise.
111995         * modules/gettimeofday (Makefile.am): Likewise.
111996         * modules/getugroups (Makefile.am): Likewise.
111997         * modules/getusershell (Makefile.am): Likewise.
111998         * modules/glob (Makefile.am): Likewise.
111999         * modules/group-member (Makefile.am): Likewise.
112000         * modules/hard-locale (Makefile.am): Likewise.
112001         * modules/hash (Makefile.am): Likewise.
112002         * modules/hmac-md5 (Makefile.am): Likewise.
112003         * modules/hmac-sha1 (Makefile.am): Likewise.
112004         * modules/human (Makefile.am): Likewise.
112005         * modules/idcache (Makefile.am): Likewise.
112006         * modules/imaxabs (Makefile.am): Likewise.
112007         * modules/imaxdiv (Makefile.am): Likewise.
112008         * modules/inet_ntop (Makefile.am): Likewise.
112009         * modules/inet_pton (Makefile.am): Likewise.
112010         * modules/intprops (Makefile.am): Likewise.
112011         * modules/inttostr (Makefile.am): Likewise.
112012         * modules/inttypes (Makefile.am): Likewise.
112013         * modules/isapipe (Makefile.am): Likewise.
112014         * modules/javaversion (Makefile.am): Likewise.
112015         * modules/lchmod (Makefile.am): Likewise.
112016         * modules/lchown (Makefile.am): Likewise.
112017         * modules/localcharset (Makefile.am): Likewise.
112018         * modules/long-options (Makefile.am): Likewise.
112019         * modules/lstat (Makefile.am): Likewise.
112020         * modules/malloc (Makefile.am): Likewise.
112021         * modules/mathl (Makefile.am): Likewise.
112022         * modules/mbchar (Makefile.am): Likewise.
112023         * modules/md2 (Makefile.am): Likewise.
112024         * modules/md4 (Makefile.am): Likewise.
112025         * modules/md5 (Makefile.am): Likewise.
112026         * modules/memcasecmp (Makefile.am): Likewise.
112027         * modules/memchr (Makefile.am): Likewise.
112028         * modules/memcmp (Makefile.am): Likewise.
112029         * modules/memcoll (Makefile.am): Likewise.
112030         * modules/memcpy (Makefile.am): Likewise.
112031         * modules/memmem (Makefile.am): Likewise.
112032         * modules/memmove (Makefile.am): Likewise.
112033         * modules/mempcpy (Makefile.am): Likewise.
112034         * modules/memrchr (Makefile.am): Likewise.
112035         * modules/memset (Makefile.am): Likewise.
112036         * modules/memxor (Makefile.am): Likewise.
112037         * modules/mkancesdirs (Makefile.am): Likewise.
112038         * modules/mkdir-p (Makefile.am): Likewise.
112039         * modules/mkdir (Makefile.am): Likewise.
112040         * modules/mkdtemp (Makefile.am): Likewise.
112041         * modules/mkstemp (Makefile.am): Likewise.
112042         * modules/mktime (Makefile.am): Likewise.
112043         * modules/modechange (Makefile.am): Likewise.
112044         * modules/mountlist (Makefile.am): Likewise.
112045         * modules/nanosleep (Makefile.am): Likewise.
112046         * modules/obstack (Makefile.am): Likewise.
112047         * modules/openat (Makefile.am): Likewise.
112048         * modules/pagealign_alloc (Makefile.am): Likewise.
112049         * modules/pathmax (Makefile.am): Likewise.
112050         * modules/physmem (Makefile.am): Likewise.
112051         * modules/poll (Makefile.am): Likewise.
112052         * modules/posixtm (Makefile.am): Likewise.
112053         * modules/posixver (Makefile.am): Likewise.
112054         * modules/putenv (Makefile.am): Likewise.
112055         * modules/quote (Makefile.am): Likewise.
112056         * modules/quotearg (Makefile.am): Likewise.
112057         * modules/raise (Makefile.am): Likewise.
112058         * modules/read-file (Makefile.am): Likewise.
112059         * modules/readline (Makefile.am): Likewise.
112060         * modules/readlink (Makefile.am): Likewise.
112061         * modules/readtokens (Makefile.am): Likewise.
112062         * modules/readutmp (Makefile.am): Likewise.
112063         * modules/realloc (Makefile.am): Likewise.
112064         * modules/regex (Makefile.am): Likewise.
112065         * modules/rename-dest-slash (Makefile.am): Likewise.
112066         * modules/rename (Makefile.am): Likewise.
112067         * modules/rijndael (Makefile.am): Likewise.
112068         * modules/rmdir (Makefile.am): Likewise.
112069         * modules/rpmatch (Makefile.am): Likewise.
112070         * modules/safe-read (Makefile.am): Likewise.
112071         * modules/safe-write (Makefile.am): Likewise.
112072         * modules/same-inode (Makefile.am): Likewise.
112073         * modules/same (Makefile.am): Likewise.
112074         * modules/save-cwd (Makefile.am): Likewise.
112075         * modules/savedir (Makefile.am): Likewise.
112076         * modules/setenv (Makefile.am): Likewise.
112077         * modules/settime (Makefile.am): Likewise.
112078         * modules/sha1 (Makefile.am): Likewise.
112079         * modules/sig2str (Makefile.am): Likewise.
112080         * modules/snprintf (Makefile.am): Likewise.
112081         * modules/stat-macros (Makefile.am): Likewise.
112082         * modules/stat-time (Makefile.am): Likewise.
112083         * modules/stdbool (Makefile.am): Likewise.
112084         * modules/stdint (Makefile.am): Likewise.
112085         * modules/stdlib-safer (Makefile.am): Likewise.
112086         * modules/stpcpy (Makefile.am): Likewise.
112087         * modules/stpncpy (Makefile.am): Likewise.
112088         * modules/strcase (Makefile.am): Likewise.
112089         * modules/strcasestr (Makefile.am): Likewise.
112090         * modules/strchrnul (Makefile.am): Likewise.
112091         * modules/strcspn (Makefile.am): Likewise.
112092         * modules/strdup (Makefile.am): Likewise.
112093         * modules/strerror (Makefile.am): Likewise.
112094         * modules/strftime (Makefile.am): Likewise.
112095         * modules/strndup (Makefile.am): Likewise.
112096         * modules/strnlen (Makefile.am): Likewise.
112097         * modules/strpbrk (Makefile.am): Likewise.
112098         * modules/strsep (Makefile.am): Likewise.
112099         * modules/strstr (Makefile.am): Likewise.
112100         * modules/strtod (Makefile.am): Likewise.
112101         * modules/strtoimax (Makefile.am): Likewise.
112102         * modules/strtok_r (Makefile.am): Likewise.
112103         * modules/strtol (Makefile.am): Likewise.
112104         * modules/strtoll (Makefile.am): Likewise.
112105         * modules/strtoul (Makefile.am): Likewise.
112106         * modules/strtoull (Makefile.am): Likewise.
112107         * modules/strtoumax (Makefile.am): Likewise.
112108         * modules/strverscmp (Makefile.am): Likewise.
112109         * modules/sys_socket (Makefile.am): Likewise.
112110         * modules/sys_stat (Makefile.am): Likewise.
112111         * modules/sysexits (Makefile.am): Likewise.
112112         * modules/time_r (Makefile.am): Likewise.
112113         * modules/timegm (Makefile.am): Likewise.
112114         * modules/timespec (Makefile.am): Likewise.
112115         * modules/tmpfile-safer (Makefile.am): Likewise.
112116         * modules/trim (Makefile.am): Likewise.
112117         * modules/unistd-safer (Makefile.am): Likewise.
112118         * modules/unlinkdir (Makefile.am): Likewise.
112119         * modules/unlocked-io (Makefile.am): Likewise.
112120         * modules/userspec (Makefile.am): Likewise.
112121         * modules/utime (Makefile.am): Likewise.
112122         * modules/utimecmp (Makefile.am): Likewise.
112123         * modules/utimens (Makefile.am): Likewise.
112124         * modules/vasnprintf (Makefile.am): Likewise.
112125         * modules/vasprintf (Makefile.am): Likewise.
112126         * modules/vsnprintf (Makefile.am): Likewise.
112127         * modules/xalloc (Makefile.am): Likewise.
112128         * modules/xgetcwd (Makefile.am): Likewise.
112129         * modules/xnanosleep (Makefile.am): Likewise.
112130         * modules/xreadlink (Makefile.am): Likewise.
112131         * modules/xstrtod (Makefile.am): Likewise.
112132         * modules/xstrtol (Makefile.am): Likewise.
112133         * modules/xstrtold (Makefile.am): Likewise.
112134         * modules/yesno (Makefile.am): Likewise.
112135         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112137 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112139         * modules/error (Makefile.am): Distribute files through
112140         EXTRA_DIST, not lib_SOURCES.
112142 2006-10-12  Eric Blake  <ebb9@byu.net>
112144         * modules/error (Makefile.am): Distribute files in /lib.
112145         * modules/obstack (Makefile.am): Likewise.
112147 2006-10-12  Bruno Haible  <bruno@clisp.org>
112149         * modules/acl (Makefile.am): Distribute all files in lib/ through
112150         EXTRA_DIST.
112151         * modules/arcfour (Makefile.am): Likewise.
112152         * modules/arctwo (Makefile.am): Likewise.
112153         * modules/argmatch (Makefile.am): Likewise.
112154         * modules/argz (Makefile.am): Likewise.
112155         * modules/atexit (Makefile.am): Likewise.
112156         * modules/backupfile (Makefile.am): Likewise.
112157         * modules/c-strtod (Makefile.am): Likewise.
112158         * modules/c-strtold (Makefile.am): Likewise.
112159         * modules/calloc (Makefile.am): Likewise.
112160         * modules/canon-host (Makefile.am): Likewise.
112161         * modules/canonicalize (Makefile.am): Likewise.
112162         * modules/chdir-long (Makefile.am): Likewise.
112163         * modules/chdir-safer (Makefile.am): Likewise.
112164         * modules/check-version (Makefile.am): Likewise.
112165         * modules/chown (Makefile.am): Likewise.
112166         * modules/cloexec (Makefile.am): Likewise.
112167         * modules/close-stream (Makefile.am): Likewise.
112168         * modules/closeout (Makefile.am): Likewise.
112169         * modules/crc (Makefile.am): Likewise.
112170         * modules/cycle-check (Makefile.am): Likewise.
112171         * modules/des (Makefile.am): Likewise.
112172         * modules/dirfd (Makefile.am): Likewise.
112173         * modules/dirname (Makefile.am): Likewise.
112174         * modules/dup2 (Makefile.am): Likewise.
112175         * modules/euidaccess (Makefile.am): Likewise.
112176         * modules/exclude (Makefile.am): Likewise.
112177         * modules/exitfail (Makefile.am): Likewise.
112178         * modules/fcntl-safer (Makefile.am): Likewise.
112179         * modules/file-type (Makefile.am): Likewise.
112180         * modules/fileblocks (Makefile.am): Likewise.
112181         * modules/filemode (Makefile.am): Likewise.
112182         * modules/filenamecat (Makefile.am): Likewise.
112183         * modules/fnmatch (Makefile.am): Likewise.
112184         * modules/fopen-safer (Makefile.am): Likewise.
112185         * modules/fpending (Makefile.am): Likewise.
112186         * modules/fprintftime (Makefile.am): Likewise.
112187         * modules/free (Makefile.am): Likewise.
112188         * modules/fsusage (Makefile.am): Likewise.
112189         * modules/ftruncate (Makefile.am): Likewise.
112190         * modules/fts (Makefile.am): Likewise.
112191         * modules/gc (Makefile.am): Likewise.
112192         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112193         * modules/getaddrinfo (Makefile.am): Likewise.
112194         * modules/getcwd (Makefile.am): Likewise.
112195         * modules/getdelim (Makefile.am): Likewise.
112196         * modules/getdomainname (Makefile.am): Likewise.
112197         * modules/getgroups (Makefile.am): Likewise.
112198         * modules/gethostname (Makefile.am): Likewise.
112199         * modules/gethrxtime (Makefile.am): Likewise.
112200         * modules/getline (Makefile.am): Likewise.
112201         * modules/getloadavg (Makefile.am): Likewise.
112202         * modules/getlogin_r (Makefile.am): Likewise.
112203         * modules/getopt (Makefile.am): Likewise.
112204         * modules/getpass (Makefile.am): Likewise.
112205         * modules/getpass-gnu (Makefile.am): Likewise.
112206         * modules/getsubopt (Makefile.am): Likewise.
112207         * modules/gettime (Makefile.am): Likewise.
112208         * modules/gettimeofday (Makefile.am): Likewise.
112209         * modules/getugroups (Makefile.am): Likewise.
112210         * modules/getusershell (Makefile.am): Likewise.
112211         * modules/glob (Makefile.am): Likewise.
112212         * modules/group-member (Makefile.am): Likewise.
112213         * modules/hard-locale (Makefile.am): Likewise.
112214         * modules/hash (Makefile.am): Likewise.
112215         * modules/hmac-md5 (Makefile.am): Likewise.
112216         * modules/hmac-sha1 (Makefile.am): Likewise.
112217         * modules/human (Makefile.am): Likewise.
112218         * modules/idcache (Makefile.am): Likewise.
112219         * modules/imaxabs (Makefile.am): Likewise.
112220         * modules/imaxdiv (Makefile.am): Likewise.
112221         * modules/inet_ntop (Makefile.am): Likewise.
112222         * modules/inet_pton (Makefile.am): Likewise.
112223         * modules/inttostr (Makefile.am): Likewise.
112224         * modules/isapipe (Makefile.am): Likewise.
112225         * modules/lchown (Makefile.am): Likewise.
112226         * modules/long-options (Makefile.am): Likewise.
112227         * modules/lstat (Makefile.am): Likewise.
112228         * modules/malloc (Makefile.am): Likewise.
112229         * modules/mathl (Makefile.am): Likewise.
112230         * modules/mbchar (Makefile.am): Likewise.
112231         * modules/md2 (Makefile.am): Likewise.
112232         * modules/md4 (Makefile.am): Likewise.
112233         * modules/md5 (Makefile.am): Likewise.
112234         * modules/memcasecmp (Makefile.am): Likewise.
112235         * modules/memchr (Makefile.am): Likewise.
112236         * modules/memcmp (Makefile.am): Likewise.
112237         * modules/memcoll (Makefile.am): Likewise.
112238         * modules/memcpy (Makefile.am): Likewise.
112239         * modules/memmem (Makefile.am): Likewise.
112240         * modules/memmove (Makefile.am): Likewise.
112241         * modules/mempcpy (Makefile.am): Likewise.
112242         * modules/memrchr (Makefile.am): Likewise.
112243         * modules/memset (Makefile.am): Likewise.
112244         * modules/memxor (Makefile.am): Likewise.
112245         * modules/mkancesdirs (Makefile.am): Likewise.
112246         * modules/mkdir (Makefile.am): Likewise.
112247         * modules/mkdir-p (Makefile.am): Likewise.
112248         * modules/mkdtemp (Makefile.am): Likewise.
112249         * modules/mkstemp (Makefile.am): Likewise.
112250         * modules/mktime (Makefile.am): Likewise.
112251         * modules/modechange (Makefile.am): Likewise.
112252         * modules/mountlist (Makefile.am): Likewise.
112253         * modules/nanosleep (Makefile.am): Likewise.
112254         * modules/openat (Makefile.am): Likewise.
112255         * modules/pagealign_alloc (Makefile.am): Likewise.
112256         * modules/physmem (Makefile.am): Likewise.
112257         * modules/poll (Makefile.am): Likewise.
112258         * modules/posixtm (Makefile.am): Likewise.
112259         * modules/posixver (Makefile.am): Likewise.
112260         * modules/putenv (Makefile.am): Likewise.
112261         * modules/quote (Makefile.am): Likewise.
112262         * modules/quotearg (Makefile.am): Likewise.
112263         * modules/raise (Makefile.am): Likewise.
112264         * modules/read-file (Makefile.am): Likewise.
112265         * modules/readline (Makefile.am): Likewise.
112266         * modules/readlink (Makefile.am): Likewise.
112267         * modules/readtokens (Makefile.am): Likewise.
112268         * modules/readutmp (Makefile.am): Likewise.
112269         * modules/realloc (Makefile.am): Likewise.
112270         * modules/regex (Makefile.am): Likewise.
112271         * modules/rename (Makefile.am): Likewise.
112272         * modules/rename-dest-slash (Makefile.am): Likewise.
112273         * modules/rijndael (Makefile.am): Likewise.
112274         * modules/rmdir (Makefile.am): Likewise.
112275         * modules/rpmatch (Makefile.am): Likewise.
112276         * modules/safe-read (Makefile.am): Likewise.
112277         * modules/safe-write (Makefile.am): Likewise.
112278         * modules/same (Makefile.am): Likewise.
112279         * modules/save-cwd (Makefile.am): Likewise.
112280         * modules/savedir (Makefile.am): Likewise.
112281         * modules/setenv (Makefile.am): Likewise.
112282         * modules/settime (Makefile.am): Likewise.
112283         * modules/sha1 (Makefile.am): Likewise.
112284         * modules/sig2str (Makefile.am): Likewise.
112285         * modules/snprintf (Makefile.am): Likewise.
112286         * modules/stdlib-safer (Makefile.am): Likewise.
112287         * modules/stpcpy (Makefile.am): Likewise.
112288         * modules/stpncpy (Makefile.am): Likewise.
112289         * modules/strcase (Makefile.am): Likewise.
112290         * modules/strcasestr (Makefile.am): Likewise.
112291         * modules/strchrnul (Makefile.am): Likewise.
112292         * modules/strcspn (Makefile.am): Likewise.
112293         * modules/strdup (Makefile.am): Likewise.
112294         * modules/strerror (Makefile.am): Likewise.
112295         * modules/strftime (Makefile.am): Likewise.
112296         * modules/strndup (Makefile.am): Likewise.
112297         * modules/strnlen (Makefile.am): Likewise.
112298         * modules/strpbrk (Makefile.am): Likewise.
112299         * modules/strsep (Makefile.am): Likewise.
112300         * modules/strstr (Makefile.am): Likewise.
112301         * modules/strtod (Makefile.am): Likewise.
112302         * modules/strtoimax (Makefile.am): Likewise.
112303         * modules/strtok_r (Makefile.am): Likewise.
112304         * modules/strtol (Makefile.am): Likewise.
112305         * modules/strtoll (Makefile.am): Likewise.
112306         * modules/strtoul (Makefile.am): Likewise.
112307         * modules/strtoull (Makefile.am): Likewise.
112308         * modules/strtoumax (Makefile.am): Likewise.
112309         * modules/strverscmp (Makefile.am): Likewise.
112310         * modules/time_r (Makefile.am): Likewise.
112311         * modules/timegm (Makefile.am): Likewise.
112312         * modules/tmpfile-safer (Makefile.am): Likewise.
112313         * modules/unistd-safer (Makefile.am): Likewise.
112314         * modules/unlinkdir (Makefile.am): Likewise.
112315         * modules/userspec (Makefile.am): Likewise.
112316         * modules/utime (Makefile.am): Likewise.
112317         * modules/utimecmp (Makefile.am): Likewise.
112318         * modules/utimens (Makefile.am): Likewise.
112319         * modules/vasnprintf (Makefile.am): Likewise.
112320         * modules/vasprintf (Makefile.am): Likewise.
112321         * modules/vsnprintf (Makefile.am): Likewise.
112322         * modules/xalloc (Makefile.am): Likewise.
112323         * modules/xgetcwd (Makefile.am): Likewise.
112324         * modules/xnanosleep (Makefile.am): Likewise.
112325         * modules/xreadlink (Makefile.am): Likewise.
112326         * modules/xstrtod (Makefile.am): Likewise.
112327         * modules/xstrtol (Makefile.am): Likewise.
112328         * modules/xstrtold (Makefile.am): Likewise.
112329         * modules/yesno (Makefile.am): Likewise.
112331 2006-10-12  Jim Meyering  <jim@meyering.net>
112333         * m4/getloadavg.m4: Revert the change below.
112335         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112336         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112337         fail with a symlink, which is what coreutils' ./bootstrap now
112338         creates by default.
112340 2006-10-12  Bruno Haible  <bruno@clisp.org>
112342         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112343         mingw.
112344         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112345         MSVC and mingw explicitly.
112347 2006-10-11  Simon Josefsson  <jas@extundo.com>
112348             Bruno Haible  <bruno@clisp.org>
112350         Add support for multiple gnulib-tool invocations in the scope of a
112351         single configure.ac file.
112352         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112353         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112354         with the same contents as the _LIBADD variable.
112355         (func_emit_initmacro_start, func_emit_initmacro_end,
112356         func_emit_initmacro_done): New functions.
112357         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112358         gl_LIBOBJS and gl_LTLIBOBJS.
112360 2006-10-11  Bruno Haible  <bruno@clisp.org>
112362         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112363         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112364         autoreconf. Instead, invoke autopoint explicitly but move back the
112365         *.m4 files from gnulib.
112367 2006-10-11  Bruno Haible  <bruno@clisp.org>
112369         * gnulib-tool (func_usage): Make module names after --create-testdir
112370         optional.
112371         (func_create_testdir): If no module was specified, use nearly all
112372         modules.
112374 2006-10-12  Jim Meyering  <jim@meyering.net>
112376         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112377         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112378         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112379         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112380         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112381         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112382         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112383         (fts_set_stat_required): New function.
112384         (fts_open): Defer the calls to fts_stat, if possible or requested.
112385         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112386         into fts_stat itself.
112387         (fts_read): Perform any required (deferred) fts_stat call.
112388         (fts_build): Likewise, for the directory we're about to open and read.
112389         In the readdir loop, carefully decide whether each entry will require
112390         an eventual call to fts_stat, using dirent.d_type info if available.
112391         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112392         a command line argument into this function.  Update all callers.
112393         Map a return value of FTS_DOT to FTS_D for a command line argument.
112394         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112395         Thanks to Miklos Szeredi for his tenacity and for the initial
112396         bug report about "find" failing on a FUSE-based file system.
112398         * lib/fts.c (fts_open): Use consistent indentation.
112400 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112402         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112403         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112404         reported by Jim Meyering.  All uses of cache variables renamed
112405         to match Autoconf's.
112406         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112407         the other one.
112409         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112410         Fix misspelling in diagnostic.
112412 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112414         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112415         defined.  Problem reported by Matthew Woehlke.
112417         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112418         Add support for Tandem NonStop R series.
112419         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112420         Use new macro.
112422         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112423         (has_trailing_slash): Omit size arg; all callers changed.
112424         Omit 'inline', since it doesn't help performance and we'd
112425         need to configure it.
112426         Don't count //, ///, etc. as having a trailing slash.
112427         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112428         (rpl_rename_dest_slash): On failure, use rename's errno rather
112429         than (in some cases) an incorrect or junk errno.
112430         Simplify code by removing need to compute length; this does
112431         cause it to make two passes instead of one over the file name,
112432         but it's worth it.
112434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112435         change, since Autoconf's version may no longer be appropriate now
112436         that we are using CVS Autoconf's version.  Add support for Tandem.
112438 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112439             Bruno Haible  <bruno@clisp.org>
112441         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112442         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112443         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112444         gl_AC_TYPE_LONG_LONG.
112446         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112447         instead of HAVE_LONG_LONG.
112448         * lib/printf-args.c (printf_fetchargs): Likewise.
112449         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112450         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112451         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112452         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112453         gl_AC_TYPE_LONG_LONG.
112455 2006-10-11  Bruno Haible  <bruno@clisp.org>
112457         * m4/longlong.m4: Add comments.
112458         * m4/ulonglong.m4: Likewise.
112460 2006-10-10  Bruno Haible  <bruno@clisp.org>
112462         Make it possible to #define stpcpy, strdup to aliases.
112463         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112464         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112466 2006-10-10  Bruno Haible  <bruno@clisp.org>
112468         Make it possible to #define gcd to an alias.
112469         * lib/gcd.c: Include config.h.
112471 2006-10-10  Bruno Haible  <bruno@clisp.org>
112473         Make it possible to #define c_isascii to an alias.
112474         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112475         defined. Undefine the macros before defining them, to avoid gcc
112476         warnings.
112477         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112478         define NO_C_CTYPE_MACROS early.
112480 2006-10-10  Bruno Haible  <bruno@clisp.org>
112482         Make it possible to #define set_program_name to an alias.
112483         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112484         ENABLE_RELOCATABLE early.
112486 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112488         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112489         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112490         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112491         More generally, don't assume that 64-bit signed int is available
112492         if unsigned int is, and vice versa.
112493         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112494         unsigned symbols, not on their signed counterparts.
112495         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112496         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112497         (UINT64_C, UINTMAX_C):
112498         Likewise.
112499         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112500         unsigned counterparts.
112501         (Have_long_long, Unsigned): New macros.
112502         (Int): Renamed from INT.
112503         (strtoimax): Use the new macros.
112504         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112505         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112506         * modules/inttypes (inttypes.h): Substitute
112507         HAVE_UNSIGNED_LONG_LONG_INT.
112508         * modules/stdint (stdint.h): Likewise.
112509         (Files): Add m4/ulonglong.m4.
112511 2006-10-10  Bruno Haible  <bruno@clisp.org>
112513         Fix a gcc -Wshadow warning.
112514         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112515         to 'bucket'.
112516         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112517         gl_linked_indexof_from_to): Likewise.
112518         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112519         Likewise.
112520         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112521         Likewise.
112522         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112523         Reported by Eric Blake.
112525 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112527         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112528         for NetBSD.  Problem reported by Bruno Haible.
112530 2006-10-09  Jim Meyering  <jim@meyering.net>
112532         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112533         Patch from Bruno Haible.
112535 2006-10-09  Jim Meyering  <jim@meyering.net>
112537         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112538         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112539         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112541 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112543         Don't include <config.h> twice; this doesn't work in some cases,
112544         e.g., when config.h has "#define intmax_t long long int" and
112545         we include <config.h>, <inttypes.h>, <config.h> in that order.
112546         Problem reported by Matthew Woehlke in:
112547         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112548         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112549         * lib/fts-cycle.c: Don't include config.h.
112550         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112551         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112552         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112553         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112554         inttypes.h.
112555         * lib/xstrtoumax.c: Likewise.
112556         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112557         __strtol and the like, so that this module is more like its siblings.
112558         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112559         Remove; no longer needed now that we assume gnulib inttypes.h.
112561 2006-10-08  Bruno Haible  <bruno@clisp.org>
112563         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112564         option.
112566 2006-10-07  Jim Meyering  <jim@meyering.net>
112568         * modules/inttypes (inttypes.h): Revert what seems to have been
112569         an inadvertent part of today's change: use "|", not "/" in the
112570         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112572 2006-10-07  Bruno Haible  <bruno@clisp.org>
112574         * modules/sublist: New file.
112576 2006-10-07  Bruno Haible  <bruno@clisp.org>
112578         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112579         * modules/argz (argz.h): Likewise.
112580         * modules/arpa_inet (arpa/inet.h): Likewise.
112581         * modules/byteswap (byteswap.h): Likewise.
112582         * modules/configmake (configmake.h): Likewise.
112583         * modules/fcntl (fcntl.h): Likewise.
112584         * modules/fnmatch (fnmatch.h): Likewise.
112585         * modules/getopt (getopt.h): Likewise.
112586         * modules/glob (glob.h): Likewise.
112587         * modules/inttypes (inttypes.h): Likewise.
112588         * modules/netinet_in (netinet/in.h): Likewise.
112589         * modules/poll (poll.h): Likewise.
112590         * modules/stdbool (stdbool.h): Likewise.
112591         * modules/stdint (stdint.h): Likewise.
112592         * modules/sys_select (sys/select.h): Likewise.
112593         * modules/sys_socket (sys/socket.h): Likewise.
112594         * modules/sys_stat (sys/stat.h): Likewise.
112595         * modules/sysexits (sysexits.h): Likewise.
112596         * modules/unistd (unistd.h): Likewise.
112597         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112598         Add a "DO NOT EDIT" comment to the generated file.
112599         (func_import): Likewise for gnulib-comp.m4.
112601 2006-10-07  Bruno Haible  <bruno@clisp.org>
112603         * lib/gl_sublist.h: New file.
112604         * lib/gl_sublist.c: New file.
112606 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112608         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112609         name (relative to the original working directory) and the file
112610         name component (relative to the temporary working directory).  All
112611         callers changed.
112612         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112613         * lib/mkdir-p.c (make_dir_parents): Likewise.
112614         * lib/mkdir-p.h (make_dir_parents): Likewise.
112616 2006-10-06  Eric Blake  <ebb9@byu.net>
112618         Define several macros for use by the clean-temp module.
112619         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112620         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112621         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112623         * lib/clean-temp.h (close_stream_temp): New declaration.
112624         * lib/clean-temp.c (includes): Pull in headers according to what
112625         other modules are in use.
112626         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112628 2006-10-06  Bruno Haible  <bruno@clisp.org>
112630         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112631         instead of fopen, fwriteerror.
112633 2006-10-06  Bruno Haible  <bruno@clisp.org>
112635         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112636         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112637         int.
112638         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112639         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112640         Return an error indicator.
112641         Suggested by Eric Blake.
112643 2006-10-06  Bruno Haible  <bruno@clisp.org>
112645         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112646         Reported by Eric Blake.
112648 2006-10-06  Bruno Haible  <bruno@clisp.org>
112650         * modules/closeout (Description): Mention stderr too.
112652 2006-10-06  Bruno Haible  <bruno@clisp.org>
112653         and Paul Eggert  <eggert@cs.ucla.edu>
112655         * lib/closeout.c (close_stdout): Also close stderr.
112656         * lib/closeout.h: Update comment.
112658 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112660         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112661         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112662         * lib/dirchownmod.c: Include lchown.h.
112663         * lib/lchown.c: Don't include files that lchown.h now includes.
112664         Don't declare chown, since lchown.h now does that.
112665         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112666         (lchown): Define to rpl_chown if lchown is declared but
112667         does not exist.  Declare using a prototype if lchown is not
112668         declared.  Add a copyright notice.
112669         * lib/mkstemp.h: Include <unistd.h>.
112670         * lib/openat.c: Include lchown.h.
112672         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112673         we now test for that separately.
112674         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112675         rather than O_NOFOLLOW, when testing whether it's possible to
112676         avoid a race condition reliably.
112677         * lib/savewd.c (savewd_chdir): Likewise.
112679         Remove macros that are no longer needed now that stdint.h is
112680         reliable.
112681         * lib/fsusage.c (UINTMAX_MAX): Remove.
112682         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112683         * lib/utimecmp.c (SIZE_MAX): Remove.
112685         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112687         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112688         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112689         O_NOATIME works.
112691 2006-10-05  Bruno Haible  <bruno@clisp.org>
112693         * lib/gl_list.h (gl_sortedlist_search_from_to,
112694         gl_sortedlist_indexof_from_to): New declarations.
112695         (gl_list_implementation): New fields sortedlist_search_from_to,
112696         sortedlist_indexof_from_to.
112697         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112698         inline functions.
112699         * lib/gl_list.c (gl_sortedlist_search_from_to,
112700         gl_sortedlist_indexof_from_to): New functions.
112701         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112702         function.
112703         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112704         (gl_array_sortedlist_search_from_to): New function.
112705         (gl_array_list_implementation): Update.
112706         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112707         function.
112708         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112709         (gl_carray_sortedlist_search_from_to): New function.
112710         (gl_carray_list_implementation): Update.
112711         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112712         gl_linked_sortedlist_indexof_from_to): New functions.
112713         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112714         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112715         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112716         gl_tree_sortedlist_indexof_from_to): New functions.
112717         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112718         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112719         Update.
112720         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112721         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112722         Update.
112724 2006-10-05  Bruno Haible  <bruno@clisp.org>
112726         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112727         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112728         (struct gl_list_implementation): Add fields search_from_to,
112729         indexof_from_to. Remove fields search, indexof.
112730         (gl_list_search): Use the search_from_to method.
112731         (gl_list_search_from, gl_list_search_from_to): New functions.
112732         (gl_list_indexof): Use the indexof_from_to method.
112733         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112734         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112735         (gl_list_search_from, gl_list_search_from_to): New functions.
112736         (gl_list_indexof): Use the indexof_from_to method.
112737         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112738         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112739         gl_array_indexof. Add start_index, end_index arguments.
112740         (gl_array_search_from_to): Renamed from gl_array_search. Add
112741         start_index, end_index arguments.
112742         (gl_array_remove, gl_array_list_implementation): Update.
112743         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112744         gl_carray_indexof. Add start_index, end_index arguments.
112745         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112746         start_index, end_index arguments.
112747         (gl_carray_remove, gl_carray_list_implementation): Update.
112748         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112749         gl_linked_search. Add start_index, end_index arguments.
112750         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112751         start_index, end_index arguments.
112752         (gl_linked_remove): Update.
112753         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112754         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112755         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112756         field to 'size_t'.
112757         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112758         gl_tree_search. Add start_index, end_index arguments.
112759         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112760         start_index, end_index arguments.
112761         (gl_tree_remove): Update.
112762         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112763         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112764         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112765         function.
112766         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112767         gl_tree_search. Add start_index, end_index arguments.
112768         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112769         start_index, end_index arguments.
112770         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112771         Update.
112772         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112774 2006-10-05  Bruno Haible  <bruno@clisp.org>
112776         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112778         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112779         fwriteerror_temp): New declarations.
112780         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112781         (descriptors): New variable.
112782         (cleanup): First, close the descriptors.
112783         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112784         fclose_temp, fwriteerror_temp): New functions.
112786 2006-10-04  Jim Meyering  <jim@meyering.net>
112788         * lib/fts.c (fts_open): Tiny comment change.
112790 2006-10-04  Bruno Haible  <bruno@clisp.org>
112792         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112793         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112794         gl_LOCK_BODY.
112795         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112796         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112797         gl_LOCK_EARLY_BODY.
112798         (gl_LOCK): Require gl_LOCK_BODY.
112800 2006-10-04  Bruno Haible  <bruno@clisp.org>
112802         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112803         (gl_oset_search_atleast): New declaration.
112804         (struct gl_oset_implementation): Add field 'search_atleast'.
112805         (gl_oset_search_atleast): New inline function.
112806         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112807         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112808         (gl_array_oset_implementation): Update.
112809         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112810         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112811         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112813 2006-10-04  Bruno Haible  <bruno@clisp.org>
112815         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112817 2006-10-03  Bruno Haible  <bruno@clisp.org>
112819         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112820         from gl_avltreehash_list_implementation.
112822 2006-10-03  Bruno Haible  <bruno@clisp.org>
112824         * lib/gl_oset.c (gl_oset_add): Fix return type.
112826 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112828         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112830 2006-10-02  Eric Blake  <ebb9@byu.net>
112832         * modules/strnlen (Depends-on): Add extensions.
112834 2006-10-02  Eric Blake  <ebb9@byu.net>
112836         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112837         definition in 2.60+.
112839 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112841         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112842         checks.
112844 2006-10-02  Bruno Haible  <bruno@clisp.org>
112846         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112847         to the AUTOMAKE_OPTIONS.
112848         Reported by Jim Meyering.
112850 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112852         Work around bug in Solaris 10 /proc file system:
112853         /proc/self/fd/NNN/.. isn't the parent directory of
112854         the directory whose file descriptor is NNN.  This needs to
112855         be worked around at run time, not compile time, since a
112856         program might be built on Solaris 8, where things work, and
112857         run on Solaris 10.
112858         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112859         to use the following interface instead:
112860         (OPENAT_BUFFER_SIZE): New macro.
112861         (openat_proc_name): New function.
112862         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112863         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112864         Likewise.
112865         * lib/openat-proc.c: New file.
112866         * modules/openat (Files): Add lib/openat-proc.c.
112867         (Depends-on): Add same-inode, stdbool.
112868         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112870 2006-09-29  Bruno Haible  <bruno@clisp.org>
112872         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112873         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112874         argument. Set stdout_closed before testing for ferror, not after.
112875         (fwriteerror, fwriteerror_no_ebadf): New functions.
112877 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112879         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112881 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112883         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112884         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112886 2006-09-28  Jim Meyering  <jim@meyering.net>
112888         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112889         Include <unistd.h>.
112891 2006-09-28  Bruno Haible  <bruno@clisp.org>
112893         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112894         * modules/linkedhash-list (Depends-on): Likewise.
112895         * modules/rbtreehash-list (Depends-on): Likewise.
112897 2006-09-28  Bruno Haible  <bruno@clisp.org>
112899         * lib/strndup.h: Simplify the redefinition of strndup.
112900         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112901         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112903 2006-09-28  Bruno Haible  <bruno@clisp.org>
112905         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112906         * lib/gl_linkedhash_list.c: Likewise.
112907         * lib/gl_rbtreehash_list.c: Likewise.
112909 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112911         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112912         getaddrinfo.
112914         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112915         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112916         it causes <stdio_ext.h> to cause a compile-time error.
112917         Problem reported by Nelson H. F. Beebe.
112918         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112919         of HAVE_DECL___PENDING.
112921         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112923         declaration.
112925 2006-09-27  Jim Meyering  <jim@meyering.net>
112927         This file could end up with a definition for a function
112928         named __strndup, rather than rpl_strndup on a system with
112929         incomplete weak_alias support.
112930         * lib/strndup.c (strndup): Rename from __strndup.
112931         Remove #defines that used to map __strndup to strndup.
112932         Don't use K&R prototypes.
112933         Remove LIBC-related code, since this file is not sync'd with glibc.
112934         * lib/strndup.h: Revamp, accordingly.
112935         * m4/strndup.m4: Modernize.
112937 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112939         * modules/savewd (Depends-on): Add 'raise'.
112940         * lib/savewd.c: Include <signal.h>, for 'raise'.
112942 2006-09-26  Jim Meyering  <jim@meyering.net>
112944         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112945         when we detect Darwin 8.7.0's acl_get_file bug.
112946         Rearrange to perform the new (below) run-test while $LIBS
112947         contains any acl-related library.  Set USE_ACL at the end.
112948         (gl_ACL_GET_FILE): New function.
112950 2006-09-26  Eric Blake  <ebb9@byu.net>
112952         * lib/verror.c: Include <config.h> unconditionally.
112954 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112956         * modules/clock-time (Maintainer): Add self.
112957         * modules/getlogin_r (Depends-on): Add extensions.
112959 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112961         * modules/clock-time: New module.
112962         * modules/nanosleep (Depends-on): Add clock-time.
112963         * modules/gethrxtime (Depends-on): Likewise.
112964         * modules/gettime (Depends-on): Likewise.
112965         * modules/settime (Depends-on): Likewise.
112967         * modules/fts-lgpl: Depend on openat.
112968         * modules/mkancesdirs: Depend on savewd.
112969         * modules/mkdir-p: Likewise.
112971 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112973         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112975         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112976         `gl_have_arbitrary_file_name_length_limit' to
112977         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112978         actually works between configure runs.
112980 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112981             Bruno Haible  <bruno@clisp.org>
112983         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112985 2006-09-25  Jim Meyering  <jim@meyering.net>
112987         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112988         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112990 2006-09-25  Eric Blake  <ebb9@byu.net>
112992         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112993         exec's in 2006-09-18 patch when shuffling fds.
112995 2006-09-25  Bruno Haible  <bruno@clisp.org>
112997         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112998         Reported by Jim Meyering.
113000 2006-09-24  Jim Meyering  <jim@meyering.net>
113002         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113003         compare a pointer against a literal "0".  That caused failures with
113004         at least HP-UX's hpcc.
113006 2006-09-22  Simon Josefsson  <jas@extundo.com>
113008         * modules/gc-sha1:
113009         * modules/gc-md4:
113010         * modules/gc-hmac-sha1:
113011         * modules/gc-hmac-md5:
113012         * modules/gc-des:
113013         * modules/gc-arcfour: Distribute more files.
113015 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113017         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113018         (gl_linked_iterator_from_to): Initialize struct completely.
113019         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113020         (gl_tree_iterator_from_to): Likewise
113021         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113022         * lib/gl_array_list.c [lint] (gl_array_iterator)
113023         (gl_array_iterator_from_to): Likewise.
113024         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113025         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113026         (gl_carray_iterator_from_to): Likewise.
113028         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113029         * lib/md4.c (md4_process_block): Remove unused variable.
113030         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113031         parentheses for clarity.
113033 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113035         * modules/bison-i18n (Depends-on): Add gettext.
113037 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113039         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113040         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113041         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113042         also add missing comma that caused broken test.
113043         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113044         stdlib.h, for `abort'.
113045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113046         variables.
113047         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113048         include unistd.h if present, for `rmdir'.
113049         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113050         variables.
113051         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113052         in the process include standard headers for prototypes.
113053         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113054         gets declared on GNU/Linux.
113055         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113056         unistd.h, for `rmdir'.
113057         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113059         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113060         always true.
113061         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113063         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113065 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113067         * gnulib-tool (func_version): Create output all at once.  This
113068         may help avoid triggering unnecessary SIGPIPEs, and at any
113069         rate it doesn't hurt.
113071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113072             Bruno Haible  <bruno@clisp.org>
113074         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113075         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113076         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113078         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113079         (gl_FUNC_VASPRINTF): Invoke it.
113081 2006-09-22  Bruno Haible  <bruno@clisp.org>
113083         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113084         getloadavg.c as first argument.
113086 2006-09-22  Bruno Haible  <bruno@clisp.org>
113088         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113089         at the beginning of the gl_INIT macro.
113090         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113091         gl_GETLOADAVG.
113093 2006-09-22  Bruno Haible  <bruno@clisp.org>
113095         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113096         module.
113097         Suggested by Ralf Wildenhues.
113099 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113101         Import this patch from libc:
113103         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113105         * lib/regex_internal.c (re_string_reconstruct): Handle
113106         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113107         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113108         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113109         re_string_context_at.
113111         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113112         now requires it.
113113         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113114         gl_REGEX now does it for us.
113115         (gl_REGEX): Add test taken from
113116         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113118         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113119         Check that large offsets work.  Modernize Autoconf usages.
113120         Prefer "yes" to mean a good thing rather than a bad.
113121         Don't put "#define mkstemp" in config.h, as this might interfere
113122         with standard system headers that "#define mkstemp mkstemp64".
113124         * modules/mkstemp (Depends-on): Add extensions, so that
113125         mkstemp is visible on some platforms.
113126         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113127         (Include): Change to "mkstemp.h" from <stdlib.h>.
113128         (Files): Add mkstemp.h.
113130         * lib/mkstemp.h: New file, since some standard headers
113131         #define mkstemp.
113132         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113133         Include "mkstemp.h".
113134         Make the _LIBC code resemble glibc original more,
113135         e.g., use K&R style.
113136         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113137         (mkstemp): Remove, since mkstemp.h does this for us.
113138         * lib/stdlib--.h: Include mkstemp.h.
113140         Import this patch from libc:
113142         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113144         * lib/tempname.c (__gen_tempname): Change attempts_min
113145         into a macro.  Use preprocessor to decide how to initialize
113146         attempts [Coverity CID 67].
113148 2006-09-20  Bruno Haible  <bruno@clisp.org>
113150         * lib/mkdtemp.c: Import from libc.
113151         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113152                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113153                 attempts_min into a macro.  Use preprocessor to decide how to
113154                 initialize attempts [Coverity CID 67].
113155         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113156                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113157                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113159 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113161         * gnulib-tool (func_exit): New function, to allow to pass the
113162         exit status portably through the trap.  Use everywhere.
113163         (--help, --version): Signal a write error.
113164         (trap): catch SIGPIPE, for write errors.
113165         Exit at the end of the trap, with the correct exit status.
113167 2006-09-19  Karl Berry  <karl@gnu.org>
113169         * doc/gnulib.texi: note about the license texinfo files.
113171 2006-09-19  Eric Blake  <ebb9@byu.net>
113173         * gnulib-tool: Avoid space-tab.
113175 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113177         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113178         that prevented coreutils 6.1 from building.  Problem reported
113179         by Petter Reinholdtsen.
113181 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113183         * gnulib-tool (avoidlist): Fix typo that broke options like
113184         --avoid=lock that are used by coreutils bootstrap.
113186 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113188         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113189         more systematically.
113191 2006-09-18  Jim Meyering  <jim@meyering.net>
113193         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113195 2006-09-18  Bruno Haible  <bruno@clisp.org>
113197         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113199 2006-09-18  Bruno Haible  <bruno@clisp.org>
113201         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113202         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113203         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113204         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113205         * m4/gettext.m4: Require autoconf >= 2.52.
113206         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113207         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113208         of gl_cv_header_inttypes_h.
113210 2006-09-18  Bruno Haible  <bruno@clisp.org>
113212         * lib/javaversion.c: Include configmake.h.
113214 2006-09-18  Bruno Haible  <bruno@clisp.org>
113216         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113217         avoid that the while loops be executed in a subshell.
113219 2006-09-18  Bruno Haible  <bruno@clisp.org>
113221         * MODULES.html.sh (func_module): Break long lines.
113222         Suggested by Bruce Korb <bkorb@gnu.org>.
113224 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113226         Speed up by a factor of 1.12.
113227         * gnulib-tool (nl): New variable.
113228         (func_import): Rewrite include directive extraction to only read each
113229         directive once.
113231 2006-09-17  Bruno Haible  <bruno@clisp.org>
113233         * modules/javaversion (Makefile.am): Remove DEFS setting.
113234         (Depends-on): Add configmake, for PKGDATADIR definition.
113236 2006-09-17  Bruno Haible  <bruno@clisp.org>
113238         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113240 2006-09-17  Bruno Haible  <bruno@clisp.org>
113242         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113243         (func_modules_transitive_closure, func_modules_add_dummy,
113244         func_modules_to_filelist, func_import, func_create_testdir,
113245         func_create_megatestdir, ...): Use it wherever possible.
113246         Suggested by Ralf Wildenhues.
113248 2006-09-16  Karl Berry  <karl@gnu.org>
113250         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113251         to avoid sectioning errors.
113252         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113253         [ifinfo]: blank line after @center-ed titles.
113254         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113255         Spell FSF address consistently with others.
113256         (These changes approved by rms.)
113258 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113260         Speed up by a factor of 1.61.
113261         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113262         already checked module names again.
113264 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113266         Speed up by a factor of 1.13.
113267         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113268         for new_files, and the input to func_add_or_update.
113270 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113272         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113273         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113275 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113277         * modules/mkancesdirs (Depends-on): Add fcntl.
113278         * modules/savewd: New file.
113279         * MODULES.html.sh (File system functions): Add savewd.
113281         * modules/configmake (Makefile.am): Add support for the
113282         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113284 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113286         * m4/savewd.m4: New file.
113288 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113290         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113291         (dirchownmod): New arg FD.  All callers changed.
113292         Use FD rather than opening the directory ourself, as opening is
113293         now the caller's responsibility.
113294         * lib/dirchownmod.h: Likewise.
113295         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113296         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113297         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113298         (test_dir): Remove.
113299         (mkancesdirs): Return length of prefix of FILE that has already
113300         been made, or -2 if there is a child doing the work.  Redo
113301         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113302         ".", and treat ".." specially since it might stray back into
113303         already-created areas.  Use a subprocess if necessary.  New arg
113304         WD; all users changed.  MAKE_DIR function should now return 1
113305         if it creates a directory that is not readable.  Return -2 if
113306         a child process is spun off.
113307         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113308         Adjust signature to match code.
113309         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113310         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113311         all users changed.
113312         * lib/savewd.c, lib/savewd.h: New files.
113314 2006-09-15  Jim Meyering  <jim@meyering.net>
113316         * modules/rename-dest-slash: New module.
113317         * MODULES.html.sh (posix_compat): Add it here.
113319         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113321 2006-09-15  Jim Meyering  <jim@meyering.net>
113323         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113324         file.
113326         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113328 2006-09-15  Jim Meyering  <jim@meyering.net>
113330         * lib/rename-dest-slash.c (has_trailing_slash): Use
113331         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113332         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113333         test before testing whether SRC is a directory.
113334         Suggestions from Bruno Haible.
113336         Avoid a warning about an unused variable.
113337         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113338         into the #ifdef block where it's used.
113340         * lib/rename-dest-slash.c: New file.
113342 2006-09-14  Bruno Haible  <bruno@clisp.org>
113344         * lib/allocsa.c: Include <config.h> unconditionally.
113345         * lib/asnprintf.c: Likewise.
113346         * lib/asprintf.c: Likewise.
113347         * lib/c-strcasecmp.c: Likewise.
113348         * lib/c-strcasestr.c: Likewise.
113349         * lib/c-strncasecmp.c: Likewise.
113350         * lib/c-strstr.c: Likewise.
113351         * lib/classpath.c: Likewise.
113352         * lib/clean-temp.c: Likewise.
113353         * lib/concatpath.c: Likewise.
113354         * lib/copy-file.c: Likewise.
113355         * lib/csharpcomp.c: Likewise.
113356         * lib/csharpexec.c: Likewise.
113357         * lib/execute.c: Likewise.
113358         * lib/fatal-signal.c: Likewise.
113359         * lib/findprog.c: Likewise.
113360         * lib/fwriteerror.c: Likewise.
113361         * lib/gl_array_list.c: Likewise.
113362         * lib/gl_array_oset.c: Likewise.
113363         * lib/gl_avltree_list.c: Likewise.
113364         * lib/gl_avltree_oset.c: Likewise.
113365         * lib/gl_avltreehash_list.c: Likewise.
113366         * lib/gl_carray_list.c: Likewise.
113367         * lib/gl_linked_list.c: Likewise.
113368         * lib/gl_linkedhash_list.c: Likewise.
113369         * lib/gl_list.c: Likewise.
113370         * lib/gl_oset.c: Likewise.
113371         * lib/gl_rbtree_list.c: Likewise.
113372         * lib/gl_rbtree_oset.c: Likewise.
113373         * lib/gl_rbtreehash_list.c: Likewise.
113374         * lib/imaxabs.c: Likewise.
113375         * lib/imaxdiv.c: Likewise.
113376         * lib/javacomp.c: Likewise.
113377         * lib/javaexec.c: Likewise.
113378         * lib/javaversion.c: Likewise.
113379         * lib/linebreak.c: Likewise.
113380         * lib/localcharset.c: Likewise.
113381         * lib/lock.c: Likewise.
113382         * lib/mbchar.c: Likewise.
113383         * lib/mbswidth.c: Likewise.
113384         * lib/mkdtemp.c: Likewise.
113385         * lib/pipe.c: Likewise.
113386         * lib/printf-args.c: Likewise.
113387         * lib/printf-parse.c: Likewise.
113388         * lib/progname.c: Likewise.
113389         * lib/progreloc.c: Likewise.
113390         * lib/readlink.c: Likewise.
113391         * lib/sh-quote.c: Likewise.
113392         * lib/stpcpy.c: Likewise.
113393         * lib/stpncpy.c: Likewise.
113394         * lib/strcasecmp.c: Likewise.
113395         * lib/strcasestr.c: Likewise.
113396         * lib/strcspn.c: Likewise.
113397         * lib/striconv.c: Likewise.
113398         * lib/strncasecmp.c: Likewise.
113399         * lib/strnlen1.c: Likewise.
113400         * lib/strstr.c: Likewise.
113401         * lib/strtok_r.c: Likewise.
113402         * lib/tls.c: Likewise.
113403         * lib/tmpdir.c: Likewise.
113404         * lib/unicodeio.c: Likewise.
113405         * lib/unsetenv.c: Likewise.
113406         * lib/vasnprintf.c: Likewise.
113407         * lib/vasprintf.c: Likewise.
113408         * lib/wait-process.c: Likewise.
113409         * lib/xallocsa.c: Likewise.
113410         * lib/xsetenv.c: Likewise.
113411         * lib/xstriconv.c: Likewise.
113413 2006-09-13  Simon Josefsson  <jas@extundo.com>
113415         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113416         that internally, suggested by Ralf Wildenhues
113417         <Ralf.Wildenhues@gmx.de>.
113419 2006-09-13  Simon Josefsson  <jas@extundo.com>
113421         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113422         @LIBOBJS@.
113423         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113425 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113427         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113428         longer worry about uses that don't define HAVE_CONFIG_H.
113429         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113430         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113431         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113432         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113433         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113434         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113435         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113436         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113437         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113438         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113439         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113440         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113441         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113442         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113443         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113444         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113445         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113446         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113447         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113448         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113449         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113450         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113451         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113452         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113453         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113454         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113455         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113456         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113457         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113458         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113459         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113460         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113461         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113462         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113463         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113464         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113465         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113466         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113467         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113468         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113469         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113470         Likewise.
113472 2006-09-13  Eric Blake  <ebb9@byu.net>
113474         * lib/getopt.c: Fix typo in last commit.
113476 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113478         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113479         dgettext.
113481 2006-09-12  Jim Meyering  <jim@meyering.net>
113483         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113484         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113485         Reported by Nelson H. F. Beebe.
113487 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113489         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113490         program_invocation_name and program_invocation_short_name are
113491         initialized.
113492         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113493         and program_invocation_short_name to argp.h, so they are visible
113494         to user programs.
113495         * lib/argp.h: Likewise
113497 2006-09-10  Bruno Haible  <bruno@clisp.org>
113499         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113500         m4/inttypes_h.m4, m4/uintmax_t.m4.
113502 2006-09-10  Bruno Haible  <bruno@clisp.org>
113504         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113505         gl_AC_TYPE_UINTMAX_T.
113507 2006-09-10  Bruno Haible  <bruno@clisp.org>
113509         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113511 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113513         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113514         convention.  Text proposed by Bruno Haible.
113515         (struct argp_option): Document the use of N_() wrappers.
113517         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113518         '\v', and translate the two parts separately, instead of feeding
113519         the whole string to gettext.  This allows to exclude
113520         '\v' from the strings visible to the translator by writing doc
113521         strings as N_("..") "\v" N_("..").
113523 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113525         * config/srclist.txt: Undo latest change; the bug was fixed.
113527 2006-09-09  Bruno Haible  <bruno@clisp.org>
113529         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113530         assignments if building a library without libtool.
113531         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113532         in func_emit_lib_Makefile_am.
113533         (func_import): When building a static library libfoo.a, arrange to
113534         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113535         (func_create_testdir): Likewise.
113536         * modules/gc (configure.ac, Makefile.am): If building statically,
113537         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113538         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113539         * modules/striconv (configure.ac, Makefile.am): Likewise.
113540         Based on a suggestion by Ralf Wildenhues.
113542 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113544         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113545         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113546         Also:
113548         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113549         Add year_2050_test to catch glibc bug 2821
113550         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113552         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113553         Prefer #ifdef to #if.
113555         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113556         Return from 'main' instead of calling 'exit'.
113558 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113560         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113561         returned the maximum time_t value rather than (time_t) -1.
113562         Problem originally reported by William Bardwell
113563         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113565         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113566         Moved to here ...
113567         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113568         ... from here.
113570 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113572         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113573         2821 is fixed.
113575 2006-09-08  Jim Meyering  <jim@meyering.net>
113577         Don't make generated files read-only.  That would bother too many
113578         people.  However, do retain the ability to work when targets are
113579         read-only: remove the destination and temporary files before writing
113580         them (when generated via sed or echo), or by using the -f option for
113581         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113582         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113583         * modules/byteswap, modules/configmake, modules/fcntl:
113584         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113585         * modules/localcharset, modules/netinet_in, modules/poll:
113586         * modules/stdbool, modules/stdint, modules/sys_select:
113587         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113589 2006-09-08  Jim Meyering  <jim@meyering.net>
113591         Avoid new build failure on FreeBSD 6.0.
113592         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113593         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113594         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113596 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113600 2006-09-07  Jim Meyering  <jim@meyering.net>
113602         Fix global typo in last change: use chmod u-w, not chmod u-x.
113603         Spotted by Paul Eggert and Bruce Korb.
113604         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113605         * modules/byteswap, modules/configmake, modules/fcntl:
113606         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113607         * modules/localcharset, modules/netinet_in, modules/poll:
113608         * modules/stdbool, modules/stdint, modules/sys_select:
113609         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113611 2006-09-06  Jim Meyering  <jim@meyering.net>
113613         Make generated files be read-only.
113614         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113615         Ensure that each generated file is now read-only.
113616         * modules/argz: Likewise.
113617         * modules/arpa_inet: Likewise.
113618         * modules/byteswap: Likewise.
113619         * modules/configmake: Likewise.
113620         * modules/fcntl: Likewise.
113621         * modules/fnmatch: Likewise.
113622         * modules/getopt: Likewise.
113623         * modules/glob: Likewise.
113624         * modules/inttypes: Likewise.
113625         * modules/netinet_in: Likewise.
113626         * modules/poll: Likewise.
113627         * modules/stdbool: Likewise.
113628         * modules/stdint: Likewise.
113629         * modules/sys_select: Likewise.
113630         * modules/sys_socket: Likewise.
113631         * modules/sys_stat: Likewise.
113632         * modules/sysexits: Likewise.
113633         * modules/localcharset: Same as above, but continue using temporary
113634         file named "t-$@" (why different?) rather than the "$@-t" used
113635         everywhere else.
113637         * modules/sysexits (Makefile.am): Replace literal occurrences
113638         of "sysexit.h" more readable, and more consistent, "$@".
113640 2006-09-06  Bruno Haible  <bruno@clisp.org>
113642         * modules/striconv: New file.
113643         * modules/xstriconv: New file.
113644         * MODULES.html.sh (Internationalization functions): Add striconv,
113645         xstriconv.
113647 2006-09-06  Bruno Haible  <bruno@clisp.org>
113649         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113650         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113651         not using libtool correctly.
113653 2006-09-06  Bruno Haible  <bruno@clisp.org>
113655         * lib/striconv.h: New file.
113656         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113657         iconvstring.c.
113658         * lib/xstriconv.h: New file.
113659         * lib/xstriconv.c: New file.
113661 2006-09-06  Bruno Haible  <bruno@clisp.org>
113663         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113664         lib_..._LDFLAGS.
113666 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113668         * lib/argz_.h: Sync from Libtool.
113670         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113671                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113673         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113675 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113677         * modules/trim: New file.
113679 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113681         * lib/trim.h: New file.
113682         * lib/trim.c: New file.
113684 2006-09-05  Bruno Haible  <bruno@clisp.org>
113686         * MODULES.html.sh (String handling): Add trim.
113688 2006-09-04  Karl Berry  <karl@gnu.org>
113690         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113691         until next release.
113693 2006-09-03  Bruno Haible  <bruno@clisp.org>
113695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113696         correctly.
113698 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113700         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113701         not gl_GETLOADAVG.  Omit unneeded semicolons.
113702         Problems reported by Ralf Wildenhues in
113703         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113704         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113705         at the end, which is the usual gnulib style.
113707         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113708         of doing all the work ourselves.
113709         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113710         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113712 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113714         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113715         Problem reported by Ralf Wildenhues in
113716         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113718         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113719         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113721 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113723         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113724         yesterday's patch by changing test -n to test -z.
113726 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113728         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113729         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113730         the former is now obsolescent.
113732         * modules/chdir-long (Depends-on): Add fcntl.
113734 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113736         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113737         obsolescent, and programs should use gnulib instead.
113738         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113739         but with prefixes changed.
113741 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113743         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113744         or stdbool.h, because they might not exist while configuring.
113746         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113747         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113748         does that for us.
113749         (O_DIRECTORY): Remove.
113751 2006-08-31  Eric Blake  <ebb9@byu.net>
113753         * gnulib-tool: Don't let emacs change spaces to TAB.
113755 2006-08-31  Bruno Haible  <bruno@clisp.org>
113757         * gnulib-tool: When calling func_import more than once, do it in a
113758         subshell.
113759         Reported by Eric Blake <ebb9@byu.net>.
113761 2006-08-31  Bruno Haible  <bruno@clisp.org>
113763         * gnulib-tool (nl): Remove variable.
113764         (sed_transform_lib_file): Use more robust test for config-h module.
113765         (func_import): Fix typo in 2006-08-25 patch.
113767 2006-08-31  Bruno Haible  <bruno@clisp.org>
113769         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113770         specified, augment Makefile.am variables instead of assigning them.
113772 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113774         Work around a bug in both the Linux and SunOS 64-bit kernels:
113775         nanosleep mishandles sleeps for longer than 2**31 seconds.
113776         Problem reported by Frank v Waveren in
113777         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113779         Check for nanosleep bug.
113780         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113782 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113784         Work around a bug in both the Linux and SunOS 64-bit kernels:
113785         nanosleep mishandles sleeps for longer than 2**31 seconds.
113786         Problem reported by Frank v Waveren in
113787         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113788         * lib/nanosleep.c (BILLION): New constant.
113789         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113790         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113791         implementation.
113793 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113795         * modules/nanosleep (Depends-on): Add gettime.
113797 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113798         and Simon Josefsson  <jas@extundo.com>
113799         and Oskar Liljeblad  <oskar@osk.mine.nu>
113801         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113802         * gnulib-tool (func_import): New license type 'unmodifiable license
113803         text'.
113804         * modules/fdl: Use it.  Longer description.
113805         * module/gpl, module/lgpl: New files.
113807 2006-08-30  Jim Meyering  <jim@meyering.net>
113809         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113810         shadowing the parameter.
113812 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113814         Sync from Libtool:
113816         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113818         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113819         sharing with gnulib.  Report by Eric Blake.
113821 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113823         * modules/isapipe: New file.
113824         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113826 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113828         * modules/configmake (Makefile.am): Add a comment, and omit
113829         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113830         by Bruno Haible.
113832 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113834         * m4/isapipe.m4: New file.
113836 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113838         * lib/isapipe.c, lib/isapipe.h: New files.
113840 2006-08-29  Jim Meyering  <jim@meyering.net>
113842         * modules/configmake (Makefile.am): Make configmake.h depend on
113843         Makefile.  Otherwise, a stale configmake.h could hang around.
113845 2006-08-29  Eric Blake  <ebb9@byu.net>
113847         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113848         resolution of upstream bug 3044.
113850 2006-08-29  Bruno Haible  <bruno@clisp.org>
113852         * modules/localcharset (Depends-on): Add configmake.
113853         (Makefile.am): Remove setting of LIBDIR through DEFS.
113855 2006-08-29  Bruno Haible  <bruno@clisp.org>
113857         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113858         defined.
113860 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113862         * modules/fcntl: New file.
113863         * modules/chdir-safer (Depends-on): Add fcntl.
113864         * modules/fts: Likewise.
113865         * modules/mkdir-p: Likewise.
113867         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113868         This undoes the most recent change, since we're now addressing the
113869         problem in a different way.
113871         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113872         into output, since the output might be called Makefile.am even
113873         if $makefile_name is something different.
113874         (func_import): Use $makefile_am rather than
113875         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113876         empty.
113878         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113880 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113882         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113883         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113884         recent change to stdint.m4, since we're now addressing the problem in a
113885         different way.
113887 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113889         * m4/fcntl_h.m4: New file.
113891 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113893         * lib/fcntl_.h: New file.
113894         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113895         the fcntl module.
113896         * lib/dirchownmod.c: Likewise.
113897         * lib/fts.c: Likewise.
113899         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113900         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113901         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113902         just before including <inttypes.h>, to avoid circular inclusion.
113904 2006-08-28  Jim Meyering  <jim@meyering.net>
113906         * doc/visibility.texi: Actually read and correct the grammar of the
113907         sentence affected by yesterday's change.
113909 2006-08-28  Eric Blake  <ebb9@byu.net>
113911         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113912         needs wrapper.
113914 2006-08-28  Eric Blake  <ebb9@byu.net>
113916         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113918 2006-08-28  Eric Blake  <ebb9@byu.net>
113920         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113922 2006-08-28  Bruno Haible  <bruno@clisp.org>
113924         * modules/c-strstr: New file, from GNU gettext.
113925         * MODULES.html.sh (String handling): Add c-strstr.
113927 2006-08-28  Bruno Haible  <bruno@clisp.org>
113929         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113930         macros.
113931         Reported by Eric Blake.
113933 2006-08-28  Bruno Haible  <bruno@clisp.org>
113935         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113936         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113937         * lib/vasprintf.c: Include errno.h, limits.h.
113938         (EOVERFLOW): New fallback definition.
113939         (vasprintf): Test here whether the string length is > INT_MAX.
113940         * lib/vsnprintf.c: Include errno.h, limits.h.
113941         (EOVERFLOW): New fallback definition.
113942         (vsnprintf): Fix bug when generated string was too long for the buffer.
113943         Test here whether the string length is > INT_MAX.
113945 2006-08-28  Bruno Haible  <bruno@clisp.org>
113947         * lib/inttypes_.h (SCNX*): Remove definitions.
113948         Reported by Eric Blake.
113950 2006-08-28  Bruno Haible  <bruno@clisp.org>
113952         * lib/c-strstr.h: New file, from GNU gettext.
113953         * lib/c-strstr.c: New file, from GNU gettext.
113955 2006-08-28  Bruno Haible  <bruno@clisp.org>
113957         * gnulib-tool: Reorder some statements.
113959 2006-08-28  Bruno Haible  <bruno@clisp.org>
113961         * gnulib-tool: New option --makefile-name.
113962         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113963         $makefile_name.
113964         (func_import): Write $makefile_name to the cache file, and read it from
113965         there unless explicitly specified. Use $makefile_name as file name
113966         instead of Makefile.am. Adjust the recommendations accordingly.
113968 2006-08-28  Bruno Haible  <bruno@clisp.org>
113970         * gnulib-tool (func_verify_module): Check against misapplying patch.
113972 2006-08-28  Bruno Haible  <bruno@clisp.org>
113974         * gnulib-tool (func_relativize, func_relconcat): New functions.
113975         Give an error if --local-dir is given with --update.
113976         Remove trailing slashes from $local_gnulib_dir.
113977         (func_import): Store the relativized $local_gnulib_dir in
113978         gnulib-cache.m4, and read it from there if not specified explicitly.
113980 2006-08-28  Bruno Haible  <bruno@clisp.org>
113982         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113983         is the current directory. Respect also $local_gnulib_dir.
113985 2006-08-28  Bruno Haible  <bruno@clisp.org>
113986             Simon Josefsson  <jas@extundo.com>
113988         BeOS portability.
113989         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113991 2006-08-27  Jim Meyering  <jim@meyering.net>
113993         * doc/visibility.texi: Remove duplicate word: "pointer".
113995 2006-08-26  Bruno Haible  <bruno@clisp.org>
113997         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113998         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113999         (Makefile.am): Create inttypes.h from inttypes_.h.
114000         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114002         * modules/imaxabs: New file.
114004         * modules/imaxdiv: New file.
114006 2006-08-26  Bruno Haible  <bruno@clisp.org>
114008         * m4/inttypes.m4: New file.
114009         * m4/_inttypes_h.m4: Remove file.
114010         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114011         PRI_MACROS_BROKEN.
114012         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114014         * m4/imaxabs.m4: New file.
114016         * m4/imaxdiv.m4: New file.
114018 2006-08-26  Bruno Haible  <bruno@clisp.org>
114020         * lib/inttypes_.h: New file.
114021         * lib/inttypes.h: Remove file.
114022         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114024         * lib/imaxabs.c: New file.
114026         * lib/imaxdiv.c: New file.
114028 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114030         New config-h module, so that "make" output needn't be cluttered
114031         by -DHAVE_CONFIG_H.
114032         * MODULES.html.sh (Support for building libraries and executables):
114033         Add config-h.
114034         * modules/config-h: New file.
114035         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114036         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114037         the config-h module is used.
114039         New configmake module, so that "make" output needn't be cluttered
114040         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114041         * MODULES.html.sh (Support for building libraries and executables):
114042         Add configmake.
114043         * modules/configmake: New file.
114045 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114047         * m4/config-h.m4: New file.
114049 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114051         * config/srclist.txt: Add elisp-comp.
114053 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114055         * MODULES.html.sh (Support for building libraries and executables):
114056         Add elisp-comp.
114057         * build-aux/elisp-comp: New file.
114058         * modules/elisp-comp: New file.
114060 2006-08-24  Bruno Haible  <bruno@clisp.org>
114062         * gnulib-tool (func_create_testdir): Use non-default values of
114063         sourcebase and m4base.
114065 2006-08-24  Bruno Haible  <bruno@clisp.org>
114067         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114068         HTML structure.
114070 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114072         * modules/openat (Depends-on): Add lchown.
114074 2006-08-23  Bruno Haible  <bruno@clisp.org>
114076         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114077         of gl_LOCK_EARLY instead of gl_LOCK.
114079 2006-08-23  Bruno Haible  <bruno@clisp.org>
114081         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114082         on OSF/1 to no.
114083         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114085 2006-08-23  Bruno Haible  <bruno@clisp.org>
114087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114088         as unusable.
114090         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114091         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114092         (gl_LOCK): New macro.
114094 2006-08-22  Simon Josefsson  <jas@extundo.com>
114096         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114097         to md5 module.
114099 2006-08-22  Simon Josefsson  <jas@extundo.com>
114101         * MODULES.html.sh: Add "Support for maintaining and release
114102         projects".
114104         * build-aux/gnupload: New file, from coreutils.
114106 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114108         Avoid the need for AC_LIBSOURCES in m4 macros.
114109         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114110         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114111         * modules/check-version (EXTRA_DIST): Add check-version.h.
114112         * modules/crc (EXTRA_DIST): Add crc.h.
114113         * modules/des (EXTRA_DIST): Add des.h.
114114         * modules/gc (EXTRA_DIST): Add gc.h.
114115         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114116         * modules/getline (EXTRA_DIST): Add getline.h.
114117         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114118         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114119         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114120         * modules/md2 (EXTRA_DIST): Add md2.h.
114121         * modules/md4 (EXTRA_DIST): Add md4.h.
114122         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114123         * modules/read-file (EXTRA_DIST): Add read-file.h.
114124         * modules/readline (EXTRA_DIST): Add readline.h.
114125         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114126         rijndael-api-fst.h.
114128 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114130         * m4/rijndael.m4 (gl_ARCFOUR):
114131         * m4/arctwo.m4 (gl_ARCTWO):
114132         * m4/check-version.m4 (gl_CHECK_VERSION):
114133         * m4/crc.m4 (gl_CRC):
114134         * m4/des.m4 (gl_DES):
114135         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114136         * m4/gc.m4 (gl_GC):
114137         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114138         * m4/getline.m4 (gl_FUNC_GETLINE):
114139         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114140         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114141         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114142         * m4/md2.m4 (gl_MD2):
114143         * m4/md4.m4 (gl_MD4):
114144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114145         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114146         * m4/readline.m4 (gl_FUNC_READLINE):
114147         * m4/rijndael.m4 (gl_RIJNDAEL):
114148         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114149         to get the necessary .h files and whatnot.
114151 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114153         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114154         gnulib rather than the other way around.
114155         * config/srclistvars.sh (COREUTILS): Remove.
114157 2006-08-22  Jim Meyering  <jim@meyering.net>
114159         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114161         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114163 2006-08-22  Eric Blake  <ebb9@byu.net>
114165         * modules/regexprops-generic: New file.
114166         * MODULES.html.sh (Support for building documentation): List it.
114168 2006-08-22  Eric Blake  <ebb9@byu.net>
114170         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114171         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114172         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114173         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114175 2006-08-22  Bruno Haible  <bruno@clisp.org>
114177         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114178         and lib_LTLIBRARIES like the other lib_* variables.
114180 2006-08-22  Bruno Haible  <bruno@clisp.org>
114182         * build-aux/x-to-1.in: New file, from GNU gettext.
114184 2006-08-22  Bruno Haible  <bruno@clisp.org>
114186         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114187         <utmpx.h> exists.
114189 2006-08-22  Bruno Haible  <bruno@clisp.org>
114191         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114192         <utmpx.h> exists.
114194 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114196         BeOS portability.
114197         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114198         exist.
114199         Problem reported by Bruno Haible.
114201 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114203         Avoid the need for AC_LIBSOURCES in m4 macros.
114204         * modules/acl (EXTRA_DIST): Add acl.h.
114205         * modules/argmatch (Files): Add m4/argmatch.m4.
114206         (configure.ac): Add gl_ARGMATCH.
114207         (EXTRA_DIST): Renamed from lib_SOURCES, for
114208         consistency with the other modules.  Remove argmatch.c.
114209         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114210         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114211         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114212         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114213         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114214         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114215         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114216         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114217         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114218         * modules/closeout (EXTRA_DIST): Add closeout.h.
114219         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114220         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114221         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114222         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114223         dirname.h; remove basename.c and stripslash.c.
114224         * modules/exclude (EXTRA_DIST): Add exclude.h.
114225         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114226         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114227         * modules/file-type (EXTRA_DIST): Add file-type.h.
114228         * modules/filemode (EXTRA_DIST): Add filemode.h.
114229         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114230         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114231         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114232         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114233         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114234         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114235         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114236         * modules/getdate (EXTRA_DIST): Add getdate.c.
114237         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114238         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114239         * modules/getpass (EXTRA_DIST): Add getpass.h.
114240         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114241         * modules/group-member (EXTRA_DIST): Add group-member.h.
114242         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114243         * modules/hash (EXTRA_DIST): Add hash.h.
114244         * modules/human (EXTRA_DIST): Add human.h.
114245         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114246         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114247         * modules/lchown (EXTRA_DIST): Add lchown.h.
114248         * modules/long-options (EXTRA_DIST): Add long-options.h.
114249         * modules/lstat (EXTRA_DIST): Add lstat.h.
114250         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114251         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114252         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114253         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114254         * modules/memxor (EXTRA_DIST): Add memxor.h.
114255         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114256         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114257         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114258         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114259         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114260         * modules/physmem (EXTRA_DIST): Add physmem.h.
114261         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114262         * modules/posixver (EXTRA_DIST): Add posixver.h.
114263         * modules/quote (EXTRA_DIST): Add quote.h.
114264         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114265         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114266         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114267         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114268         regex_internal.h regexec.c.
114269         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114270         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114271         * modules/same (EXTRA_DIST): Add same.h.
114272         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114273         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114274         * modules/savedir (EXTRA_DIST): Add savedir.h.
114275         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114276         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114277         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114278         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114279         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114280         * modules/strdup (EXTRA_DIST): Add strdup.h.
114281         * modules/strftime (EXTRA_DIST): Add strftime.h.
114282         * modules/strndup (EXTRA_DIST): Add strndup.h.
114283         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114284         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114285         * modules/time_r (EXTRA_DIST): Add time_r.h.
114286         * modules/timespec (EXTRA_DIST): Add timespec.h.
114287         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114288         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114289         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114290         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114291         * modules/userspec (EXTRA_DIST): Add userspec.h.
114292         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114293         * modules/utimens (EXTRA_DIST): Add utimens.h.
114294         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114295         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114296         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114297         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114298         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114299         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114300         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114301         * modules/yesno (EXTRA_DIST): Add yesno.h.
114303 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114305         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114307         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114308         * m4/dev-ino.m4, same-inode.m4: Remove.
114310         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114311         * m4/acl.m4 (AC_FUNC_ACL):
114312         * m4/backupfile.m4 (gl_BACKUPFILE):
114313         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114314         * m4/canon-host.m4 (gl_CANON_HOST):
114315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114316         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114317         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114318         * m4/cloexec.m4 (gl_CLOEXEC):
114319         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114320         * m4/closeout.m4 (gl_CLOSEOUT):
114321         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114322         * m4/dirname.m4 (gl_DIRNAME):
114323         * m4/exclude.m4 (gl_EXCLUDE):
114324         * m4/exitfail.m4 (gl_EXITFAIL):
114325         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114326         * m4/file-type.m4 (gl_FILE_TYPE):
114327         * m4/filemode.m4 (gl_FILEMODE):
114328         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114329         * m4/fpending.m4 (gl_FUNC_FPENDING):
114330         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114331         * m4/fts.m4 (gl_FUNC_FTS):
114332         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114333         * m4/getdate.m4 (gl_GETDATE):
114334         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114335         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114336         * m4/getpass.m4 (gl_FUNC_GETPASS):
114337         * m4/gettime.m4 (gl_GETTIME):
114338         * m4/getugroups.m4 (gl_GETUGROUPS):
114339         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114340         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114341         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114342         * m4/hash.m4 (gl_HASH):
114343         * m4/idcache.m4 (gl_IDCACHE):
114344         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114345         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114346         * m4/long-options.m4 (gl_LONG_OPTIONS):
114347         * m4/lstat.m4 (gl_FUNC_LSTAT):
114348         * m4/md5.m4 (gl_MD5):
114349         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114350         * m4/memcoll.m4 (gl_MEMCOLL):
114351         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114352         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114353         * m4/memxor.m4 (gl_MEMXOR):
114354         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114355         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114356         * m4/modechange.m4 (gl_MODECHANGE):
114357         * m4/mountlist.m4 (gl_MOUNTLIST):
114358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114359         * m4/openat.m4 (gl_FUNC_OPENAT):
114360         * m4/pathmax.m4 (gl_PATHMAX):
114361         * m4/physmem.m4 (gl_PHYSMEM):
114362         * m4/posixtm.m4 (gl_POSIXTM):
114363         * m4/posixver.m4 (gl_POSIXVER):
114364         * m4/quote.m4 (gl_QUOTE):
114365         * m4/quotearg.m4 (gl_QUOTEARG):
114366         * m4/readtokens.m4 (gl_READTOKENS):
114367         * m4/readutmp.m4 (gl_READUTMP):
114368         * m4/regex.m4 (gl_REGEX):
114369         * m4/safe-read.m4 (gl_SAFE_READ):
114370         * m4/safe-write.m4 (gl_SAFE_WRITE):
114371         * m4/same.m4 (gl_SAME):
114372         * m4/save-cwd.m4 (gl_SAVE_CWD):
114373         * m4/savedir.m4 (gl_SAVEDIR):
114374         * m4/settime.m4 (gl_SETTIME):
114375         * m4/sha1.m4 (gl_SHA1):
114376         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114377         * m4/stat-macros.m4 (gl_STAT_MACROS):
114378         * m4/stat-time.m4 (gl_STAT_TIME):
114379         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114380         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114381         * m4/strdup.m4 (gl_FUNC_STRDUP):
114382         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114383         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114384         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114385         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114386         * m4/time_r.m4 (gl_TIME_R):
114387         * m4/timespec.m4 (gl_TIMESPEC):
114388         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114389         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114390         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114391         * m4/userspec.m4 (gl_USERSPEC):
114392         * m4/utimecmp.m4 (gl_UTIMECMP):
114393         * m4/utimens.m4 (gl_UTIMENS):
114394         * m4/xalloc.m4 (gl_XALLOC):
114395         * m4/xgetcwd.m4 (gl_XGETCWD):
114396         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114397         * m4/xreadlink.m4 (gl_XREADLINK):
114398         * m4/xstrtod.m4 (gl_XSTRTOD):
114399         * m4/yesno.m4 (gl_YESNO):
114400         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114401         to get the necessary .h files and whatnot.
114403 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114404             Bruno Haible  <bruno@clisp.org>
114406         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114407         /bin/sh understanding of '!' conditional negation.
114409 2006-08-21  Jim Meyering  <jim@meyering.net>
114411         * modules/openat (Depends-on): Really alphabetize.
114413         * modules/acl (Depends-on): Add error and quote.
114415         * check-module (find_included_lib_files): Add at-func.c to the
114416         ok-to-include-more-than-once white list.
114418         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114420 2006-08-21  Bruno Haible  <bruno@clisp.org>
114422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114423         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114424         Reported by Martin Lambers <marlam@marlam.de>.
114426 2006-08-21  Bruno Haible  <bruno@clisp.org>
114428         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114429         specify an installation location, don't emit a noinst_LIBRARIES or
114430         noinst_LTLIBRARIES assignment.
114432 2006-08-21  Bruno Haible  <bruno@clisp.org>
114434         BeOS portability.
114435         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114436         BeOS has mbrtowc() but no <wctype.h>.
114438 2006-08-21  Bruno Haible  <bruno@clisp.org>
114440         BeOS portability.
114441         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114442         exist.
114444 2006-08-21  Bruno Haible  <bruno@clisp.org>
114446         BeOS portability.
114447         * lib/mbchar.h: Include <wctype.h> only if it exists.
114449 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114451         Remove files that are no longer needed by their respective modules.
114452         * m4/obstack.m4: Remove.
114453         * m4/strerror_r.m4: Remove.
114454         * m4/uint32_t.m4: Remove.
114455         * m4/uintptr_t.m4: Remove.
114456         * m4/ullong_max.m4: Remove.
114457         * m4/xstrtoimax.m4: Remove.
114458         * m4/xstrtoumax.m4: Remove.
114460         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114461         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114462         dependencies now capture this.
114464         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114465         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114466         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114467         * m4/human.m4 (gl_HUMAN): Likewise.
114468         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114469         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114471         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114473         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114474         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114475         stdint.
114476         * m4/human.m4 (gl_HUMAN): Likewise.
114477         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114478         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114479         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114480         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114481         * m4/xstrtol (gl_XSTRTOL): Likewise.
114483         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114484         AC_TYPE_LONG_LONG_INT.
114485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114486         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114487         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114488         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114490         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114491         on stdbool.
114493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114494         (gl_PREREQ_XSTRTOUL): Remove.
114496         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114498         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114499         mode.
114501 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114503         Add and change modules to make it easier for coreutils to use
114504         gnulib-tool.
114505         * modules/backupfile (Files): Remove m4/d-ino.m4.
114506         (Depends-on): Add d-ino.
114507         * modules/cycle-check (Depends-on): Add stdint.
114508         (lib_SOURCES): Add cycle-check.h.
114509         * modules/d-ino: New module.
114510         * modules/d-type: New module.
114511         * modules/error (Files): Remove m4/strerror_r.m4.
114512         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114513         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114514         m4/inttypes_h.m4, m4/uintmax_t.m4.
114515         (Depends-on): Add stdint.
114516         (lib_SOURCES): Add fsusage.h.
114517         * modules/getcwd (Files): Remove d-ino.m4.
114518         (Depends-on): Add d-ino.
114519         * modules/getndelim2 (Depends-on): Add stdint.
114520         * modules/glob (Files): Remove m4/d-type.m4.
114521         (Depends-on): Add d-type.
114522         * modules/host-os: New module.
114523         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114524         m4/inttypes_h.m4, m4/uintmax_t.m4.
114525         * Depends-on: Add stdint.
114526         (lib_SOURCES): Add human.h.
114527         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114528         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114529         m4/uintmax_t.m4, m4/ulonglong.m4.
114530         (Depends-on): Add stdint.
114531         (EXTRA_DIST): Add inttostr.h.
114532         * modules/lchmod: New module.
114533         * modules/link-follow: New module.
114534         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114535         (Depends-on): Add lchmod.
114536         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114537         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114538         (Depends-on): Add stdint.
114539         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114540         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114541         (Depends-on): Add stdint.
114542         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114543         * modules/perl: New module.
114544         * modules/regex (Depends-on): Add stdint.
114545         * modules/rmdir-errno: New module.
114546         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114547         m4/intmax_t.m4.
114548         (Depends-on): Add stdint.
114549         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114550         m4/uintmax_t.m4.
114551         (Depends-on): Add stdint.
114552         * modules/unlink-busy: New module.
114553         * modules/utimecmp (Depends-on): Add stdint.
114554         * modules/uptime: New module.
114555         * modules/winsz-ioctl: New module.
114556         * modules/winsz-termios: New module.
114557         * modules/xnanosleep (Depends-on): Add nanosleep.
114558         * modules/ullong_max: Remove.
114559         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114560         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114561         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114562         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114563         (Depends-on): Add inttypes.
114564         (lib_SOURCES): Add xstrtol.h.
114565         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114566         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114567         * MODULES.html.sh: Move 'assert' into the assert section.
114568         Move 'dummy' into the linking section.
114569         Remove ullong_max.
114570         Add section for compatibility checks for POSIX:2001 functions,
114571         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114572         winsz-ioctl, and winsz-termios into it.
114573         Add lchmod.
114574         Add top-level Misc section and put host-os, perl, and uptime
114575         into it.
114577 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114579         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114580         now assume the stdint module.  Do not include inttypes.h.
114581         * lib/fsusage.h: Likewise.
114582         * lib/getndelim2.c: Likewise.
114583         * lib/human.h: Likewise.
114584         * lib/inttostr.h: Likewise.
114585         * lib/obstack.c: Likewise.
114586         * lib/regex_internal.h: Likewise.
114587         * lib/tempname.c: Likewise.
114588         * lib/utimecmp.c: Likewise.
114589         * lib/xstrtol.h: Likewise.
114591         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114593         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114594         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114595         * lib/xtime.h: Likewise.
114597 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114599         * modules/openat (Files): Add lib/fchmodat.c.
114600         Fixes problem reported by Jay Youngman.
114602 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114604         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114605         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114607 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114608             Bruno Haible  <bruno@clisp.org>
114610         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114611         and is a script that invokes bison. Tighten the code. Add comments.
114613 2006-08-18  Jim Meyering  <jim@meyering.net>
114615         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114616         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114617         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114618         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114620 2006-08-18  Bruno Haible  <bruno@clisp.org>
114622         * modules/bison-i18n: New file.
114623         * MODULES.html.sh (Internationalization functions): Add it.
114625 2006-08-18  Bruno Haible  <bruno@clisp.org>
114627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114628         sys/statvfs.h. When getmntinfo was found, check its declaration and
114629         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114631 2006-08-18  Bruno Haible  <bruno@clisp.org>
114633         * m4/bison-i18n.m4: New file, from bison.
114635 2006-08-18  Bruno Haible  <bruno@clisp.org>
114637         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114638         (ME_DUMMY): Treat "kernfs" as a dummy.
114639         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114641 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114643         Update from coreutils.
114645         2006-08-15  Jim Meyering  <jim@meyering.net>
114647         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114649         2006-01-17  Jim Meyering  <jim@meyering.net>
114651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114653         2006-01-11  Jim Meyering  <jim@meyering.net>
114655         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114656         Check for the lchmod function.
114658 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114660         Update from coreutils.
114662         * lib/__fpending.h: Add copyright notice.
114663         * lib/fprintftime.h: Likewise.
114664         * lib/savedir.c: Use (C) in copyright notice.
114665         * lib/savedir.h: Likewise.
114667         2006-08-15  Jim Meyering  <jim@meyering.net>
114669         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114670         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114671         in support of the EXPECTED_ERRNO macro.
114672         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114673         definitions.  Instead, define the appropriate symbols and include
114674         "at-func.c".
114675         * lib/mkdirat.c (mkdirat): Likewise.
114676         * lib/fchmodat.c (fchmodat): Likewise.
114677         (ENOSYS): Remove definition.
114678         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114679         it.  Don't include "unistd--.h" -- it wasn't ever used.
114681         2006-01-17  Jim Meyering  <jim@meyering.net>
114683         Rewrite fts.c not to change the current working directory,
114684         by using openat, fstatat, fdopendir, etc..
114686         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114687         (HAVE_OPENAT_SUPPORT): Define.
114688         [_LIBC] (fchdir): Don't undef or define; no longer used.
114689         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114690         Now, this `function' always succeeds, and consumes its file descriptor
114691         parameter -- so callers must not close such FDs.  Update callers.
114692         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114693         (diropen): Add parameter, SP.  Adjust all callers.
114694         Implement using diropen_fd, rather than open.
114695         (fts_open): Initialize new member, fts_cwd_fd.
114696         Remove fts_rft-setting code.
114697         (fts_close): Close fts_cwd_fd, if necessary.
114698         (__opendir2): Define in terms of opendir or opendirat,
114699         depending on whether the FST_NOCHDIR flag is set.
114700         (fts_build): Since fts_safe_changedir consumes its FD, and since
114701         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114702         and close the dup'd file descriptor upon failure.
114703         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114704         (fts_safe_changedir): Tweak semantics to reflect that this function
114705         now calls cwd_advance_fd and hence consumes its FD argument.
114706         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114707         [struct FTS] (fts_rft): Remove now-unused member.
114708         [struct FTS] (fts_cycle.state): Improve comment.
114710         * lib/openat.c (openat_needs_fchdir): New function.
114711         * lib/openat.h (openat_needs_fchdir): Declare it.
114713 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114715         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114716         Problem and fix reported by Pádraig Brady in
114717         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114719 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114721         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114723 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114725         * lib/memcoll.c (memcoll): Optimize for the common case where the
114726         arguments are bytewise equal.
114728 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114730         * doc/regexprops-generic.texi: Add a copyright notice.
114732 2006-08-15  Bruno Haible  <bruno@clisp.org>
114734         * modules/tmpdir (License): Change to LGPL.
114736 2006-08-15  Bruno Haible  <bruno@clisp.org>
114738         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114739         module.
114741 2006-08-14  Simon Josefsson  <jas@extundo.com>
114743         * config/srclist.txt: Add gnupload.
114745 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114747         Change copyright notice from LGPL 2 to GPL 2, since that's the
114748         standard form used in the gnulib repository.
114749         * tests/test-lock.c: Likewise.
114750         * tests/test-stdint.c: Likewise.
114751         * tests/test-tls.c: Likewise.
114753         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114754         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114755         Add copyright notice.
114757         * check-module: Add copyright notice.  Output a copyright
114758         notice if "--version" is specified.
114759         * modules/COPYING: New file.
114760         * tests/test-getaddrinfo.c: Add copyright notice.
114761         * tests/test-verify.c: Likewise.
114763 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114765         Change copyright notice from LGPL 2 to GPL 2, since that's the
114766         standard form used in the gnulib repository.
114767         * lib/lock.c: LGPL -> GPL.
114768         * lib/lock.h: Likewise.
114769         * lib/strnlen1.c: Likewise.
114770         * lib/strnlen1.h: Likewise.
114771         * lib/tls.c: Likewise.
114772         * lib/tls.h: Likewise.
114773         * lib/tmpdir.c: Likewise.
114775         * lib/TODO: Remove; this belongs only in coreutils.
114777 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114779         Add copyright notices to long-enough files that lack them, since
114780         otherwise the files aren't clearly free.  Use the same notice that
114781         getdate.texi already uses.
114782         * doc/alloca-opt.texi: Add copyright notice.
114783         * doc/alloca.texi: Likewise.
114784         * doc/ctime.texi: Likewise.
114785         * doc/functions.texi: Likewise.
114786         * doc/gcd.texi: Likewise.
114787         * doc/gnulib-tool.texi: Likewise.
114788         * doc/inet_ntoa.texi: Likewise.
114789         * doc/visibility.texi: Likewise.
114791         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114792         * doc/quote.texi: Add copyright notice.
114794         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114795         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114796         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114797         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114798         is now obsolete, and give a pointer to the Sun list.
114799         Add copyright notice.
114801 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114803         * config/srclistvars.sh: Add copyright notice.
114805 2006-08-14  Eric Blake  <ebb9@byu.net>
114807         Import the following change from libc:
114809         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114811         Upstream bug 2997.
114812         * lib/misc/error.c: Add space between program name and message if file
114813         name is missing.
114815 2006-08-12  Karl Berry  <karl@gnu.org>
114817         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114818         remove, these originate in gnulib now.
114820 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114822         * doc/Makefile (standards.info standards.html standards.dvi):
114823         Also depend on make-stds.texi.
114825 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114827         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114828         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114830         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114831         in wchar_t.  Problem reported by Eric Blake.
114833         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114834         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114835         Also, help the compiler to keep LEN in a register.
114837 2006-08-11  Eric Blake  <ebb9@byu.net>
114839         * users.txt: Sort.  Add tar.
114841 2006-08-11  Bruno Haible  <bruno@clisp.org>
114843         * users.txt: New file.
114845 2006-08-11  Bruno Haible  <bruno@clisp.org>
114847         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114848         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114850 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114852         * modules/snprintf (Depends-on): Remove minmax.
114853         (Maintainer): Add self and Bruno.
114855 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114857         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114858         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114859         (EOVERFLOW): Define if the system does not.
114860         Do not include "minmax.h"; it wasn't used.
114861         (snprintf): Don't assume size_t promotes to an unsigned type.
114862         Fix bug when generated string was too long for the buffer: the
114863         buffer's contents are supposed to be the initial prefix of the
114864         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114865         exceeds INT_MAX; do the check ourselves.
114867         Import the following changes from libc:
114869         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114871         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114872         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114873         set wc to the byte which couldn't be converted.
114874         (re_string_reconstruct): Don't clear valid_raw_len before calling
114875         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114876         tip_context using re_string_context_at.
114878         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114880         * lib/posix/regex.h: g++ still cannot handled [restrict].
114882         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114884         * lib/posix/regex.h: Remove special handling for VMS.
114886 2006-08-10  Jim Meyering  <jim@meyering.net>
114888         * modules/same-inode: New module.
114889         * modules/dev-ino: New module.
114890         * modules/cycle-check: Depend on these modules, rather than simply
114891         including their .h files.
114892         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114893         required via m4/cycle-check.m4.
114894         * modules/same: Depend on new same-inode module, rather than
114895         including same-inode.h.
114896         * modules/chdir-safer: New file.
114898         * modules/chown (Depends-on): Add stat-macros.
114900 2006-08-10  Jim Meyering  <jim@meyering.net>
114902         * m4/cycle-check.m4: New file.
114903         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114904         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114906 2006-08-10  Eric Blake  <ebb9@byu.net>
114908         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114909         in from original proposal.
114911 2006-08-10  Eric Blake  <ebb9@byu.net>
114912         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114914         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114915         namespace.
114917 2006-08-10  Bruno Haible  <bruno@clisp.org>
114919         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114920         as well.
114922 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114924         Sync from coreutils.
114926         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114928         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114929         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114931 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114933         * modules/restrict: Remove; no longer needed now that we assume
114934         Autoconf 2.59 or later.
114935         * MODULES.html.sh: Remove 'restrict'.
114936         * modules/argp (Depends-on): Remove 'restrict'.
114937         * modules/base64 (Depends-on): Likewise.
114938         * modules/gc (Depends-on): Likewise.
114939         * modules/getaddrinfo (Depends-on): Likewise.
114940         * modules/glob (Depends-on): Likewise.
114941         * modules/inet_ntop (Depends-on): Likewise.
114942         * modules/inet_pton (Depends-on): Likewise.
114943         * modules/memxor (Depends-on): Likewise.
114944         * modules/regex (Depends-on): Likewise.
114945         * modules/strtok_r (Depends-on): Likewise.
114946         * modules/time_r (Depends-on): Likewise.
114948 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114950         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114951         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114952         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114953         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114954         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114955         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114956         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114957         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114959         Merge from coreutils.
114960         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114961         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114962         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114963         * m4/time_r.m4 (gl_TIME_R): Likewise.
114965 2006-08-09  Karl Berry  <karl@gnu.org>
114967         * config/srclist.txt: no more gettext-tools, per Bruno.
114969 2006-08-08  Eric Blake  <ebb9@byu.net>
114971         * modules/verror: New module.
114972         * MODULES.html.sh: Document it.
114974 2006-08-08  Eric Blake  <ebb9@byu.net>
114976         * lib/verror.h, lib/verror.c: New files.
114978 2006-08-08  Eric Blake  <ebb9@byu.net>
114980         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114981         verror_at_line output complies with GNU Coding Standards even when
114982         file is NULL.
114984 2006-08-07  Bruno Haible  <bruno@clisp.org>
114986         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114987         versions of AIX.
114988         Reported by Ralf Wildenhues.
114990 2006-08-07  Bruno Haible  <bruno@clisp.org>
114992         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114993         in an AC_DEFUN. Needed so that the autoconf snippets can use
114994         AC_REQUIRE.
114996 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114998         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114999         Initialize pkgdata_DATA.
115000         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115001         overriding it.
115003 2006-08-06  Eric Blake  <ebb9@byu.net>
115005         * lib/error.h: Fold in some upstream changes from glibc.
115006         * lib/error.c: Likewise.
115008 2006-08-04  Bruno Haible  <bruno@clisp.org>
115010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115011         Make the mostlyclean-local rule depend on mostlyclean-generic.
115012         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115014 2006-07-31  Bruno Haible  <bruno@clisp.org>
115016         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115017         <stdlib.h>, <string.h>.
115019 2006-07-30  Bruno Haible  <bruno@clisp.org>
115021         * modules/readlink (License): Change to LGPL.
115023 2006-07-30  Bruno Haible  <bruno@clisp.org>
115025         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115026         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115027         set PKGDATADIR to point to it.
115029 2006-07-30  Bruno Haible  <bruno@clisp.org>
115031         * modules/csharpexec (configure.ac): Comment out macro invocation.
115032         * modules/javaexec (configure.ac): Likewise.
115033         * modules/javacomp-script (configure.ac): Likewise.
115035         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115037 2006-07-30  Bruno Haible  <bruno@clisp.org>
115039         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115040         linked-list.
115042 2006-07-30  Bruno Haible  <bruno@clisp.org>
115044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115046 2006-07-30  Bruno Haible  <bruno@clisp.org>
115048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115049         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115050         get removed.
115052 2006-07-29  Bruno Haible  <bruno@clisp.org>
115054         Make it possible for gnulib-tool to work with locally modified or
115055         augmented gnulib repositories.
115056         * gnulib-tool (func_usage): Document --local-dir option.
115057         (local_gnulib_dir): New variable.
115058         Handle --local-dir option.
115059         (func_lookup_file): New function.
115060         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115061         (func_get_description, func_get_filelist, func_get_description,
115062         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115063         func_get_automake_snippet, func_get_include_directive,
115064         func_get_license, func_get_maintainer): Use func_lookup_file.
115065         (func_import, func_create_testdir): Use func_lookup_file.
115067 2006-07-29  Bruno Haible  <bruno@clisp.org>
115069         * modules/setenv (Depends-on): Add unistd.
115071 2006-07-29  Bruno Haible  <bruno@clisp.org>
115073         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115075 2006-07-29  Bruno Haible  <bruno@clisp.org>
115077         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115079 2006-07-29  Bruno Haible  <bruno@clisp.org>
115081         * gnulib-tool (import, update): If there is no Makefile.am, look at
115082         aclocal.m4, instead of bailing out.
115084 2006-07-29  Bruno Haible  <bruno@clisp.org>
115086         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115087         Categorize the options by when they are useful.
115089 2006-07-29  Bruno Haible  <bruno@clisp.org>
115091         * gnulib-tool (func_usage): Document option --no-libtool.
115092         Handle option --no-libtool.
115093         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115094         for changed semantics of $libtool variable.
115095         (func_import): Likewise. If libtool is not used, show this through
115096         an option --no-libtool.
115097         (func_create_testdir): Update.
115099 2006-07-29  Bruno Haible  <bruno@clisp.org>
115101         * gnulib-tool (func_import): Extend error message about missing
115102         --doc-base.
115104 2006-07-29  Bruno Haible  <bruno@clisp.org>
115106         * gnulib-tool (func_import): Don't create the $docbase directory if
115107         there is no file to store there.
115109 2006-07-29  Bruno Haible  <bruno@clisp.org>
115111         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115112         relevant, look for configure.ac there, not in the current directory.
115113         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115115 2006-07-29  Bruno Haible  <bruno@clisp.org>
115117         * gnulib-tool (SORT): New variable.
115118         (func_usage): Undocument --assume-autoconf option.
115119         Remove --assume-autoconf option handling.
115120         (autoconf_minversion): Determine from the contents of configure.ac.
115121         (func_import): Remove autoconf_minversion handling.
115122         Suggested by Eric Blake.
115124 2006-07-29  Bruno Haible  <bruno@clisp.org>
115126         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115128 2006-07-29  Bruno Haible  <bruno@clisp.org>
115130         * config/srclist.txt (*setenv.[ch]): Remove rules.
115132 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115134         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115136 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115138         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115139         arpa/inet.h.
115141 2006-07-28  Simon Josefsson  <jas@extundo.com>
115143         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115144         * modules/inet_pton (Depends-on): Likewise.
115146 2006-07-28  Simon Josefsson  <jas@extundo.com>
115148         * m4/netinet_in_h.m4: New file.
115150 2006-07-28  Simon Josefsson  <jas@extundo.com>
115152         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115153         #include's.
115155 2006-07-28  Simon Josefsson  <jas@extundo.com>
115157         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115158         #include's.
115160 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115162         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115163         setgid on directories only if they set these bits.
115164         * lib/modechange.h: Remove obsolete comment about masks.
115166 2006-07-28  Eric Blake  <ebb9@byu.net>
115168         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115169         macro expansion.
115171 2006-07-28  Bruno Haible  <bruno@clisp.org>
115173         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115175 2006-07-28  Bruno Haible  <bruno@clisp.org>
115177         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115179 2006-07-28  Bruno Haible  <bruno@clisp.org>
115181         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115182         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115183         Define fallbacks.
115184         Avoids link error on FreeBSD 4.x.
115185         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115187         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115188         encoding.
115189         * lib/mbswidth.c (iswcntrl): Likewise.
115191 2006-07-27  Bruno Haible  <bruno@clisp.org>
115193         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115194         test.
115196 2006-07-27  Bruno Haible  <bruno@clisp.org>
115198         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115199         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115200         defined.
115202 2006-07-26  Eric Blake  <ebb9@byu.net>
115204         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115206 2006-07-26  Eric Blake  <ebb9@byu.net>
115208         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115209         like mingw that lack mkstemp.
115210         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115211         avoid compilation warning on mingw.
115213 2006-07-26  Bruno Haible  <bruno@clisp.org>
115215         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115216         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115217         INT_FAST*_MIN, INTPTR_MIN.
115219 2006-07-25  Bruno Haible  <bruno@clisp.org>
115221         * modules/version-etc (Depends-on): Add stdarg.
115223 2006-07-25  Bruno Haible  <bruno@clisp.org>
115225         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115226         complex commands.
115228 2006-07-25  Bruno Haible  <bruno@clisp.org>
115230         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115231         defined in <stdarg.h> or config.h.
115233 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115235         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115236         (gl_STDIO_SAFER): Remove.
115238 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115240         * MODULES.html.sh (File stream based Input/Output):
115241         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115242         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115243         * modules/fopen-safer, modules/tmpfile-safer: New files.
115244         * modules/stdio-safer: Remove.
115246 2006-07-24  Bruno Haible  <bruno@clisp.org>
115248         * modules/tmpdir: New file.
115249         * MODULES.html.sh (File system functions): Add it.
115251 2006-07-24  Bruno Haible  <bruno@clisp.org>
115253         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115254         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115256 2006-07-24  Bruno Haible  <bruno@clisp.org>
115258         * modules/clean-temp: New file.
115260 2006-07-24  Bruno Haible  <bruno@clisp.org>
115262         * m4/tmpdir.m4: New file, from GNU gettext.
115264 2006-07-24  Bruno Haible  <bruno@clisp.org>
115266         * lib/tmpdir.h: New file, from GNU gettext.
115267         * lib/tmpdir.c: New file, from GNU gettext.
115269 2006-07-24  Bruno Haible  <bruno@clisp.org>
115271         * lib/clean-temp.h: New file, from GNU gettext.
115272         * lib/clean-temp.c: New file, from GNU gettext.
115274 2006-07-23  Eric Blake  <ebb9@byu.net>
115276         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115277         (Depends-on): Add binary-io.
115279 2006-07-23  Eric Blake  <ebb9@byu.net>
115281         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115283 2006-07-23  Eric Blake  <ebb9@byu.net>
115285         * lib/tmpfile-safer.c: New file.
115286         * lib/stdio-safer.h (fopen_safer): Add prototype.
115287         * lib/stdio--.h (tmpfile): Make safer.
115289 2006-07-23  Bruno Haible  <bruno@clisp.org>
115291         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115292         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115293         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115294         gl_linked_remove_at): Use it.
115296 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115297         and Simon Josefsson <jas@extundo.com>
115299         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115301         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115303 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115305         * modules/close-stream: New file.
115306         * modules/closeout (Description): Make it clear that it exits
115307         with a diagnostic on error.
115308         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115309         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115311 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115313         * m4/close-stream.m4: New file.
115315 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115317         * lib/close-stream.c, lib/close-stream.h: New files.
115319 2006-07-22  Bruno Haible  <bruno@clisp.org>
115321         Merge from GNU gettext 0.15.
115323         2006-05-01  Bruno Haible  <bruno@clisp.org>
115325                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115327         2006-07-22  Bruno Haible  <bruno@clisp.org>
115329                 * modules/javaversion: New file.
115330                 * MODULES.html.sh (Java): Add javaversion.
115332         2006-03-12  Bruno Haible  <bruno@clisp.org>
115334                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115336         2005-12-04  Bruno Haible  <bruno@clisp.org>
115338                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115339                 (untested).
115341         2006-06-21  Bruno Haible  <bruno@clisp.org>
115343                 Avoid warnings from recent versions of mcs.
115344                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115345                 -o, -L, -r any more. Use options documented since mcs-1.0
115346                 instead. Similarly for -g.
115348         2005-12-04  Bruno Haible  <bruno@clisp.org>
115350                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115351                 .resources, not .resource.
115353         2005-07-09  Bruno Haible  <bruno@clisp.org>
115355                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115356                 add a .dll suffix.
115357                 Reported by Mark Junker <mjscod@gmx.de>.
115359         2006-07-22  Bruno Haible  <bruno@clisp.org>
115361                 * modules/gettext: Upgrade to gettext-0.15.
115362                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115363                 m4/visibility.m4.
115364                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115366 2006-07-22  Bruno Haible  <bruno@clisp.org>
115368         Merge from GNU gettext 0.15.
115370         2006-03-25  Bruno Haible  <bruno@clisp.org>
115372                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115374         2006-07-21  Bruno Haible  <bruno@clisp.org>
115376                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115377                 "1.1".
115379         2006-05-09  Bruno Haible  <bruno@clisp.org>
115381                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115382                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115383                 for the conftestver execution.
115385         2006-05-01  Bruno Haible  <bruno@clisp.org>
115387                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115388                 optional target-version argument. Verify that the compiler
115389                 groks source of the specified source-version, or add -source
115390                 option as necessary. Verify that the compiler produces
115391                 bytecode in the specified target-version, or add -target and
115392                 -source options as necessary. Make the result of the test
115393                 available as variable CONF_JAVAC. Also log error output in
115394                 config.log.
115396         2006-03-11  Bruno Haible  <bruno@clisp.org>
115398                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115400         2006-05-09  Bruno Haible  <bruno@clisp.org>
115402                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115403                 CLASSPATH_SEPARATOR to a semicolon.
115405         2006-03-12  Bruno Haible  <bruno@clisp.org>
115407                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115408                 available as variable CONF_JAVA, for subsequent autoconf
115409                 tests. Also log error output in config.log.
115411         2006-07-19  Bruno Haible  <bruno@clisp.org>
115413                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115414                 that getline works on glibc2 systems. Needed to avoid trouble
115415                 in relocatable.c.
115416                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115418         2005-12-04  Bruno Haible  <bruno@clisp.org>
115420                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115421                 launcher (untested).
115423         2005-12-04  Bruno Haible  <bruno@clisp.org>
115425                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115427         2006-07-22  Bruno Haible  <bruno@clisp.org>
115429                 * gettext.m4: Update from GNU gettext-0.15.
115430                 * nls.m4: Likewise.
115431                 * po.m4: Likewise.
115432                 * inttypes-pri.m4: Likewise.
115433                 * inttypes-h.m4: Renamed from inttypes.m4.
115434                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115436 2006-07-22  Bruno Haible  <bruno@clisp.org>
115438         Merge from GNU gettext 0.15.
115440         2005-07-05  Bruno Haible  <bruno@clisp.org>
115442                 * printf-args.c (printf_fetchargs): Work around broken
115443                 definition of wint_t on mingw.
115445         2005-02-12  Bruno Haible  <bruno@clisp.org>
115447                 * xallocsa.h: Add extern "C" for C++.
115449         2006-05-17  Bruno Haible  <bruno@clisp.org>
115451                 Cygwin portability.
115452                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115454         2006-04-30  Bruno Haible  <bruno@clisp.org>
115456                 * progreloc.c: Include <mach-o/dyld.h> if available.
115457                 (find_executable): Use _NSGetExecutablePath when possible.
115459         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115461                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115462                 function.
115464         2005-12-29  Bruno Haible  <bruno@clisp.org>
115466                 * progreloc.c (set_program_name_and_installdir): Fix
115467                 compilation error.
115469         2005-12-04  Bruno Haible  <bruno@clisp.org>
115471                 Cygwin portability.
115472                 * progreloc.c: Include <windows.h> also on Cygwin.
115473                 (find_executable): Add support for Cygwin.
115474                 (set_program_name_and_installdir): Handle also platforms with
115475                 nonempty EXEEXT.
115477         2006-07-11  Bruno Haible  <bruno@clisp.org>
115479                 * javacomp.c: Fix a comment.
115480                 Reported by Jim Meyering.
115482         2006-04-30  Bruno Haible  <bruno@clisp.org>
115484                 * javacomp.h (compile_java_class): Add source_version,
115485                 target_version arguments.
115486                 * javacomp.c: Rewritten to choose only a compiler that
115487                 respects the specified source_version and target_version.
115489         2006-06-27  Bruno Haible  <bruno@clisp.org>
115491                 Assume correct S_ISDIR macro.
115492                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115494         2006-07-22  Bruno Haible  <bruno@clisp.org>
115496                 * javaversion.h: New file, from GNU gettext.
115497                 * javaversion.c: New file, from GNU gettext.
115498                 * javaversion.java: New file, from GNU gettext.
115499                 * javaversion.class: New file, from GNU gettext.
115501         2006-05-17  Bruno Haible  <bruno@clisp.org>
115503                 Cygwin portability.
115504                 * javaexec.c (execute_java_class): Test for jview program
115505                 also on Cygwin.
115507         2006-04-09  Bruno Haible  <bruno@clisp.org>
115509                 * fatal-signal.c: Don't include string.h.
115510                 (at_fatal_signal): Use a copying loop instead of memcpy.
115512         2005-12-04  Bruno Haible  <bruno@clisp.org>
115514                 * csharpexec.c: Add support for 'clix' launcher (untested).
115515                 (execute_csharp_using_sscli): New function.
115516                 (execute_csharp_program): Call it.
115518         2006-06-21  Bruno Haible  <bruno@clisp.org>
115520                 Avoid warnings from recent versions of mcs.
115521                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115522                 -o, -L, -r any more. Use options documented since mcs-1.0
115523                 instead. Similarly for -g.
115525         2005-07-09  Bruno Haible  <bruno@clisp.org>
115527                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115528                 add a .dll suffix.
115529                 Reported by Mark Junker <mjscod@gmx.de>.
115531         2006-06-17  Bruno Haible  <bruno@clisp.org>
115533                 * config.charset: Update for NetBSD 3.0.
115535         2006-05-17  Bruno Haible  <bruno@clisp.org>
115537                 Cygwin portability.
115538                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115540         2006-05-16  Bruno Haible  <bruno@clisp.org>
115542                 * localcharset.c [CYGWIN]: Include <windows.h>.
115543                 (get_charset_aliases): For Cygwin, return the same CPxxx
115544                 aliases list as under WIN32.
115545                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115546                 the environment variables. Fall back to GetACP().
115548         2006-04-05  Bruno Haible  <bruno@clisp.org>
115550                 * config.charset: Update Juan Manuel Guerrero's address.
115552         2005-02-12  Bruno Haible  <bruno@clisp.org>
115554                 * allocsa.h: Add extern "C" for C++.
115556         2005-02-10  Bruno Haible  <bruno@clisp.org>
115558                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115559                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115561         2006-07-22  Bruno Haible  <bruno@clisp.org>
115563                 * gettext.h: Update to GNU gettext-0.15.
115565 2006-07-22  Bruno Haible  <bruno@clisp.org>
115567         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115568         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115569         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115571 2006-07-21  Eric Blake  <ebb9@byu.net>
115573         * modules/stdlib-safer: New file.
115574         * MODULES.html.sh (File stream based Input/Output): Add
115575         stdlib-safer.
115577 2006-07-21  Eric Blake  <ebb9@byu.net>
115579         * lib/stdlib-safer.h: New file from coreutils, required by
115580         stdlib--.h.
115582 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115584         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115586 2006-07-20  Bruno Haible  <bruno@clisp.org>
115588         * gnulib-tool: Recognize new option --assume-autoconf.
115589         (autoconf_minversion): New variable.
115590         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115592 2006-07-20  Bruno Haible  <bruno@clisp.org>
115594         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115596 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115598         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115599         Reindent and repaginate.
115601 2006-07-19  Derek Price  <derek@ximbiot.com>
115603         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115604         Correct grammar.
115606 2006-07-17  Bruno Haible  <bruno@clisp.org>
115608         * modules/list: New file.
115609         * modules/array-list: New file.
115610         * modules/carray-list, modules/carray-list-tests: New files.
115611         * modules/linked-list, modules/linked-list-tests: New files.
115612         * modules/avltree-list, modules/avltree-list-tests: New files.
115613         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115614         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115615         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115616         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115617         * modules/oset: New file.
115618         * modules/array-oset: New file.
115619         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115620         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115621         * tests/test-carray_list.c: New file.
115622         * tests/test-linked_list.c: New file.
115623         * tests/test-avltree_list.c: New file.
115624         * tests/test-rbtree_list.c: New file.
115625         * tests/test-linkedhash_list.c: New file.
115626         * tests/test-avltreehash_list.c: New file.
115627         * tests/test-rbtreehash_list.c: New file.
115628         * tests/test-avltree_oset.c: New file.
115629         * tests/test-rbtree_oset.c: New file.
115630         * MODULES.html.sh (Container data structures): New section.
115632 2006-07-17  Bruno Haible  <bruno@clisp.org>
115634         * m4/gl_list.m4: New file.
115636 2006-07-17  Bruno Haible  <bruno@clisp.org>
115638         * lib/gl_list.h: New file.
115639         * lib/gl_list.c: New file.
115640         * lib/gl_array_list.h: New file.
115641         * lib/gl_array_list.c: New file.
115642         * lib/gl_carray_list.h: New file.
115643         * lib/gl_carray_list.c: New file.
115644         * lib/gl_linked_list.h: New file.
115645         * lib/gl_linked_list.c: New file.
115646         * lib/gl_anylinked_list1.h: New file.
115647         * lib/gl_anylinked_list2.h: New file.
115648         * lib/gl_avltree_list.h: New file.
115649         * lib/gl_avltree_list.c: New file.
115650         * lib/gl_anyavltree_list1.h: New file.
115651         * lib/gl_anyavltree_list2.h: New file.
115652         * lib/gl_rbtree_list.h: New file.
115653         * lib/gl_rbtree_list.c: New file.
115654         * lib/gl_anyrbtree_list1.h: New file.
115655         * lib/gl_anyrbtree_list2.h: New file.
115656         * lib/gl_anytree_list1.h: New file.
115657         * lib/gl_anytree_list2.h: New file.
115658         * lib/gl_linkedhash_list.h: New file.
115659         * lib/gl_linkedhash_list.c: New file.
115660         * lib/gl_anyhash_list1.h: New file.
115661         * lib/gl_anyhash_list2.h: New file.
115662         * lib/gl_avltreehash_list.h: New file.
115663         * lib/gl_avltreehash_list.c: New file.
115664         * lib/gl_rbtreehash_list.h: New file.
115665         * lib/gl_rbtreehash_list.c: New file.
115666         * lib/gl_anytreehash_list1.h: New file.
115667         * lib/gl_anytreehash_list2.h: New file.
115669         * lib/gl_oset.h: New file.
115670         * lib/gl_oset.c: New file.
115671         * lib/gl_array_oset.h: New file.
115672         * lib/gl_array_oset.c: New file.
115673         * lib/gl_avltree_oset.h: New file.
115674         * lib/gl_avltree_oset.c: New file.
115675         * lib/gl_rbtree_oset.h: New file.
115676         * lib/gl_rbtree_oset.c: New file.
115677         * lib/gl_anytree_oset.h: New file.
115679 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115681         * m4/mkancesdirs.m4: New file.
115682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115683         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115684         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115685         it.
115687 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115689         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115690         * lib/mkancesdirs.h: New files.
115691         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115692         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115693         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115694         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115695         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115696         callers changed.  Revamp internals significantly, by not
115697         attempting to create directories that are temporarily more
115698         permissive than the final results.  Do not attempt to use
115699         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115700         This removes some race conditions, fixes some bugs, and simplifies
115701         things.  Use new dirchownmod function to do owner and mode changes.
115702         * lib/mkdir-p.h: Likewise.
115703         * lib/modechange.c (octal_to_mode): New function.
115704         (struct mode_change): New member mentioned.
115705         (make_node_op_equals): New arg mentioned.  All callers changed.
115706         (mode_compile): Keep track of which mode bits the user has explicitly
115707         mentioned.
115708         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115709         New arg PMODE_BITS, to keep track of which mode bits the user
115710         mentioned; it treats S_ISUID and S_ISGID speciall.
115711         All callers changed.
115712         * lib/modechange.h: Likewise.
115714 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115716         * MODULES.html.sh: Add mkancestors.
115717         * modules/mkancesdirs: New module.
115718         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115719         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115720         The chdir-safer and afs files are now orphans; I'll remove them
115721         unless someone speaks up.
115722         Add lib/dirchownmod.c, lib/dirchownmod.h.
115723         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115724         Add lchown, mkancesdirs.
115725         (Maintainer): Add self.
115727 2006-07-15  Karl Berry  <karl@gnu.org>
115729         * gnulib-tool: help message wording/arrangement.
115731 2006-07-14  Simon Josefsson  <jas@extundo.com>
115733         * doc/gnulib.texi (Libtool and Windows): New section.
115735 2006-07-12  Simon Josefsson  <jas@extundo.com>
115737         * modules/gendocs (License): Fix license, approved by Karl.
115739 2006-07-12  Eric Blake  <ebb9@byu.net>
115741         * MODULES.html.sh: Add gendocs.
115743 2006-07-11  Eric Blake  <ebb9@byu.net>
115745         * modules/fdl: New module, to install doc/fdl.texi.
115746         * MODULES.html.sh: Add new section for documentation modules.
115747         * gnulib-tool: Avoid space-tab.
115748         (--doc-base): New option, to manage files from doc.
115750 2006-07-11  Eric Blake  <ebb9@byu.net>
115752         * m4/absolute-header.m4: Fix comments to match recent change.
115754 2006-07-11  Eric Blake  <ebb9@byu.net>
115756         * gnulib-tool: List --doc-base before --tests-base.
115758 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115760         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115762 2006-07-11  Bruno Haible  <bruno@clisp.org>
115764         * README: Mention where to put documentation.
115766 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115768         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115770 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115772         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115773         to stdint.m4.
115775 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115777         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115778         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115779         "no/such/file/stdint.h" when there is no such file, so that
115780         the resulting C code can be parsed by dodgy compilers.
115781         Problems reported by Bob Proulx.
115783 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115785         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115786         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115787         macros into the GNU _D_EXACT_NAMLEN.
115788         * lib/savedir.c:  Likewise.
115789         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115791 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115792         and Paul Eggert  <eggert@cs.ucla.edu>
115794         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115795         * m4/savedir.m4:
115796         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115797         macros into the GNU _D_EXACT_NAMLEN.
115799 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115801         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115802         around the absolute name, to work around a problem with the HP-UX
115803         11.23 native C compiler, reported by Bob Proulx.
115805 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115807         * doc/maintain.texi, make-stds.texi: Sync from
115808         <http://savannah.gnu.org/projects/gnustandards>.
115810 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115812         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115814 2006-07-09  Jim Meyering  <jim@meyering.net>
115816         * m4/glob.m4: Remove a doubled word in a comment.
115818 2006-07-09  Jim Meyering  <jim@meyering.net>
115820         * lib/argp-pv.c: Remove a doubled word in a comment.
115821         * lib/check-version.c (check_version): Likewise.
115822         * lib/javacomp.c (compile_java_class): Likewise.
115824 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115826         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115827         for the benefit of people using Autoconf 2.60.  If you want to
115828         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115829         (or m4/onceonly.m4, if pre-2.57) manually.
115831 2006-07-08  Jim Meyering  <jim@meyering.net>
115833         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115834         comment.
115835         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115836         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115837         comment.
115839 2006-07-08  Jim Meyering  <jim@meyering.net>
115841         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115843 2006-07-07  Simon Josefsson  <jas@extundo.com>
115845         * tests/test-crc.c: Change expected crc value, the test vector
115846         were probably computed using the old broken crc.c?
115848 2006-07-06  Simon Josefsson  <jas@extundo.com>
115850         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115851         now the canonical place for the M4 file).
115853         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115854         from the sys_socket dependency now.
115856         * modules/inet_pton (Files): Ditto.
115858         * modules/inet_ntop (Files): Ditto.
115860 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115862         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115863         not gl_PREREQ_GETUSERSHELL.
115865 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115867         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115868         with only one argument, for Autoconf 2.60.
115869         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115870         expand to nothing, so add a shell command to avoid syntax error.
115871         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115873 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115875         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115877 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115880         no longer needed.  Check for isblank decl.
115881         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115882         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115883         of existence.
115885 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115887         * lib/getloadavg.c: Use __VMS, not VMS.
115888         * lib/getopt.c: Likewise.
115889         * lib/getpagesize.h: Likewise.
115890         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115891         and probably does not work.
115893 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115895         * lib/.cppi-disable: Add wcwidth.
115896         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115897         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115898         (ISGRAPH): Remove.  All uses changed to isgraph.
115899         (FOLD) [!defined _LIBC]: Remove special case.
115900         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115901         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115902         HAVE_ISBLANK.
115903         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115904         case.
115906 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115908         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115909         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115910         brackets.  Other minor changes to suppress some compiler
115911         warnings.
115913 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115914         and Paul Eggert  <eggert@cs.ucla.edu>
115916         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115917         of invoking obsolescent AC_HEADER_DIRENT macro.
115918         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115919         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115920         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115921         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115922         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115923         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115924         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115925         * m4/readdir.m4: Remove; no longer needed.
115927 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115928         and Paul Eggert  <eggert@cs.ucla.edu>
115930         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115931         Don't worry about this obsolete case any more.
115932         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115933         directories.
115934         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115935         worry about this obsolete case any more.
115936         * lib/fts.c: Likewise.
115937         * lib/getcwd.c: Likewise.
115938         * lib/glob.h: Likewise.
115939         * lib/savedir.c: Likewise.
115941 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115943         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115944         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115945         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115946         needed.
115947         All uses removed.
115948         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115949         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115950         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115951         needed.
115952         * m4/getdate.m4 (gl_GETDATE): Likewise.
115953         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115954         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115955         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115956         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115957         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115959         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115960         needed.
115962 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115964         * lib/memcasecmp.c: Include <limits.h>.
115965         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115966         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115967         Don't assume isdigit succeeds only on '0' through '9'.
115969 2006-07-05  Eric Blake  <ebb9@byu.net>
115971         * modules/getaddrinfo (Depends-on): Add snprintf.
115973 2006-07-05  Eric Blake  <ebb9@byu.net>
115975         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115976         to avoid 'header present but could not be compiled' on cygwin.
115978 2006-07-05  Eric Blake  <ebb9@byu.net>
115980         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115981         missing from netdb.h.
115982         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115984 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115986         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115987         no longer needed.
115988         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115989         * m4/getdate.m4 (gl_GETDATE): Likewise.
115990         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115991         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115992         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115993         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115994         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115996 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115998         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115999         All uses of is_space replaced by isspace.
116000         * lib/exit.h: Don't talk about STDC_HEADERS.
116001         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116002         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116003         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116004         replaced by isprint etc.
116005         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116006         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116007         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116008         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116009         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116010         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116012 2006-07-05  Bruno Haible  <bruno@clisp.org>
116014         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116015         the function exists, before testing against AIX.
116016         Reported by Martin Lambers <marlam@marlam.de>.
116018 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116020         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116021         From Mark D. Baushke.
116023 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116026         to the absolute name, not just one, to bypass Sun C 5.8's
116027         "warning: #include of /usr/include/... may be non-portable".
116029 2006-07-04  Eric Blake  <ebb9@byu.net>
116031         * modules/dirname-tests: New test module.
116032         * tests/test-dirname.c: New file, replacing dirname.c
116033         TEST_DIRNAME section that was recently deleted.
116035 2006-07-04  Bruno Haible  <bruno@clisp.org>
116037         Assume ANSI C header files and <ctype.h> functions.
116038         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116039         (mbsnwidth): Use isprint, iscntrl instead.
116041 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116043         Merge from coreutils.
116044         * MODULES.html.sh: Add xstrtold.
116045         * modules/xstrtold: New file.
116046         * modules/cycle-check (Files): Add lib/same-inode.h.
116047         * modules/dirname (Files): Add m4/double-slash-root.m4.
116048         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116049         * modules/mkdir-p (Files): Add lib/same-inode.h.
116050         * modules/same (Files): Add lib/same-inode.h.
116052 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116054         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116055         This is to keep the terminology clean; POSIX talks about
116056         "absolute pathnames", not "full pathnames", but the GNU
116057         Coding Standards say to use "path" for something else;
116058         so use "absolute" to keep both sides happy.
116059         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116060         Set gl_absolute_header, not gl_full_header_path.
116061         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116062         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116063         All uses changed.
116065         Merge from coreutils.
116067         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116069         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116070         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116071         want to require the building of c-strtod.o.
116072         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116073         needs -lm directly.
116074         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116076         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116078         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116079         --as-needed option if available.  Problem reported by Albert Chin in
116080         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116081         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116082         cc merely issues a bunch of annoying warnings for --as-needed
116083         (this problem was reported by Bob Proulx).  Also, try linking with
116084         -lm to detect a bug in binutils 2.16 (this problem was reported
116085         by Ralf Wildenhues).
116087         2006-06-18  Jim Meyering  <jim@meyering.net>
116089         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116090         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116091         macro.
116092         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116093         also check for glibc-2.4's abort-inducing bug.
116095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116096         Low-probability clean-up should be to use rmdir to get rid of
116097         the just-created directory, not unlink.
116099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116100         configure fail, and request a bug report to inform us about it.
116101         Add a comment that, barring reports to the contrary, in 2007 we'll
116102         assume ftruncate is universally available.
116104         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116106         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116108         2006-03-12  Jim Meyering  <jim@meyering.net>
116110         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116111         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116112         * m4/same.m4 (gl_SAME): Likewise.
116113         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116115         2006-03-11  Eric Blake  <ebb9@byu.net>
116117         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116118         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116119         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116120         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116122 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116124         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116125         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116126         reported by Mark D. Baushke, one in
116127         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116129         Merge from coreutils.
116131         * lib/.cppi-disable: Add stdint_.h.
116132         * lib/.cvsignore: Add stdint.h.
116134         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116136         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116137         both double and long double versions.
116138         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116139         * lib/xstrtold.c: New file.
116140         * lib/xstrtod.h (xstrtold): New decl.
116142         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116144         * lib/filemode.c (setst): Remove.
116145         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116146         (arguably) clearer, and the generated code is a bit smaller on my
116147         Debian GNU/Linux stable x86 host.
116149         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116151         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116152         Assume that filemode.h includes sys/types.h and sys/stat.h.
116153         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116154         (ftypelet): Reorder to put common cases first, for efficiency.
116155         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116156         to do 'M'.
116157         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116158         of 10, for compatibility with FreeBSD.  All callers changed.
116159         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116160         types that can't be deduced solely from st_mode.  First arg is now a
116161         const pointer.
116162         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116163         (strmode): Renamed from mode_string.
116164         (filemodestring): New decl.
116165         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116166         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116167         needed.
116168         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116170         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116172         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116173         fsusage.h now does that.  Include fsusage.h first, to test interface.
116174         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116175         at most one method (the old code could have generated decls that
116176         didn't conform to C89, not that this was ever exercised).
116177         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116179         2006-03-19  Jim Meyering  <jim@meyering.net>
116181         Work even in a chroot where d_ino values for entries in "/"
116182         don't match the stat.st_ino values for the same names.
116183         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116184         number, iterate through all entries again, using lstat instead.
116185         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116186         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116188         * lib/getcwd.c (__getcwd): Clarify a comment.
116189         Use memcpy in place of a call to strcpy.
116191         2006-03-12  Jim Meyering  <jim@meyering.net>
116193         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116194         matches that of the current directory (which we're about to chdir ".."
116195         out of), then save the dev-ino of the parent, instead.
116197         * lib/same-inode.h (SAME_INODE): New file/macro.
116198         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116199         Include "same-inode.h", instead.
116200         * lib/same.c: Likewise.
116201         * lib/cycle-check.h: Include "same-inode.h".
116202         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116203         * lib/cycle-check.c (SAME_INODE): Remove definition.
116204         * lib/root-dev-ino.h: Include "same-inode.h".
116206         2006-03-11  Eric Blake  <ebb9@byu.net>
116208         * lib/same.c (same_name): s/base_name/last_component/
116209         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116210         * lib/filenamecat.c (file_name_concat): Likewise.
116212         2006-03-11  Eric Blake  <ebb9@byu.net>,
116213                     Paul Eggert  <eggert@cs.ucla.edu>
116215         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116216         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116217         drive prefix.
116218         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116219         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116220         (last_component): New method.
116221         * lib/dirname.c (dir_len): Determine when drive letters need a
116222         subsequent slash.  Preserve // when it is special.
116223         (dir_name): Don't append dot when drive letter is absolute.
116224         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116225         * lib/basename.c (base_name): New semantics - malloc the result.
116226         Preserve // when it is special.  Preserve relative files that look
116227         like drive letters.
116228         (base_len): Preserve // when it is special.
116229         (last_component): New method, similar to old base_name semantics.
116230         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116231         base_name.  Strip redundant slashes from ///.
116233 2006-07-03  Jim Meyering  <jim@meyering.net>
116235         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116236         macro is used before the first cycle_check call.
116238 2006-07-03  Eric Blake  <ebb9@byu.net>
116240         * modules/dirname (Depends-on): Add xstrndup.
116242 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116244         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116245         test cases, so that config.log is a bit easier to follow.
116247 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116249         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116250         both are 64 bits, since this seems to be the tradition, and this
116251         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116252         we ever run into a host that prefers long long to long in this
116253         case, we'll need another configure-time test.  Problem reported by
116254         Jim Meyering.
116256 2006-07-02  Eric Blake  <ebb9@byu.net>
116258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116260 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116262         * modules/inttypes (Depends-on): No longer depends on stdint.
116263         * modules/stdint (Description): Say more about assumptions.
116264         Say that the fast types might differ.  Say macros are used.
116265         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116266         (Makefile.am): Revise list of substituted symbols to match
116267         new stdint.m4.
116268         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116269         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116270         * tests/test-stdint.c (verify_same_types)
116271         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116272         the code conforms to C99/C89.
116273         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116274         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116276 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116278         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116279         but fix a bug, by requiring at least 64 bits.
116280         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116281         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116282         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116283         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116285         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116286         changes.  Make 2.59 a prerequisite.  Check and substitute for
116287         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116288         inttypes.h.  Do not use special include files; just use the
116289         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116290         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116291         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116292         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116293         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116294         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116295         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116296         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116297         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116298         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116299         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116300         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116301         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116302         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116303         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116304         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116305         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116306         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116307         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116308         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116309         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116310         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116311         not check for things that C99 does not require, e.g., int8_t.  If
116312         a test isn't needed unless <stdint.h> isn't working, and is
116313         unlikely to be needed for any other reason, then don't do it
116314         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116315         size_t, since we assume C89 freestanding at least.  Do not check
116316         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116317         the right thing even if the types are not defined.  Instead use:
116318         (gl_STDINT_TYPE_PROPERTIES): New macro.
116319         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116320         testing whether <sys/types.h> clashes, as Autoconf does this for
116321         us now.  All uses removed.
116322         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116323         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116324         (gl_CHECK_TYPE_SAME):
116325         Remove; no longer needed.
116326         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116327         exists, since we'll return 0 anyway in that case.
116328         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116330 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116332         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116333         possible collision with system files.
116334         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116335         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116336         WCHAR_MIN and WCHAR_MAX in this case.
116337         (<stddef.h>): Do not include; no longer needed.
116338         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116339         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116340         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116341         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116342         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116343         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116344         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116345         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116346         !defined(__c99))]: Include in this case too, since it's harmless
116347         now.
116348         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116349         dangerous to do so.
116350         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116351         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116352         (_STDINT_MIN, _STDINT_MAX): New macros.
116353         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116354         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116355         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116356         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116357         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116358         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116359         macros, not typedefs; this simplifies things quite a bit.
116360         Use long int for all types narrower than int64_t.
116361         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116362         Define in terms of long long int or int64_t or long int,
116363         not int64_t or int32_t.  This saves some compile-time testing.
116364         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116365         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116366         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116367         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116368         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116369         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116370         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116371         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116372         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116373         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116374         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116375         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116376         undef any previous version and define our own version, for
116377         simplicity and consistency with the new macros for types.
116378         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116379         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116380         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116381         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116382         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116383         @WINT_T_SUFFIX@ to keep things simple here.
116384         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116385         Simplify by assuming typical 8/16/32/64 host, since we're
116386         already doing that elsewhere anyway.
116387         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116388         and assume long long int is 64 bits if available.  This
116389         speeds up 'configure'.
116391 2006-07-01  Eric Blake  <ebb9@byu.net>
116393         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116394         Reported by Andreas Buening.
116396 2006-07-01  Eric Blake  <ebb9@byu.net>
116398         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116400 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116402         * lib/getaddrinfo.c: fixed typo
116404 2006-06-29  Jim Meyering  <jim@meyering.net>
116406         * modules/strftime (Maintainer): Add my name, since with the
116407         FPRINTFTIME changes strftime.c has forked from glibc.
116409 2006-06-29  Eric Blake  <ebb9@byu.net>
116411         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116413 2006-06-29  Eric Blake  <ebb9@byu.net>
116415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116417 2006-06-29  Eric Blake  <ebb9@byu.net>
116419         * lib/stat_.h: New file.
116421 2006-06-29  Eric Blake  <ebb9@byu.net>
116423         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116424         unused static function.
116426 2006-06-29  Eric Blake  <ebb9@byu.net>
116428         * doc/functions.texi (Function Portability): Document missing lstat
116429         on mingw.
116431 2006-06-29  Eric Blake  <ebb9@byu.net>
116433         * MODULES.html.sh: Add sys_stat.
116434         * modules/sys_stat: New module.
116435         * modules/mkstemp (Depends-on): Add sys_stat.
116437 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116439         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116441 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116443         * m4/c-bs-a.m4: Removed.
116445 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116447         * lib/strftime.c: Assume strftime() exists.
116449 2006-06-29  Derek Price  <derek@ximbiot.com>
116451         * modules/c-bs-a: Removed - \a is C89.
116452         * MODULES.html.sh: Remove c-bs-a.
116454 2006-06-29  Bruno Haible  <bruno@clisp.org>
116456         * modules/wcwidth (License): Change to LGPL.
116458 2006-06-28  Simon Josefsson  <jas@extundo.com>
116460         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116461         on _WIN32.
116463         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116464         getnameinfo.
116466 2006-06-28  Simon Josefsson  <jas@extundo.com>
116468         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116470 2006-06-28  Simon Josefsson  <jas@extundo.com>
116472         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116473         functions there.  It will succeed on Windows XP, but on Windows
116474         2000 and (presumably) earlier, it will fail, and use the internal
116475         re-implementation.
116476         (use_win32_p): New function.
116477         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116478         Support AI_NUMERICSERV to disable getservbyname.
116479         (getnameinfo): New function, only supports
116480         NI_NUMERICHOST|NI_NUMERICSERV for now.
116482         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116483         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116484         getnameinfo.
116486 2006-06-28  Eric Blake  <ebb9@byu.net>
116488         * modules/wcwidth: New file.
116489         * modules/mbchar (Depends-on): Add wcwidth.
116490         * modules/mbswidth (Depends-on): Add wcwidth.
116491         * MODULES.html.sh: Add wcwidth.
116493 2006-06-28  Eric Blake  <ebb9@byu.net>
116495         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116498 2006-06-28  Eric Blake  <ebb9@byu.net>
116500         * lib/xvasprintf.h: Fix comments.
116502 2006-06-28  Eric Blake  <ebb9@byu.net>
116504         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116505         * lib/mbswidth.c (wcwidth): Move from here...
116506         * lib/wcwidth.h: ...to this new file.
116508 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116510         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116512         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116513         it's obsolete.
116514         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116516 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116518         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116519         Autoconf 2.60 says this stuff was obsolete.
116521 2006-06-28  Bruno Haible  <bruno@clisp.org>
116523         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116525 2006-06-28  Bruno Haible  <bruno@clisp.org>
116527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116528         gt_TYPE_WCHAR_T.
116530 2006-06-28  Bruno Haible  <bruno@clisp.org>
116532         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116533         declaration for wcwidth.
116534         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116536 2006-06-28  Bruno Haible  <bruno@clisp.org>
116538         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116539         (mkdir): Define using _mkdir.
116541 2006-06-28  Bruno Haible  <bruno@clisp.org>
116543         * lib/getaddrinfo.h: Fix POSIX URL.
116544         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116545         _WIN32.
116546         (use_win32_p): Make static.
116547         (getaddrinfo): Reject service name if it is empty or does not consist
116548         solely of decimal digits, or if its value is > 65535.
116549         (getnameinfo): Remove useless casts.
116551 2006-06-27  Simon Josefsson  <jas@extundo.com>
116553         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116554         Eggert and Martin Lambers.
116556 2006-06-27  Simon Josefsson  <jas@extundo.com>
116558         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116559         Eggert and Martin Lambers.
116561 2006-06-27  Bruno Haible  <bruno@clisp.org>
116563         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116564         result to 0, not to empty.
116565         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116567 2006-06-27  Bruno Haible  <bruno@clisp.org>
116569         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116571 2006-06-26  Simon Josefsson  <jas@extundo.com>
116573         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116574         present.
116576 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116578         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116579         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116580         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116582 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116584         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116586 2006-06-26  Bruno Haible  <bruno@clisp.org>
116588         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116590 2006-06-26  Bruno Haible  <bruno@clisp.org>
116592         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116594 2006-06-26  Bruno Haible  <bruno@clisp.org>
116596         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116597         SGI C compiler in pre-C99 mode.
116598         Suggested by Mark D. Baushke and Larry Jones.
116600 2006-06-26  Bruno Haible  <bruno@clisp.org>
116602         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116603         WCHAR_MAX.
116604         Reported by Mark D. Baushke and Larry Jones.
116606 2006-06-26  Bruno Haible  <bruno@clisp.org>
116608         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116609         in pre-C99 mode.
116610         Suggested by Mark D. Baushke and Larry Jones.
116612 2006-06-23  Simon Josefsson  <jas@extundo.com>
116613             Bruno Haible  <bruno@clisp.org>
116615         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116616         Emit mostlyclean-local rule.
116617         (func_emit_tests_Makefile_am): Likewise.
116618         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116620 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116622         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116624 2006-06-23  Bruno Haible  <bruno@clisp.org>
116626         * tests/test-stdint.c: Update to match ISO C 99 Technical
116627         Corrigendum 1.
116629 2006-06-23  Bruno Haible  <bruno@clisp.org>
116631         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116633 2006-06-23  Bruno Haible  <bruno@clisp.org>
116635         * lib/stdint_.h: Treat IRIX like OpenBSD.
116637 2006-06-23  Bruno Haible  <bruno@clisp.org>
116639         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116640         ISO C 99 Technical Corrigendum 1.
116642 2006-06-22  Simon Josefsson  <jas@extundo.com>
116644         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116645         MinGW.
116647 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116649         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116650         needed.  Some compiler complained about some of them.  Problem reported
116651         by Larry Jones in
116652         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116654 2006-06-21  Simon Josefsson  <jas@extundo.com>
116656         * tests/test-getaddrinfo.c: New file.
116658         * modules/getaddrinfo-tests: New file.
116660         * MODULES.html.sh: Add inet_pton.
116662         * modules/inet_pton: New file.
116664 2006-06-21  Simon Josefsson  <jas@extundo.com>
116666         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116667         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116668         of using the (limited) gnulib implementation on Windows XP.
116670         * m4/inet_pton.m4: New file.
116672 2006-06-21  Simon Josefsson  <jas@extundo.com>
116674         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116675         variable.
116677         * lib/socket_.h: Don't define WINVER.
116679         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116680         slightly modified to work in gnulib.
116682 2006-06-21  Simon Josefsson  <jas@extundo.com>
116684         * doc/gnulib.texi (Windows sockets): Add.
116686 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116688         * lib/read-file.c (fread_file): Start with buffer allocation of
116689         0 bytes rather than 1 byte; this simplifies the code.
116690         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116691         code to free buffer and save/restore errno.
116692         (internal_read_file): Remove unused local.
116694 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116696         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116697         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116698         Problem reported by Denis Excoffier in
116699         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116701 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116703         * modules/sys_socket, modules/socklen: Include sys/types since
116704         FreeBSD 4.x's sys/socket.h needs it.
116706 2006-06-19  Simon Josefsson  <jas@extundo.com>
116708         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116710 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116712         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116714 2006-06-19  Bruno Haible  <bruno@clisp.org>
116716         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116717         and FULL_PATH_INTTYPES_H in angle brackets.
116718         Reported by Mark D. Baushke <mdb@gnu.org>.
116720 2006-06-17  Eric Blake  <ebb9@byu.net>
116722         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116723         errno.
116725 2006-06-17  Bruno Haible  <bruno@clisp.org>
116727         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116728         <sys/inttypes.h>.
116730 2006-06-17  Bruno Haible  <bruno@clisp.org>
116732         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116733         whether errno is declared. Assume <errno.h> declares errno.
116735 2006-06-17  Bruno Haible  <bruno@clisp.org>
116737         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116739 2006-06-17  Bruno Haible  <bruno@clisp.org>
116741         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116742         problem on Solaris 2.5.1.
116744 2006-06-16  Eric Blake  <ebb9@byu.net>
116746         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116747         * lib/unicodeio.c [!defined errno]: Likewise.
116748         * lib/strtol.c [!defined errno]: Likewise.
116749         * lib/strtod.c [!defined errno]: Likewise.
116751 2006-06-15  Eric Blake  <ebb9@byu.net>
116753         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116755 2006-06-15  Eric Blake  <ebb9@byu.net>
116757         * config/srclist.txt (ssize_t.m4): Lose sync.
116759 2006-06-15  Bruno Haible  <bruno@clisp.org>
116761         * modules/stdint (Files): Include m4/full-header-path.m4,
116762         m4/size_max.m4, m4/wchar_t.m4.
116763         (Makefile.am): Many more substitutions.
116764         * modules/stdint-tests: New file.
116765         * tests/test-stdint.c: New file.
116767 2006-06-15  Bruno Haible  <bruno@clisp.org>
116769         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116770         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116771         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116772         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116773         gl_CHECK_TYPE_SAME): New macros.
116775 2006-06-15  Bruno Haible  <bruno@clisp.org>
116777         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116779 2006-06-15  Bruno Haible  <bruno@clisp.org>
116781         * lib/stdint_.h: Rewritten to be fully auto-configured.
116782         Fixes bug on HP-UX/IA64.
116784 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116786         * lib/getdate.y (__attribute__): Don't define if already defined.
116787         Problem reported by Larry Jones.
116788         * lib/utimens.c (__attribute__): Likewise.
116790 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116792         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116793         reported by Andreas Schwab.
116795 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116796             Bruno Haible  <bruno@clisp.org>
116798         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116799         check for the declaration of strnlen and a run test that exposes the
116800         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116801         rpl_strndup.
116803 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116804             Bruno Haible  <bruno@clisp.org>
116806         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116808 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116810         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116811         compile test, for Tru64 4.0D.
116813 2006-05-28  Karl Berry  <karl@gnu.org>
116815         * config/srclist.txt (printf-args.c): lose sync.
116817 2006-05-26  Martin Lambers  <marlam@marlam.de>
116819         * lib/getpass.c: Updates the test for the native W32 API, and adds
116820         missing includes, thus fixing compilation warnings.
116822 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116824         * lib/exclude.c (exclude_fnmatch): New function.
116825         (excluded_file_name): Call exclude_fnmatch.
116826         * lib/exclude.h (excluded_file_name): New prototype
116828 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116830         * lib/tempname.c (small_open, large_open): New macros.
116831         (__open, __open64) [!_LIBC]: Remove.
116832         (__gen_tempname): Use small_open and large_open instead of __open
116833         and __open64.  This fixes a portability bug on HP-UX 11.11i
116834         reported by Simon Wing-Tang in
116835         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116837 2006-05-24  Bruno Haible  <bruno@clisp.org>
116839         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116840         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116841         Reported by Thorsten Maerz <torte@netztorte.de> via
116842         Aaron Stone <aaron@serendipity.cx>.
116844 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116847         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116848         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116849         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116850         not really conditional on the cache.
116851         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116853 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116855         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116856         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116857         (my_usleep): Don't mishandle maximum value.
116859 2006-05-19  Jim Meyering  <jim@meyering.net>
116861         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116863 2006-05-17  Bruno Haible  <bruno@clisp.org>
116865         Cygwin portability.
116866         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116868 2006-05-17  Bruno Haible  <bruno@clisp.org>
116870         * lib/stdint_.h: Fix recognition of Cygwin.
116872 2006-05-15  Bruno Haible  <bruno@clisp.org>
116874         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116875         on libtool patch by Ralf Wildenhues.
116877 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116879         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116880         test for C99 conformance; (bool) 0.5 is an integer constant
116881         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116882         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116884 2006-05-11  Simon Josefsson  <jas@extundo.com>
116886         * m4/xvasprintf.m4: Fix obvious typo.
116888 2006-05-11  Jim Meyering  <jim@meyering.net>
116890         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116891         James Lemley.
116893 2006-05-10  Simon Josefsson  <jas@extundo.com>
116895         * lib/md4.c: Typo fix, update copyright years.
116896         (K1, K2): Don't use L because it turn computations into 64-bit on
116897         64-bit platforms.
116899 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116901         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116902         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116903         unwanted sign propagation, e.g., on hosts with 64-bit int.
116904         There still are some problems with reeelly weird theoretical hosts
116905         (e.g., 33-bit int) but it's not worth worrying about now.
116906         * lib/sha1.c (rol): Likewise.
116907         (K1, K2, K3, K4): Remove unnecessary L suffix.
116909 2006-05-10  Bruno Haible  <bruno@clisp.org>
116911         * lib/des.c: Cast to avoid warnings.
116913 2006-05-09  Bruno Haible  <bruno@clisp.org>
116915         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116916         (Depends-on): Depend also on xsize, stdarg.
116917         (configure.ac): Add gl_XVASPRINTF.
116919 2006-05-09  Bruno Haible  <bruno@clisp.org>
116921         * m4/xvasprintf.m4: New file.
116923 2006-05-09  Bruno Haible  <bruno@clisp.org>
116925         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116926         (EOVERFLOW): Define fallback value.
116927         (xstrcat): New function.
116928         (xvasprintf): Recognize the special case of a string concatenation.
116930 2006-05-08  Eric Blake  <ebb9@byu.net>
116932         * gnulib-tool (func_version): Base copyright year on CVS date.
116933         (func_emit_copyright_notice): New function.
116934         (func_emit_lib_Makefile_am): Use it.
116935         (func_emit_tests_Makefile_am): Likewise.
116936         (func_import): Likewise.
116938 2006-05-08  Bruno Haible  <bruno@clisp.org>
116940         * modules/stdarg: New file.
116941         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116943 2006-05-08  Bruno Haible  <bruno@clisp.org>
116945         * m4/stdarg.m4: New file, from GNU gettext.
116947 2006-05-08  Bruno Haible  <bruno@clisp.org>
116949         * config/srclist.txt (build-aux/config.rpath): different from latest
116950         release.
116952 2006-05-08  Bruno Haible  <bruno@clisp.org>
116954         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116956 2006-05-05  Jim Meyering  <jim@meyering.net>
116958         * m4/warning.m4: New file, derived from bison's file by the same name.
116960 2006-05-03  Bruno Haible  <bruno@clisp.org>
116962         * lib/stdint_.h: Shorter URL.
116963         * lib/inttypes.h: Likewise.
116965 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116967         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116969 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116971         * lib/verify.h: Document the internals better.  Most of this change
116972         was written by Bruno Haible.
116974 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116976         * doc/verify.texi: New file, partly based on a proposal by
116977         Bruno Haible.
116979 2006-05-02  Bruno Haible  <bruno@clisp.org>
116981         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116982         test from here...
116983         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116985 2006-04-29  Bruno Haible  <bruno@clisp.org>
116987         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116988         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116990 2006-04-29  Bruno Haible  <bruno@clisp.org>
116992         * gnulib-tool: Make --update option actually work.
116994 2006-04-29  Bruno Haible  <bruno@clisp.org>
116996         * doc/gcd.texi: New file.
116997         * doc/gnulib.texi: Include it.
116999 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117001         * lib/getdate.y (get_date): When adding relative date, start with the
117002         initial time, not with the result of the first mktime call.
117004 2006-04-25  Bruno Haible  <bruno@clisp.org>
117006         * gnulib-tool (func_import): Output the include directives in three
117007         blocks, sorted separately.
117008         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117010 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117012         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117013         to define main with arguments, for C++.  Reported by Eric Blake.
117014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117015         Prefer 'int main ()' to 'int main (void)', for C++.
117016         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117018         for 'main', for C99 and C++.
117020 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117022         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117023         Don't assume that exit status -1 is valid.
117024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117025         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117026         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117027         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117028         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117029         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117030         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117031         functions can be used without declaring them, or that you can
117032         exit with status -1.
117033         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117035 2006-04-24  Karl Berry  <karl@gnu.org>
117037         * config/srclist.txt (longdouble.m4): sync lost.
117039 2006-04-24  Eric Blake  <ebb9@byu.net>
117041         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117043 2006-04-24  Bruno Haible  <bruno@clisp.org>
117045         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117046         poll() implementation in AIX.
117047         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117049 2006-04-24  Bruno Haible  <bruno@clisp.org>
117051         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117052         assigned exactly once.
117054 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117055             Bruno Haible  <bruno@clisp.org>
117057         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117058         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117059         for AM_CPPFLAGS.
117061 2006-04-23  Bruno Haible  <bruno@clisp.org>
117063         * modules/copy-file: Depend on unistd.
117064         * modules/execute: Likewise.
117065         * modules/fatal-signal: Likewise.
117066         * modules/findprog: Likewise.
117067         * modules/mkdtemp : Likewise.
117068         * modules/pipe: Likewise.
117069         * modules/wait-process: Likewise.
117071 2006-04-23  Bruno Haible  <bruno@clisp.org>
117073         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117074         condition was already detected.
117075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117077 2006-04-23  Bruno Haible  <bruno@clisp.org>
117079         * lib/copy-file.c: Include <unistd.h> unconditionally.
117080         * lib/execute.c: Likewise.
117081         * lib/fatal-signal.c: Likewise.
117082         * lib/findprog.c: Likewise.
117083         * lib/mkdtemp.c: Likewise.
117084         * lib/pipe.h: Likewise.
117085         * lib/pipe.c: Likewise.
117086         * lib/wait-process.h: Likewise.
117088 2006-04-23  Bruno Haible  <bruno@clisp.org>
117090         * gnulib-tool (func_usage): Fix --import description. Document
117091         --update.
117092         (func_import): Create temporary file in a temporary directory, if
117093         --dry-run is specified. Silence errors from 'grep' when there are no
117094         m4 files in $m4dir.
117095         (func_create_testdir): Silence errors from 'grep' when there are no
117096         m4 files in $m4dir.
117097         Reported by Karl Berry <karl@freefriends.org>.
117099 2006-04-20  Bruno Haible  <bruno@clisp.org>
117101         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117102         one argument, so that the code will be portable to Autoconf 2.60.
117103         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117104         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117105         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117107 2006-04-19  Derek Price  <derek@ximbiot.com>
117108             Eric Blake  <ebb9@byu.net>
117110         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117111         rather than "/full/path.h".  Update comment to match.  Shorten &
117112         generalize m4_translit call via AS_TR_CPP.
117114 2006-04-19  Derek Price  <derek@ximbiot.com>
117115             Eric Blake  <ebb9@byu.net>
117117         * lib/inttypes.h: Correct grammar in comment.
117119 2006-04-18  Derek Price  <derek@ximbiot.com>
117120             Paul Eggert  <eggert@cs.ucla.edu>
117122         * modules/inttypes: New file.
117123         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117125 2006-04-18  Derek Price  <derek@ximbiot.com>
117126             Paul Eggert  <eggert@cs.ucla.edu>
117128         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117129         New files.
117131 2006-04-18  Derek Price  <derek@ximbiot.com>
117132             Paul Eggert  <eggert@cs.ucla.edu>
117134         * lib/inttypes.h: New file.
117135         * lib/strtoimax.c: Assume <inttypes.h>.
117137 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117139         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117140         isn't mounted.  Problem reported by Kir Kolyshkin.
117142 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117144         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117145         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117146         Derek R. Price.
117147         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117148         implementation.
117150 2006-04-12  Eric Blake  <ebb9@byu.net>
117152         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117153         is now done automatically by the corresponding Autoconf macro.
117155 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117157         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117158         time_r.h.
117160 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117162         Merge regex changes from libc, removing some of our
117163         POSIX-conformance changes that were rejected and redoing them in a
117164         less-intrusive way.
117166         * lib/regcomp.c (re_compile_internal, init_dfa):
117167         Length arg is now size_t, not Idx.  All uses changed.
117168         (peek_token): Forward decl now says internal_function.
117169         (__re_error_msgid, __re_error_msgid_idx):
117170         Now static rather than extern with attribute_hidden.
117171         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117172         For some reason libc prefers K&R style defns for external functions.
117173         (regerror) [!defined _LIBC]: Likewise.
117174         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117175         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117176         (build_range_exp, build_collating_symbol):
117177         Use K&R-style defn.
117178         (re_compile_fastmap): Use '\0' to memset, not 0.
117179         (utf8_sb_map): Make the calculations more obvious.
117180         (init_dfa, parse_bracket_exp, build_charclass_op):
117181         Call calloc and cast result, as glibc does.
117182         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117183         (build_range_exp, build_collating_symbol):
117184         Now internal functions.
117186         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117188         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117189         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117190         Don't depend on VMS; depend on __VMS instead, for POSIX
117191         namespace cleanness.
117192         (regoff_t): Define to ssize_t, not long int.
117194         Remove the REG_ macros named below.  Instead, make the old names
117195         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117196         __USE_GNU_REGEX.
117197         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117198         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117199         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117200         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117201         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117202         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117203         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117204         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117205         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117206         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117207         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117208         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117209         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117210         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117211         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117212         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117213         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117214         (REG_NREGS):
117215         Remove.  All uses replaced by the old RE_* names.
117216         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117217         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117218         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117219         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117220         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117221         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117222         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117223         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117224         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117225         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117226         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117227         Don't bother having these macros be independent of each others'
117228         values, since they no longer exist in the POSIX name space.
117230         Rename the following member names back to their old names,
117231         unless !__USE_GNU_REGEX.  All uses changed back.
117232         (buffer): Renamed from re_buffer.
117233         (allocated): Renamed from re_allocated.
117234         (used): Renamed from re_used.
117235         (syntax): Renamed from re_syntax.
117236         (fastmap): Renamed from re_fastmap.
117237         (translate): Renamed from re_translate.
117238         (can_be_null): Renamed from re_can_be_null.
117239         (regs_allocated): Renamed from re_regs_allocated.
117240         (fastmap_accurate): Renamed from re_fastmap_accurate.
117241         (no_sub): Renamed from re_no_sub.
117242         (not_bol): Renamed from re_not_bol.
117243         (not_eol): Renamed from re_not_eol.
117244         (newline_anchor): Renamed from re_newline_anchor.
117245         (num_regs): Renamed from rm_num_regs.
117246         (start): Renamed from rm_start.
117247         (end): Renamed from rm_end.
117249         (free_state): Move up a bit.
117251         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117252         #define to be empty.
117253         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117254         when that is what is intended.
117255         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117256         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117257         (MAX): New macro.
117258         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117259         All uses changed back to re_malloc, etc.  It's now the caller's
117260         responsibility to check for overflow; all callers changed.
117261         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117262         (re_x2nrealloc): Remove.
117263         (free_state): Remove decl.
117265         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117266         (re_set_registers, re_exec):
117267         Use K&R-style defn.
117269         2006-01-31  Roland McGrath  <roland@redhat.com>
117271         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117272         Reported by Mike Frysinger <vapier@gentoo.org>.
117274         2006-01-15  Andreas Jaeger  <aj@suse.de>
117276         [BZ #1950]
117277         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117278         build_wcs_upper_buffer change.
117279         (build_wcs_upper_buffer): Change return type.
117281         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117283         * lib/regex_internal.h: Include <stdint.h> if available.
117285         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117287         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117289         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117291         * lib/regcomp.c: Adjust for changed secondary hash function.
117293         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117295         * lib/regex.h: Pretty printing.
117296         Clean up namespace a bit.
117298         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117300         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117301         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117303         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117304                     Ulrich Drepper  <drepper@redhat.com>
117306         [BZ #1302]
117307         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117308         changed.
117309         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117311         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117313         [BZ #281]
117314         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117315         * lib/regcomp.c: Remove unnecessary uses of
117316         unsigned RE_TRANSLATE_TYPE.
117317         * lib/regex_internal.h: Likewise.
117318         * lib/regex_internal.c: Likewise.
117319         * lib/regexec.c: Likewise.
117320         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117322         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117324         * lib/regexec.c (find_recover_state): Remove unnecessary
117325         initialization.
117326         (transit_state_bkref): Make DFA a const pointer.
117327         (get_subexp): Likewise.
117328         (check_arrival): Likewise.
117329         (update_cur_sifted_state): Likewise.
117330         (re_search_internal): Likewise.
117331         (prune_impossible_nodes): Likewise.
117332         (acquire_init_state_context): Likewise.
117333         (proceed_next_node): Likewise.
117334         (set_regs): Likewise.
117335         (free_fail_stack_return): Likewise.
117336         (check_arrival_expand_ecl): Mark DFA parameter as const.
117337         (check_arrival_expand_ecl_sub): Likewise.
117338         (check_subexp_limits): Likewise.
117339         (sub_epsilon_src_nodes):  Likewise.
117340         (add_epsilon_src_nodes):  Likewise.
117341         (merge_state_array): Likewise.
117342         (update_regs): Likewise.
117343         (build_trtable): Likewise.
117344         (sift_states_backward): Mark MCTX parameter as const.
117345         (build_sifted_states): Likewise.
117346         (update_cur_sifted_state): Likewise.
117347         (sift_states_mkref): Likewise.
117348         (check_arrival_expand_ecl): Mark eclosure as const.
117349         (check_dst_limits_calc_pos_1): Likewise.
117350         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117351         pointer.
117353         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117355         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117356         (transit_state_sb): Likewise.
117357         (transit_state_mb): Likewise.
117358         (sift_states_iter_mb): Likewise.
117359         (check_arrival_add_next_nodes): Likewise.
117360         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117361         [_LIBC] (re_search_2_stub): Use mempcpy.
117363         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117364         mbrtowc for very simple UTF-8 case.
117366         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117367         a pointer-to-const.
117368         (re_acquire_state_context): Likewise.
117369         * lib/regex_internal.h: Adjust prototypes.
117371         * lib/regex.c: Prevent using C++ compilers.
117373         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117374         (re_acquire_state_context): Likewise.
117376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117378         * modules/regex (Depends-on): Add ssize_t.
117380 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117382         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117383         translation table.
117385 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117387         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117389 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117390             Bruno Haible  <bruno@clisp.org>
117392         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117393         <sys/types.h> and <inttypes.h>.
117395 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117397         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117398         `__error_t_defined', so argp.h will not typedef the former.
117400 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117402         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117403         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117404         glibc names.  Even if glibc is changed to conform to POSIX, the
117405         traditional names will be available anyway, since regex depends on
117406         the extensions module.  Also, fix a longstanding typo in the
117407         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117408         reported by Emanuele Giaquinta.  Also, change sense of cached
117409         variable, so that the message makes sense.
117411 2006-03-24  Simon Josefsson  <jas@extundo.com>
117413         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117414         including some doc fixes.
117415         (base64_encode_alloc): Fix +1 bug on allocation failures.
117417 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117419         * lib/base64.c (base64_encode): Do not read past end of array with
117420         unsanitized input on systems with CHAR_BIT > 8.
117422 2006-03-24  Eric Blake  <ebb9@byu.net>
117424         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117426 2006-03-22  Karl Berry  <karl@gnu.org>
117428         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117429         * config/srclistvars.sh (COREUTILS): new var.
117431 2006-03-17  Jim Meyering  <jim@meyering.net>
117433         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117434         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117436 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117438         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117439         no longer needs it.  Instead, check that regoff_t is as least
117440         as wide as ptrdiff_t.
117442         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117443         so that our regex.h stays compatible with the installed regex.
117444         This is helpful for installers who configure --without-included-regex.
117445         Problem reported by Emanuele Giaquinta.
117447 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117449         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117450         Typedef to long int, not to off_, as POSIX will likely change
117451         in that direction.
117453 2006-03-15  Eric Blake  <ebb9@byu.net>
117455         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117457 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117459         * lib/argp-help.c (validate_uparams): Fix typo
117460         * lib/argp-parse.c (argp_default_options): Consistently begin help
117461         messages with a lowercase letter.
117463 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117465         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117466         overrun buffers and shouldn't be used (much as gets shouldn't be
117467         used).
117468         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117470 2006-03-08  Simon Josefsson  <jas@extundo.com>
117472         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117473         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117475 2006-03-08  Simon Josefsson  <jas@extundo.com>
117477         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117478         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117480 2006-03-08  Simon Josefsson  <jas@extundo.com>
117482         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117483         signal that configure disabled the device.
117485 2006-03-08  Simon Josefsson  <jas@extundo.com>
117487         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117488         languages.
117490 2006-03-07  Simon Josefsson  <jas@extundo.com>
117492         * modules/getopt (Depends-on): Add unistd.
117494         * modules/unistd: New file.
117496 2006-03-07  Simon Josefsson  <jas@extundo.com>
117498         * modules/gc-random: New file.
117500 2006-03-07  Simon Josefsson  <jas@extundo.com>
117502         * m4/unistd_h.m4: New file.
117504 2006-03-07  Simon Josefsson  <jas@extundo.com>
117506         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117507         test to be side-effect free by storing the result in the cache
117508         variable gl_cv_lib_readline, and moving the assignment of
117509         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117510         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117512 2006-03-07  Simon Josefsson  <jas@extundo.com>
117514         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117515         error on missing devices (the functions will return an error).
117517         * m4/gc.m4: Move random stuff to gc-random.m4
117519 2006-03-07  Simon Josefsson  <jas@extundo.com>
117521         * lib/unistd_.h: New file.
117523 2006-03-07  Simon Josefsson  <jas@extundo.com>
117525         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117527 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117529         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117530         Problem reported by Juan Manuel Guerrero.
117532 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117534         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117535         the unistd module.
117536         * lib/getlogin_r.c: Likewise.
117537         * lib/getlogin_r.h: Likewise.
117538         * lib/glob.c: Likewise.
117539         * lib/pagealign_alloc.c: Likewise.
117540         * lib/unistd_.h: Remove; no longer needed.
117542 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117544         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117545         Add unistd.
117546         * modules/c-stack (Depends-on): Add unistd.
117547         * modules/getlogin_r: Likewise.
117548         * modules/glob: Likewise.
117549         * modules/pagealign_alloc: Likewise.
117550         * modules/unistd (Files): Remove lib/unistd_.h.
117551         (EXTRA_DIST): Remove.
117552         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117553         need unistd_.h.
117554         (MOSTLYCLEANFILES): Remove unistd.h-t.
117556 2006-03-03  Simon Josefsson  <jas@extundo.com>
117558         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117560 2006-03-03  Simon Josefsson  <jas@extundo.com>
117562         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117563         libidn and bison.
117565 2006-03-03  Simon Josefsson  <jas@extundo.com>
117567         * build-aux/maint.mk: Add indent target.
117569 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117571         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117572         our replacement poll.h in any case, to avoid a differing
117573         declaration from a system header.  Seen on AIX.
117575 2006-03-01  Simon Josefsson  <jas@extundo.com>
117577         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117578         <kasal@ucw.cz>.
117580 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117582         * modules/gettime (Depends-on): Add extensions module.
117583         * modules/nanosleep (Depends-on): Likewise.
117584         * modules/settime (Depends-on): Likewise.
117586 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117588         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117589         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117590         pedantically.
117591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117592         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117594         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117595         not "==".  Reported by Ralf Wildenhues.
117597 2006-03-01  Karl Berry  <karl@gnu.org>
117599         * doc/Copyright/request-*: new files, synced from gnuorg.
117601 2006-03-01  Karl Berry  <karl@gnu.org>
117603         * config/srclist.txt (Copyright/*): new entries.
117605 2006-02-28  Simon Josefsson  <jas@extundo.com>
117607         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117609 2006-02-27  Simon Josefsson  <jas@extundo.com>
117611         * lib/base64.h: Indent #define's.  From Jim Meyering
117612         <jim@meyering.net>.
117614 2006-02-27  Jim Meyering  <jim@meyering.net>
117616         Revert the change of 2006-02-24, so these files can continue
117617         to be sync'd from gettext.
117618         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117619         of `config.h'.
117621 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117623         * modules/intprops: New file.
117624         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117625         Add intprops.
117626         * modules/getloadavg (Files): Remove lib/intprops.h.
117627         (Depends-on): Add intprops.
117628         * modules/human: Likewise.
117629         * modules/inttostr: Likewise.
117630         * modules/openat: Likewise.
117631         * modules/sig2str: Likewise.
117632         * modules/userspec: Likewise.
117633         * modules/utimecmp: Likewise.
117634         * modules/xnanosleep: Likewise.
117635         * modules/xstrtol: Likewise.
117637 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117639         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117640         * modules/lock-tests (TESTS): Use $(EXEEXT).
117641         * modules/tls-tests: Likewise.
117642         * modules/argp-tests: Likewise.
117643         (check_PROGRAMS): New var, replacing...
117644         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117646 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117648         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117649         `config.h'.
117651 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117653         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117655 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117657         Sync from coreutils.
117658         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117659         gl_CHDIR_SAFER.
117661 2006-02-22  Jim Meyering  <jim@meyering.net>
117663         Sync from coreutils.
117664         * m4/chdir-safer.m4: New file.
117666 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117668         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117669         AT_FDCWD exceeds INT_MAX.
117670         * lib/openat.h (AT_FDCWD): Likewise.
117672 2006-02-17  Eric Blake  <address@hidden>
117674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117676 2006-02-16  Simon Josefsson  <jas@extundo.com>
117678         * modules/getaddrinfo (Depends-on): Add sys_socket.
117680 2006-02-15  Simon Josefsson  <jas@extundo.com>
117682         * build-aux/maint.mk: Add dsyntax-check rule.
117684 2006-02-15  Eric Blake  <ebb9@byu.net>
117686         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117687         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117688         'present but cannot compile' warnings on cygwin.
117689         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117690         use ws2tcpip.h if sys/socket.h works.
117691         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117692         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117694 2006-02-14  Simon Josefsson  <jas@extundo.com>
117696         * modules/maintainer-makefile (Files): Rename.
117698         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117699         and (the local) Makefile.cfg to maint-cfg.mk.
117701         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117702         to the latter.
117704         * modules/maintainer-makefile: New module.
117706         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117707         severaly stripped to make it possible to build it up from scratch
117708         with reliable tests.
117710         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117711         fixes to permit overriding the default actions when configure and
117712         makefile are not available.
117714 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117716         Sync from coreutils.
117717         * modules/lstat (Depends-on): Don't depend on xalloc.
117718         (License): Change from GPL to LGPL, since this is now simply a
117719         replacement for a libc function.
117721 2006-02-14  Jim Meyering  <jim@meyering.net>
117723         Sync from coreutils.
117725         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117726         failure on deficient systems, and simplify gnulib lgpl dependencies.
117727         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117728         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117730         * lib/xalloc-die.c: Remove unused definition of N_.
117732 2006-02-14  Jim Meyering  <jim@meyering.net>
117734         Sync from coreutils.
117735         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117736         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117737         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117738         double-quote uses of that variable, to accommodate the rare case in
117739         which getmntent is available in none of the libraries checked.  This
117740         happens at least on FreeBSD 5.0.
117742 2006-02-13  Simon Josefsson  <jas@extundo.com>
117744         * gnulib-tool (Usage): Fix --import, from
117745         karl@freefriends.org (Karl Berry).
117747 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117749         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117751 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117753         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117754         "autoupdate" on 2005-12-12.
117756 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117758         * modules/closeout (Depends-on): Remove atexit.
117760 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117762         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117763         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117765 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117767         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117768         __EXTENSIONS__ if this causes compilation to fail.  Problem
117769         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117770         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117772 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117774         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117775         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117776         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117777         All uses changed.
117779 2006-01-26  Simon Josefsson  <jas@extundo.com>
117781         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117782         prototype is visible on mingw32.
117784         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117785         for mingw32.
117787         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117788         mingw32).
117790 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117792         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117793         attempt to open for write; this always fails, at least on POSIX
117794         hosts.  This reinstates the 2006-01-09 change, which was
117795         inadvertently removed.
117797 2006-01-26  Bruno Haible  <bruno@clisp.org>
117799         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117800         Reported by Paul Eggert.
117802 2006-01-26  Bruno Haible  <bruno@clisp.org>
117803             Paul Eggert  <eggert@cs.ucla.edu>
117805         * lib/stdbool_.h (_Bool)
117806         [(! (defined __cplusplus || defined __BEOS__)
117807           && !defined __GNUC__
117808           && !(defined __HP_cc || defined __xlc__
117809                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117810                || defined __sgi))]:
117811         #define to signed char in these cases too; this simplifies
117812         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117813         etc., separately) and makes it more conservative.
117815 2006-01-25  Simon Josefsson  <jas@extundo.com>
117817         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117818         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117819         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117821 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117823         * lib/argp-namefrob.h: Bugfix. Remove stray #
117825 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117828         so that we test the test.
117829         Check for yet another HP-UX cc bug involving *bool |= bool.
117831 2006-01-25  Karl Berry  <karl@gnu.org>
117833         * config/srclist.txt (vasnprintf.c): sync lost.
117835 2006-01-25  Jim Meyering  <jim@meyering.net>
117837         Sync from the stable (b5) branch of coreutils:
117839         * lib/fts.c (fts_children): Don't let close() clobber errno from
117840         failed fchdir().
117842         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117843         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117844         a dangling symlink.  That can also happen at least for ELOOP.
117845         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117846         FYI, this bug predates the inclusion of fts.c in coreutils.
117848         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117849         in their own block, so pre-c99 compilers don't object.
117851         Avoid the double-free (first in fts_read, second in fts_close) that
117852         would occur when an `active' directory is made inaccessible (e.g.,
117853         via chmod a-x) during a traversal.
117854         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117855         before returning.  Reproduce this failure by
117856         mkdir -p a/b; cd a; chmod a-x . b
117857         Reported by Stavros Passas.
117859 2006-01-25  Jim Meyering  <jim@meyering.net>
117861         * lib/fileblocks.c: Remove more useless parentheses.
117862         * lib/readutmp.h: Likewise.
117864 2006-01-25  Bruno Haible  <bruno@clisp.org>
117866         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117867         warnings.
117868         Reported by Paul Eggert.
117870 2006-01-25  Bruno Haible  <bruno@clisp.org>
117872         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117873         rid of a trap command. For Solaris sh.
117874         Reported by Mark D. Baushke <mdb@gnu.org>.
117876 2006-01-24  Simon Josefsson  <jas@extundo.com>
117878         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117879         Bruno.
117881 2006-01-24  Karl Berry  <karl@gnu.org>
117883         * config/srclist.txt (argp-namefrob.h): sync lost.
117885 2006-01-24  Jim Meyering  <jim@meyering.net>
117887         * modules/openat (Files): Add lib/intprops.h.
117888         From Mark D. Baushke.
117890 2006-01-24  Jim Meyering  <jim@meyering.net>
117892         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117893         Reported by Mark D. Baushke.
117895 2006-01-24  Jim Meyering  <jim@meyering.net>
117897         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117899 2006-01-24  Bruno Haible  <bruno@clisp.org>
117901         * modules/strnlen (Maintainer): Change from glibc to all.
117903 2006-01-24  Bruno Haible  <bruno@clisp.org>
117905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117906         Patch by Paul Eggert.
117908 2006-01-24  Bruno Haible  <bruno@clisp.org>
117910         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117911         already has it.
117912         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117913         2005-11-26.
117915         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117916         'signed char' to avoid problems with the built-in _Bool type.
117917         Reported by Paul Eggert on 2005-11-26.
117919 2006-01-24  Bruno Haible  <bruno@clisp.org>
117921         * gnulib-tool (func_import): Avoid constructing complicated sed
117922         expressions inside backquote.
117923         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117925 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117927         These changes imported from libc.
117928         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117929         test and two separate function calls.
117930         * lib/strndup.c (__strndup): Add libc_hidden_def.
117932 2006-01-23  Simon Josefsson  <jas@extundo.com>
117934         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117935         Remove the test_*_SOURCES variable: automake infers it by default.
117936         * modules/tls-tests: Likewise.
117938 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117940         Work around porting bugs reported by Dieter in
117941         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117942         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117943         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117944         Include "getopt.h" first, to check interface.
117945         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117946         !HAVE_DECL_GETENV.
117947         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117948         (__strndup): Revert to K&R-style function dfns, the glibc style.
117949         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117950         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117951         Include strnlen.h first, to get prototype properly.
117952         (strnlen): Renamed from __strnlen.
117953         Remove weak alias.
117955 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117957         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117959 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117961         * config/srclist.txt: Adjust to reflect glibc reorganization.
117962         This affects only comments.
117964 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117966          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117967          Reported by Bruce Korb <bkorb@gnu.org>.
117969 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117971         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117972         to pacify gcc -Wswitch-default.
117974 2006-01-22  Bruno Haible  <bruno@clisp.org>
117976         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117977         temporary buffer for sprintf, take into account the precision also
117978         for 'd', 'i', 'u', 'o', 'x', 'X'.
117980 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117982         * modules/argp-tests: New module
117983         * tests/test-argp.c: New file
117984         * tests/test-argp-2.sh: New file
117986 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117988         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117989         (__argp_base_name): Removed
117990         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117991         typo.
117992         (__argp_base_name): Provide macro definition or extern declaration
117993         depending on the configuration
117995 2006-01-20  Simon Josefsson  <jas@extundo.com>
117997         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117999 2006-01-20  Simon Josefsson  <jas@extundo.com>
118001         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118003 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118005         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118006         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118007         Suggested by Bruno Haible.
118009 2006-01-20  Karl Berry  <karl@gnu.org>
118011         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118012         until changes propagate, I guess.
118014 2006-01-19  Simon Josefsson  <jas@extundo.com>
118016         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118018 2006-01-19  Simon Josefsson  <jas@extundo.com>
118020         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118022 2006-01-19  Simon Josefsson  <jas@extundo.com>
118024         * gnulib-tool: Set check_PROGRAMS.
118026         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118027         modules/des-tests, modules/gc-arcfour-tests,
118028         modules/gc-arctwo-tests, modules/gc-des-tests,
118029         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118030         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118031         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118032         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118033         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118034         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118035         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118036         test_*_SOURCES.
118038 2006-01-18  Simon Josefsson  <jas@extundo.com>
118040         * modules/socklen (Depends-on): Depend on sys_socket.
118042 2006-01-18  Simon Josefsson  <jas@extundo.com>
118044         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118045         modules/des-tests, modules/gc-arcfour-tests,
118046         modules/gc-arctwo-tests, modules/gc-des-tests,
118047         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118048         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118049         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118050         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118051         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118052         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118053         $(EXEEXT) to automake TESTS variable, for mingw32.
118055 2006-01-17  Simon Josefsson  <jas@extundo.com>
118057         * modules/socklen (Include): Need sys/socket.h.
118059 2006-01-17  Bruno Haible  <bruno@clisp.org>
118061         * modules/ssize_t (Include): Add <sys/types.h>.
118063 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118065         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118066         it's not portable and it doesn't work with cross-compiles.
118067         Problem reported by Bruno Haible.  Fix missing-$ typo in
118068         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118069         -zignore from being used with Sun's C compiler.
118071 2006-01-12  Simon Josefsson  <jas@extundo.com>
118073         * lib/base64.c: Fix warning, reported by Bruno Haible
118074         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118076 2006-01-12  Bruno Haible  <bruno@clisp.org>
118078         * modules/ldd: New file.
118079         * build-aux/ldd.sh.in: New file.
118080         * MODULES.html.sh (Support for building libraries and executables): Add
118081         ldd.
118083 2006-01-12  Bruno Haible  <bruno@clisp.org>
118085         * m4/ldd.m4: New file.
118087 2006-01-12  Bruno Haible  <bruno@clisp.org>
118089         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118090         endless loop while replacing $auxdir with build-aux.
118092 2006-01-11  Simon Josefsson  <jas@extundo.com>
118094         * lib/stdint_.h (SIZE_MAX): Add missing (.
118096 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118098         Sync from coreutils.
118099         * lib/md5.c: Fix commentary typos.
118100         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118101         * lib/md5.h (__attribute__): Remove; unused.
118102         * lib/sha1.c: Fix commentary to match md5 better.
118103         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118104         so that we don't need to worry about alignment.  All uses changed.
118105         This merges the 2005-10-28 md5 change into sha1.
118107 2006-01-11  Jim Meyering  <jim@meyering.net>
118109         Sync from coreutils.
118110         * lib/md5.c (OP): Fix spacing.
118112 2006-01-11  Bruno Haible  <bruno@clisp.org>
118114         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118115         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118116         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118118 2006-01-11  Bruno Haible  <bruno@clisp.org>
118120         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118121         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118122         the "early" section as well.
118124 2006-01-11  Bruno Haible  <bruno@clisp.org>
118126         Avoid "ar: no archive members specified" error on MacOS X.
118127         * gnulib-tool (func_modules_add_dummy): New function.
118128         (func_import, func_create_testdir): Invoke it.
118130 2006-01-11  Bruno Haible  <bruno@clisp.org>
118132         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118133         with $auxdir in AC_CONFIG_FILES statements.
118135 2006-01-11  Bruno Haible  <bruno@clisp.org>
118137         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118138         Initialize also noinst_HEADERS to empty.
118140 2006-01-11  Bruno Haible  <bruno@clisp.org>
118142         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118143         variables.
118144         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118145         autoreconf.
118147 2006-01-11  Bruno Haible  <bruno@clisp.org>
118149         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118150         overridable by the user.
118151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118153 2006-01-10  Simon Josefsson  <jas@extundo.com>
118155         * modules/sys_socket: New file.
118157 2006-01-10  Simon Josefsson  <jas@extundo.com>
118159         * m4/sys_socket_h.m4: New file.
118161 2006-01-10  Simon Josefsson  <jas@extundo.com>
118163         * lib/socket_.h: New file.
118165 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118167         * modules/readutmp (Maintainer): Add myself.
118169 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118171         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118172         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118173         People who are still concerned with buggy memcmp implementations
118174         can invoke gl_FUNC_MEMCMP themselves.
118176 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118178         * lib/regex_internal.h (BITSET_WORD_BITS):
118179         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118180         preprocessor mishandles large unsigned values as if they were signed.
118181         Problem reported by Claudio Fontana in
118182         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118184 2006-01-10  Jim Meyering  <jim@meyering.net>
118186         Avoid the double-free (first in fts_read, second in fts_close) that
118187         would occur when an `active' directory is made inaccessible (e.g.,
118188         via chmod a-x) during a traversal.
118189         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118190         before returning.  Reproduce this failure by
118191         mkdir -p a/b; cd a; chmod a-x . b
118192         Reported by Stavros Passas.
118194         Sync from coreutils.
118195         * lib/sha1.c: Tweak grammar in a comment.
118197 2006-01-10  Jim Meyering  <jim@meyering.net>
118199         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118200         Patch by Joerg Sonnenberger.
118202 2006-01-10  Bruno Haible  <bruno@clisp.org>
118204         * modules/readutmp: Depend on module free.
118205         * modules/strtok_r: Depend on module restrict.
118207 2006-01-10  Bruno Haible  <bruno@clisp.org>
118209         * modules/gettext (configure.ac): Add an invocation of
118210         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118212 2006-01-10  Bruno Haible  <bruno@clisp.org>
118214         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118215         Reported by Werner Lemberg <wl@gnu.org>.
118217 2006-01-10  Bruno Haible  <bruno@clisp.org>
118219         * lib/localcharset.c: Update from GNU gettext.
118221 2006-01-10  Bruno Haible  <bruno@clisp.org>
118223         * lib/argp.h (__const): Remove macro. Use const instead.
118224         * lib/argp-fmtstream.h (__const): Likewise.
118225         * lib/glob_.h (__const): Remove macro.
118226         * lib/glob-libc.h: Use const instead of __const.
118228 2006-01-10  Bruno Haible  <bruno@clisp.org>
118230         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118231         variable.
118232         Needed to avoid an automake error regarding the 'gettext' module.
118234 2006-01-09  Simon Josefsson  <jas@extundo.com>
118236         * modules/inet_ntop (Depends-on): Add restrict.
118238 2006-01-09  Simon Josefsson  <jas@extundo.com>
118240         * modules/gc-rijndael-tests (License): Put under LGPL.
118242         * modules/gc-des-tests (License): Likewise.
118244         * modules/gc-arcfour-tests (License): Likewise.
118246         * modules/gc-arctwo-tests (License): Likewise.
118248         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118250         * modules/gc-hmac-sha1-tests (Files): Likewise.
118252         * modules/gc-hmac-md5-tests (License): Likewise.
118254         * modules/gc-sha1-tests (License): Likewise.
118256         * modules/gc-md5-tests (License): Likewise.
118258         * modules/gc-md4-tests (License): Likewise.
118260         * modules/gc-md2-tests (License): Likewise.
118262         * modules/gc-tests (License): Likewise.
118264         * modules/des-tests (License): Likewise.
118266         * modules/md4-tests (License): Likewise.
118268         * modules/md2-tests (License): Likewise.
118270 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118272         Sync from coreutils:
118274         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118275         * modules/lib-ignore: New file.
118276         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118277         chdir-safer.m4, lchmod.m4.
118278         * modules/openat: Add mkdirat.c, openat-priv.h.
118280 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118282         Sync from coreutils.
118283         * m4/lib-ignore.m4: New file.
118284         * m4/lchmod.m4: New file.
118286 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118288         Sync from coreutils.
118289         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118290         for write access: POSIX says that must fail.
118291         * lib/fts.c (diropen): Likewise.
118292         * lib/save-cwd.c (save_cwd): Likewise.
118293         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118294         well, for minor improvements on hosts that lack O_DIRECTORY.
118295         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118296         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118297         Fall back on chown if open failed with EACCES.
118299         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118300         Report an error at compile-time if only a 1-second nominal clock
118301         resolution is found.
118303         * lib/lchmod.h: New file.
118304         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118305         (make_dir_parents): Use lchown rather than chown, and
118306         lchmod rather than chmod.
118308         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118309         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118310         "proc" reported by n0dalus.
118312         * lib/mountlist.c: Include <limits.h>.
118313         (dev_from_mount_options)
118314         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118315         New function.  It no longer assumes "dev=" has the System V meaning
118316         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118317         (read_file_system_list)
118318         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118319         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118320         dev= in that case.
118322         * lib/posixtm.h (PDS_PRE_2000): New macro.
118323         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118324         allow_century.  All usages changed.  Reject dates outside the range
118325         1969-1999 if PDS_PRE_2000 is used.
118327 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118329         Sync from coreutils.
118330         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118331         (Time of day items): Mention the possibility of leap seconds.
118332         Problem reported by Dr. David Alan Gilbert.
118334 2006-01-09  Jim Meyering  <jim@meyering.net>
118336         Sync from coreutils.
118338         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118340         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118342         * lib/modechange.c (mode_compile): Reject an invalid mode string
118343         that starts with an octal digit.  From Andreas Gruenbacher.
118345         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118346         and dup to open_safer and dup_safer, respectively.
118347         (openat_permissive): Fix typo in comment.
118349         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118350         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118351         (_): Remove; no longer needed.
118352         (openat): Renamed from rpl_openat; no need for rpl_openat
118353         since openat.h renames openat for us.
118354         Replace most of the body with a call to openat_permissive,
118355         to avoid duplicate code.
118356         Port to (probably hypothetical) environments were mode_t is
118357         wider than int.
118358         (openat_permissive): Require mode arg, so that we can check
118359         types better.  Put it just after flags.  Change cwd failure
118360         indicator from pointer-to-bool to pointer-to-errno-value.
118361         All callers changed.
118362         Invoke openat_save_fail and/or openat_restore_fail if
118363         cwd_errno is null, so that openat can call us.
118364         (openat_permissive, fdopendir, fstatat, unlinkat):
118365         Simplify errno handling to avoid some duplicate code,
118366         as it's OK to set errno on success.
118367         * lib/openat.h: Revamp code so that function macros depend on
118368         __OPENAT_PREFIX only, not also on AT_FDCWD.
118369         (openat_ro): Remove.  Caller changed to use openat_permissive.
118370         (openat_permissive): Now a macro, if not a function.
118371         (openat_restore_fail, openat_save_fail): Now always functions,
118372         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118374         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118375         and openat.c.
118376         * lib/mkdirat.c: Include openat-priv.h.
118377         Remove definitions of macros defined therein.
118378         * lib/openat.c: Likewise.
118380         * lib/mkdirat.c (mkdirat): New file and function.
118381         * lib/openat.h (mkdirat): Declare.
118383         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118385         * lib/openat.h (openat_permissive): Declare.
118386         (openat_ro): Define.
118388         * lib/openat.c (EXPECTED_ERRNO): New macro.
118389         (openat_permissive): New function -- used in remove.c rewrite.
118390         (all functions): Set errno just before returning, only if there
118391         was an actual failure.
118392         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118394         Emulate openat-family functions using Linux's procfs, if possible.
118395         Idea and some code based on Ulrich Drepper's glibc changes.
118397         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118398         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118399         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118400         before falling back on save_cwd and restore_cwd.
118401         (fdopendir, fstatat, unlinkat): Likewise.
118403         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118404         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118406         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118407         as second argument to va_arg.  Otherwise, some versions of gcc
118408         warn that `if this code is reached, the program will abort'.
118410 2006-01-09  Jim Meyering  <jim@meyering.net>
118412         Sync from coreutils.
118413         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118414         Require openat-priv.h.
118416 2006-01-09  Bruno Haible  <bruno@clisp.org>
118418         * modules/strnlen (Include): Use strnlen.h.
118420 2006-01-09  Bruno Haible  <bruno@clisp.org>
118422         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118424 2006-01-09  Bruno Haible  <bruno@clisp.org>
118426         * lib/sysexit_.h (EX_OK): New macro.
118427         Suggested by Martin Lambers <marlam@marlam.de>.
118429 2006-01-09  Bruno Haible  <bruno@clisp.org>
118431         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118432         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118434 2006-01-09  Bruno Haible  <bruno@clisp.org>
118436         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118437         numbers.
118439 2006-01-09  Bruno Haible  <bruno@clisp.org>
118441         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118442         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118443         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118444         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118446 2006-01-09  Bruno Haible  <bruno@clisp.org>
118448         * build-aux/javacomp.sh.in: New file, moved from lib/.
118449         * modules/javacomp-script (Files): Update.
118450         (configure.ac): Add AC_CONFIG_FILES invocation.
118451         (EXTRA_DIST): Remove variable.
118453         * build-aux/javaexec.sh.in: New file, moved from lib/.
118454         * modules/javaexec (Files): Update.
118455         (configure.ac): Add AC_CONFIG_FILES invocation.
118456         (EXTRA_DIST): Remove javaexec.sh.in.
118458         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118459         * modules/csharpcomp-script (Files): Update.
118460         (configure.ac): Add AC_CONFIG_FILES invocation.
118461         (EXTRA_DIST): Remove variable.
118463         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118464         * modules/csharpexec (Files): Update.
118465         (configure.ac): Add AC_CONFIG_FILES invocation.
118466         (EXTRA_DIST): Remove csharpexec.sh.in.
118468 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118470         Sync from coreutils.
118472         Add POSIX ACL support
118473         * lib/acl.h (copy_acl, set_acl): Add declarations.
118474         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118475         systems other than Linux.
118476         (chmod_or_fchmod): New function: use fchmod when possible,
118477         and chmod otherwise.
118478         (file_has_acl): Add a POSIX ACL implementation, with a
118479         Linux-specific subcase.
118480         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118481         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118482         acls are unsupported.
118483         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118484         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118485         are unsupported.
118487 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118489         Sync from coreutils.
118490         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118492 2006-01-07  Bruno Haible  <bruno@clisp.org>
118494         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118495         gl_EARLY.
118497 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118499         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118500         Problem reported for Mingw by Mark Junker.
118502 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118504         * README: Gnulib normally doesn't generate a tarball.
118506 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118508         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118509         long int, not int, for nanosecond counts, so that people who are
118510         used to POSIX struct timespec won't be surprised.  Reported by Jim
118511         Meyering.
118513 2005-12-28  Bruno Haible  <bruno@clisp.org>
118515         * build-aux/config.rpath: Update from GNU gettext.
118517 2005-12-16  Jim Meyering  <jim@meyering.net>
118519         * modules/fprintftime: New module.
118520         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118522 2005-12-16  Jim Meyering  <jim@meyering.net>
118524         * m4/fprintftime.m4: New file.
118526 2005-12-16  Jim Meyering  <jim@meyering.net>
118528         * lib/fprintftime.c, lib/fprintftime.h: New files.
118530 2005-12-15  Simon Josefsson  <jas@extundo.com>
118532         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118533         new m4/socklen.m4.
118535 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118537         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118538         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118540 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118542         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118543         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118544         struct uparams is valid. Fall back to the default values if it is
118545         not.
118547 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118549         * modules/argp (Files): Add argp-pin.c
118550         (Depends-on): dirname
118551         (lib_SOURCES): Add argp-pin.c
118553 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118555         * m4/argp.m4:  Check if program_invocation_name and
118556         program_invocation_short_name are declared and define appropriate
118557         macros if they are not.
118559 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118561         * lib/argp-help.c (__argp_base_name): New function
118562         (__argp_short_program_name): Rewrite using __argp_base_name
118563         * lib/argp-namefrob.h: Define program_invocation_name and
118564         program_invocation_short_name if requested
118565         (__argp_base_name): Add prototype
118566         * lib/argp-parse.c (argp_def): Use gettext wrappers
118567         (argp_default_parser): Use __argp_base_name
118568         * lib/argp-pin.c: New file. Defines program_invocation_name and
118569         program_invocation_short_name on systems that lack them.
118571 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118573         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118574         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118575         porting problem reported by Georg Schwarz in
118576         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118578 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118580         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118581         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118582         porting problem reported by Georg Schwarz in
118583         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118585 2005-12-05  Bruno Haible  <bruno@clisp.org>
118587         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118588         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118589         Reported by Mark Junker <mjscod@gmx.de>.
118591 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118593         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118594         Use implementation from Albert Chin, with some
118595         comments/corrections by Stepan Kasal and myself.
118597 2005-12-02  Bruno Haible  <bruno@clisp.org>
118599         * gnulib-tool (func_import): Accept GPLed build tool modules when
118600         --lgpl is given.
118601         * modules/csharpcomp-script: New file.
118602         * modules/csharpcomp: Depend on it.
118603         * modules/javacomp-script: New file.
118604         * modules/javacomp: Depend on it.
118605         Suggested by Simon Josefsson.
118607 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118609         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118610         statement, to work around an HP-UX 10.20 compiler bug reported by
118611         Peter O'Gorman.
118613 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118615         * modules/savedir (Depends-on): Add openat.
118617 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118619         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118620         (uintmax_t) [defined uintmax_t]: Do not declare.
118621         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118622         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118623         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118624         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118625         sake of portability to weird hosts that C allows (though we don't
118626         know of any practical examples).
118628         * lib/savedir.h (fdsavedir): New decl.
118629         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118630         contains most of the former guts of savedir.
118631         (savedir): Use savedirstream.
118632         Include "openat.h".
118634 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118636         * modules/obstack (Files): Add m4/ulonglong.m4.
118637         Problem reported by Davide Angelocola.
118639 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118641         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118642         coreutils no longer futzes with rounding modes.
118644 2005-11-14  Jim Meyering  <jim@meyering.net>
118646         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118647         replacement of mkstemp.
118649 2005-11-10  Simon Josefsson  <jas@extundo.com>
118651         * lib/readline.c: Remove EOL.
118653 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118655         * modules/gethrxtime (Depends-on): Add gettime.
118657 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118659         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118660         or gettimeofday; no longer needed.
118662 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118664         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118665         time business.
118666         (gethrxtime) [! (HAVE_NANOUPTIME
118667         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118668         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118669         our own approximation.
118671 2005-11-08  Eric Blake  <ebb9@byu.net>
118673         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118675 2005-11-08  Eric Blake  <ebb9@byu.net>
118677         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118679 2005-11-04  Bruno Haible  <bruno@clisp.org>
118681         * gnulib-tool: Implement --update mode.
118683 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118685         Fix porting problem reported by Theodoros V. Kalamatianos.
118686         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118687         Don't assume that futimes failing means we must fail.
118689 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118691         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118692         variables to suggest the intended function of the PATH_MAX check.
118694 2005-10-30  Kean Johnston  <jkj@sco.com>
118696         Trivial changes to support SCO systems.
118697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118698         as PATH_MAX.
118699         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118700         where __ptr is null when no I/O is pending.
118702 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118704         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118705         leave errno alone.  Problem reported by Dmitry V. Levin.
118707 2005-10-28  Simon Josefsson  <jas@extundo.com>
118709         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118710         Test more.
118712         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118714         * modules/md2, modules/md2-tests: New files.
118716 2005-10-28  Simon Josefsson  <jas@extundo.com>
118718         * m4/inet_ntop.m4: More tests.
118720         * m4/gc-md2.m4, md2.m4: New file.
118722 2005-10-28  Simon Josefsson  <jas@extundo.com>
118724         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118725         "restrict" keywords, as per POSIX.  Protect the function
118726         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118727         Don't use K&R prototypes.  Check the sprintf return values.
118728         Re-define EAFNOSUPPORT if not present.  Indent.
118730         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118731         suggested by Bruno Haible <bruno@clisp.org>.
118733         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118735         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118737         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118738         libgcrypt).
118740         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118742         * lib/md2.h, lib/md2.c: New files.
118744 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118746         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118747         errno alone.  Problem reported by Frederic Jolliton.
118749 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118751         * modules/verify (License): Change from GPL to LGPL.  This is a
118752         tiny module and there are apparently near-equivalents that are
118753         under the BSD license.
118755 2005-10-24  Simon Josefsson  <jas@extundo.com>
118757         * modules/sha1: Relicense to LGPL.
118759 2005-10-24  Simon Josefsson  <jas@extundo.com>
118761         * lib/md4.h: Shrink buffer size, now that we changed the type.
118763 2005-10-23  Simon Josefsson  <jas@extundo.com>
118765         * gnulib-tool (func_import): Fix --tests-base.
118767 2005-10-22  Simon Josefsson  <jas@extundo.com>
118769         * modules/arcfour (Depends-on): Need stdint.
118771 2005-10-22  Simon Josefsson  <jas@extundo.com>
118773         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118774         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118776 2005-10-22  Simon Josefsson  <jas@extundo.com>
118778         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118779         suggested by Bruno Haible <bruno@clisp.org>.
118781 2005-10-22  Simon Josefsson  <jas@extundo.com>
118783         * lib/crc.h: Include stddef.h, for size_t.
118785 2005-10-22  Simon Josefsson  <jas@extundo.com>
118787         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118788         arcfour_context struct (simplify test vector testing in GNU
118789         Shishi).
118791 2005-10-21  Simon Josefsson  <jas@extundo.com>
118793         * modules/des, modules/des-tests: New files.
118795         * modules/gc-des, modules/gc-des-tests: New files.
118797         * tests/test-des.c, tests/test-gc-des.c: New file.
118799 2005-10-21  Simon Josefsson  <jas@extundo.com>
118801         * modules/arctwo, modules/arctwo-tests: New files.
118803         * tests/test-arctwo.c: New file.
118805         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118807         * tests/test-gc-arctwo.c: New file.
118809 2005-10-21  Simon Josefsson  <jas@extundo.com>
118811         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118812         Bruno Haible <bruno@clisp.org>.
118814         * m4/gc-des.m4: New file.
118816 2005-10-21  Simon Josefsson  <jas@extundo.com>
118818         * m4/arctwo.m4: New file.
118820         * m4/gc-arctwo.m4: New file.
118822 2005-10-21  Simon Josefsson  <jas@extundo.com>
118824         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118825         block.
118827 2005-10-21  Simon Josefsson  <jas@extundo.com>
118829         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118830         <bruno@clisp.org>.
118832         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118834         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118835         Bruno Haible <bruno@clisp.org>.
118837         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118838         <bruno@clisp.org>.
118840 2005-10-21  Simon Josefsson  <jas@extundo.com>
118842         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118844 2005-10-21  Simon Josefsson  <jas@extundo.com>
118846         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118848 2005-10-21  Simon Josefsson  <jas@extundo.com>
118850         * lib/des.h, lib/des.c: New files.
118852         * lib/gc-gnulib.c: Support DES.c
118854 2005-10-21  Simon Josefsson  <jas@extundo.com>
118856         * lib/arctwo.h, lib/arctwo.c: New files.
118858         * lib/gc-gnulib.c: Support ARCTWO.
118860 2005-10-21  Simon Josefsson  <jas@extundo.com>
118862         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118863         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118865 2005-10-21  Simon Josefsson  <jas@extundo.com>
118867         * gnulib-tool (func_import, func_create_testdir): Define automake
118868         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118869         Makefile.am snippet),
118870         suggested by Bruno Haible <bruno@clisp.org>.
118872         * modules/gc (Makefile.am): Use it.
118874 2005-10-21  Bruno Haible  <bruno@clisp.org>
118876         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118877         patch.
118879 2005-10-19  Simon Josefsson  <jas@extundo.com>
118881         * tests/test-gc-rijndael.c: New file.
118883         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118885 2005-10-19  Simon Josefsson  <jas@extundo.com>
118887         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118888         interface too.
118890 2005-10-19  Simon Josefsson  <jas@extundo.com>
118892         * tests/test-gc-arcfour.c: New file.
118894         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118896 2005-10-19  Simon Josefsson  <jas@extundo.com>
118898         * modules/gc-md4, modules/gc-md4-tests: New file.
118900         * tests/test-gc-md4.c: New file.
118902 2005-10-19  Simon Josefsson  <jas@extundo.com>
118904         * m4/gc-md4.m4: New file.
118906 2005-10-19  Simon Josefsson  <jas@extundo.com>
118908         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118909         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118910         <kasal@ucw.cz>.
118912 2005-10-19  Simon Josefsson  <jas@extundo.com>
118914         * m4/gc-arcfour.m4: New file.
118916         * m4/gc-rijndael.m4: New file.
118918 2005-10-19  Simon Josefsson  <jas@extundo.com>
118920         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118922 2005-10-19  Simon Josefsson  <jas@extundo.com>
118924         * lib/gc-gnulib.c: Support ARCFOUR.
118926 2005-10-19  Simon Josefsson  <jas@extundo.com>
118928         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118929         support.
118931         * lib/gc.h: Add ECB enum type.
118933         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118935 2005-10-18  Simon Josefsson  <jas@extundo.com>
118937         * tests/test-md5.c: New file.
118939         * modules/md5-tests: New file.
118941 2005-10-18  Simon Josefsson  <jas@extundo.com>
118943         * tests/test-md4.c: New file.
118945         * modules/md4, modules/md4-tests: New files.
118947 2005-10-18  Simon Josefsson  <jas@extundo.com>
118949         * m4/md4.m4: New file.
118951 2005-10-18  Simon Josefsson  <jas@extundo.com>
118953         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118955 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118957         * gnulib-tool (func_create_testdir): Omit the second check whether
118958         BUILT_SOURCES in nonempty.
118960 2005-10-17  Simon Josefsson  <jas@extundo.com>
118962         * tests/test-rijndael.c: New file.
118964 2005-10-17  Simon Josefsson  <jas@extundo.com>
118966         * modules/sha1: Depend on stdint instead of md5.
118968         * modules/md5: Depend on stdint, remove uint32_t.
118970 2005-10-17  Simon Josefsson  <jas@extundo.com>
118972         * modules/gc-sha1-tests: New file.
118974         * tests/test-gc-sha1.c: New file.
118976 2005-10-17  Simon Josefsson  <jas@extundo.com>
118978         * m4/md5.m4: Remove call to uint32_t.m4.
118980 2005-10-17  Simon Josefsson  <jas@extundo.com>
118982         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118984         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118985         md5.h.
118987         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118989         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118991 2005-10-17  Simon Josefsson  <jas@extundo.com>
118993         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118995 2005-10-17  Simon Josefsson  <jas@extundo.com>
118997         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118999 2005-10-17  Simon Josefsson  <jas@extundo.com>
119001         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119003         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119005 2005-10-17  Bruno Haible  <bruno@clisp.org>
119007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119008         that it can also be used in a test.
119010 2005-10-16  Bruno Haible  <bruno@clisp.org>
119012         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119013         TESTS_ENVIRONMENT, so that individual tests can augment it.
119015         * gnulib-tool (func_create_testdir): Use an intermediate target for
119016         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119017         macros, like $(ALLOCA_H), which cannot be passed through the command
119018         line.
119020 2005-10-15  Simon Josefsson  <jas@extundo.com>
119022         * modules/rijndael-tests: New file.
119024         * modules/rijndael: New file.
119026 2005-10-15  Simon Josefsson  <jas@extundo.com>
119028         * m4/rijndael.m4: New file.
119030 2005-10-15  Simon Josefsson  <jas@extundo.com>
119032         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119034         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119036 2005-10-14  Simon Josefsson  <jas@extundo.com>
119038         * tests/test-arcfour.c: New file.
119040         * modules/arcfour, modules/arcfour-tests: New files.
119042 2005-10-14  Simon Josefsson  <jas@extundo.com>
119044         * m4/arcfour.m4: New file.
119046 2005-10-14  Simon Josefsson  <jas@extundo.com>
119048         * lib/arcfour.h, lib/arcfour.c: New files.
119050 2005-10-14  Roland McGrath  <roland@redhat.com>
119052         Import from libc.  [BZ #1331]
119053         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119054         macro argument.
119055         Reported by Matej Vela <vela@debian.org>.
119057 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119059         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119060         include <wchar.h>; no longer needed.
119062 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119064         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119066 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119067         and  Ulrich Drepper  <drepper@redhat.com>
119069         Import from libc.
119070         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119071         instead of inline stream orientation test and two separate
119072         function calls.  Pay no attention to USE_IN_LIBIO.
119074 2005-10-13  Simon Josefsson  <jas@extundo.com>
119076         * modules/gc-hmac-md5-tests: New file.
119078         * tests/test-gc-hmac-sha1.c: New file.
119080         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119082         * modules/gc-hmac-md5-tests: New file.
119084         * tests/test-gc-md5.c: New file.
119086         * modules/gc-md5-tests: New file.
119088 2005-10-13  Simon Josefsson  <jas@extundo.com>
119090         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119091         Move memory allocation outside of loop.
119093 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119095         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119096         intermediate directory is in a read-only file system.  Problem
119097         reported by Eric Blake.
119099 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119101         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119103 2005-10-12  Simon Josefsson  <jas@extundo.com>
119105         * tests/test-hmac-sha1.c: New file.
119107         * modules/hmac-sha1-tests: New file.
119109         * modules/hmac-sha1: New file.
119111 2005-10-12  Simon Josefsson  <jas@extundo.com>
119113         * modules/gc-sha1: New file.
119115 2005-10-12  Simon Josefsson  <jas@extundo.com>
119117         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119119         * tests/test-gc-pbkdf2-sha1.c: New file.
119121 2005-10-12  Simon Josefsson  <jas@extundo.com>
119123         * modules/gc-md5, modules/gc-hmac-md5: New files.
119125         * modules/gc (Files): Remove md5, memxor and hmac files.
119127 2005-10-12  Simon Josefsson  <jas@extundo.com>
119129         * m4/gc-pbkdf2-sha1.m4: New file.
119131         * m4/gc-hmac-sha1.m4: New file.
119133         * m4/gc-sha1: New file.
119135         * m4/hmac-sha1.m4: New file.
119137 2005-10-12  Simon Josefsson  <jas@extundo.com>
119139         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119141         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119143 2005-10-12  Simon Josefsson  <jas@extundo.com>
119145         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119146         suggested by Bruno Haible <bruno@clisp.org>.
119148 2005-10-12  Simon Josefsson  <jas@extundo.com>
119150         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119152 2005-10-12  Simon Josefsson  <jas@extundo.com>
119154         * lib/gc-pbkdf2-sha1.c: New file.
119156         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119158 2005-10-12  Simon Josefsson  <jas@extundo.com>
119160         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119162         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119164 2005-10-12  Simon Josefsson  <jas@extundo.com>
119166         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119167         GC_USE_HMAC_MD5, respectively.
119169         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119170         (gc_md5): Fix typo.
119172         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119174         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119176         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119178 2005-10-12  Bruno Haible  <bruno@clisp.org>
119180         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119181         Reported by Stepan Kasal <kasal@ucw.cz>.
119183 2005-10-11  Simon Josefsson  <jas@extundo.com>
119185         * tests/test-crc.c: New file.
119187         * modules/crc, modules/crc-tests: New files.
119189 2005-10-11  Simon Josefsson  <jas@extundo.com>
119191         * m4/crc.m4: New file.
119193 2005-10-11  Simon Josefsson  <jas@extundo.com>
119195         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119197         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119199         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119201 2005-10-11  Simon Josefsson  <jas@extundo.com>
119203         * lib/crc.h, lib/crc.c: New files.
119205         * lib/gc.h (gc_hash_buffer): Add doc.
119207 2005-10-11  Bruno Haible  <bruno@clisp.org>
119209         * modules/c-strcasestr: New file.
119210         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119212 2005-10-11  Bruno Haible  <bruno@clisp.org>
119214         * modules/c-strcase: New file.
119215         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119217 2005-10-11  Bruno Haible  <bruno@clisp.org>
119219         * lib/strcasecmp.c: Include limits.h.
119220         (strcasecmp): Avoid integer overflow on exotic platforms.
119221         * lib/strncasecmp.c: Include limits.h.
119222         (strncasecmp): Avoid integer overflow on exotic platforms.
119223         Reported by Paul Eggert.
119225 2005-10-11  Bruno Haible  <bruno@clisp.org>
119227         * lib/c-strcasestr.h: New file, from GNU gettext.
119228         * lib/c-strcasestr.c: New file, from GNU gettext.
119230 2005-10-11  Bruno Haible  <bruno@clisp.org>
119232         * lib/c-strcase.h: New file, from GNU gettext.
119233         * lib/c-strcasecmp.c: New file, from GNU gettext.
119234         * lib/c-strncasecmp.c: New file, from GNU gettext.
119236 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119238         * modules/mempcpy (License): GPL -> LGPL.
119239         * modules/strchrnul (License): Likewise.
119240         * modules/sysexits (License): Likewise.
119242 2005-10-08  Simon Josefsson  <jas@extundo.com>
119244         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119246 2005-10-07  Simon Josefsson  <jas@extundo.com>
119248         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119250 2005-10-06  Simon Josefsson  <jas@extundo.com>
119252         * tests/test-hmac-md5.c: New file.
119254         * modules/hmac-md5-tests: New file.
119256         * modules/hmac-md5: New file.
119258 2005-10-06  Simon Josefsson  <jas@extundo.com>
119260         * m4/hmac-md5.m4: New file.
119262         * m4/memxor.m4: Require gl_C_RESTRICT.
119264 2005-10-06  Simon Josefsson  <jas@extundo.com>
119266         * lib/memxor.c (memxor): Avoid casts and warnings.
119268 2005-10-06  Simon Josefsson  <jas@extundo.com>
119270         * lib/hmac-md5.c: New file.
119272         * lib/hmac.h: New file.
119274 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119276         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119277         promotes to int, not unsigned int, to catch the AIX 5.3
119278         compiler bug.
119280 2005-10-05  Simon Josefsson  <jas@extundo.com>
119282         * modules/memxor: New file.
119284         * modules/iconv (Files): Move config.rpath to havelib, it is used
119285         there.
119287         * modules/havelib (Files): Add config.rpath.
119289 2005-10-05  Simon Josefsson  <jas@extundo.com>
119291         * m4/memxor.m4: New file.
119293 2005-10-05  Simon Josefsson  <jas@extundo.com>
119295         * lib/memxor.c (memxor): Fix compiler error.
119297         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119298         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119300         * lib/memxor.h, lib/memxor.c: New files.
119302         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119303         we assume all systems have it, suggested by Jim Meyering
119304         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119305         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119306         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119307         same reasons.
119309 2005-10-05  Simon Josefsson  <jas@extundo.com>
119311         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119313 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119316         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119317         needed, since the source code now assumes these .h files.
119319 2005-10-05  Derek Price  <derek@ximbiot.com>
119321         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119323 2005-10-05  Bruno Haible  <bruno@clisp.org>
119325         * modules/stdint (License): Change to LGPL.
119327 2005-10-04  Simon Josefsson  <jas@extundo.com>
119329         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119330         D. Baushke" <mdb@gnu.org>.
119332 2005-10-04  Bruno Haible  <bruno@clisp.org>
119334         * lib/verify.h (verify_true): Provide alternative definition for C++.
119336 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119338         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119339         (SSIZE_MAX): New macro, if not already defined.
119340         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119341         than 2 GiB.
119343 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119345         Sync from coreutils.
119346         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119347         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119348         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119349         ULLONG_MAX doesn't work with 2.7.2.1.
119351 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119353         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119354         From Ben Pfaff.
119356         * modules/exclude (Depends-on): Depend on verify.
119357         * modules/strtoimax (Depends-on): Likewise.
119358         * modules/utimecmp (Depends-on): Likewise.
119360 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119362         * lib/exclude.c: Include verify.h.
119363         (verify): Remove.  All callers changed to use verify.h's version.
119364         * lib/strtoimax.c: Likewise.
119365         * lib/utimecmp.c: Likewis.e
119367         Sync from coreutils.
119368         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119369         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119370         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119371         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119372         bother returning ENOSYS if settimeofday or stime fails; just let
119373         them return whatever errno they want to return.
119374         * lib/utimens.c: Include unistd.h, for dup2.
119375         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119376         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119378 2005-10-02  Jim Meyering  <jim@meyering.net>
119380         Sync from coreutils.
119381         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119382         from glibc-2.2.5 that fails for read-only files.
119384 2005-10-02  Jim Meyering  <jim@meyering.net>
119386         Sync from coreutils.
119387         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119388         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119389         `#if HAVE_CONFIG_H'.
119390         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119391         Remove AT_FDCWD test.
119392         Do not consume the fd unless successful.
119393         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119394         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119395         block, so that we don't even try to compile it if settimeofday is
119396         available.  This works around a compilation failure on OSF1 V5.1,
119397         due to stime requiring a `long int*' while tv_sec is `int'.
119399 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119401         Sync from coreutils.
119402         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119403         against `yes', rather than just testing for nonempty.
119405 2005-10-01  Simon Josefsson  <jas@extundo.com>
119407         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119408         and Darwin.
119410         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119411         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119412         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119413         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119414         Check if struct addrinfo is declared.
119416 2005-10-01  Simon Josefsson  <jas@extundo.com>
119418         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119419         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119420         AI_* and EAI_* definitions.  Protect function declarations.
119422 2005-10-01  Jim Meyering  <jim@meyering.net>
119424         Sync from coreutils.
119426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119427         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119428         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119430         in the inet and nsl libraries.  Required on Solaris 5.7.
119432 2005-10-01  Jim Meyering  <jim@meyering.net>
119434         Sync from coreutils.
119435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119436         in the inet and nsl libraries.  Required on Solaris 5.7.
119438 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119440         * lib/getdelim.c (getdelim): Remove unused variables.
119442 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119444         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119445         so that the code works even with ancient cpp.  Portability problem
119446         with GCC 2.7.2.1 reported by Thomas M.Ott.
119448 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119450         * modules/regex (Depends-on): Add strcase.
119452         * modules/gethostname (Licence): Change from GPL to LGPL, since
119453         gethostname.c is a trivial implementation of a standard library
119454         function.
119455         * modules/poll (License): Change from GPL to LGPL, since it's
119456         derived from LGPL code.
119458 2005-09-27  Jim Meyering  <jim@meyering.net>
119460         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119461         HAVE_CONFIG_H.
119463         * lib/intprops.h (signed_type_or_expr__): Define.
119464         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119465         for unsigned types.
119467 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119469         * lib/verify.h (verify_expr): Remove, replacing with:
119470         (verify_true): New macro that returns true instead of void.
119471         (verify_type__): Remove.
119472         (verify): Use verify_true rather than verify_type__.
119474 2005-09-26  Bruno Haible  <bruno@clisp.org>
119476         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119477         is necessary.
119478         (lib_SOURCES): Remove mbchar.c.
119479         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119480         (Files): Add m4/mbrtowc.m4.
119481         * modules/mbiter: Likewise.
119482         * modules/mbuiter: Likewise.
119484 2005-09-26  Bruno Haible  <bruno@clisp.org>
119486         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119487         compile mbchar.c if they are not both present.
119488         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119489         * m4/mbiter.m4 (gl_MBITER): Likewise.
119490         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119491         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119492         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119494 2005-09-25  Jim Meyering  <jim@meyering.net>
119496         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119497         also uses socklen_t.
119499 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119501         * lib/utimens.c (ENOSYS): Define if not already defined.
119502         (futimens): Support having a null PATH if the file descriptor
119503         is nonnegative.
119505         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119506         Remove.
119507         (__attribute): Define to empty unless GCC 3.1 or later.
119508         This works around a core dump on OpenBSD 3.4, which has GCC
119509         2.95.3, which dumps core when given __attribute__(()).  It also
119510         simplifies other tests, since we really don't want to bother with
119511         worrying about which ancient version of GCC supported what.
119512         Original problem reported by Yoann Vandoorselaere, with part of
119513         the fix suggested by Derek Price.
119515 2005-09-24  Jim Meyering  <jim@meyering.net>
119517         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119518         so we can once again use a positive bitfield width of 1 -- now we
119519         don't have to explain why we were using a bitfield width of 2.
119521 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119523         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119524         and similarly for the other external symbols.  Problem reported
119525         by James Gallager.
119527         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119528         bug reported by Jim Meyering.
119530         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119531         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119532         not needed, since socklen is a prerequisite module.
119534 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119536         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119537         Problem reported by Eric Blake.
119538         (getaddrinfo): Initialize se so that it's not garbage.
119539         Redo internal storage allocation so that it doesn't make unportable
119540         assumptions about alignment.
119541         Fix a memory leak.
119543         * lib/utimens.c (futimens): Use futimesat if available.
119544         Prefer it to futimes since it doesn't have the futimes bug.
119546         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119547         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119548         Instead, declare a function that returns a pointer to an array,
119549         and use verify_type__ to declare the size of the array.
119550         Problem and germ of a solution reported by Bruno Haible.
119551         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119552         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119554 2005-09-23  Jim Meyering  <jim@meyering.net>
119556         Sync from coreutils.
119557         Correct build failure (socklen_t not defined) on at least
119558         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119559         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119561 2005-09-23  Jim Meyering  <jim@meyering.net>
119563         * modules/getaddrinfo (Depends-on): Add socklen.
119565 2005-09-23  Bruno Haible  <bruno@clisp.org>
119567         * tests/test-verify.c: New file.
119569 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119571         Sync from coreutils.
119573         * modules/argmatch (Depends-on): Add verify.
119574         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119575         unistd-safer.
119576         * modules/save-cwd (Depends-on): Likewise.
119578         * modules/openat (Files): Add lib/openat-die.c.
119579         (Depends-on): Remove error, exitfail.
119580         Add dirname.
119582         * modules/verify: New file.
119583         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119584         with "verify" module.
119586 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119588         Sync from coreutils.
119590         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119591         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119592         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119593         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119594         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119595         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119596         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119597         Don't bother checking for string.h, stdlib.h, unistd.h.
119598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119599         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119600         module's job.
119601         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119602         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119604         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119605         (gl_GETDATE): Use it.
119607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119609 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119611         Sync from coreutils.
119613         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119614         stat-time.h.
119615         * lib/argmatch.h: Include verify.h
119616         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119617         (ARGMATCH_ASSERT): Remove; unused.
119618         * lib/canonicalize.c: Assume STDC_HEADERS.
119619         * lib/exclude.c: Include "strcase.h".
119620         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119621         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119622         and stdio-safer.h.
119623         (getusershell): Call fopen, not fopen_safer.
119624         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119625         Do not include unistd-safer.h.
119626         (save_cwd): Don't call fd_safer; no longer needed
119627         now that we include fcntl--.h.
119629         * lib/getdate.y (relative_time): New type.
119630         (RELATIVE_TIME_0): New constant.
119631         (parser_control): Use relative_time instead of doing it ourselves.
119632         (%union): Add new relative_time rel member.
119633         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119634         Now typeless.
119635         (relunit, relunit_snumber): Now of type rel.
119636         (zone, rel, relunit, get_date): Adjust to above changes.
119638         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119639         Do not include unistd-safer.h.
119640         (getloadavg): Don't call fd_safer; no longer needed
119641         now that we include fcntl--.h.
119643         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119644         (make_dir_parents): Treat ENOSYS like EEXIST.
119646         Improve quality of diagnostics on restore_cwd failure.
119647         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119648         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119649         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119650         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119651         each time through the loop.  Do not diagnose restore_cwd failure;
119652         that is the caller's job (and perhaps the caller does not care).
119654         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119655         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119656         If the file already exists but is not a directory, don't bother
119657         to try to make its parents.
119658         Close potential file descriptor leak if we can't chdir("/") (!).
119659         Don't always return true if chdir($PWD) fails; return true only
119660         if the requested action was done successfully (except for the
119661         chdir($PWD)).
119662         Don't log final directory unless we actually made it.
119663         Refactor to avoid duplicate code to fix up permissions.
119664         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119666         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119667         to make it a bit faster and (I hope) clearer.
119668         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119669         Fix bug in formats like %2N.
119671         * lib/verify.h: New file.
119673 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119675         Sync from coreutils.
119676         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119678 2005-09-22  Jim Meyering  <jim@meyering.net>
119680         Sync from coreutils.
119682         * m4/lstat.m4 (gl_FUNC_LSTAT):
119683         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119684         Remove obsolete comment.
119685         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119686         * m4/xstrtod.m4: Likewise.
119688         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119690 2005-09-22  Jim Meyering  <jim@meyering.net>
119692         Sync from coreutils.
119694         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119696         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119697         the .tm_year member, since otherwise gcc-4.0 would now warn about
119698         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119700         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119701         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119703         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119704         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119705         when run in a time zone for which daylight savings time is in effect
119706         for the starting date.
119708         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119709         stop us from restricting permissions of just-created absolute-named
119710         directories.
119711         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119712         to restore initial working directory.
119713         * lib/mkdir-p.c (make_dir_parents): New parameter:
119714         different_working_dir, to tell caller if/when we change the working
119715         directory and are unable to return to the initial one.
119716         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119717         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119718         `return false'.  This fixes a bug introduced on 2004-07-30.
119720         * lib/openat.c (fdopendir): Be sure to close the supplied
119721         file descriptor before returning.  This makes our replacement
119722         implementation a little closer to Solaris's, where fdopendir
119723         ties the file descriptor to the returned DIR* pointer.
119724         * lib/openat.c (unlinkat): New function.
119725         * lib/openat.h (unlinkat): Add prototype.
119726         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119727         (openat_restore_fail): Rename from openat_restore_die.
119728         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119730         Provide an alternative to exiting immediately upon save_cwd or
119731         restore_cwd failure.  Now, an application can arrange e.g.,
119732         to perform a longjump in that case.
119733         * lib/openat.c: Include dirname.h.
119734         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119735         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119736         and openat_restore_die rather than calling error directly.
119737         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119739         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119740         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119741         define.
119743         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119744         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119745                             int utc, int nanoseconds);
119746         Background:
119747         date should not have to allocate a megabyte of virtual memory to
119748         handle a format argument like +%1048575T.  When implemented with
119749         strftime, it must allocate such a buffer, use strftime to fill it
119750         in, print it, then free it.
119751         With fprintftime, it simply prints everything and exits.
119752         With no need for memory allocation, that's one fewer way to fail.
119753         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119754         optional field width, not before, so we accept %9:z, not %:9z.
119755         (my_strftime): Be sure to use L_('x') for literals.
119757         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119758         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119759         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119760         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119761         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119762         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119763         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119764         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119765         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119766         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119767         * lib/xgethostname.c, lib/xreadlink.c:
119768         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119770         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119771         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119772         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119773         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119774         and don't include <sys/file.h>).
119776 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119778         Sync from coreutils.
119780         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119781         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119782         [!LDAV_DONE]: Avoid unused variable warning.
119784 2005-09-21  Bruno Haible  <bruno@clisp.org>
119786         * lib/unicodeio.h (unicode_to_mb): New declaration.
119788 2005-09-20  Derek Price  <derek@ximbiot.com>
119790         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119791         getaddrinfo.h.
119793 2005-09-20  Bruno Haible  <bruno@clisp.org>
119795         * gnulib-tool: Remove trailing slashes from the values specified for
119796         --source-base, --m4-base, --tests-base, --aux-dir.
119797         Suggested by Simon Josefsson <jas@extundo.com>.
119799 2005-09-20  Bruno Haible  <bruno@clisp.org>
119801         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119802         func_modules_to_filelist, func_import, func_create_testdir): Make all
119803         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119804         change when gnulib-tool is invoked in a different locale.
119806 2005-09-19  Simon Josefsson  <jas@extundo.com>
119808         * m4/socklen.m4: Fix typo.
119810 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119812         Use a consistent style for including <config.h>.
119813         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119814         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119815         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119816         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119817         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119818         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119819         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119820         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119821         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119822         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119823         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119824         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119825         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119826         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119827         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119828         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119829         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119830         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119831         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119832         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119833         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119834         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119835         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119836         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119837         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119838         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119839         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119840         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119841         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119842         lib/xstrtoumax.c, lib/yesno.c:
119843         Standardize inclusion of config.h.
119844         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119845         lib/inttostr.h:  Removed inclusion of config.h from header files.
119846         * lib/inttostr.c:  Adjusted in-tree users.
119847         * lib/timespec.h: Remove superfluous warning to include config.h.
119848         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119849         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119850         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119851         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119852         config.h with HAVE_CONFIG_H.
119854 2005-09-19  Jim Meyering  <jim@meyering.net>
119856         * modules/pathmax (License): Change to LGPL.
119858 2005-09-19  Derek Price  <derek@ximbiot.com>
119860         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119862 2005-09-19  Bruno Haible  <bruno@clisp.org>
119864         * gnulib-tool (import): Provide default for --tests-base.
119866 2005-09-19  Bruno Haible  <bruno@clisp.org>
119868         * doc/quote.texi: New file, extracted from gnulib.texi.
119869         * doc/ctime.texi: New file, extracted from gnulib.texi.
119870         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119871         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119872         * doc/gnulib.texi: Include them.
119874 2005-09-18  Bruno Haible  <bruno@clisp.org>
119876         Portability fix.
119877         * gnulib-tool (func_readlink): New function.
119878         (func_ln_if_changed): Use it.
119880 2005-09-18  Bruno Haible  <bruno@clisp.org>
119882         * gnulib-tool: Support --with-tests also with --import.
119883         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119884         (func_import): Use variables $testsbase and $inctests. Emit a
119885         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119886         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119887         SUBDIRS += $testsdir.
119888         (func_create_testdir): Update.
119890 2005-09-18  Bruno Haible  <bruno@clisp.org>
119892         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119893         instead of $dry_run.
119894         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119895         (func_ln_if_changed): Don't handle dry-run here.
119896         (func_import): In dry-run mode, detect more precisely which actions
119897         would be performed, and don't use "...ing" verbs.
119899 2005-09-18  Bruno Haible  <bruno@clisp.org>
119901         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119902         (func_import): Use join on two temporary files instead of three nested
119903         loops, in order to determine which files are new or old.
119905 2005-09-18  Bruno Haible  <bruno@clisp.org>
119907         * gnulib-tool (func_import): Comment out code that spits out the
119908         new files with --dry-run.
119910 2005-09-18  Bruno Haible  <bruno@clisp.org>
119912         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119914 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119916         * lib/stat-time.h: New file.
119917         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119918         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119919         in a different way.
119920         (timespec_cmp): New function.
119921         * lib/utimecmp.c: Include stat-time.h.
119922         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119923         members exist, not on the obsolescent ST_MTIM_NSEC.
119924         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119926 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119928         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119930 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119932         * MODULES.html.sh (File system functions): Add stat-time.
119933         * modules/stat-time: New file.
119934         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119935         is now done in a different way, by the stat-time module.
119936         * modules/utimecmp (Depends-on): Add stat-time.
119938 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119940         * m4/st_mtim.m4: Remove.  Superseded by...
119941         * m4/stat-time.m4: New file.
119942         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119943         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119945 2005-09-15  Derek Price  <derek@ximbiot.com>
119947         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119949 2005-09-15  Derek Price  <derek@ximbiot.com>
119951         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119952         * lib/regex_internal.c: Ditto, using this...
119953         (__GNUC_PREREQ): ...new macro.
119954         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119955         using...
119956         (__GNUC_PREREQ): ...this new macro.
119958         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119960 2005-09-15  Derek Price  <derek@ximbiot.com>
119961             Paul Eggert  <eggert@cs.ucla.edu>
119963         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119964         changes, consolidating in...
119965         * lib/regex_internal.h: ...this file.
119967 2005-09-13  Jim Meyering  <jim@meyering.net>
119969         * lib/canon-host.c: Filter through gnu indent and reword comments
119970         slightly.
119971         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119973 2005-09-13  Derek Price  <derek@ximbiot.com>
119975         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119976         failure.
119977         Reported by Jim Meyering  <jim@meyering.net>.
119979 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119981         * lib/base64.c: Typo.
119982         (base64_encode): Put b64str in initialized data section.
119984 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119986         Merge glibc and coreutils changes into gnulib, plus a few
119987         extra fixes.
119988         * lib/md5.c: Use #error rather than a string.
119989         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119990         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119991         (__attribute__): Define to empty for non recent-GCC.
119992         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119993         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119994         Renamed from their non-__ counterparts, with new macros replacing
119995         them if not _LIBC.  Add __THROW attribute.
119996         (rol): Remove.
119997         (struct md5_ctx): Align buffer if using GCC.
119998         * lib/sha1.h (struct sha1_ctx): Likewise.
119999         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120000         The old name was backwards.
120001         (NOTSWAP): Remove; not used.
120002         (rol): New macro, moved here from md5.h.
120003         (sha1_process_block): Remove a FIXME that doesn't make sense.
120005 2005-09-12  Derek Price  <derek@ximbiot.com>
120007         Return usable errors from canon-host.
120008         * lib/canon-host.h: New file.
120009         * lib/canon-host.c (canon_host): Wrap...
120010         (canon_host_r): ...this new function, which now relies exclusively on
120011         getaddrinfo.
120012         (ch_strerror): New function.
120013         (last_cherror): New global.
120014         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120015         interface.
120016         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120017         void *.
120018         (freeaddrinfo): Free ai->ai_canonname when set.
120020 2005-09-12  Derek Price  <derek@ximbiot.com>
120022         Make canon-host require getaddrinfo.
120023         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120024         AC_LIBSOURCE canon-host.h.  Call...
120025         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120026         gl_GETADDRINFO.
120027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120029 2005-09-12  Derek Price  <derek@ximbiot.com>
120031         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120032         LGPL.
120033         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120035 2005-09-12  Derek Price  <derek@ximbiot.com>
120037         * lib/gai_strerror.c: Include config.h when available.  Include
120038         getaddrinfo.h before other headers to test interface.
120039         Reported by Larry Jones <lawrence.jones@ugs.com>.
120041 2005-09-12  Derek Price  <derek@ximbiot.com>
120042             Paul Eggert  <eggert@cs.ucla.edu>
120044         * modules/glob (Files): Add glob-libc.h.
120046 2005-09-12  Derek Price  <derek@ximbiot.com>
120047             Paul Eggert  <eggert@cs.ucla.edu>
120049         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120050         glob_.h, glob-libc.h.
120051         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120053 2005-09-12  Derek Price  <derek@ximbiot.com>
120054             Paul Eggert  <eggert@cs.ucla.edu>
120056         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120057         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120058         protecting things that should be done only in gnulib contexts.
120059         * lib/glob_.h: New file, containing only the glob things needed for
120060         gnulib.
120061         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120062         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120063         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120064         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120065         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120066         and to respect the namespace rules better.
120068 2005-09-08  Simon Josefsson  <jas@extundo.com>
120070         * modules/socklen: New file.
120072 2005-09-08  Simon Josefsson  <jas@extundo.com>
120074         * m4/socklen.m4: New file.
120076 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120078         * modules/utimens (Files): Add m4/utimbuf.m4, since
120079         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120080         Reported by Sergey Poznyakoff.
120082 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120084         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120085         definitions, since that's the preferred style in glibc.
120086         Fix a minor spacing issue, and update copyright notice to match
120087         glibc's.
120089 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120091         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120093 2005-09-06  Simon Josefsson  <jas@extundo.com>
120095         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120096         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120098 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120100         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120101         warning.
120103 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120105         * config/srclist.txt: Add glibc bug 1302.
120107 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120109         Change bitset word type from unsigned int to unsigned long int,
120110         as this has better performance on typical 64-bit hosts.
120111         Port bitset code to hosts with unusual word sizes.
120112         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120113         (build_collating_symbol):
120114         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120115         argument is a bitset.  This is merely a style issue, but it makes
120116         it clearer that an entire array is expected.
120117         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120118         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120119         Port to the case where bitset_word is not the same as unsigned int.
120120         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120121         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120122         Likewise.
120123         * lib/regexec.c (check_dst_limits_calc_pos_1,
120124         check_subexp_matching_top):
120125         (build_trtable, group_nodes_into_DFAstates):
120126         Likewise.
120127         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120128         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120129         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120130         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120131         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120132         * lib/regcomp.c (optimize_subexps, lower_subexp):
120133         Work even if bitset_word has holes in its bitwise representation.
120134         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120135         * lib/regexec.c (check_dst_limits_calc_pos_1,
120136         check_subexp_matching_top):
120137         Likewise.
120138         * lib/regex_internal.c (re_string_reconstruct):
120139         Don't assume UCHAR_MAX == 255.
120140         * lib/regex_internal.h (bitset_set_all): Likewise.
120141         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120142         All uses changed.
120143         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120144         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120145         All uses changed.
120146         (BITSET_WORD_MAX): New macro.
120147         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120148         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120149         (bitset_empty, bitset_copy):
120150         Prefer sizeof (bitset) to multiplying it out ourselves.
120151         (bitset_not_merge): Remove; unused.
120152         (bitset_contain): Return bool, not unsigned int with one bit on.
120153         All callers changed.
120154         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120155         alignment than re_node_set; do this by defining a new internal
120156         type struct dests_alloc and using it to allocate memory.
120158 2005-09-05  Bruno Haible  <bruno@clisp.org>
120160         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120161         links.
120163 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120165         * modules/size_max (Makefile.am): Add size_max.h
120167 2005-09-04  Derek Price  <derek@ximbiot.com>
120169         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120171 2005-09-03  Simon Josefsson  <jas@extundo.com>
120173         * gnulib-tool: Fix typo.
120175 2005-09-03  Simon Josefsson  <jas@extundo.com>
120177         * config/srclist.txt: Add glibc bug 1293.
120179 2005-09-03  Derek Price  <derek@ximbiot.com>
120181         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120182         From Larry Jones <lawrence.jones@ugs.com>.
120184 2005-09-02  Simon Josefsson  <jas@extundo.com>
120186         * modules/socklen: New file.
120188 2005-09-02  Simon Josefsson  <jas@extundo.com>
120190         * modules/havelib: New module.
120192         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120193         Use havelib.
120195 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120197         Check for arithmetic overflow when calculating sizes, to prevent
120198         some buffer-overflow issues.  These patches are conservative, in the
120199         sense that when I couldn't determine whether an overflow was possible,
120200         I inserted a run-time check.
120201         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120202         macros.
120203         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120204         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120205         (re_xnrealloc, re_x2nrealloc): New inline functions.
120206         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120207         parse_bracket_exp):
120208         (build_equiv_class, build_charclass): Check for arithmetic overflow
120209         in size expression calculations.
120210         * lib/regex_internal.c (re_string_realloc_buffers):
120211         (build_wcs_upper_buffer, re_node_set_add_intersect):
120212         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120213         (re_dfa_add_node, register_state): Likewise.
120214         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120215         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120216         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120217         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120219 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120221         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120222         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120224 2005-09-02  Bruno Haible  <bruno@clisp.org>
120226         Support for lib vs. lib64 distinction on biarch platforms.
120227         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120228         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120231 2005-09-02  Bruno Haible  <bruno@clisp.org>
120233         * gnulib-tool (import): In the other first-use case, provide defaults
120234         as well.
120236 2005-09-02  Bruno Haible  <bruno@clisp.org>
120238         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120239         patches not yet found in the latest gettext release.
120241 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120243         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120244         to avoid a collision with bits/local_lim.h in glibc.
120245         All uses changed.  Problem reported by Dmitry V. Levin in
120246         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120248         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120249         bugs in int versus size_t comparisons.
120250         (re_string_context_at): Fix bug where the code assumed that
120251         Idx is signed.
120253         Use bool where appropriate.
120254         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120255         All callers changed.
120256         (calc_eclosure_iter): Likewise, for ROOT arg.
120257         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120258         (build_charclass_op): Likewise, for NON_MATCH arg.
120259         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120260         (re_string_construct_common): Likewise, for ICASE arg.
120261         * lib/regexec.c (re_search_2_stub, re_search_stub):
120262         Likewise, for RET_LEN arg.
120263         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120264         (set_regs): Likewise, for FL_BACKTRACK arg.
120265         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120266         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120267         (calc_eclosure_iter, parse_bracket_exp):
120268         Use bool for internal variables that are booleans.
120269         * lib/regexec.c (re_search_internal, check_matching,
120270         proceed_next_node):
120271         (set_regs, build_sifted_states, sift_states_bkref):
120272         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120273         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120274         (find_collation_sequence_value):
120275         Likewise.
120276         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120277         (re_node_set_compare):
120278         Return bool, not int. All callers changed.
120279         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120280         (build_trtable, check_node_accept): Likewise.
120281         * lib/regex_internal.h: Include stdbool.h.
120283         Fix bugs uncovered when converting to bool.
120284         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120285         failure instead of charging ahead blindly.
120286         * lib/regex_internal.c (register_state): Likewise.
120287         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120288         for freeing internal storage.
120289         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120290         bitset pieces used as boolean, to avoid undefined behavior
120291         on hosts that do int overflow checking.
120293 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120295         * config/srclist.txt: Add glibc bugs 1285-1287.
120297 2005-09-01  Jim Meyering  <jim@meyering.net>
120299         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120300         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120301         Require gl_STAT_MACROS, too.
120303 2005-09-01  Bruno Haible  <bruno@clisp.org>
120305         * gnulib-tool (import): In the first-use case, provide defaults.
120307 2005-09-01  Bruno Haible  <bruno@clisp.org>
120309         * gnulib-tool (func_import): Remove the .tmp files.
120311 2005-09-01  Bruno Haible  <bruno@clisp.org>
120313         * gnulib-tool (func_import): Fix handling of symbolic links.
120315 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120317         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120318         old glibc regex code mishandles strings longer than 2**31 bytes.
120319         This patch fixes this when the regex code is used in gnulib
120320         (i.e., outside glibc).
120322         This patch should not affect the use of the regex code inside
120323         glibc.  No doubt this problem also needs to be handled for glibc
120324         as well, but the result will be an incompatible change to the
120325         glibc ABI, and the old ABI will have to be supported too.  That
120326         can be the subject for another patch.
120328         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120329         governing whether the rest of this patch is active.  By default,
120330         the macro is disabled and the patch has no effect.
120331         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120332         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120333         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120334         (re_match_2, re_set_registers): Use the new types.
120335         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120336         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120337         New macros.
120338         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120339         (re_string_context_at, bin_tree_t, re_dfastate_t):
120340         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120341         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120342         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120343         (re_string_char_size_at, re_string_wchar_at):
120344         (re_string_elem_size_at):
120345         Use the new types and macros to port to 64-bit hosts.
120346         Use unsigned types for internal values, so that the code
120347         mostly works even for arrays larger than SSIZE_MAX.
120348         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120349         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120350         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120351         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120352         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120353         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120354         (calc_inveclosure, parse_dup_op, build_range_exp):
120355         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120356         (fetch_number, create_token_tree, mark_opt_subexp):
120357         Likewise.
120358         * lib/regex_internal.c (re_string_construct_common,
120359         create_ci_newstate):
120360         (create_cd_newstate, re_string_allocate, re_string_construct):
120361         (re_string_realloc_buffers, build_wcs_upper_buffer):
120362         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120363         (re_string_reconstruct, re_string_peek_byte_case):
120364         (re_string_fetch_byte_case, re_string_context_at):
120365         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120366         (re_node_set_init_copy, re_node_set_add_intersect):
120367         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120368         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120369         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120370         (re_acquire_state, re_acquire_state_context, register_state):
120371         Likewise.
120372         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120373         search_cur_bkref_entry):
120374         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120375         (re_search_internal, re_search_2_stub, re_search_stub)
120376         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120377         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120378         (update_cur_sifted_state, check_dst_limits):
120379         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120380         (check_subexp_limits, sift_states_bkref, merge_state_array):
120381         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120382         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120383         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120384         (expand_bkref_cache, check_node_accept_bytes):
120385         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120386         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120387         (acquire_init_state_context, check_halt_node_context):
120388         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120389         (sift_states_backward, clean_state_log_if_needed):
120390         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120391         (find_recover_state, transit_state_sb, transit_state_mb):
120392         (transit_state_bkref, build_trtable, match_ctx_clean):
120393         Likewise.
120394         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120395         to work around an assumption that REG_MISSING is negative.
120397         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120398         (seek_collating_symbol_entry) [defined _LIBC]:
120399         (lookup_collation_sequence_value) [defined _LIBC]:
120400         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120401         Use prototypes rather than old-style function definitions.
120402         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120403         (transit_state_sb) [0]:
120404         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120406         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120407         rm_eo.
120409         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120410         (optimize_subexps, lower_subexp):
120411         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120412         since the signed shift might overflow.  Use 1u<<31 instead.
120413         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120414         Likewise.
120415         * lib/regexec.c (check_dst_limits_calc_pos_1,
120416         check_subexp_matching_top): Likewise.
120418         * lib/regcomp.c (optimize_subexps, lower_subexp):
120419         Use CHAR_BIT rather than 8, for clarity.
120420         * lib/regexec.c (check_dst_limits_calc_pos_1):
120421         (check_subexp_matching_top): Likewise.
120422         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120423         have to worry about portability issues when shifting it left.
120424         Remove no-longer-needed test for table_size > 0.
120425         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120426         in a word, as the resulting behavior is undefined.
120427         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120428         in one case, a <= should have been an <, and in another case the
120429         whole test was missing.
120430         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120431         the standard name CHAR_BIT.
120432         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120433         this is not true on one's complement and signed-magnitude hosts.
120435         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120436         next_last_offset.
120437         (struct re_dfa_t): Remove unused member states_alloc.
120438         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120440 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120442         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120443         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120444         and large-file glibc and in 32-bit large-file Solaris.
120446 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120448         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120449         lengths fit in regoff_t; this isn't true if regoff_t is the same
120450         width as size_t.
120451         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120452         (= START + RANGE) instead of RANGE.  This avoids overflow
120453         problems when regoff_t is the same width as size_t.
120454         All callers changed.
120455         (re_search_2_stub): Check for overflow when adding the
120456         sizes of the two strings.
120457         (re_search_stub): Check for overflow when adding START
120458         to RANGE; if it occurs, substitute the extreme value.
120460 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120462         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120464 2005-08-31  Jim Meyering  <jim@meyering.net>
120466         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120467         a pointer-to-const.
120468         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120469         (register_state): Likewise.
120470         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120471         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120472         (group_nodes_into_DFAstates): Likewise.
120474 2005-08-31  Jim Meyering  <jim@meyering.net>
120476         * check-module: Add a FIXME comment.
120478 2005-08-31  Eric Blake  <ebb9@byu.net>
120480         * modules/unistd-safer (Files): Add unistd--.h.
120481         * modules/stdio-safer (Files): Add stdio--.h.
120483 2005-08-31  Derek Price  <derek@ximbiot.com>
120485         * lib/getdelim.c (getdelim): Return EOF on EOF.
120486         Reported by Larry Jones <lawrence.jones@ugs.com>.
120488 2005-08-31  Bruno Haible  <bruno@clisp.org>
120490         Avoid unnecessary diffs in the generated lib/Makefile.am.
120491         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120492         the generated files.
120493         (func_import): Don't set cmd.
120495 2005-08-31  Bruno Haible  <bruno@clisp.org>
120497         * lib/strstr.c: Include <stddef.h>, for NULL.
120498         * lib/strcasestr.c: Likewise.
120499         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120501 2005-08-31  Bruno Haible  <bruno@clisp.org>
120503         * gnulib-tool: New option --macro-prefix.
120504         (func_import): Use macro_prefix.
120505         (import): Handle option --macro-prefix.
120507 2005-08-31  Bruno Haible  <bruno@clisp.org>
120509         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120510         Also use new variables cached_lgpl, cached_libtool.
120512 2005-08-31  Bruno Haible  <bruno@clisp.org>
120514         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120515         always instantiating them.
120517 2005-08-31  Bruno Haible  <bruno@clisp.org>
120519         * gnulib-tool (func_import): Read the previous cached settings
120520         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120521         earlier added by gnulib but are now dropped. Warn when a gnulib file
120522         overwrites a non-gnulib file.
120524 2005-08-31  Bruno Haible  <bruno@clisp.org>
120526         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120527         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120528         projects that don't keep autogenerated files in CVS. Put into
120529         actioncmd only the specified modules, not the transitive closure.
120531 2005-08-31  Bruno Haible  <bruno@clisp.org>
120533         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120534         Create directories that shall be filled.
120535         (import): Don't look for gl_* macros in configure.ac. Recurse across
120536         all directories containing a gnulib-cache.m4 files, if meaningful.
120538 2005-08-31  Bruno Haible  <bruno@clisp.org>
120540         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120541         (import): Set seen_libtool when we see gl_LIBTOOL.
120543 2005-08-31  Bruno Haible  <bruno@clisp.org>
120545         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120546         declaration macro definitions from generated gnulib.m4.
120548 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120550         * lib/iconvme.h: Add prototype for iconv_alloc.
120552 2005-08-29  Simon Josefsson  <jas@extundo.com>
120554         * lib/iconvme.c: Fix errno.
120556 2005-08-29  Bruno Haible  <bruno@clisp.org>
120558         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120559         that it works when the directory contains spaces.
120561 2005-08-29  Bruno Haible  <bruno@clisp.org>
120563         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120565 2005-08-29  Bruno Haible  <bruno@clisp.org>
120567         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120568         Emit more advice.
120570 2005-08-29  Bruno Haible  <bruno@clisp.org>
120571         and Stepan Kasal  <kasal@ucw.cz>
120573         * check-module: If more parameters are given, check each of them
120574         separately; add more exceptions, as noted by Jim Meyering.
120575         (check_module): New procedure.
120576         (%exempt_header): Now contains all exceptions.
120578 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120580         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120582 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120584         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120586 2005-08-28  Bruno Haible  <bruno@clisp.org>
120588         * m4/gnulib-tool.m4: New file.
120590 2005-08-27  Jim Meyering  <jim@meyering.net>
120592         * modules/unistd-safer (Files): Add pipe-safer.c.
120593         * modules/fcntl-safer (Files): Add creat-safer.c.
120595 2005-08-27  Jim Meyering  <jim@meyering.net>
120597         * m4/stdlib-safer.m4: New file.  From coreutils.
120598         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120599         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120600         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120601         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120602         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120604 2005-08-27  Jim Meyering  <jim@meyering.net>
120606         * lib/fopen-safer.c: Merge minor changes from coreutils.
120607         * lib/dup-safer.c: Likewise.
120608         * lib/fd-safer.c: Likewise.
120610         Merge from coreutils.
120611         * lib/stdio--.h: New file.
120612         * lib/stdlib--.h: New file.
120613         * lib/mkstemp-safer.c: New file.
120615         GNU tar needs these.
120616         * lib/pipe-safer.c: New file.
120617         * lib/creat-safer.c: New file.
120618         * lib/fcntl--.h (creat): Define to creat_safer.
120619         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120620         * lib/unistd--.h (pipe): Define to pipe_safer.
120621         * lib/unistd-safer.h: Declare pipe_safer.
120623 2005-08-26  Simon Josefsson  <jas@extundo.com>
120625         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120626         Haible <bruno@clisp.org>.
120628 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120630         * lib/regex_internal.h: Remove all references to
120631         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120632         or better.
120633         (bitset_not, bitset_merge, bitset_not_merge):
120634         (bitset_mask, re_string_allocate, re_string_construct):
120635         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120636         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120637         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120638         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120639         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120640         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120641         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120642         (re_acquire_state_context):
120643         Remove unnecessary forward decls.
120644         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120645         Put __attribute at function definition,
120646         now that the function decl has been removed.
120647         * lib/regex_internal.c (re_string_peek_byte_case):
120648         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120649         Likewise.
120651 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120653         * m4/regex.m4: Add AC_PREREQ(2.50).
120654         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120656 2005-08-25  Simon Josefsson  <jas@extundo.com>
120658         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120659         __fsetlocking.
120661 2005-08-25  Simon Josefsson  <jas@extundo.com>
120663         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120664         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120665         GLIBC specific code.
120667 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120669         Make regex safe for g++.  This fixes one real bug (an "err"
120670         that should have been "*err").  g++ problem reported by
120671         Sam Steingold.
120672         * lib/regex_internal.h (re_calloc): New macro, consistent with
120673         re_malloc etc.  All callers of calloc changed to use re_calloc.
120674         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120675         not int.  All callers changed.
120676         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120677         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120678         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120679         (find_recover_state): Change "err" to "*err"; this fixes what
120680         appears to be a real bug.
120681         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120682         versus int.
120684 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120686         * modules/regex (Depends-on): Add malloc, since the code
120687         assumes that !malloc(0) means failure.
120689 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120691         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120693         alloca modernization/simplification for regex.
120694         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120695         needs to be at the start of the file, and can be moved into
120696         regex_internal.h and simplified.
120697         * lib/regex_internal.h: Include <alloca.h>.
120698         (__libc_use_alloca) [!defined _LIBC]: New macro.
120699         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120700         now works outside glibc.
120702 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120704         * config/srclist.txt: Add glibc bugs 1241, 1245.
120706 2005-08-25  Jim Meyering  <jim@meyering.net>
120708         * lib/open-safer.c: Include <config.h>.
120709         Otherwise, we'd lose LARGEFILE support in any file using
120710         e.g. "fcntl--.h"
120712 2005-08-25  Bruno Haible  <bruno@clisp.org>
120714         * m4/minmax.m4: Require autoconf 2.52.
120715         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120716         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120717         alternatives of translit over the alphabet.
120718         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120720 2005-08-24  Simon Josefsson  <jas@extundo.com>
120722         * tests/test-getpass.c: New file.
120724 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120726         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120727         for GNU regex features.
120729 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120731         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120732         * lib/regex.h (regerror): Likewise.
120734         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120735         requires this.  (The code never needed it.)
120737         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120738         All uses of recently-renamed identifiers changed to use the new,
120739         POSIX-compliant names.  The code will build and run just fine
120740         without these changes, but it's better to eat our own dog food
120741         and use the standard-conforming names.
120743         * lib/regex.h: Fix a multitude of POSIX name space violations.
120744         These changes have an effect only for programs that define
120745         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120746         do not change anything for programs compiled in the normal way.
120747         Also, there is no effect on the ABI.
120749         (_REGEX_SOURCE): New macro.
120750         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120751         defined and _GNU_SOURCE is not; this fixes a name space violation.
120753         Rename the following macros to obey POSIX requirements.
120754         The old names are still visible as macros if _REGEX_SOURCE is defined.
120755         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120756         RE_BACKSLASH_ESCAPE_IN_LISTS.
120757         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120758         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120759         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120760         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120761         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120762         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120763         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120764         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120765         (REG_INTERVALS): renamed from RE_INTERVALS.
120766         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120767         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120768         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120769         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120770         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120771         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120772         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120773         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120774         RE_UNMATCHED_RIGHT_PAREN_ORD.
120775         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120776         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120777         (REG_DEBUG): renamed from RE_DEBUG.
120778         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120779         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120780         unusual, since we can't clash with the POSIX REG_ICASE.
120781         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120782         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120783         (REG_NO_SUB): renamed from RE_NO_SUB.
120784         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120785         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120786         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120787         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120788         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120789         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120790         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120791         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120792         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120793         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120794         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120795         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120796         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120797         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120798         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120799         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120800         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120801         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120802         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120803         (REG_FIXED): Renamed from REGS_FIXED.
120804         (REG_NREGS): Renamed from RE_NREGS.
120806         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120807         of other REG_* macros, since POSIX says the user is allowed to
120808         #undef these macros selectively.
120810         (reg_errcode_t): Update comment stating what other tables need
120811         to be consistent.
120813         Rename the following enum values to obey POSIX requirements.
120814         The old names are still visible as macros.
120815         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120816         is not defined, since GNU is supposed to be a superset of POSIX as
120817         much as possible, and since we want reg_errcode_t to be a signed
120818         type for implementation consistency.
120819         (_REG_NOERROR): Renamed from REG_NOERROR.
120820         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120821         (_REG_BADPAT): Renamed from REG_BADPAT.
120822         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120823         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120824         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120825         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120826         (_REG_EBRACK): Renamed from REG_EBRACK.
120827         (_REG_EPAREN): Renamed from REG_EPAREN.
120828         (_REG_EBRACE): Renamed from REG_EBRACE.
120829         (_REG_BADBR): Renamed from REG_BADBR.
120830         (_REG_ERANGE): Renamed from REG_ERANGE.
120831         (_REG_ESPACE): Renamed from REG_ESPACE.
120832         (_REG_BADRPT): Renamed from REG_BADRPT.
120833         (_REG_EEND): Renamed from REG_EEND.
120834         (_REG_ESIZE): Renamed from REG_ESIZE.
120835         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120836         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120837         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120838         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120839         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120841         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120842         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120843         changed.  But support the old name if the new one is not defined
120844         and if _REGEX_SOURCE.
120846         Change the following member names in struct re_pattern_buffer.
120847         The old names are still supported if !_REGEX_SOURCE.
120848         The new names are always supported, regardless of _REGEX_SOURCE.
120849         (re_buffer): Renamed from buffer.
120850         (re_allocated): Renamed from allocated.
120851         (re_used): Renamed from used.
120852         (re_syntax): Renamed from syntax.
120853         (re_fastmap): Renamed from fastmap.
120854         (re_translate): Renamed from translate.
120855         (re_can_be_null): Renamed from can_be_null.
120856         (re_regs_allocated): Renamed from regs_allocated.
120857         (re_fastmap_accurate): Renamed from fastmap_accurate.
120858         (re_no_sub): Renamed from no_sub.
120859         (re_not_bol): Renamed from not_bol.
120860         (re_not_eol): Renamed from not_eol.
120861         (re_newline_anchor): Renamed from newline_anchor.
120863         Change the following member names in struct re_registers.
120864         The old names are still supported if !_REGEX_SOURCE.
120865         The new names are always supported, regardless of _REGEX_SOURCE.
120866         (rm_num_regs): Renamed from num_regs.
120867         (rm_start): Renamed from start.
120868         (rm_end): Renamed from end.
120870         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120871         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120872         Prepend __ to parameter names.
120874         Undo yesterday's changes.
120876 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120878         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120879         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120880         lib/regex.c.
120882 2005-08-24  Jim Meyering  <jim@meyering.net>
120884         Sync from coreutils.
120885         * m4/fcntl-safer.m4: New file.
120887         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120888         and object files for this module.
120890 2005-08-24  Jim Meyering  <jim@meyering.net>
120892         Sync from coreutils.
120893         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120895 2005-08-24  Jim Meyering  <jim@meyering.net>
120897         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120898         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120900 2005-08-24  Jim Meyering  <jim@meyering.net>
120902         * modules/fcntl-safer: New module.
120903         * modules/fts (Depends-on): Add fcntl-safer.
120904         * MODULES.html.sh (File descriptor based Input/Output):
120905         Add fcntl-safer.
120907 2005-08-24  Bruno Haible  <bruno@clisp.org>
120909         Support for unit test modules.
120910         * modules/README: Mention tests modules.
120911         * modules/TEMPLATE-TESTS: New file.
120912         * gnulib-tool: New options --extract-tests-module, --with-tests and
120913         --tests-base (unused for the moment).
120914         (testsbase, inctests): New variables.
120915         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120916         (func_verify_module): Exclude TEMPLATE-TESTS.
120917         (func_verify_nontests_module, func_verify_tests_module): New functions.
120918         (func_get_dependencies): Add implicit dependency for tests modules.
120919         (func_get_tests_module): New function.
120920         (func_modules_transitive_closure): When --with-tests was specified,
120921         include the unit tests as well, unless explicitly avoided.
120922         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120923         (func_emit_tests_Makefile_am): New function.
120924         (func_create_testdir): When --with-tests was specified, emit a
120925         tests/ directory.
120926         * MODULES.html.sh (Future developments): Update.
120928 2005-08-24  Bruno Haible  <bruno@clisp.org>
120930         * modules/tls-tests: New file.
120931         * tests/test-tls.c: New file, from GNU gettext.
120933 2005-08-24  Bruno Haible  <bruno@clisp.org>
120935         * modules/lock-tests: New file.
120936         * tests/test-lock.c: New file, from GNU gettext.
120938 2005-08-24  Bruno Haible  <bruno@clisp.org>
120940         * lib/lock.h: Add multiple inclusion guard.
120941         * lib/tls.h: Add multiple inclusion guard.
120943 2005-08-24  Bruno Haible  <bruno@clisp.org>
120945         * gnulib-tool: Add support for the --aux-dir option to
120946         --create-testdir, --create-megatestdir, --test, --megatest.
120947         (func_create_testdir, func_create_megatestdir): Optionally emit a
120948         AC_CONFIG_AUX_DIR directive.
120949         (create-testdir, create-megatestdir, test, megatest): Provide a
120950         default value for $auxdir.
120952 2005-08-24  Bruno Haible  <bruno@clisp.org>
120954         * gnulib-tool (import): Use compound statement instead of subshell
120955         where possible.
120957 2005-08-24  Bruno Haible  <bruno@clisp.org>
120959         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120961 2005-08-24  Bruno Haible  <bruno@clisp.org>
120963         * gnulib-tool (func_version): Update.
120965 2005-08-24  Bruno Haible  <bruno@clisp.org>
120967         * gnulib-tool (func_import, func_create_testdir,
120968         func_create_megatestdir): Quote all autoconf macro arguments.
120970 2005-08-24  Bruno Haible  <bruno@clisp.org>
120972         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120973         option --force, because --force causes the aclocal.m4 of each
120974         subdirectory to be newer than the corresponding config.h.in.
120976 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120978         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120979         All contents moved to gl_REGEX.
120980         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120981         assume that it does.
120983 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120985         * lib/regex.h (REG_NOSYS)
120986         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120987         Define, since POSIX requires it as of 2001.
120988         (_REG_ENOSYS)
120989         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120990         New private symbol, used to keep the enum signed in all cases.
120991         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120992         Youngman in
120993         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120995         * lib/regex_internal.c (re_string_skip_chars, register_state):
120996         (calc_state_hash):
120997         Remove forward decls; no longer needed now that we use prototypes.
120998         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120999         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121000         (clean_state_log_if_needed): Likewise.
121002 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121004         * config/srclist.txt: Add glibc bugs 1231-1233.
121006 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121008         Fix problems reported by Sam Steingold in
121009         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121010         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121011         assumed that reg_errcode_t is a signed type, which is not
121012         necessarily true if _XOPEN_SOURCE is not defined.
121013         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121014         since some compilers warn about it otherwise.
121016 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121018         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121019         (init_word_char, create_initial_state, duplicate_node_closure):
121020         (fetch_token, peek_token_bracket, build_range_exp):
121021         (build_collating_symbol): Remove forward decls; no longer needed
121022         now that we use prototypes.
121024         * lib/regcomp.c:
121025         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121026         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121027         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121028         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121029         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121030         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121031         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121032         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121033         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121034         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121035         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121036         (build_charclass, build_charclass_op, fetch_number, create_tree):
121037         (create_token_tree, mark_opt_subexp, duplicate_tree):
121038         Use prototypes rather than old-style definitions.
121040         * lib/regex_internal.c:
121041         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121042         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121043         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121044         (re_string_reconstruct, re_string_peek_byte_case):
121045         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121046         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121047         (re_node_set_init_copy, re_node_set_add_intersect):
121048         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121049         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121050         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121051         (re_acquire_state, re_acquire_state_context, register_state):
121052         (create_ci_newstate, create_cd_newstate, free_state):
121053         Likewise.
121054         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121055         re_search_2):
121056         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121057         (re_search_internal, prune_impossible_nodes):
121058         (acquire_init_state_context, check_matching, static):
121059         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121060         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121061         (update_regs, sift_states_backward, build_sifted_states):
121062         (clean_state_log_if_needed, merge_state_array):
121063         (update_cur_sifted_state, add_epsilon_src_nodes):
121064         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121065         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121066         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121067         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121068         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121069         (check_arrival, check_arrival_add_next_nodes):
121070         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121071         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121072         (check_node_accept_bytes, check_node_accept, extend_buffers):
121073         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121074         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121075         (sift_ctx_init):
121076         Likewise.
121078         * lib/regex_internal.h:
121079         (re_string_allocate, re_string_construct, re_string_reconstruct):
121080         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121081         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121082         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121083         (re_string_context_at, re_string_peek_byte_case):
121084         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121085         is defined, since we now use prototypes always.
121087         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121088         C89 or better.  All uses removed.
121090 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121092         * config/srclist.txt: Add glibc bugs 1220-1227.
121094 2005-08-20  Jim Meyering  <jim@meyering.net>
121096         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121097         of unused local, dfa.
121099 2005-08-20  Bruno Haible  <bruno@clisp.org>
121101         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121103 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121105         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121106         (re_node_set_insert_last, re_dfa_add_node):
121107         Rename local variables to avoid GCC shadowing warnings.
121109 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121111         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121112         [defined lint]: Suppress bogus uninitialized-variable warnings.
121114         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121115         and let the caller return REG_ESPACE if out of space.  This
121116         removes an uninitialied-variable warning with GCC 4.0.1, and also
121117         avoids taking the address of a local variable.  All callers
121118         changed.
121120 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121122         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121123         $LIBCSRC/posix/regexec.c.
121124         Add glibc bug 1217 for regcomp.c.
121126 2005-08-19  Jim Meyering  <jim@meyering.net>
121128         * lib/regexec.c (proceed_next_node): Redo local variables to
121129         avoid GCC shadowing warnings.
121131 2005-08-18  Bruno Haible  <bruno@clisp.org>
121133         * lib/strstr.c (strstr): Fix return value in multibyte case.
121134         * lib/strcasestr.c (strcasestr): Likewise.
121136 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121138         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121140 2005-08-17  Jim Meyering  <jim@meyering.net>
121142         Make the %s format (seconds since the epoch) work for a negative
121143         number and when used with a zero-padded field width, e.g. %015s.
121145         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121146         label so that it precedes the code to set `digits'.  Otherwise,
121147         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121148         print `00-22'.  Now, it prints `-0022', as it should.
121150 2005-08-17  Bruno Haible  <bruno@clisp.org>
121152         * modules/strstr (Files): Add m4/mbrtowc.m4.
121153         (Depends-on): Add mbuiter.
121155 2005-08-17  Bruno Haible  <bruno@clisp.org>
121157         * modules/strcasestr: New file.
121158         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121159         strcasestr.
121161 2005-08-17  Bruno Haible  <bruno@clisp.org>
121163         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121165 2005-08-17  Bruno Haible  <bruno@clisp.org>
121167         * modules/mbuiter: New file.
121168         * MODULES.html.sh (Extended multibyte and wide character utilities):
121169         Add mbuiter.
121171 2005-08-17  Bruno Haible  <bruno@clisp.org>
121173         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121174         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121176 2005-08-17  Bruno Haible  <bruno@clisp.org>
121178         * m4/strcasestr.m4: New file.
121180 2005-08-17  Bruno Haible  <bruno@clisp.org>
121182         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121183         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121185 2005-08-17  Bruno Haible  <bruno@clisp.org>
121187         * lib/strcasestr.h: New file.
121188         * lib/strcasestr.c: New file.
121190 2005-08-17  Bruno Haible  <bruno@clisp.org>
121192         * lib/strcasecmp.c: Use mbuiter.h.
121194 2005-08-17  Bruno Haible  <bruno@clisp.org>
121196         * lib/mbuiter.h: New file.
121198 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121201         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121202         and gl_GETOPT are both invoked via different paths (as happens
121203         with GNU tar CVS because it uses both argp and getopt), the former
121204         wins.
121206 2005-08-16  Bruno Haible  <bruno@clisp.org>
121208         * modules/tls: New file.
121209         * MODULES.html.sh (Multithreading): Add tls.
121211 2005-08-16  Bruno Haible  <bruno@clisp.org>
121213         * modules/strnlen1: New file.
121214         * MODULES.html.sh (String handling): Add strnlen1.
121216 2005-08-16  Bruno Haible  <bruno@clisp.org>
121218         * modules/strcase (Files): Add m4/mbrtowc.m4.
121219         (Depends-on): Add strnlen1, mbchar.
121221 2005-08-16  Bruno Haible  <bruno@clisp.org>
121223         * modules/mbiter: New file.
121224         * MODULES.html.sh (Extended multibyte and wide character utilities):
121225         Add mbiter.
121227 2005-08-16  Bruno Haible  <bruno@clisp.org>
121229         * modules/mbfile: New file.
121230         * MODULES.html.sh (Extended multibyte and wide character utilities):
121231         Add mbfile.
121233 2005-08-16  Bruno Haible  <bruno@clisp.org>
121235         * modules/mbchar: New file.
121236         * MODULES.html.sh (Extended multibyte and wide character utilities):
121237         New section.
121239 2005-08-16  Bruno Haible  <bruno@clisp.org>
121241         * m4/tls.m4: New file, from GNU gettext.
121243 2005-08-16  Bruno Haible  <bruno@clisp.org>
121245         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121246         always.
121247         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121249 2005-08-16  Bruno Haible  <bruno@clisp.org>
121251         * m4/mbiter.m4: New file.
121253 2005-08-16  Bruno Haible  <bruno@clisp.org>
121255         * m4/mbfile.m4: New file.
121257 2005-08-16  Bruno Haible  <bruno@clisp.org>
121259         * m4/mbchar.m4: New file.
121261 2005-08-16  Bruno Haible  <bruno@clisp.org>
121263         * lib/tls.h: New file, from GNU gettext.
121264         * lib/tls.c: New file, from GNU gettext.
121266 2005-08-16  Bruno Haible  <bruno@clisp.org>
121268         * lib/strnlen1.h: New file.
121269         * lib/strnlen1.c: New file.
121271 2005-08-16  Bruno Haible  <bruno@clisp.org>
121273         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121274         (mbi_init): Update.
121275         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121276         NUL byte, not after it.
121278 2005-08-16  Bruno Haible  <bruno@clisp.org>
121280         * lib/strcase.h (strcasecmp): Add note in comments.
121281         * lib/strncasecmp.c: Use code from strcasecmp.c.
121282         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121283         (strcasecmp): Work correctly in multibyte locales.
121285 2005-08-16  Bruno Haible  <bruno@clisp.org>
121287         * lib/mbiter.h: New file.
121289 2005-08-16  Bruno Haible  <bruno@clisp.org>
121291         * lib/mbfile.h: New file.
121293 2005-08-16  Bruno Haible  <bruno@clisp.org>
121295         * lib/mbchar.h: New file.
121296         * lib/mbchar.c: New file.
121298 2005-08-16  Bruno Haible  <bruno@clisp.org>
121300         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121301         the valid ones. Makes the comparison operations transitive:
121302         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121303         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121305 2005-08-15  Simon Josefsson  <jas@extundo.com>
121307         * modules/ssize_t (License): Change to 'unlimited'.
121309         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121311 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121313         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121314         Add comments for each pending glibc patch.
121316 2005-08-15  Bruno Haible  <bruno@clisp.org>
121318         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121319         __cplusplus is defined.
121321 2005-08-14  Jim Meyering  <jim@meyering.net>
121323         Sync from coreutils.
121325         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121326         Use the hash-table-based cycle-detection code not just when
121327         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121328         Reported by James Youngman in
121329         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121330         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121331         FTS_TIGHT_CYCLE_CHECK.
121332         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121333         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121334         once again.
121335         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121336         * lib/fts.c (fd_safer): Remove decl.
121337         Include fcntl--.h rather than unistd-safer.h
121338         (fts_safe_changedir): Don't call fd_safer; no longer needed
121339         now that we include fcntl--.h.
121341 2005-08-12  Simon Josefsson  <jas@extundo.com>
121343         * modules/getndelim2: Use ssize_t module.
121344         * modules/getnline: Likewise.
121345         * modules/safe-read: Likewise.
121346         * modules/xreadlink: Likewise.
121348         * modules/ssize_t: New file.
121350 2005-08-12  Simon Josefsson  <jas@extundo.com>
121352         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121354 2005-08-12  Simon Josefsson  <jas@extundo.com>
121356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121357         ssize_t.
121359 2005-08-12  Simon Josefsson  <jas@extundo.com>
121361         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121362         readline, getdelim and check_version.
121363         (Support for systems lacking ISO C 99: Sizes of integer types):
121364         Add size_max.
121366 2005-08-12  Bruno Haible  <bruno@clisp.org>
121368         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121370 2005-08-11  Simon Josefsson  <jas@extundo.com>
121372         * modules/readline: New file.
121374         * modules/strnlen (Files): Add strnlen.h.
121376 2005-08-11  Simon Josefsson  <jas@extundo.com>
121378         * m4/readline.m4: New file.
121380 2005-08-11  Simon Josefsson  <jas@extundo.com>
121382         * lib/readline.h, readline.c: New file.
121384 2005-08-11  Simon Josefsson  <jas@extundo.com>
121386         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121387         gl_AVOID.
121389 2005-08-11  Bruno Haible  <bruno@clisp.org>
121391         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121393 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121395         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121397 2005-08-10  Simon Josefsson  <jas@extundo.com>
121399         * tests/test-iconvme.c: New file.
121401 2005-08-10  Simon Josefsson  <jas@extundo.com>
121403         * m4/strnlen.m4: New file.
121405         * m4/strndup.m4: Don't check for strnlen declaration, done in
121406         strnlen.m4.
121408 2005-08-10  Simon Josefsson  <jas@extundo.com>
121410         * lib/strndup.c: Use strnlen.h.
121412         * lib/strnlen.h: New file.
121414 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121416         * README: Typos.
121418 2005-08-02  Simon Josefsson  <jas@extundo.com>
121420         * modules/readline: New file.
121422 2005-08-02  Simon Josefsson  <jas@extundo.com>
121424         * modules/getdelim: New file.
121426         * modules/getline: Rewrite, don't use getndelim2.
121428 2005-08-02  Simon Josefsson  <jas@extundo.com>
121430         * m4/getline.m4: Separate out getdelim stuff into separate module.
121432         * m4/getdelim.m4: New file.
121434 2005-08-02  Simon Josefsson  <jas@extundo.com>
121436         * lib/getline.h, getline.c: Rewrite.
121438         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121440 2005-07-31  Bruno Haible  <bruno@clisp.org>
121442         * lib/lock.h (gl_lock_initializer): New macro.
121443         (gl_lock_define_initialized): Use it.
121444         (gl_rwlock_initializer): New macro.
121445         (gl_rwlock_define_initialized): Use it.
121446         (gl_recursive_lock_initializer): New macro.
121447         (gl_recursive_lock_define_initialized): Use it.
121449 2005-07-30  Karl Berry  <karl@gnu.org>
121451         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121452         Report from Ben Pfaff, regarding getopt.
121454 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121456         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121457         normal way.
121458         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121459         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121460         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121461         (gl_GETOPT): Use the new macros.  Most of the implementation
121462         is moved to the new macros.  This is for programs like Emacs
121463         that don't want all the functionality of gl_GETOPT.
121465 2005-07-26  Bruno Haible  <bruno@clisp.org>
121467         * m4/lock.m4: Update from GNU gettext.
121469 2005-07-26  Bruno Haible  <bruno@clisp.org>
121471         * lib/lock.h: Update from GNU gettext.
121472         * lib/lock.c: Update from GNU gettext.
121474 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121476         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121477         obsolescent AC_TRY_RUN.  Include the default includes files, for
121478         'exit'.
121480 2005-07-24  Bruno Haible  <bruno@clisp.org>
121482         * modules/visibility: New file.
121483         * MODULES.html.sh (Misc): Add visibility.
121485 2005-07-24  Bruno Haible  <bruno@clisp.org>
121487         * m4/visibility.m4: New file.
121489 2005-07-24  Bruno Haible  <bruno@clisp.org>
121491         * doc/visibility.texi: New file.
121493 2005-07-22  Bruno Haible  <bruno@clisp.org>
121495         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121496         $(ALLOCA_H), redundant through BUILT_SOURCES.
121497         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121498         redundant through BUILT_SOURCES.
121499         * modules/byteswap (Makefile.am): Remove explicit dependency on
121500         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121501         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121502         $(FNMATCH_H), redundant through BUILT_SOURCES.
121503         * modules/getopt (Makefile.am): Remove explicit dependency on
121504         $(GETOPT_H), redundant through BUILT_SOURCES.
121505         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121506         redundant through BUILT_SOURCES.
121507         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121508         redundant through BUILT_SOURCES.
121509         * modules/stdbool (Makefile.am): Remove explicit dependency on
121510         $(STDBOOL_H), redundant through BUILT_SOURCES.
121511         * modules/stdint (Makefile.am): Remove explicit dependency on
121512         $(STDINT_H), redundant through BUILT_SOURCES.
121513         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121514         Remove explicit dependency on $(SYSEXITS_H).
121515         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121517 2005-07-18  Simon Josefsson  <jas@extundo.com>
121519         * lib/check-version.c (check_version): Accept identical versions too.
121521 2005-07-18  Bruno Haible  <bruno@clisp.org>
121523         * modules/lock: New file.
121524         * MODULES.html.sh (Multithreading): New section.
121526 2005-07-18  Bruno Haible  <bruno@clisp.org>
121528         * m4/lock.m4: New file, from GNU gettext.
121530 2005-07-18  Bruno Haible  <bruno@clisp.org>
121532         * lib/lock.h: New file, from GNU gettext.
121533         * lib/lock.c: New file, from GNU gettext.
121535 2005-07-18  Bruno Haible  <bruno@clisp.org>
121537         * lib/lock.h (gl_once_t): New type.
121538         (gl_once_define, gl_once): New macros.
121539         * lib/lock.c (fresh_once): New variable.
121540         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121541         functions.
121543 2005-07-16  Simon Josefsson  <jas@extundo.com>
121545         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121546         workaround, suggested by Bruno.
121548 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121550         * modules/xalloc (Depends-on): Add xalloc-die.
121551         * modules/xvasprintf (Depends-on): Add xalloc-die.
121553 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121555         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121556         with a minor change.
121558 2005-07-15  Bruno Haible  <bruno@clisp.org>
121560         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121561         When using lib/poll.c, define poll as rpl_poll.
121563 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121565         * modules/argp (Depends-on): Remove unlocked-io.
121567 2005-07-14  Derek Price  <derek@ximbiot.com>
121569         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121570         for glob symlink bug.
121572 2005-07-14  Bruno Haible  <bruno@clisp.org>
121574         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121575         Instead, test for *_unlocked function declarations directly.
121577 2005-07-11  Simon Josefsson  <jas@extundo.com>
121579         * modules/size_max: New file.
121581         * modules/xsize: Depend on size_max module for size_max.m4.
121583 2005-07-11  Simon Josefsson  <jas@extundo.com>
121585         * lib/size_max.h: New file.
121587 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121589         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121590         copyright symbol and the year.
121591         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121592         (version_etc_va): Use parameterized copyright notice.
121593         Reword to conform to the current GNU coding standards.
121595 2005-07-11  Karl Berry  <karl@gnu.org>
121597         * doc/gnulib.texi (Quoting): new node.
121598         (Initial import): more info, from Patrice.
121600 2005-07-11  Bruno Haible  <bruno@clisp.org>
121602         * gnulib-tool (func_usage): Document option --avoid.
121603         (Command line options): Handle --avoid.
121604         (func_acceptable): New function.
121605         (func_modules_transitive_closure): Use it.
121607 2005-07-11  Bruno Haible  <bruno@clisp.org>
121609         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121610         Reported by Jim Meyering.
121612 2005-07-10  Bruno Haible  <bruno@clisp.org>
121614         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121615         Needed when size_t is smaller than 'unsigned int'.
121616         Reported by Paul Eggert.
121618 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121620         * modules/argp (Depends-on): Add unlocked-io
121622 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121624         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121625         block of defines.
121627 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121629         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121630         fix now.
121632 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121633         and Paul Eggert  <eggert@cs.ucla.edu>
121635         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121636         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121638 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121640         * modules/regex (Files): Add lib/regex_internal.c,
121641         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121642         (Depends-on): Add extensions.
121643         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121645 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121647         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121648         pathconf.
121649         * m4/same.m4 (gl_SAME): Likewise.
121650         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121652         * m4/regex.m4: Adjust to new libc regex implementation.
121653         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121654         all the .c and .h parts of (the new) regex.
121655         Quote the m4 stuff better.
121656         Check for RE_ICASE bug of old gnulib.
121657         Check for REG_STARTEND of recent libc.
121658         Rename local variables from jm_* to gl_*.
121659         Quote operand of "test -f".
121660         Say "recent enough" version of libc, not "version 2".
121661         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121662         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121663         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121664         Remove check for btowc, isascii.
121665         Require AM_LANGINFO_CODESET.
121667 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121669         * lib/regex.c, regex.h: Sync from libc.
121670         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121671         * lib/regexec.c:
121672         New files, synced from libc, except that regex_internal.h
121673         currently has a small porting fix.
121675 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121677         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121678         regex_internal.c, regexec.c.
121679         Add regex_internal.h too, but as a comment, since the libc version
121680         is currently broken in gnulib mode.
121682 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121684         Support programs like Emacs that use gnulib but not gettext.
121685         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121686         * modules/gettext-h: New file.
121687         * modules/gettext (Files): Remove lib/gettext.h.
121688         (Depends-on): Add gettext-h.
121689         (Makefile.am): Remove lib_SOURCES.
121690         * modules/argmatch, modules/c-stack, modules/closeout:
121691         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121692         * modules/execute, modules/file-type, modules/getaddrinfo:
121693         * modules/getopt, modules/human, modules/javacomp:
121694         * modules/javaexec, modules/mkdir-p, modules/obstack:
121695         * modules/openat, modules/pagealign_alloc, modules/pipe:
121696         * modules/quotearg, modules/regex, modules/rpmatch:
121697         * modules/unicodeio, modules/userspec, modules/version-etc:
121698         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121699         * modules/xsetenv:
121700         Depend on gettext-h, not gettext.
121702 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121704         * gnulib-tool (func_import): Add support for 'public domain' license.
121705         * modules/alloca, modules/atexit, modules/memmove:
121706         Now public domain, not GPL.
121707         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121708         * modules/realloc, modules/strerror, modules/strtod:
121709         Now LGPL, not GPL.
121711 2005-07-05  Bruno Haible  <bruno@clisp.org>
121713         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121714         autoconf CVS. Needed for mingw.
121716 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121718         Remove the dependency of the strftime module on the tzset module.
121719         * modules/strftime (Depends-on): Remove dependency on tzset.
121721 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121723         Remove the dependency of the strftime module on the tzset module.
121724         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121725         gl_FUNC_TZSET_CLOBBER.
121727 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121729         Remove the dependency of the strftime module on the tzset module.
121730         * lib/strftime.c (my_strftime)
121731         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121732         Copy the input structure, to work around some of the bug with
121733         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121734         Solaris releases, you should also use the tzset module, but we won't
121735         require it as a dependency any more since we don't want LGPLed code
121736         to depend on GPLed code.
121738 2005-07-02  Jim Meyering  <jim@meyering.net>
121740         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121741         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121742         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121743         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121745 2005-07-02  Jim Meyering  <jim@meyering.net>
121747         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121749 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121751         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121752         declares only 'struct timespec;' (!).
121754 2005-07-01  Jim Meyering  <jim@meyering.net>
121756         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121757         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121758         * lib/save-cwd.c, tempname.c:
121759         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121760         and don't include <sys/file.h>).
121762 2005-06-29  Jim Meyering  <jim@meyering.net>
121764         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121765         type name.  Use the variable name instead.
121766         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121767         Likewise.
121769 2005-06-28  Simon Josefsson  <jas@extundo.com>
121771         * modules/check-version (Files): Add check-version.m4.
121773 2005-06-28  Simon Josefsson  <jas@extundo.com>
121775         * m4/check-version.m4: New file, suggested by Jim Meyering
121776         <jim@meyering.net>.
121778 2005-06-28  Simon Josefsson  <jas@extundo.com>
121780         * lib/check-version.h, lib/check-version.c: New files.
121782 2005-06-28  Simon Josefsson  <jas@extundo.com>
121784         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121785         collision with global variable.  Better indentation.  Don't
121786         increment buffer pointer beyond buffer end.  Based on comments
121787         from Paul Eggert <eggert@cs.ucla.edu>.
121789         * lib/base64.h: Indent.
121791 2005-06-28  Simon Josefsson  <jas@extundo.com>
121793         * doc/gnulib.texi (Library version handling): New section.
121795 2005-06-28  Jim Meyering  <jim@meyering.net>
121797         * check-module (find_included_lib_files): Hard-code another
121798         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121799         but modules/fts-lgpl (correctly) does not list those files.
121801         * modules/canonicalize (Files): Add lib/pathmax.h.
121803 2005-06-25  Simon Josefsson  <jas@extundo.com>
121805         * modules/check-version: New file.
121807 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121809         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121810         initializer of struct addrinfo, as an indication that we don't
121811         care how many members the structure has.
121813 2005-06-24  Derek Price  <derek@ximbiot.com>
121814         and Bruno Haible  <bruno@clisp.org>
121816         Remove stat module & update lstat.
121817         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121818         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121819         * m4/stat.m4: Remove this file.
121821 2005-06-24  Derek Price  <derek@ximbiot.com>
121822         and Bruno Haible  <bruno@clisp.org>
121824         Remove stat module & update lstat.
121825         * lib/stat.c: Remove this file...
121826         (slash_aware_lstat): ...moving this content and its support...
121827         * lib/lstat.c (rpl_lstat): ...into here.
121828         * lib/lstat.h: New file.
121830 2005-06-24  Derek Price  <derek@ximbiot.com>
121831         and Bruno Haible  <bruno@clisp.org>
121833         Remove stat module & update lstat.
121834         * config/srclist.txt (libc sources): Remove stat.
121836 2005-06-24  Derek Price  <derek@ximbiot.com>
121837         and Bruno Haible  <bruno@clisp.org>
121839         Remove stat module & update lstat.
121840         * MODULES.html.sh (stat): Remove.
121841         * MODULES.html: Regenerated.
121842         * modules/lstat (Description): Correct function name.
121843         (Files): Add "lstat.h".
121844         (Depends-on): Remove stat, add xalloc, stat-macros.
121845         * modules/stat: Remove this file.
121846         (Include): Add "lstat.h", remove <sys/stat.h>.
121848 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121850         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121851         (ranged_convert): Don't save conversion in a temporary struct.
121852         This causes a warning with GCC 4.0.0, and anyway in the typical
121853         case it's not worth the extra 100 bytes or so of code.
121854         (ranged_convert, __mktime_internal): When calling a function via a
121855         pointer P, use P () rather than (*P) (), as we now assume C89 or
121856         better.
121858 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121860         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121861         "who -r" failed to give output.  Problem reported by Tim Waugh.
121863         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121864         (xcalloc): Use it to avoid needless tests.
121865         Problem reported by Jim Meyering.
121867 2005-06-20  Derek Price  <derek@ximbiot.com>
121869         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121870         unnecessary for Autoconfs > 2.59c.
121872 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121874         * lib/argp.h (__option_is_short): Check upper limit of
121875         __key. Isprint() requires its argument to have the value
121876         of an unsigned char or EOF.
121878 2005-06-16  Jim Meyering  <jim@meyering.net>
121880         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121881         when either N or S is zero.
121883 2005-06-16  Derek Price  <derek@ximbiot.com>
121885         * m4/bison.m4: Declare YACC & YFLAGS precious.
121887 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121889         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121890         multibyte string or pattern, fall back on unibyte matching.
121891         Problem reported by James Youngman.
121893 2005-06-08  Bruno Haible  <bruno@clisp.org>
121895         * modules/csharpcomp: New file.
121896         * MODULES.html.sh (C#): Add csharpcomp.
121898 2005-06-08  Bruno Haible  <bruno@clisp.org>
121900         * m4/csharpcomp.m4: New file, from GNU gettext.
121902 2005-06-08  Bruno Haible  <bruno@clisp.org>
121904         * lib/csharpcomp.h: New file, from GNU gettext.
121905         * lib/csharpcomp.c: New file, from GNU gettext.
121906         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121908 2005-06-08  Bruno Haible  <bruno@clisp.org>
121910         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121911         warning on mingw.
121913 2005-06-07  Derek Price  <derek@ximbiot.com>
121915         Sync from CVS.
121916         * lib/glob_.h: Indent nested #ifdef.
121918 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121920         Sync from coreutils.
121921         Use "file name" when talking about file names, instead of "filename"
121922         or "path", as per the GNU coding standards.
121923         * lib/mkdir-p.c: Renamed from makepath.c.
121924         (make_dir_parents): Renamed from make_path.  All callers changed.
121925         * lib/mkdir-p.h: Likewise.  All includers changed.
121926         * lib/filenamecat.c: Renamed from path-concat.c.
121927         (file_name_concat): Renamed from path_concat.  All callers changed.
121928         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121929         * lib/filenamecat.h: Likewise.  All includers changed.
121930         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121931         in comments or local variable names.
121932         * lib/basename.c: Likewise.
121933         * lib/canonicalize.c, canonicalize.h: Likewise.
121934         * lib/dirname.c, dirname.h: Likewise.
121935         * lib/euidaccess.c: Likewise.
121936         * lib/exclude.c: Likewise
121937         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121938         * lib/fsusage.c, fsuage.h: Likewise.
121939         * lib/fts.c, fts_.h: Likewise.
121940         * lib/getcwd.c: Likewise.
121941         * lib/getloadavg.c: Likewise.
121942         * lib/mkstemp.c: Likewise.
121943         * lib/mountlist.c, mountlist.h: Likewise.
121944         * lib/openat.c, openat.h: Likewise.
121945         * lib/readlink-stub.c: Likewise.
121946         * lib/readutmp.c, readutmp.h: Likewise.
121947         * lib/rename.c: Likewise.
121948         * lib/rmdir.c: Likewise.
121949         * lib/same.c: Likewise.
121950         * lib/savedir.c: Likewise.
121951         * lib/stripslash.c: Likewise.
121952         * lib/tempname.c: Likewise.
121953         * lib/xreadlink.c: Likewise.
121954         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121955         All uses changed.
121956         * lib/exclude.h: Likewise.
121958         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121959         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121960         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121961         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121962         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121963         files have been getting away with it for years (MORE/BSD 4.3
121964         is extinct now).
121965         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121966         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121968         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121969         Define to 256, not 255, as per modern POSIX.
121971 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121973         Sync from coreutils.
121974         Use "file name" when talking about file names, instead of "filename"
121975         or "path", as per the GNU coding standards.
121976         * MODULES.html.sh: mkdir-p renamed from makepath.
121977         filenamecat renamed from path-concat.
121978         * modules/filenamecat: Renamed from modules/path-concat.
121979         (Files): filenamecat.h and filenamecat.c renamed from
121980         path-concat.h and path-concat.c.
121981         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121982         (Include): filenamecat.h, not path-concat.h.
121983         * modules/mkdir-p: Renamed from modules/makepath.
121984         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121985         makepath.c.
121986         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121987         (Include): mkdir-p.h, not makepath.h.
121989 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121991         Sync from coreutils.
121992         * m4/mkdir-p.m4: Renamed from makepath.m4.
121993         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121994         Rename files from makepath.c to mkdir-p.c, and from
121995         makepath.h to mkdir-p.h.
121996         * m4/filenamecat.m4: Renamed from path-concat.m4.
121997         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121998         Rename files from path-concat.c to filenamecat.c,
121999         and from path-concat.h to filenamecat.h.
122000         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122001         "file name" in local variables or comments.
122002         * m4/rename.m4: Likewise.
122004 2005-06-01  Bruno Haible  <bruno@clisp.org>
122006         * modules/csharpexec: New file.
122007         * MODULES.html.sh (C#): New section.
122009 2005-06-01  Bruno Haible  <bruno@clisp.org>
122011         * m4/csharp.m4: New file, from GNU gettext.
122012         * m4/csharpexec.m4: New file, from GNU gettext.
122014 2005-06-01  Bruno Haible  <bruno@clisp.org>
122016         * lib/csharpexec.h: New file, from GNU gettext.
122017         * lib/csharpexec.c: New file, from GNU gettext.
122018         * lib/csharpexec.sh.in: New file, from GNU gettext.
122020 2005-05-31  Derek Price  <derek@ximbiot.com>
122021             Paul Eggert  <eggert@cs.ucla.edu>
122023         Sync from cvs.
122024         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122026 2005-05-31  Derek Price  <derek@ximbiot.com>
122027             Paul Eggert  <eggert@cs.ucla.edu>
122029         Sync from cvs.
122030         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122032 2005-05-29  Derek Price  <derek@ximbiot.com>
122034         * config/srclist.txt (glob_.h, glob.c): Add these files.
122036 2005-05-29  Derek Price  <derek@ximbiot.com>
122038         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122039         * modules/glob: New file.
122040         * modules/getlogin_r: Add link to POSIX spec in description.
122042 2005-05-29  Derek Price  <derek@ximbiot.com>
122043             Paul Eggert  <eggert@cs.ucla.edu>
122045         * m4/glob.m4: New file.
122047 2005-05-29  Derek Price  <derek@ximbiot.com>
122048             Paul Eggert  <eggert@cs.ucla.edu>
122050         * lib/glob_.h, lib/glob.c: New files.
122052 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122054         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122055         * modules/fts-lgpl (Depends-on): Remove gettext.
122057 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122060         and don't require gt_INTTYPES_PRI.
122062 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122064         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122066         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122067         the configuration hassle isn't worth it.
122068         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122069         (LONGEST_MODIFIER, PRIuMAX): Remove.
122071 2005-05-27  Bruno Haible  <bruno@clisp.org>
122073         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122075 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122077         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122078         _POSIX_PTHREAD_SEMANTICS for Solaris.
122080 2005-05-25  Derek Price  <derek@ximbiot.com>
122082         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122084 2005-05-25  Derek Price  <derek@ximbiot.com>
122085             Paul Eggert  <eggert@cs.ucla.edu>
122087         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122088         * lib/getlogin_r.c, getlogin_r.h: New files.
122090 2005-05-25  Bruno Haible  <bruno@clisp.org>
122091             Derek Price  <derek@ximbiot.com>
122093         * lib/getlogin_r.h: Simplify API documentation.
122095 2005-05-23  Derek Price  <derek@ximbiot.com>
122097         * modules/minmax (Files): Add m4/minmax.m4.
122098         (configure.ac): Add gl_MINMAX.
122100 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122102         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122103         so that unistd-safer.h (GPL'ed code) need not be included.
122105 2005-05-22  Bruno Haible  <bruno@clisp.org>
122107         * m4/minmax.m4: New file.
122108         Based on a patch by Derek Price <derek@ximbiot.com>.
122110 2005-05-22  Bruno Haible  <bruno@clisp.org>
122112         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122113         (INT64_MIN): Fix definition.
122114         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122116         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122117         NEED_SIGNED_INT_TYPES.
122119         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122120         HAVE_SYSTEM_INTTYPES.
122122 2005-05-22  Bruno Haible  <bruno@clisp.org>
122124         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122125         Also include <sys/param.h> if it defines MIN, MAX.
122126         Based on a patch by Derek Price <derek@ximbiot.com>.
122128 2005-05-21  Jim Meyering  <jim@meyering.net>
122130         * modules/fts (Files): Add m4/inttypes-pri.m4.
122131         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122133 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122135         New fts module.
122136         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122137         (setup_dir, free_dir): New functions.
122138         (enter_dir, leave_dir): Define trivial
122139         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122140         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122141         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122142         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122143         Move to fts-cycle.c.
122144         (fts_open): Use setup_dir.
122145         (fts_close): Use free_dir.
122146         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122147         This adds a label and some gotos, but the alternatives were messier.
122148         Check for memory allocation failure when entering a dir.
122149         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122150         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122151         (FTS): New member fts_cycle, that is a union that contains the
122152         old active_dir_ht and cycle_state.  All uses changed to mention
122153         fts_cycle.ht and fts_cycle.state.
122154         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122155         fts.c, with the following changes:
122156         (setup_dir, free_dir): New functions.
122157         (enter_dir): Now returns bool.  Return true if successful, false
122158         if memory exhausted.  All callers changed.
122159         Do not bother partly cleaning up on
122160         memory allocation failure; that is free_dir's job.
122161         However, free ad if hash_insert fails, to avoid memory leak.
122162         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122163         fts->fts_options to see which union member to use.
122165 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122167         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122168         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122170 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122172         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122174 2005-05-20  Jim Meyering  <jim@meyering.net>
122176         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122177         Now a macro, to pacify GCC.
122179 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122181         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122182         of -1.
122184 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122186         * lib/chown.c (rpl_chown): Return -1 on failure.
122188 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122190         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122191         Don't check for stddef.h.
122192         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122193         don't use its results.
122194         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122195         since we include them unconditionally.  Don't require
122196         AM_STDBOOL_H, since stdbool is a prerequisite.
122197         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122198         since we assume C89 or better.
122199         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122200         as we don't use their results.
122201         Don't check for fchdir, memmove, memset, strrchr, as we use
122202         them unconditionally.
122203         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122204         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122206 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122208         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122209         Include <stddef.h> unconditionally, since we assume C89 now.
122210         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122211         * lib/fts.c: Include fts_.h first, to check interface.
122212         Do not include intprops.h; no longer needed.
122213         Include cycle-check.h and hash.h, since fts_.h no longer does.
122214         Remove unnecessary casts of closedir to void.
122215         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122216         decide whether to decrement nlinks.
122217         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122218         (FTS): Use struct hash_table * instead of Hash_table, so that
122219         we no longer need to include hash.h here.
122221 2005-05-18  Jim Meyering  <jim@meyering.net>
122223         * modules/dirfd (License): Change to LGPL.  Most of the code
122224         is already in the public domain.
122226 2005-05-18  Jim Meyering  <jim@meyering.net>
122228         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122229         Reported by Yoann Vandoorselaere.
122231 2005-05-17  Jim Meyering  <jim@meyering.net>
122233         * m4/fts.m4: New file, from coreutils.
122235 2005-05-17  Jim Meyering  <jim@meyering.net>
122237         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122239 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122241         Sync from coreutils.
122242         * m4/unlinkdir.m4: New file.
122244 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122246         Sync from coreutils.
122247         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122248         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122249         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122250         White space changes only.
122251         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122252         special.
122253         * lib/yesno.c: Include getline.h, not ctype.h.
122254         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122255         Use getline to remove arbitrary restriction on response length.
122257 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122259         * config/srclist-update: Spell out "Street" in FSF postal
122260         mail address; this is the style the FSF seems to prefer.
122262         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122263         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122264         this updates FSF postal mail address.
122266         Sync from coreutils.
122267         * modules/unlinkdir: New file.
122268         * modules/yesno (Depends-on): Add getline.
122269         * MODULES.html.sh (File system functions): Add unlinkdir.
122271 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122273         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122274         lib/strsep.h:
122275         Change the initial comment to refer to GPL, not LGPL.
122276         gnulib-tool will change it to LGPL as needed.
122278         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122279         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122280         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122281         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122282         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122283         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122284         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122285         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122286         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122287         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122288         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122289         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122290         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122291         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122292         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122293         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122294         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122295         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122296         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122297         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122298         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122299         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122300         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122301         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122302         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122303         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122304         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122305         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122306         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122307         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122308         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122309         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122310         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122311         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122312         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122313         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122314         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122315         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122316         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122317         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122318         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122319         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122320         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122321         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122322         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122323         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122324         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122325         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122326         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122327         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122328         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122329         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122330         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122331         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122332         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122333         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122334         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122335         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122336         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122337         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122338         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122339         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122340         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122341         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122342         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122343         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122344         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122345         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122346         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122347         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122348         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122349         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122350         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122351         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122352         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122353         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122354         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122355         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122356         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122357         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122358         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122359         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122360         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122361         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122362         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122363         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122364         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122365         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122366         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122367         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122368         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122369         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122370         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122371         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122372         lib/yesno.c, lib/yesno.h:
122373         Update FSF postal mail address.
122375 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122377         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122378         tests/test-memmem.c, tests/test-stpncpy.c:
122379         Update FSF postal mail address.
122381 2005-05-13  Bruno Haible  <bruno@clisp.org>
122383         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122384         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122385         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122386         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122387         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122388         Add support for 64-bit integers in the MSVC compiler.
122390 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122392         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122394 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122396         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122398 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122400         * doc/getdate.texi (General date syntax): Don't say that date
122401         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122402         Problem reported by Nic Ferrier.
122404 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122406         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122407         specified in ai_socktype. Fix invalid ai_protocol
122408         check. ai_protocol is usually set to 0 or depending on
122409         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122410         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122411         ai_socktype / ai_protocol in the returned addrinfo structure.
122413 2005-05-10  Simon Josefsson  <jas@extundo.com>
122415         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122416         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122418 2005-05-10  Karl Berry  <karl@gnu.org>
122420         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122421         (from http://www.gnu.org/licenses).
122422         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122423         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122424         fdl.texi suffices.
122426 2005-05-10  Karl Berry  <karl@gnu.org>
122428         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122429         (COPYING.DOC): remove.
122431         * config/srclist-update: new FSF address.
122433 2005-05-10  Derek Price  <derek@ximbiot.com>
122435         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122436         possible.
122438 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122439             Bruno Haible  <bruno@clisp.org>
122441         * modules/inet_ntop: New file.
122442         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122443         inet_ntop.
122445 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122446             Bruno Haible  <bruno@clisp.org>
122448         * m4/inet_ntop.m4: New file.
122450 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122451             Bruno Haible  <bruno@clisp.org>
122453         * lib/inet_ntop.h: New file.
122454         * lib/inet_ntop.c: New file, from glibc with modifications.
122456 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122458         * modules/time_r (License): Change to LGPL.
122459         * modules/extensions (License): Change to LGPL.  Actually,
122460         the license is more permissive than that, but currently gnulib-tool
122461         doesn't know how to handle more-permissive licenses.
122463         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122464         Problem reported by Dave Love.
122466 2005-05-08  Jim Meyering  <jim@meyering.net>
122468         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122469         blank.
122471 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122473         * modules/argmatch (Depends-on): Add stdbool.
122474         * modules/backupfile (Depends-on): Likewise.
122475         * modules/chdir-long (Depends-on): Likewise.
122476         * modules/closeout (Depends-on): Likewise.
122477         * modules/cycle-check (Depends-on): Likewise.
122478         * modules/dirname (Depends-on): Likewise.
122479         * modules/fnmatch (Depends-on): Likewise.
122480         * modules/fsusage (Depends-on): Likewise.
122481         * modules/fwriteerror (Depends-on): Likewise.
122482         * modules/getcwd (Depends-on): Likewise.
122483         * modules/getloadavg (Depends-on): Likewise.
122484         * modules/hard-locale (Depends-on): Likewise.
122485         * modules/makepath (Depends-on): Likewise.
122486         * modules/mountlist (Depends-on): Likewise.
122487         * modules/nanosleep (Depends-on): Likewise.
122488         * modules/posixtm (Depends-on): Likewise.
122489         * modules/quotearg (Depends-on): Likewise.
122490         * modules/readtokens (Depends-on): Likewise.
122491         * modules/readtokens0 (Depends-on): Likewise.
122492         * modules/readutmp (Depends-on): Likewise.
122493         * modules/save-cwd (Depends-on): Likewise.
122494         * modules/strftime (Depends-on): Likewise.
122495         * modules/userspec (Depends-on): Likewise.
122496         * modules/utimecmp (Depends-on): Likewise.
122497         * modules/xgetcwd (Depends-on): Likewise.
122498         * modules/xnanosleep (Depends-on): Likewise.
122499         * modules/xstrtod (Depends-on): Likewise.
122500         * modules/yesno (Depends-on): Likewise.
122502 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122504         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122505         needless checks.
122507 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122509         Merge from coreutils.  Among other things,
122510         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122511         * lib/fd-safer.c: New file.
122512         * lib/fcntl-safer.h, open-safer.c: Remove.
122513         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122514         * lib/dup-safer.c: Include unistd-safer.h first.
122515         Don't include errno.h.
122516         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122517         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122518         * lib/file-type.c: Rely on file-type.h change.
122519         * lib/getloadavg.c: Include unistd-safer.h.
122520         (getloadavg): Use safer open.
122521         * lib/getusershell.c: Include "stdio-safer.h".
122522         (getusershell): Use safer fopen.
122523         * lib/long-options.c (long_options): Use NULL rather than 0.
122524         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122525         'free'.
122526         * lib/modechange.c: Likewise.
122527         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122528         (MODE_DONE): New constant.
122529         (struct mode_change): Remove 'next' member.
122530         (make_node_op_equals): New function; like the old one of the
122531         same name, except it allocates an array.
122532         (mode_compile, mode_create_from_ref): Use it.
122533         (mode_compile): Allocate result as an array, not a linked list.
122534         Parse octal string ourself, so that we catch mistakes like "+0".
122535         (mode_adjust): Arg is an array, not a linked list.
122536         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122537         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122538         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122539         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122540         Remove.  This is now stat-macros.h's job.
122541         (talloc): Remove.  All callers replaced by xalloc, so that
122542         our invokers don't have to worry about reporting memory failures.
122543         (make_node_op_equals): Remove.
122544         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122545         New constants.
122546         (struct mode_change): Moved here from modechange.h.
122547         (mode_append_entry): Remove.
122548         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122549         apps to have incorrect behavior.  Use simpler algorithm for head
122550         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122551         Detect more invalid usages rather than having somewhat-random behavior.
122552         Don't insert an "a=" action, as that leads to incorrect behavior.
122553         (mode_compile, mode_create_from_ref): Return NULL on error instead
122554         of an enum, since now there's only one way to have an error.  All
122555         callers changed.
122556         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122557         at the correct time.  Simplify calculation of "+u" and its ilk.
122558         Don't mishandle "+X".
122559         (mode_free): Remove "register" and localize decls.
122560         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122561         (struct mode_change): Move to modechange.c; callers don't
122562         need to see this stuff.
122563         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122564         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122565         (mode_change, mode_adjust): Reflect the new signatures noted above.
122566         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122567         that might redefine system include files.
122568         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122569         (my_usleep): Use NULL rather than (void *) 0.
122570         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122571         Use siginterrupt to specify that system calls should be interrupted.
122572         (rpl_nanosleep): Move initialization of suspended closer to call of
122573         my_usleep.
122574         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122575         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122576         (desirable_utmp_entry): New function.
122577         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122578         using x2nrealloc, to simplify logic.
122579         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122580         size calculation.  Do not assume utmp file is a regular file.
122581         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122582         (READ_UTMP_CHECK_PIDS): New constant.
122583         * lib/save-cwd.c: Include unistd-safer.h.
122584         (save_cwd): Use fd_safer.
122585         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122586         [!_LIBC] Include "stat-macros.h" instead.
122587         * lib/unistd-safer.h (fd_safer): New decl.
122589 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122591         * modules/getloadavg (Depends-on): Add unistd-safer.
122592         * modules/getusershell (Depends-on): Add stdio-safer.
122593         * modules/lstat (Depends-on): Remove xalloc.
122594         * modules/mkstemp (Depends-on): Add stat-macros.
122595         * modules/modechange (Depends-on): Remove xstrtol.
122596         Add stat-macros, xalloc.
122597         * modules/save-cwd (Depends-on): Add unistd-safer.
122598         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122599         * modules/unistd-safer (Files): Add lib/fd-safer.c
122600         (Makefile.am): Remove lib_SOURCES.
122602         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122603         Remove fcntl-safer; unistd-safer supersedes it.
122605 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122607         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122608         AC_HEADER_STAT.
122609         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122610         (gl_PREREQ_CHOWN): Remove.
122611         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122612         it.  Don't require AC_HEADER_STAT.
122613         (gl_PREREQ_LSTAT): Remove.
122614         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122615         Don't require AC_HEADER_STAT.
122616         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122617         (gl_PREREQ_RMDIR): Remove.
122618         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122619         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122620         the stat-macros module a prerequisite.
122621         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122622         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122623         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122624         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122625         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122626         variable names.
122627         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122628         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122629         variable prefixes.
122630         * m4/fcntl-safer.m4: Remove.
122631         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122632         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122633         Invoke gl_PREREQ_FD_SAFER.
122634         (gl_PREREQ_FD_SAFER): New macro.
122635         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122636         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122637         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122638         Remove duplicate call to AC_LIBOBJ(readutmp).
122639         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122641         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122642         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122644 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122646         * MODULES.html.sh (Misc): Add byteswap.
122648 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122650         * modules/getcwd (Depends-on): Add extensions.
122651         * modules/openat (Depends-on): Likewise.
122653 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122655         * modules/byteswap: New file.
122657 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122659         * m4/byteswap.m4: New file.
122661 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122663         * lib/byteswap_.h: New file.
122665 2005-04-25  Karl Berry  <karl@gnu.org>
122667         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122669 2005-04-25  Albert Chin  <china@thewrittenword.com>
122671         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122672         Toolkit C bug.
122674 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122676         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122677         (func_ln_if_changed): Remove forcibly for no error message
122678         in case file does not exist.
122680 2005-04-19  Simon Josefsson  <jas@extundo.com>
122682         * gnulib-tool (Options): Make --symlink mean --symbolic.
122684 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122686         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122688 2005-04-16  Simon Josefsson  <jas@extundo.com>
122690         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122692 2005-04-15  Simon Josefsson  <jas@extundo.com>
122694         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122696 2005-04-15  Simon Josefsson  <jas@extundo.com>
122698         * gnulib-tool: Rename --symlink to --symbolic.
122700 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122702         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122703         symbolic links to files instead of copying/moving.  Add --aux-dir,
122704         specifying directory relative --dir where auxiliary build tools
122705         are placed.
122707 2005-04-14  Bruno Haible  <bruno@clisp.org>
122709         * modules/allocsa (License): Change to LGPL.
122710         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122712 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122714         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122715         that "UTC +1 second" continues to work.  Problem reported
122716         by Dmitry V. Levin.
122717         (relunit_snumber): New rule.
122718         (relunit): Use it.
122720 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122722         * lib/getdate.y (universal_time_zone_table): New constant.
122723         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122724         universal_time_zone_table.
122725         (lookup_zone): Prefer universal_time_zone_table to
122726         local_time_zone_table, so that "GMT" time stamps are allowed in
122727         London during the summer.  Problem reported by Ian Abbott.
122729 2005-04-12  Jim Meyering  <jim@meyering.net>
122731         * lib/human.c (humblock): Set *options even when returning due to
122732         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122733         warning from gcc-4.
122735 2005-04-09  Jim Meyering  <jim@meyering.net>
122737         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122738         -Wuninitialized: initialize tm0.tm_year.
122740 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122742         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122743         count, since there's no maximum.  All uses changed.
122744         Add member dsts_seen.
122745         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122746         not being INT_MAX.
122747         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122748         Use pc_rels_seen to decide whether a date is absolute.
122750         * lib/getdate.y (number): Don't overwrite year.
122751         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122752         check.
122754 2005-04-02  Simon Josefsson  <jas@extundo.com>
122756         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122757         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122759 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122761         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122762         where no absolute path name can be longer than PATH_MAX.
122764 2005-03-27  Jim Meyering  <jim@meyering.net>
122766         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122768 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122770         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122771         "one's complement" -> "ones' complement" in comment, as per Knuth.
122772         "value of type" -> "type or expression" in comment.
122773         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122775 2005-03-26  Jim Meyering  <jim@meyering.net>
122777         Comment nits.
122778         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122779         Correct typos: s/or/of/.
122781 2005-03-26  Jim Meyering  <jim@meyering.net>
122783         * modules/check-include-files: Move to ../ and rename to...
122784         * check-module: ...this.
122786 2005-03-25  Jim Meyering  <jim@meyering.net>
122788         * modules/xvasprintf (Files): Add xalloc.h.
122790 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122792         * modules/gettext (Files): config/config.rpath ->
122793         build-aux/config.rpath
122794         * modules/iconv (Files): Likewise.
122795         Problem reported by Oskar Liljeblad.
122797 2005-03-23  Jim Meyering  <jim@meyering.net>
122799         * modules/check-include-files: New script to check for
122800         missing dependencies, multiple includes, etc.
122802         * modules/c-strtold (Depends-on): Add xalloc.
122803         * modules/c-strtod (Depends-on): Add xalloc.
122804         * modules/hash (Depends-on): Add xalloc.
122805         (Files): Remove lib/xalloc.h.
122807         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122808         * modules/userspec (Files): Add lib/inttostr.h.
122810 2005-03-23  Jim Meyering  <jim@meyering.net>
122812         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122814 2005-03-22  Jim Meyering  <jim@meyering.net>
122816         * modules/stat-macros: New module.
122817         * modules/canonicalize, modules/euidaccess, modules/file-type,
122818         * modules/filemode, modules/lchown, modules/makepath,
122819         * modules/rmdir, modules/stat: Depend on new stat-macros module
122820         rather than listing lib/stat-macros.h manually.
122821         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122823 2005-03-22  Jim Meyering  <jim@meyering.net>
122825         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122827 2005-03-22  Bruno Haible  <bruno@clisp.org>
122829         * config/srclist.txt: Replace target directory 'config' with
122830         'build-aux'.
122831         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122832         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122833         ../build-aux/.
122835 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122837         * modules/chdir-long (Depends-on): Add mempcpy.
122839         * modules/acl, modules/backupfile, modules/c-strtod,
122840         modules/c-strtold, modules/canon-host, modules/canonicalize,
122841         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122842         modules/exclude, modules/exitfail, modules/file-type,
122843         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122844         modules/getdate, modules/getline, modules/getpagesize,
122845         modules/getpass, modules/getugroups, modules/group-member,
122846         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122847         modules/inttostr, modules/long-options, modules/makepath,
122848         modules/md5, modules/memcasecmp, modules/memcoll,
122849         modules/modechange, modules/mountlist, modules/path-concat,
122850         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122851         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122852         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122853         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122854         modules/strftime, modules/strndup, modules/strverscmp,
122855         modules/timespec, modules/unlocked-io, modules/userspec,
122856         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122857         modules/yesno:
122858         Remove lib_SOURCES line from Makefile.am section, as this is now
122859         done automatically by the corresponding Autoconf macro.
122861 2005-03-21  Jim Meyering  <jim@meyering.net>
122863         Changes imported from coreutils.
122865         * lib/cycle-check.c: Don't include xalloc.h.
122867         * lib/path-concat.c: Don't include assert.h.
122868         (path_concat): Remove assertion that would have triggered
122869         for ABASE starting with more than one slash.
122870         Reported by Andreas Schwab.
122872         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122873         properly when ABASE is an absolute file name.
122874         Correct the description of this function.
122875         Include <assert.h>.
122876         Add an assertion and a test driver.
122877         This fixes a bug introduced on 2004-07-02.
122878         Andreas Schwab reported the resulting failure of cp --parents:
122879         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122881 2005-03-21  Jim Meyering  <jim@meyering.net>
122883         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122886 2005-03-21  Jim Meyering  <jim@meyering.net>
122887         and  Paul Eggert  <eggert@cs.ucla.edu>
122889         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122890         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122891         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122892         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122893         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122894         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122895         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122896         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122897         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122898         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122899         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122900         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122901         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122902         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122903         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122904         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122905         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122906         for these modules.
122908 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122910         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122911         (which shouldn't happen), generate nothing instead of returning 0
122912         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122914 2005-03-16  Bruno Haible  <bruno@clisp.org>
122916         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122917         HAVE_LONGLONG_64BIT.
122919 2005-03-16  Bruno Haible  <bruno@clisp.org>
122921         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122922         HAVE_LONGLONG_64BIT.
122924 2005-03-16  Bruno Haible  <bruno@clisp.org>
122926         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122927         HAVE_LONGLONG_64BIT.
122929 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122931         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122932         reliably distinguish strftime failure from empty output on POSIX
122933         hosts.
122935 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122937         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122938         (iconv_string): Don't guess a size-zero buffer, as that might cause
122939         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122940         result would be 'too large', where 'too large' is (heuristically)
122941         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122942         overflow concerns.  This will prevent some unwanted malloc failures
122943         when the inputs are very large.
122945 2005-03-15  Karl Berry  <karl@gnu.org>
122947         * config/srclist.txt (config.rpath): from gettext.
122948         * config/config.rpath: update.
122950 2005-03-15  Bruno Haible  <bruno@clisp.org>
122952         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122953         to 'negate'.
122955         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122956         variable.
122958         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122959         results.
122961 2005-03-14  Simon Josefsson  <jas@extundo.com>
122963         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122964         <fx@gnu.org>.
122966 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122968         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122969         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122970         intprops.h.
122971         * lib/strtol.c: Likewise.
122973 2005-03-14  Jim Meyering  <jim@meyering.net>
122975         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122976         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122977         to be nonzero so that we (and caller) can detect the difference
122978         between a valid zero-length expansion and an error return, even
122979         when the underlying strftime fails before writing anything into
122980         that location.
122982 2005-03-14  Bruno Haible  <bruno@clisp.org>
122984         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122985         Update from GNU gettext 0.14.3.
122987 2005-03-10  Jim Meyering  <jim@meyering.net>
122989         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122991 2005-03-10  Jim Meyering  <jim@meyering.net>
122993         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122994         so that this module works on systems without fchdir.
122996 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122998         Factor int-properties macros into a single file, except for
122999         glibc-related files.
123000         * lib/intprops.h: New file.
123001         * lib/getloadavg.c: Include it instead of limits.h.
123002         (INT_STRLEN_BOUND): Remove.
123003         * lib/human.c: Include intprops.h.
123004         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123005         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123006         302/1000.
123007         * lib/inttostr.h: Include intprops.h instead of limits.h.
123008         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123009         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123010         for consistency with intprops.h.
123011         (time_t_is_integer, twos_complement_arithmetic): Use them.
123012         * lib/sig2str.h: Include <signal.h>, intprops.h.
123013         (INT_STRLEN_BOUND): Remove.
123014         * lib/strftime.c (TYPE_SIGNED): Remove.
123015         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123016         * lib/strtol.c: Adjust comments to match intprops.h.
123017         * lib/userspec.c: Include intprops.h.
123018         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123019         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123020         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123021         instead of rolling our own expressions.
123022         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123024         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123025         instead of int.
123026         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123027         the right thing even if adding 1900 would overflow.  Similarly
123028         for tm_mon + 1 and tm_yday + 1.
123029         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123030         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123031         (DO_SIGNED_NUMBER): New macro.
123032         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123034 2005-03-07  Bruno Haible  <bruno@clisp.org>
123036         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123038 2005-03-07  Bruno Haible  <bruno@clisp.org>
123040         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123042 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123044         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123045         (func_import): Only replace files via --import when they have actually
123046         changed.
123048 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123050         * m4/mmap-anon.m4: New file.
123051         * m4/pagealign_alloc.m4: New file.
123053 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123054             Bruno Haible  <bruno@clisp.org>
123056         * modules/pagealign_alloc: New file.
123057         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123059 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123060             Bruno Haible  <bruno@clisp.org>
123062         * lib/pagealign_alloc.h: New file.
123063         * lib/pagealign_alloc.c: New file.
123065 2005-03-03  Bruno Haible  <bruno@clisp.org>
123067         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123068         Use an all-permissive copyright notice, recommended by RMS.
123070 2005-03-02  Bruno Haible  <bruno@clisp.org>
123072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123073         of AIX, the replacement has to be done only after <string.h> is
123074         included, therefore not in config.h. stpncpy.h does the replacement,
123075         and stpncpy.c uses it.
123077 2005-03-02  Bruno Haible  <bruno@clisp.org>
123079         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123080         stpncpy.c uses it.
123082 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123084         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123085         The workaround isn't strictly needed for POSIX conformance, and
123086         it's too much of a pain to configure and maintain.  We'll ask
123087         people to fix their kernels instead.
123088         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123089         (NANOSLEEP_BUG_WORKAROUND): Remove.
123090         (xnanosleep): Remove the workaround.
123092 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123094         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123095         Reported by Derek Price.
123096         (Include): Add "timespec.h".
123098         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123100 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123102         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123103         to detect nanosleep bug.
123105 2005-03-01  Bruno Haible  <bruno@clisp.org>
123107         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123109 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123111         * modules/gethrxtime: New file.
123112         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123113         (Depends-on): Add gethrxtime.
123114         (configure.ac): Add gl_XNANOSLEEP.
123115         (Makefile.am): Remove lib_SOURCES line.
123117 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123119         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123120         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123122 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123124         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123125         * lib/timespec.h (gettime): Return void, since it always
123126         succeeds now.  All uses changed.
123127         * lib/gettime.c (gettime): Likewise.
123128         [HAVE_NANOTIME]: Prefer nanotime.
123129         Assume gettimeofday succeeds, as POSIX requires.
123130         Assime time () succeeds, since other code already does.
123131         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123132         (timespec_subtract): Remove.
123133         (NANOSLEEP_BUG_WORKAROUND): New constant.
123134         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123135         things considerably.  Use it only on GNU/Linux hosts, since the
123136         workaround shouldn't be needed elsewhere.
123138 2005-02-24  Bruno Haible  <bruno@clisp.org>
123140         * modules/gettext (Files): Add m4/glibc2.m4.
123142 2005-02-24  Bruno Haible  <bruno@clisp.org>
123144         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123145         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123146         * m4/progtest.m4:
123147         Update from GNU gettext 0.14.2.
123148         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123150 2005-02-24  Bruno Haible  <bruno@clisp.org>
123152         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123153         * lib/config.charset: Update from GNU gettext 0.14.2.
123155 2005-02-24  Bruno Haible  <bruno@clisp.org>
123157         * lib/gettext.h: Update from GNU gettext 0.14.2.
123159 2005-02-23  Simon Josefsson  <jas@extundo.com>
123161         * m4/iconvme.m4: New file.
123163 2005-02-23  Jim Meyering  <jim@meyering.net>
123165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123166         change.
123167         Thanks to Bruno Haible for catching it.
123169 2005-02-22  Simon Josefsson  <jas@extundo.com>
123171         * modules/iconvme: New file.
123173         * MODULES.html.sh: Add iconvme.
123175 2005-02-22  Simon Josefsson  <jas@extundo.com>
123177         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123179 2005-02-22  Simon Josefsson  <jas@extundo.com>
123181         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123183 2005-02-22  Jim Meyering  <jim@meyering.net>
123185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123186         s/ifndef/ifdef/.
123188 2005-02-20  Neil Conway  <neilc@samurai.com>
123190         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123191         returned by OSX/Darwin if the specified buffer is not large
123192         enough for the hostname.
123194 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123196         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123197         pass it to _help, otherwise the latter coredumps trying to
123198         dereference state.root_argp.
123200 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123202         * modules/chdir-long (Depends-on): Add memrchr.
123203         * modules/memrchr (Files): Add lib/memrchr.h.
123204         (Include): "memrchr.h".
123206 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123210 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123212         * lib/memrchr.h: New file.
123213         * lib/chdir-long.c: Include it.
123214         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123215         Don't bother including stddef.h.
123217 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123219         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123220         inclusion.
123221         Include <sys/types.h>, for dev_t.
123222         (ME_DUMMY, ME_REMOTE): Move from here....
123223         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123224         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123225         Dmitry V. Levin.
123226         Include mountlist.h first, to test the interface.
123228 2005-01-29  Bruno Haible  <bruno@clisp.org>
123230         * lib/progname.c (program_name): Initialize.
123231         Needed when linking statically on MacOS X.
123233 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123235         Sync from coreutils.
123236         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123237         (Depends-on): Add c-strtod.
123238         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123240 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123242         Sync from coreutils.
123243         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123245         Remove files that are specific to coreutils.
123246         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123248 2005-01-28  Bruno Haible  <bruno@clisp.org>
123250         * modules/javacomp: New file.
123251         * MODULES.html.sh (Java): Add javacomp.
123253 2005-01-28  Bruno Haible  <bruno@clisp.org>
123255         * m4/javacomp.m4: New file, from GNU gettext.
123257 2005-01-28  Bruno Haible  <bruno@clisp.org>
123259         * lib/javacomp.sh.in: New file, from GNU gettext.
123260         * lib/javacomp.h: New file, from GNU gettext.
123261         * lib/javacomp.c: New file, from GNU gettext.
123263 2005-01-26  Simon Josefsson  <jas@extundo.com>
123265         * lib/gai_strerror.c: Use GPL in header.
123267 2005-01-26  Bruno Haible  <bruno@clisp.org>
123269         * modules/javaexec: New file.
123270         * MODULES.html.sh (Java): Add javaexec.
123272 2005-01-26  Bruno Haible  <bruno@clisp.org>
123274         * m4/javaexec.m4: New file, from GNU gettext.
123276 2005-01-26  Bruno Haible  <bruno@clisp.org>
123278         * lib/javaexec.sh.in: New file, from GNU gettext.
123279         * lib/javaexec.h: New file, from GNU gettext.
123280         * lib/javaexec.c: New file, from GNU gettext.
123282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123284         * modules/lchown (Depends-on): Remove lchown.h
123286 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123288         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123289         must be defined if the header file was not found, in order
123290         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123294         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123295         initializers for struct pentry_state.
123296         (__argp_error): Check return value of __asprintf
123297         (__argp_failure): Translate error message
123299         * lib/argp-parse.c: Removed braces around the expansion of N_()
123301 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123303         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123304         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123305         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123306         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123307         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123308         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123309         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123310         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123311         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123312         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123313         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123314         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123315         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123316         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123317         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123318         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123319         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123320         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123321         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123322         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123323         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123324         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123325         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123326         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123327         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123328         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123329         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123330         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123331         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123332         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123333         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123334         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123335         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123336         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123337         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123338         Use an all-permissive copyright notice, recommended by RMS.
123340 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123342         * modules/chdir-long (Depends-on): Remove mempcpy.
123344 2005-01-21  Jim Meyering  <jim@meyering.net>
123346         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123347         same value as for Solaris 9.
123349         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123350         component length.  This included changing the parameter to be
123351         of type `char *' rather than `char const *'.
123352         * lib/chdir-long.h (chdir_long): Update prototype.
123354         * lib/openat.c (fdopendir, fstatat): New functions.
123355         * lib/openat.h: Include headers required for use of DIR and struct
123356         stat.
123357         [AT_SYMLINK_NOFOLLOW]: Define.
123358         (fdopendir, fstatat): Add prototypes.
123360 2005-01-21  Bruno Haible  <bruno@clisp.org>
123362         * modules/classpath: New file.
123363         * MODULES.html.sh (Java): Add classpath.
123365 2005-01-21  Bruno Haible  <bruno@clisp.org>
123367         * lib/classpath.h: New file, from GNU gettext.
123368         * lib/classpath.c: New file, from GNU gettext.
123370 2005-01-20  Simon Josefsson  <jas@extundo.com>
123372         * modules/version-etc-fsf: New file.
123374 2005-01-20  Simon Josefsson  <jas@extundo.com>
123376         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123377         * lib/version-etc.c: Remove version_etc_copyright.
123378         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123379         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123381 2005-01-20  Simon Josefsson  <jas@extundo.com>
123383         * lib/base64.h (isbase64): Add.
123385         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123386         using a unsigned prototype, don't inline.
123387         (base64_decode): Use it.
123389 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123391         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123392         it.
123394 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123396         * lib/save-cwd.c (save_cwd): Remove code to support the case
123397         where fchdir is missing or flaky.
123399 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123401         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123403 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123405         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123406         AC_LIBSOURCES now does this.
123407         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123408         with new ullong_max module.
123410 2005-01-19  Bruno Haible  <bruno@clisp.org>
123412         * modules/sh-quote: New file.
123413         * MODULES.html.sh (Executing programs): Add sh-quote.
123415 2005-01-19  Bruno Haible  <bruno@clisp.org>
123417         * lib/sh-quote.h: New file, from GNU gettext.
123418         * lib/sh-quote.c: New file, from GNU gettext.
123420 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123422         Merge from coreutils.
123423         * m4/ullong_max.m4: New file.
123424         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123425         (gl_MACROS): Assume localeconv exists.
123427 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123429         Merge changes from coreutils, as described below in several
123430         changelogs dated today.
123432         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123433         (O_DIRECTORY): Remove; not needed here, since "." must be
123434         a directory.  All uses removed.
123435         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123436         universal on Suns, and we also need to test for IRIX.
123437         Revamp code to use 'if' rather than '#if'.
123438         Avoid unnecessary comparison of cwd->desc to 0.
123440         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123441         for known valid error numbers rather than observed invalid ones.
123443 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123445         * modules/ullong_max: New file.
123447         * modules/chdir-long, modules/openat: New files.
123448         * modules/save-cwd (Depends-on): Depend on chdir-long.
123449         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123451 2005-01-18  Jim Meyering  <jim@meyering.net>
123453         Merge from coreutils.
123454         * m4/chdir-long.m4, m4/openat.m4: New files.
123455         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123456         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123457         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123458         is sane and DOES follow symlinks.  Besides, testing 20 different
123459         systems found no broken chown implementations.
123460         Prompted by a change in rsync's copy of this macro.
123461         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123463         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123465         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123466         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123467         NULL-means-set-to-current-time semantics.
123468         Remove temporary file immediately, rather than waiting
123469         for configure's at-exit trap code to do it.
123471 2005-01-18  Jim Meyering  <jim@meyering.net>
123473         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123475         * lib/utimens.c (futimens): Account for the fact that futimes
123476         can also fail with errno == ENOSYS or errno == ENOENT.
123477         Patch from Dmitry V. Levin.
123479         Change the name of the robust chdir function from chdir to chdir_long.
123480         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123481         (restore_cwd): Use chdir_long, not chdir.
123482         * lib/chdir-long.c: Renamed from chdir.c.
123483         * lib/chdir-long.h: Renamed from chdir.h.
123484         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123485         Hurd.
123487 2005-01-18  Bruno Haible  <bruno@clisp.org>
123489         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123490         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123491         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123492         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123493         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123494         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123495         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123496         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123497         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123498         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123499         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123500         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123501         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123502         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123503         Use an all-permissive copyright notice, recommended by RMS.
123505 2005-01-18  Bob Proulx  <bob@proulx.com>
123507         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123508         simplify offsetof() macro construct to avoid compile failure with
123509         native HP-UX 11.0 ANSI C compiler.
123511 2005-01-17  Bruno Haible  <bruno@clisp.org>
123513         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123514         redundant because stpncpy.m4 takes care of it.
123516 2005-01-17  Bruno Haible  <bruno@clisp.org>
123518         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123520 2005-01-17  Bruno Haible  <bruno@clisp.org>
123522         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123523         used.
123525 2005-01-17  Bruno Haible  <bruno@clisp.org>
123527         * lib/fwriteerror.h (fwriteerror): Change specification to include
123528         fclose.
123529         * lib/fwriteerror.c: Include <stdbool.h>.
123530         (fwriteerror): At the end, close the file stream. Record whether
123531         stdout was already closed.
123533 2005-01-17  Bruno Haible  <bruno@clisp.org>
123535         * lib/execute.c (environ): Declare if needed.
123536         * lib/pipe.c (environ): Likewise.
123537         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123539 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123541         * modules/argp: Depend on vsnprintf
123543 2005-01-10  Jim Meyering  <jim@meyering.net>
123545         * modules/closeout (Depends-on): Add atexit.
123547 2005-01-06  Bruno Haible  <bruno@clisp.org>
123549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123551 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123553         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123554         definitions to be after all include files, to avoid collisions.
123555         Problem reported by Bob Proulx.
123557 2005-01-04  Jim Meyering  <jim@meyering.net>
123559         Changes imported from coreutils.
123560         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123561         as the mkstemp template, use a temporary directory and an
123562         8.3-friendly template to avoid trouble on systems like DJGPP.
123563         Reported by Juan M. Guerrero via Stepan Kasal.
123564         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123565         close. Remove the temporary directory right away, rather than waiting
123566         for configure's at-exit trap code to do it.
123567         Suggestion from Stepan Kasal.
123569 2005-01-01  Simon Josefsson  <jas@extundo.com>
123571         * gnulib-tool: Print #include directives when --import'ing.
123573 2004-12-28  Simon Josefsson  <jas@extundo.com>
123575         * tests/test-base64.c: Include required header files.  Remove
123576         unused variables.
123578 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123580         * modules/error (Depends-on): Remove gettext.
123582 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123584         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123585         not needed.  This removes a dependency on the gettext module.
123586         [defined _LIBC]: Do not include <libintl.h>; not needed.
123588 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123590         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123591         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123593 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123595         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123596         HAVE_DECL_STRTOLD.
123598 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123600         * modules/getdate (Depends-on): Remove alloca-opt.
123602 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123604         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123606 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123608         * lib/argp-parse.c: Include <stddef.h>.
123609         (alignof, alignto): New macros.
123610         (parser_init): Don't assume that void * is aligned sufficiently
123611         for struct option.
123613         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123614         need to extend the stack.
123615         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123616         large.
123618 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123620         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123622 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123624         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123625         (2004-10-24) change.  Apparently this was a false alarm.
123627         * modules/getdate: Depend on alloca-opt, not alloca.
123629 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123631         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123632         Remove now-obsolete comment about AIX.
123633         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123634         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123635         (YYMAXDEPTH): New macro.
123637 2004-12-18  Simon Josefsson  <jas@extundo.com>
123639         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123641 2004-12-18  Bruno Haible  <bruno@clisp.org>
123643         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123645 2004-12-18  Bruno Haible  <bruno@clisp.org>
123647         * lib/fatal-signal.c (fatal_signals): Make non-const.
123648         (init_fatal_signals): New function.
123649         (uninstall_handlers, install_handlers): Ignore signals that were set to
123650         SIG_IGN.
123651         (at_fatal_signal): Call init_fatal_signals.
123652         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123653         SIG_IGN.
123654         Reported by Paul Eggert.
123656 2004-12-18  Bruno Haible  <bruno@clisp.org>
123658         * doc/alloca.texi: New file.
123659         * doc/alloca-opt.texi: New file.
123661 2004-12-17  Jim Meyering  <jim@meyering.net>
123663         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123664         Otherwise, install-sh could exit with improper exit status when
123665         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123667 2004-12-16  Simon Josefsson  <jas@extundo.com>
123669         * tests/test-base64.c: Add license.
123671 2004-12-15  Stepan Kasal  <address@hidden>
123673         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123675 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123677         * modules/getcwd (Files): Add m4/d-ino.m4.
123678         Suggested by Mark D. Baushke.
123680 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123682         * lib/getdate.y (textint): New member "negative".
123683         (time_zone_hhmm): New function.
123684         Expect 14 shift-reduce conflicts, not 13.
123685         (o_colon_minutes): New rule.
123686         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123687         (yylex): Set the "negative" member of signed numbers.
123689 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123691         * doc/getdate.texi (Time of day items, Time zone items):
123692         Describe new formats +00:00, UTC+00:00.
123694 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123696         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123697         spurious "-l"s.  Problem reported by Stepan Kasal.
123699 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123701         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123702         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123704 2004-12-04  Simon Josefsson  <jas@extundo.com>
123706         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123707         Vandoorselaere <yoann@prelude-ids.org>.
123709 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123711         Changes imported from coreutils.
123712         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123713         exist.
123714         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123716 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123718         Changes imported from coreutils.
123719         * lib/hard-locale.c: Assume <locale.h> exists.
123720         Include "strdup.h".
123721         (GLIBC_VERSION): New macro.
123722         (hard_locale): Assume setlocale exists.
123723         Rewrite to avoid #ifdef.
123724         Use strdup rather than malloc + strcpy.
123725         * lib/human.c: Assume <locale.h> exists.
123726         (human_readable): Assume localeconv exists.
123728 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123730         * modules/hard-locale (Depends-on): Add strdup.
123732 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123734         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123735         convert T2, not T.  (Imported from libc.)
123737 2004-11-30  Simon Josefsson  <jas@extundo.com>
123739         * modules/restrict (License): Change to LGPL.
123741 2004-11-30  Simon Josefsson  <jas@extundo.com>
123743         * m4/restrict.m4: Add copyright and copying conditions.
123745 2004-11-30  Simon Josefsson  <jas@extundo.com>
123747         * m4/base64.m4: New file.
123749 2004-11-30  Simon Josefsson  <jas@extundo.com>
123751         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123752         base64.
123754         * tests/test-base64.c: New file.
123756         * modules/base64: New file.
123758 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123760         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123761         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123763         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123765 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123767         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123768         (__getcwd.c): Don't restore errno; glibc doesn't.
123769         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123770         first, falling back to our code only if its results look suspicious.
123771         Ensure that the resulting buffer is only as large as necessary.
123773         * lib/readutmp.c: Include readutmp.h first.
123774         Include <errno.h>, since readutmp.h no longer does that.
123775         * lib/readutmp.h: Don't include <errno.h>,
123776         <sys/param.h>, <time.h>; not needed to establish interface.
123777         (errno): Remove decl.
123778         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123779         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123780         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123782 2004-11-28  Simon Josefsson  <jas@extundo.com>
123784         * lib/base64.h, base64.c: New file.
123786 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123788         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123790 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123792         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123793         (Depends-on): Remove pathmax, same.  Add mempcpy.
123794         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123795         (Makefile.am): Append getcwd.h to lib_SOURCES.
123796         (Include): Add getcwd.h.
123797         (Maintainer): Change from Jim Meyering to "all, glibc",
123798         since getdate now uses intended-for-glibc code.
123799         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123800         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123802 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123804         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123805         HP's ANSI C compiler.
123806         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123807         Declaring int functions causes warnings on some modern systems and
123808         shouldn't be needed to compile on ancient ones.
123809         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123810         defined.
123812         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123813         with the following changes.
123814         (__set_errno): Parenthesize properly.
123815         Include <stdbool.h>.
123816         (MIN, MAX, MATCHING_INO): New macros.
123817         (__getcwd): Define with prototype, not K&R form.
123818         Use heuristics to allocate default buffer on stack if possible.
123819         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123820         behavior, and to avoid the PATH_MAX limit when computing
123821         ../../../../...
123822         Use MATCHING_INO to compare inode number to file.
123823         Check for arithmetic overflow in size calculations.
123824         Fix bug in reallocation of dot array that caused getcwd to fail
123825         on directories nested deeper than 75.
123826         Be more careful about saving errno on error.
123827         Do not use realloc; use only free+malloc, as this is a bit
123828         more flexible and avoids a needless copy operation.
123829         Do not inspect st_dev and st_ino for symbolic links; POSIX
123830         doesn't specify the latter.
123831         Check for closedir errors.
123832         Avoid needless casts.
123833         Use "#ifdef weak_alias" around weak_alias, to be like other
123834         glibc code.
123835         The following changes to getcwd.c have effect only when used in
123836         gnulib; they have no effect inside glibc proper.
123837         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123838         as alloca isn't used.
123839         (alloca, __alloca): Likewise.
123840         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123841         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123842         unconditionally, as gnulib assumes C89 or better.
123843         Do not include <sys/param.h>.
123844         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123845         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123846         better.
123847         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123848         Include <dirent.h> in a way that is compatible with modern Autoconf.
123849         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123850         New macros, if not already defined.
123851         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123852         Use "_LIBC", not "defined _LIBC", for consistency.
123853         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123854         a mempcpy module.
123855         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123856         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123857         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123858         credit only to Jim Meyering and adjust the copyright dates.
123859         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123860         <stdlib.h>, <unistd.h>, "pathmax.h".
123861         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123862         (INITIAL_BUFFER_SIZE): Remove.
123863         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123865 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123868         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123869         Use the _ONCE methods, for efficiency.
123870         Check for fcntl.h.  In test program, include <errno.h>
123871         and <fcntl.h> if available.  Remove old K&R cruft from
123872         test program.  Check for common errors in GNU/Linux,
123873         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123874         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123875         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123876         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123877         name accordingly.
123878         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123879         accommodate new getcwd.c.
123880         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123881         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123882         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123883         that's all we need now.
123885 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123887         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123888         argp-parse.c depends on getopt internals, that means we should
123889         always use our getopt, to be on the safe side.
123890         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123891         order not to spoil the result of an eventual previous invocation
123892         of gl_GETOPT_SUBSTITUTE.
123894 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123896         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123897         redefinition warnings. To avoid them, include the defines
123898         in `#if !defined __need_getopt ... #endif'. The only place
123899         where __getopt_argv_const is used is in definitions
123900         of getopt_long and getopt_long_only below, which are as well
123901         protected by `#ifndef __need_getopt'.
123902         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123903         __need_getopt after including <stdio.h> and <unistd.h> These
123904         headers might have defined it.
123906 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123908         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123910 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123912         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123913         (futimens): New function, which uses futimes if available.
123914         (futimens, utimens): Support timespec==NULL, with same semantics
123915         as utime and utimens.
123916         * lib/utimens.h (futimens): New decl.
123918 2004-11-23  Jim Meyering  <jim@meyering.net>
123920         * lib/getopt_.h: Remove trailing blanks.
123922 2004-11-23  Jim Meyering  <jim@meyering.net>
123924         * lib/__fpending.c: Add comment.
123926 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123928         * modules/canonicalize (Depends-on): Add xreadlink.
123929         Problem reported by James Youngman.
123931 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123933         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123934         New macros.
123935         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123936         optopt): Use them instead of invoking ## directly; otherwise, the
123937         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123939 2004-11-19  Bruno Haible  <bruno@clisp.org>
123941         * lib/strtok_r.c: Move comments from here...
123942         * lib/strtok_r.h: ... to here.
123944 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123946         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123947         implementations that mishandle size_t overflow.
123949 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123951         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123952         might fail.  Problem reported by Yoann Vandoorselaere.
123953         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123954         implementations that mishandle size_t overflow.
123956 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123958         * modules/canon-host (Depends-on): Add strdup.
123960 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123962         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123964 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123966         * lib/canon-host.c: Include "strdup.h".
123967         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123968         Use strdup instead of malloc/strcpy to duplicate strings.
123970         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123971         (human_space_before_unit): New constant.
123972         * lib/human.c (human_readable): Support it.
123974         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123975         (xgetcwd): Set errno correctly when failing.
123976         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123977         the failure is actually due to a PATH_MAX problem.
123979         Further getopt changes to make it more likely that glibc will
123980         buy the changes back.
123981         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123982         (getopt): Use it, so to preserve glibc semantic
123983         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123984         when compiling for libc.
123985         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123986         (getopt_long, getopt_long_only): Use it.
123988         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123989         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123990         (getopt): Argv is now char * const *, as per standard.
123991         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123992         not char *__getopt_argv_const *.
123993         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123994         _getopt_long_only_r): Likewise.
123995         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123996         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123997         _getopt_long_r, _getopt_long_only_r): Likewise.
123998         * lib/getopt_.h (__getopt_argv_const): Remove.
123999         (getopt): Argv is now char * const *, as per standard.
124001         * lib/getdate.y (tORDINAL): New token.
124002         (day, relunit): Allow it for relative times.
124003         (relative_time_table): Use tORDINAL for ordinals.
124005 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124007         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124008         Document that "second" isn't allowed as an ordinal number.
124010 2004-11-16  Jim Meyering  <jim@meyering.net>
124012         * modules/closeout (Depends-on): Add fpending.
124014 2004-11-15  Jim Meyering  <jim@meyering.net>
124016         * lib/closeout.c: Include "__fpending.h" once again.
124017         Include <stdbool.h>.
124018         (close_stdout): Don't fail just because stdout was closed initially,
124019         since some programs don't write to stdout in the normal course of
124020         operation (other than --version and --help), and we don't want this
124021         function to make e.g. `touch file >&-' fail.
124022         But do fail if it was closed and someone has tried to write to it.
124023         E.g., `printf foo >&-' must fail.
124025 2004-11-13  Jim Meyering  <jim@meyering.net>
124027         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124029 2004-11-12  Simon Josefsson  <jas@extundo.com>
124031         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124032         small doc fix is still pending.
124034 2004-11-11  Simon Josefsson  <jas@extundo.com>
124036         * modules/strtok_r: New file.
124038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124039         strtok_r.
124041 2004-11-11  Simon Josefsson  <jas@extundo.com>
124043         * m4/strtok_r.m4: New file.
124045         * m4/getopt.m4: Replace opterr.
124047 2004-11-11  Simon Josefsson  <jas@extundo.com>
124049         * lib/strtok_r.h, strtok_r.c: New file.
124051 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124053         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124054         of replacing opterr, getopt, etc.  This should handle the
124055         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124057 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124059         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124060         we can stop lying to compilers about the constness of argv when we
124061         are compiled outside glibc.
124062         (getopt, getopt_long, getopt_long_only): Use it.
124063         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124064         _getopt_internal, getopt): Likewise.
124065         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124066         _getopt_long_only_r): Likewise.
124067         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124068         _getopt_long_r, _getopt_long_only_r): Likewise.
124070         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124071         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124072         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124073         the other external symbols.
124074         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124075         declaration, since the above renaming now works around collisions.
124077 2004-11-11  Jim Meyering  <jim@meyering.net>
124079         * lib/linebreak.c: Remove trailing blanks.
124080         * lib/alloca_.h: Likewise.
124081         * lib/acosl.c: Likewise.
124082         * lib/euidaccess.c: Likewise.
124083         * lib/allocsa.h: Likewise.
124085 2004-11-10  Simon Josefsson  <jas@extundo.com>
124087         * m4/getaddrinfo.m4: New file.
124089 2004-11-10  Simon Josefsson  <jas@extundo.com>
124091         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124093 2004-11-10  Simon Josefsson  <jas@extundo.com>
124095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124096         getaddrinfo.
124098         * modules/getaddrinfo: New file.
124100 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124102         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124104 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124106         * lib/mktime.c (SHR): New macro, which is a portable
124107         substitute for >> that should work even on Crays.
124108         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124109         Problem reported by Mark D. Baushke in
124110         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124111         * lib/getdate.y (SHR): Likewise.
124112         (tm_diff): Use it.
124113         * lib/strftime.c (SHR): Likewise.
124114         (tm_diff): Use it.
124115         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124116         quote_these_too, so that right shifts are well defined.  All uses
124117         changed.
124119 2004-11-10  Jim Meyering  <jim@meyering.net>
124121         Ensure that no close failure goes unreported.
124122         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124123         return early when it seems there's nothing to flush.
124124         Don't include __fpending.h.
124126 2004-11-10  Jim Meyering  <jim@meyering.net>
124128         * modules/closeout (Depends-on): Remove fpending.
124130 2004-11-10  Jim Meyering  <jim@meyering.net>
124132         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124134 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124136         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124137         gl_FUNC_STRFTIME.
124138         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124139         and AC_REQUIRE when possible, to avoid duplicate checks.
124140         Check for <wchar.h>.
124142 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124144         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124146 2004-11-09  Bruno Haible  <bruno@clisp.org>
124148         * m4/sockpfaf.m4: New file.
124150 2004-11-05  Bruno Haible  <bruno@clisp.org>
124152         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124153         Reported by Mark D. Baushke <mdb@cvshome.org>.
124155 2004-11-04  Bruno Haible  <bruno@clisp.org>
124157         2004-09-11  Bruno Haible  <bruno@clisp.org>
124158                 * allocsa.valgrind: New file.
124159         2004-02-06  Bruno Haible  <bruno@clisp.org>
124160                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124161                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124162                 Reported by Christopher Seip <chris.seip@hp.com>.
124164 2004-11-04  Bruno Haible  <bruno@clisp.org>
124166         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124167         (Makefile.am): Distribute it.
124169 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124171         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124172         with errno == ERANGE if the buffer is too small.
124173         Problem reported by Mark D. Baushke.
124175 2004-11-03  Albert Chin  <china@thewrittenword.com>
124176             Paul Eggert  <eggert@cs.ucla.edu>
124178         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124179         equivalent, substitute $ac_type for equivalent type rather than
124180         blindly using uint32_t *always* which won't work if uint32_t is not
124181         available.  Define _UINT32_T to work around typedef of uint32_t if
124182         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124183         2.5.1.
124185 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124187         * m4/jm-macros.m4: Sync from coreutils.
124188         (gl_MACROS): Check for mbrlen, for pathchk.
124189         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124193         * lib/xreadlink.c (MAXSIZE): New macro.
124194         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124195         size does not exceed MAXSIZE.  Avoid cast.
124196         As suggested by Mark D. Baushke in
124197         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124198         if readlink fails with buffer size just under MAXSIZE, try again
124199         with MAXSIZE.
124201 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124203         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124205 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124206         and  Paul Eggert  <eggert@cs.ucla.edu>
124208         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124209         (get_date): Overparenthesize to avoid GCC warning.
124211 2004-11-02  Bruno Haible  <bruno@clisp.org>
124213         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124214         returns void.
124216 2004-11-02  Bruno Haible  <bruno@clisp.org>
124218         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124219         function returns void.
124221 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124223         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124224         fflush_unlocked, flockfile, funlockfile, funlockfile,
124225         fputs_unlocked, putc_unlocked.
124227 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124229         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124230         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124231         already declared.
124233 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124235         * modules/getdate (Files): Add doc/getdate.texi.
124236         (Depends-on): Add setenv, xalloc.
124238 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124240         * lib/getdate.y: Add support for TZ="foo" within a date string.
124241         Fix some bugs near time_t boundaries.  Reject dates with
124242         out-of-range components, e.g., "Sept 31".
124243         Include <stdlib.h>, "setenv.h", "xalloc.h".
124244         (ISDIGIT_LOCALE): Remove; unused.
124245         Note that the TZ and time functions used here are not reentrant.
124246         (mktime_ok, get_tz): New functions.
124247         (TZBUFSIZE): New constant.
124248         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124249         This requires that we sometimes generate our own TZ="XXX..." setting.
124251 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124253         * doc/getdate.texi: New file, from coreutils with modifications for
124254         the new TZ parsing.
124256 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124258         * lib/mktime.c (not_equal_tm): Remove redundant check.
124260 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124262         * modules/regex (lib_SOURCES): Add regex.c.
124263         Reported by James Youngman in
124264         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124266 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124268         * lib/getdate.y: Use Bison 1.875 features, and some minor
124269         code cleanups.  This change does not affect semantics.
124270         Don't include <stdlib.h>; no longer needed.
124271         Don't include unlocked-io.h; only the "#if TEST" code uses
124272         stdio, and performance isn't crucial there.
124273         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124274         Bison 1.875 features as described below.
124275         All uses of "PC." replaced by "pc->".
124276         (YYSTYPE): Add a forward declaration.
124277         (yylex, yyerror): Use full prototypes in forward decls.
124278         Use "%pure-parser" rather than obsolescent "%pure_parser".
124279         Use %parse-param and %lex-param instead of obsolescent
124280         YYPARSE_PARAM and YYLEX_PARAM.
124281         (meridian_table, month_and_day_table, time_units_table,
124282         relative_time_table, time_zone_table, military_table,
124283         lookup_zone, lookup_word, get_date):
124284         Use NULL instead of 0 where appropriate.
124285         (to_hour): Avoid abort (), to avoid a dependency on
124286         stdlib.h.
124287         (yyerror, yylex): Now accepts parser_control * arg.
124288         (main) [TEST]: Use '\0' rather than 0 for char.
124290 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124292         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124294 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124296         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124297         It's now the caller's responsibility to handle the case where
124298         !HAVE_GETPAGESIZE && !defined getpagesize.
124300         * lib/mktime.c (leapyear): Arg is long int, not int.
124302 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124304         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124306 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124308         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124309         missing.  Problem reported by James Youngman.
124311 2004-10-16  Simon Josefsson  <jas@extundo.com>
124313         * gnulib-tool: Fix comments.  Fix parse problem.
124314         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124316 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124318         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124319         implementation of getopt_long.  Problem reported by Alexander Taler in:
124320         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124322 2004-10-15  Bruno Haible  <bruno@clisp.org>
124324         * gnulib-tool: Untabify. Initialize supplied_libname.
124325         (func_usage): More homogenous output.
124326         (func_modules_transitive_closure, func_modules_to_filelist,
124327         func_emit_lib_Makefile_am): New functions.
124328         (func_import): New function, extracted from big case statement. Use
124329         func_get_license, func_modules_transitive_closure,
124330         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124331         opt_lgpl. Don't use test -a, as it's not portable.
124332         (func_create_testdir): Use func_modules_transitive_closure,
124333         func_modules_to_filelist, func_emit_lib_Makefile_am.
124335 2004-10-15  Bruno Haible  <bruno@clisp.org>
124337         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124339 2004-10-15  Bruno Haible  <bruno@clisp.org>
124341         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124342         the portions belonging to each module.
124343         Suggested by Derek Robert Price <derek@ximbiot.com>.
124345 2004-10-12  Simon Josefsson  <jas@extundo.com>
124347         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124348         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124349         to real functions.
124351 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124353         * modules/vsnprintf: New file.
124355 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124357         * m4/vsnprintf.m4: New file.
124359 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124361         * lib/vsnprintf.h: New file.
124362         * lib/vsnprintf.c: New file.
124364 2004-10-11  Bruno Haible  <bruno@clisp.org>
124366         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124367         vsnprintf.
124369 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124371         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124373 2004-10-07  Bruno Haible  <bruno@clisp.org>
124375         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124376         fits into the provided buffer.
124378 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124380         * lib/diacrit.c, diacrit.h: Add GPL notice.
124382         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124383         notice.
124384         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124385         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124386         This avoids a potential constant-folding bug.
124388 2004-10-05  Bruno Haible  <bruno@clisp.org>
124390         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124391         for the declaration of strsep.
124393 2004-10-05  Bruno Haible  <bruno@clisp.org>
124395         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124397 2004-10-04  Simon Josefsson  <jas@extundo.com>
124399         * modules/memmem: New file.
124400         * tests/test-memmem.c: New file.
124401         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124403 2004-10-04  Simon Josefsson  <jas@extundo.com>
124405         * m4/memmem.m4: New file.
124407 2004-10-04  Simon Josefsson  <jas@extundo.com>
124409         * lib/memmem.h: New file.
124410         * lib/memmem.c: New file, taken from glibc.
124412 2004-10-04  Simon Josefsson  <jas@extundo.com>
124414         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124415         '#ifdef USE_UNLOCKED_IO'.
124417 2004-10-04  Simon Josefsson  <jas@extundo.com>
124419         * config/srclist.txt: Add memmem from glibc.
124421 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124423         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124425         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124426         modules/exclude, modules/getdate, modules/getline,
124427         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124428         modules/getusershell, modules/linebuffer, modules/md5,
124429         modules/mountlist, modules/posixtm, modules/readtokens,
124430         modules/readutmp, modules/regex, modules/sha1,
124431         modules/version-etc, modules/yesno:
124432         Remove dependency on unlocked-io.
124434 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124436         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124438         * m4/unlocked-io.m4: Add copyright notice.
124439         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124441 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124443         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124444         * lib/xmalloc.c (xmemdup): Likewise.
124445         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124446         XFREE): Remove these long-obsolescent macros.
124447         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124448         * lib/xstrdup.c: Remove.
124450         * lib/regex.c (re_comp): Cast gettext return value to char *,
124451         Problem reported by Martin Neitzel via Mark D. Baushke.
124453 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124455         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124456         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124457         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124458         regex.c, sha1.c, version-etc.c, yesno.c:
124459         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124460         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124461         the includer's responsibility.
124463         Sync from coreutils.
124465         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124466         points to the start of a string, as the C Standard says the
124467         resulting behavior is undefined.
124469         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124470         simple -> simple_backups, numbered_existing ->
124471         numbered_existing_backups, numbered -> numbered_backups
124472         to avoid shadowing problems.  All uses changed.
124473         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124474         * lib/backupfile.c (check_extension, numbered_backup):
124475         Rename locals to avoid shadowing 'basename'.
124476         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124477         once.
124479         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124480         * lib/.cvsignore: Add getopt.h.
124482 2004-10-04  Bruno Haible  <bruno@clisp.org>
124484         * modules/README: New file.
124485         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124486         not a module.
124488 2004-10-02  Jim Meyering  <jim@meyering.net>
124490         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124492 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124494         * modules/strsep: New file.
124496 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124498         * m4/strsep.m4: New file.
124500 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124502         * lib/strsep.h: New file.
124503         * lib/strsep.c: New file.
124505 2004-10-01  Simon Josefsson  <jas@extundo.com>
124507         * lib/snprintf.c (snprintf): Handle size==0.
124509 2004-10-01  Simon Josefsson  <jas@extundo.com>
124510             Bruno Haible  <bruno@clisp.org>
124512         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124513         (snprintf): Declare 'args'.
124515 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124517         * lib/snprintf.c: Remove comments as to why each header is needed.
124519 2004-10-01  Bruno Haible  <bruno@clisp.org>
124521         * MODULES.html.sh: Add strsep.
124523 2004-09-30  Simon Josefsson  <jas@extundo.com>
124525         * modules/snprintf: New file.
124527 2004-09-30  Simon Josefsson  <jas@extundo.com>
124529         * m4/snprintf.m4: New file.
124531 2004-09-30  Simon Josefsson  <jas@extundo.com>
124533         * lib/snprintf.h, lib/snprintf.c: New files.
124535 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124537         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124538         (hol_entry_help): Never translate an empty string.
124539         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124540         * lib/argp.h (OPTION_NO_TRANS): New option.
124542 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124544         * modules/argp (Maintainer): Replace Simon Josefsson
124545         by Sergey Poznyakoff.
124547 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124549         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124550         changes merged back into glibc.
124552 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124554         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124556 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124558         * lib/xvasprintf.c: Include xalloc.h.
124559         (xvasprintf): Use xalloc_die, not xmalloc_die.
124561 2004-09-29  Bruno Haible  <bruno@clisp.org>
124563         * modules/alloca-opt: New file, derived from modules/alloca.
124564         * modules/allocsa: Depend on alloca-opt instead of alloca.
124565         * modules/setenv: Likewise.
124566         * modules/vasnprintf: Likewise.
124567         * MODULES.html.sh: Add alloca-opt.
124569 2004-09-28  Simon Josefsson  <jas@extundo.com>
124571         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124572         LGPL, and to replace license template from GPL to LGPL.
124574 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124576         * modules/dummy: Change license to LGPL.
124578 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124580         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124582 2004-09-24  Simon Josefsson  <jas@extundo.com>
124584         * modules/minmax (License): Change from GPL to LGPL.
124586 2004-09-23  Simon Josefsson  <jas@extundo.com>
124588         * gnulib-tool (--import): Typo.
124590 2004-09-23  Simon Josefsson  <jas@extundo.com>
124592         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124594 2004-09-22  Bruno Haible  <bruno@clisp.org>
124596         * modules/*: Add 'License' field.
124597         * gnulib-tool: Accept --extract-license option.
124598         (func_get_license): New function.
124600 2004-09-21  Bruno Haible  <bruno@clisp.org>
124602         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124603         Reported by Simon Josefsson.
124605 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124607         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124608         gl_AC_TYPE_LONG_LONG.
124610 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124612         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124614 2004-09-18  Simon Josefsson  <jas@extundo.com>
124615         and  Paul Eggert  <eggert@cs.ucla.edu>
124617         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124618         calls with autoreconf.  Define GL_LIB.
124620 2004-09-14  Karl Berry  <karl@gnu.org>
124622         * config/srclist.txt: unsync setenv.c, sigh.
124624 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124626         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124627         Problem reported by Bruno Haible in:
124628         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124630 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124632         * config/srclist.txt: Comment out argp-pvh.c.
124634 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124636         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124637         in case some system header has #define'd it.  Problem reported by
124638         Soeren D. Schulze in
124639         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124641 2004-09-09  Karl Berry  <karl@gnu.org>
124643         * regex.[ch]: delete from the root.  These were supposed to be
124644                 synced with emacs cvs, but this has not happened for about
124645                 a year, and anyway nothing else uses emacs regex.[ch].
124646                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124647                 lib/regex[.ch] is untouched.
124649 2004-09-09  Bruno Haible  <bruno@clisp.org>
124651         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124653 2004-09-09  Bruno Haible  <bruno@clisp.org>
124655         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124656         modifications.
124657         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124659 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124661         * modules/xvasprintf: New file.
124662         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124664 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124666         * lib/xvasprintf.h: New file.
124667         * lib/xvasprintf.c: New file.
124668         * lib/xasprintf.c: New file.
124670 2004-09-08  Bruno Haible  <bruno@clisp.org>
124672         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124674 2004-09-08  Bruno Haible  <bruno@clisp.org>
124676         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124677         length is > INT_MAX.
124678         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124679         more.
124681 2004-09-08  Bruno Haible  <bruno@clisp.org>
124683         * lib/stdint_.h: New file, taken from GNU clisp.
124685 2004-09-08  Bruno Haible  <bruno@clisp.org>
124686             Oskar Liljeblad  <oskar@osk.mine.nu>
124688         * modules/stdint: New file.
124689         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124691 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124693         Import from coreutils.
124694         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124695         strings on unbounded length.  alloca's performance benefits aren't
124696         that important here.
124697         (V_STRDUP): Remove.
124698         (parse_with_separator): New function, with most of the internals
124699         of the old parse_user_spec.  Allow user to omit both user and group,
124700         for compatibility with FreeBSD.
124701         Clone only the user name, not the entire spec.
124702         Do not set *uid, *gid unless entirely successful.
124703         Avoid memory leak in some failing cases.
124704         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124705         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124706         (parse_user_spec): Rewrite to use parse_with_separator.
124708 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124710         * modules/userspec: Don't depend on alloca.
124712 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124714         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124716 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124718         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124719         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124720         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124722 2004-08-16  Simon Josefsson  <jas@extundo.com>
124724         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124725         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124726         Add --dry-run for --import.
124727         Let user provided command line parameters override configure.ac
124728         settings.
124730 2004-08-12  Simon Josefsson  <jas@extundo.com>
124732         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124733         as discussed with Paul Eggert in threads rooted at
124734         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124735         and
124736         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124737         Before, the test was empty, and relied on ELIDE_CODE in source
124738         code.)
124739         (gl_PREREQ_GETOPT): New macro.
124740         (gl_GETOPT): Use them.
124742 2004-08-12  Simon Josefsson  <jas@extundo.com>
124744         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124745         * lib/getopt_.h: Renamed from getopt.h.
124747 2004-08-12  Simon Josefsson  <jas@extundo.com>
124749         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124750         Change default library name from libfoo to libgnu.
124751         Now, if you have a configure.ac that says:
124752                 gl_SOURCE_BASE(gl)
124753                 gl_M4_BASE(gl/m4)
124754                 gl_MODULES(error getopt etcetera)
124755                 gl_INIT
124756         you can import all you need by running:
124757                 ../gnulib/gnulib-tool --import
124759         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124760         (Makefile.am): Rewrite, use logic from argz.
124761         (Include): Use <getopt.h> instead of "getopt.h".
124763 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124765         * modules/argp (Files): Add m4/unlocked-io.m4.
124766         (Depends-on): Add extensions.
124768 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124770         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124771         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124772         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124773         Check for program_invocation_name, program_invocation_short_name,
124774         flockfile, funlockfile, features.h, _getopt_long_only_r.
124776 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124778         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124779         its complicated substitute.
124780         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124781         and program_invocation_name.
124782         (__argp_basename) [!_LIBC]: Remove; the only use was
124783         replaced by its body.
124784         (__argp_short_program_name): Change condition from
124785         !defined __argp_short_program_name to
124786         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124787         to match argp-namefrob.h.
124788         (__argp_failure): Don't assume strerror_r returns char *.
124789         * lib/argp-parse.c (N_): Define unconditionally.
124790         (argp_default_options): Fill out initializers with 0 to avoid
124791         gcc warnings.
124793 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124795         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124796         getopt1.c.
124798 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124800         Merge from coreutils.
124802         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124804         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124805         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124807 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124809         Merge from coreutils.
124811         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124812         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124813         for Reliant Unix 5.43.
124815         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124816         (union fooround): Use uintmax_t, not long int.
124817         The rest is a merge from libc:
124818         [defined _LIBC]: Include <shlib-compat.h>.
124819         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124821         * lib/settime.c (settime): Recode to avoid warning with
124822         Sun Forte C 6U2.
124824         * lib/strverscmp.c: Convert to UTF-8.
124826 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124828         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124829         m4/uintmax_t.m4.
124831 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124833         * modules/xalloc-die: New file.
124834         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124836         * modules/md5 (Files): Add m4/uint32_t.m4.
124837         * modules/sha1: Renamed from modules/sha.
124838         (Files):
124839         Rename lib/sha.h to lib/sha1.h.
124840         Rename lib/sha.c to lib/sha1.c.
124841         Rename m4/sha.m4 to m4/sha1.m4.
124842         (lib_SOURCES): Likewise.
124843         (configure.ac): Rename gl_SHA to gl_SHA1.
124844         (Include): sha.h -> sha1.h.
124846 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124848         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124849         * m4/sha1.m4: Renamed from sha.m4.
124850         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124852 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124854         * lib/obstack.h (obstack_empty_p):
124855         Don't assume that chunk->contents is suitably aligned.
124856         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124857         Likewise. Problem reported by Benno in
124858         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124860         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124861         readable.  This could be improved further but it'd take some work.
124863 2004-08-08  Simon Josefsson  <jas@extundo.com>
124865         * modules/xgethostname (Depends-on): Remove exit and error (not
124866         used).
124868         * modules/getpass-gnu: Add getpass.h.
124869         (Depends-on): Add stdbool.
124870         * modules/getpass: Add getpass.h.
124872 2004-08-08  Simon Josefsson  <jas@extundo.com>
124874         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124875         Check getpass declaration.
124877 2004-08-08  Simon Josefsson  <jas@extundo.com>
124879         * lib/xgethostname.c: Don't include error.h (not used).
124881         * lib/getpass.h: Add.
124882         * lib/getpass.c: Include getpass.h first.
124884 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124886         * lib/xalloc-die.c: New file.
124887         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124888         All uses removed.
124889         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124890         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124891         xalloc-die.c.
124892         (_, N_, xalloc_die): Move to xalloc-die.c.
124893         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124894         so that we needn't mess with xalloc_msg_memory_exhausted.
124896         * lib/sha1.h: Renamed from sha.h.
124897         (SHA1_H): Renamed from _SHA_H.
124898         (sha1_ctx): Renamed from sha_ctx.
124899         (sha1_init_ctx): Renamed from sha_init_ctx.
124900         (sha1_process_block): Renamed from sha_process_block.
124901         (sha1_process_bytes): Renamed from sha_process_bytes.
124902         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124903         (sha1_read_ctx): Renamed from sha_read_ctx.
124904         (sha1_stream): Renamed from sha_stream.
124905         (sha1_buffer): Renamed from sha_buffer.
124906         * lib/sha1.c: Likewise; renamed from sha.c.
124907         Do not include <sys/types.h>.
124908         Include <stddef.h> rather than <stdlib.h>.
124910 2004-08-08  Bruno Haible  <bruno@clisp.org>
124912         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124913         FILESYSTEM_PREFIX_LEN.
124914         * lib/progreloc.c: Likewise.
124915         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124917 2004-08-06  Simon Josefsson  <jas@extundo.com>
124919         * modules/progname (Depends-on): Don't depend on stdbool.
124921 2004-08-06  Simon Josefsson  <jas@extundo.com>
124923         * modules/getsubopt: New file.
124924         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124925         getsubopt.
124927 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124929         More merge from coreutils.
124931         * m4/utimens.m4, m4/utimecmp.m4: New files.
124932         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124933         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124934         prereq.m4, sha.m4: Import changes from coreutils.
124936 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124938         More merge from coreutils.
124939         * modules/raise, modules/readtokens0, modules/utimens:
124940         * modules/utimecmp, module/xnanosleep: New files.
124941         * modules/strftime: Add lib/strftime.h.
124942         Change include from <time.h> to "strftime.h".
124943         * modules/yesno: Add lib/yesno.h.
124944         * modules/backupfile: Remove lib/addext.c.
124945         * modules/euidaccess: Add stat-macros.h.
124946         * modules/canonicalize, modules/euidaccess,
124947         modules/filemode, modules/lchown, modules/makepath,
124948         modules/rmdir, modules/stat: Likewise.
124950 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124952         Merge from tar.
124953         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124954         SIZE_MAX is a valid preprocessor constant.
124955         (__argp_basename): Change from "#ifndef _LIBC"
124956         to "#ifndef __argp_short_program_name", so that
124957         we don't compile these functions for tar.
124959         More merges from coreutils.
124960         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124961         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124962         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124963         * lib/addext.c: Remove; no longer needed.
124964         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124965         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124966         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124967         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124968         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124969         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124970         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124971         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124972         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124973         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124974         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124975         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124976         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124977         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124978         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124979         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124980         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124981         Import changes from coreutils.
124983 2004-08-05  Simon Josefsson  <jas@extundo.com>
124985         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124987 2004-08-05  Simon Josefsson  <jas@extundo.com>
124989         * m4/getsubopt.m4: New file.
124991 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124993         Merge from coreutils.
124995         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124996         * m4/getcwd-path-max.m4: New files.
124998         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124999         FILESYSTEM_PREFIX_LEN ->
125000         FILE_SYSTEM_PREFIX_LEN.
125001         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125002         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125003         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125004         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125006         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125007         prerequisite modules now handle the DOS stuff.
125008         Don't check for unistd.h.
125010 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125012         Merge from coreutils.
125014         * lib/.gdb-history: Remove; this doesn't belong here.
125016         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125017         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125018         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125019         * lib/getcwd.c: New files.
125021         * lib/dirname.h: Include <stdbool.h>.
125022         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125023         for consistency with POSIX terminology.  All uses changed.
125024         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125025         (strip_trailing_slashes): Use bool for booleans.
125026         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125028         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125029         sometimes returns a positive errno value even when it succeeds.
125030         (print_errno_message) [!LIBC]: Fall back on strerror if
125031         __strerror_r fails.
125033         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125034         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125035         (longest_relative_suffix): New function.
125036         (path_concat): Use it.  Assume first argument is not NULL.
125037         Port to DOS.  Omit redundant separators.
125038         Report an error instead of returning NULL.
125039         Use mempcpy instead of memcpy.
125040         (xpath_concat): Remove: not declared or used.
125042         * lib/same.h: Include <stdbool.h>
125043         (same_name): Return bool, not int.
125044         * lib/same.c (same_name): Likewise.
125045         (errno): Don't declare; we assume C89 or better now.
125047         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125048         if not already defined.
125050         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125051         * lib/dup-safer.c (errno): Likewise.
125053 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125055         Merge from coreutils.
125056         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125057         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125058         * modules/path-concat: Don't depend on strdup.
125060 2004-08-03  Simon Josefsson  <jas@extundo.com>
125062         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125063         * lib/progname.h: Don't include stdbool.h.
125065 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125067         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125068         * MODULES.html.sh (func_all_modules): Remove fatal.
125070 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125072         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125074 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125076         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125077         working.
125079 2004-08-02  Simon Josefsson  <jas@extundo.com>
125081         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125082         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125083         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125085 2004-08-01  Simon Josefsson  <jas@extundo.com>
125087         * lib/xgetdomainname.c: Include stdlib.h, for free().
125089 2004-07-19  Bruno Haible  <bruno@clisp.org>
125091         * MODULES.html.sh (func_all_modules): Add dummy.
125093 2004-07-16  Simon Josefsson  <jas@extundo.com>
125095         * modules/dummy: New file.
125097 2004-07-16  Simon Josefsson  <jas@extundo.com>
125099         * lib/dummy.c: New file.
125101 2004-07-16  Bruno Haible  <bruno@clisp.org>
125103         * lib/backupfile.h: Add extern "C" for C++.
125104         * lib/closeout.h: Likewise.
125105         * lib/copy-file.h: Likewise.
125106         * lib/findprog.h: Likewise.
125107         * lib/full-write.h: Likewise.
125108         * lib/pathname.h: Likewise.
125109         * lib/progname.h: Likewise.
125110         * lib/stpcpy.h: Likewise.
125111         * lib/stpncpy.h: Likewise.
125112         * lib/strcase.h: Likewise.
125113         * lib/strstr.h: Likewise.
125114         * lib/xalloc.h: Likewise.
125116         * lib/mbswidth.h: Add extern "C" for C++.
125117         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125119 2004-07-13  Robert Millan  <robertmh@gnu.org>
125121         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125123 2004-07-09  Simon Josefsson  <jas@extundo.com>
125125         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125126         failed without this.)
125128 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125130         * modules/chown (Files): Add lib/fchown-stub.c, since
125131         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125133 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125135         * lib/fchown-stub.c: New file.
125137 2004-06-24  Jim Meyering  <jim@meyering.net>
125139         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125141 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125143         * modules/argz: Omit "#include".
125145         * MODULES.html.sh (func_all_modules): Add calloc, to match
125146         2004-06-01 addition of calloc module.
125148 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125150         * m4/argz.m4: New file, which is autoupdated from libtool.
125152 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125154         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125155         libtool.
125157 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125159         * config/srclist-update: Don't insist on "USA." before the
125160         close-comment, as libtool omits the period and puts the */ on a
125161         separate line.
125162         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125163         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125165 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125167         * modules/argz: New file.
125168         * MODULES.html.sh (func_all_modules): Add argz.
125170 2004-06-12  Jim Meyering  <jim@meyering.net>
125171         and  Paul Eggert  <eggert@cs.ucla.edu>
125173         * modules/hash (Files): Add lib/xalloc.h.
125174         * modules/pipe (Depends-on): Add wait-process.
125175         * modules/stat (Depends-on): Add xalloc.
125176         * modules/userspec (Files): Add lib/userspec.h.
125177         * modules/xstrto
125179         Upgrade from gettext-0.13.
125180         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125181         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125182         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125184 2004-06-10  Jim Meyering  <jim@meyering.net>
125186         * lib/calloc.c: New file.
125188 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125190         * lib/getdate.y (yylex): Allow space between sign and number.
125191         Problem reported by Dan Jacobson.
125193 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125195         Merge from coreutils CVS.
125197         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125198         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125199         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125200         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125201         xstrtol.m4: Fix copyright date and/or serial number.
125203         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125204         See if we need an fchown replacement.
125205         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125206         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125207         and use the replacement function if we detect either defect.
125209         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125210         gl_UTIMECMP.
125212 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125213         and  Jim Meyering  <jim@meyering.net>
125215         Merge from coreutils CVS.
125217         * lib/stat-macros.h: New file, with contents from file-type.h
125218         and coreutils' system.h.
125219         * lib/file-type.c: Include "stat-macros.h".
125220         * lib/file-type.h (file_type): Move all macro definitions to new file,
125221         stat-macros.h.
125223         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125224         Wrap old code with this conditional.
125225         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125226         function that does not dereference symlinks.
125227         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125229         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125230         dependency problems.
125231         (xreadlink): Accept new arg SIZE, for efficiency.
125232         All decls and uses changed.
125233         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125235         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125236         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125238         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125239         sysexits.h.
125241 2004-06-01  Jim Meyering  <jim@meyering.net>
125243         * m4/calloc.m4: New file.
125245 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125247         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125248         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125249         Also, fix a typo in a diagnostic.
125251 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125253         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125254         or AC_FUNC_REALLOC.
125256 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125258         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125259         macros to be defined.
125260         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125261         the allocator returns NULL because the requested size is zero.
125263 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125265         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125266         var.  Add comment explaining why libc still defines it.  This
125267         merges the following patch from glibc:
125268         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125270 2004-05-20  Andreas Schwab  <schwab@suse.de>
125272         * m4/free.m4: Replace free if it not known to work, not the other
125273         way round.
125275 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125277         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125278         present in glibc since revision 1.1 of this file.
125279         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125280         obstack_alignment_mask, obstack_alloc, obstack_base,
125281         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125282         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125283         obstack_grow0, obstack_init, obstack_int_grow,
125284         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125285         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125286         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125287         nonexistent functions.
125289 2004-05-18  Karl Berry  <karl@gnu.org>
125291         * config/srclist.txt: break link for vasnprintf.c.
125293 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125295         Port obstack to the AS/400, where pointers are 16 bytes wide and
125296         you cannot cast an integer to a valid pointer.  This patch is
125297         currently waiting to be integrated into glibc; see
125298         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125300         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125301         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125302         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125303         (struct obstack): temp member is now a union of a pointer and
125304         an integer, instead of an integer.  All integer uses changed.
125305         This does not affect the physical layout of struct obstack,
125306         except on hosts (like the AS/400) where the size or alignment of
125307         void * is greater than that of ptrdiff_t.
125308         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125309         __STDC__)]: Store temporary in pointer member of union, not
125310         integer member.
125311         * lib/obstack.c: Include <stddef.h>, for offsetof.
125312         (struct fooalign): Remove; it doesn't need a name.
125313         (union fooround): Change double to long double, and add void *.
125314         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125315         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125316         not a macro.  Hence the values are always int; so remove all
125317         casts-to-int in uses.
125319 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125321         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125322         we can get this patch merged into glibc.
125324 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125325             Paul Eggert  <eggert@cs.ucla.edu>
125327         * m4/argp: Depend on alloca.
125329 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125330             Paul Eggert  <eggert@cs.ucla.edu>
125332         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125333         freecoding.
125335 2004-05-17  Bruno Haible  <bruno@clisp.org>
125337         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125338         precision that consists of a '.' followed by an empty digit string.
125339         Patch by Tor Lillqvist <tml@iki.fi>.
125341 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125343         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125344         for backward compatibility with older code.  We need our own
125345         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125346         it under some other name, and our alloca.h will define it.
125348 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125349             Derek Price  <derek@ximbiot.com>
125351         * lib/alloca.c: Include <alloca.h>, to get our interface.
125352         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125353         include <alloca.h> first.  Use C89 prototype for alloca; this
125354         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125355         Use #elif for simplicity, since we can assume C89 now.
125356         Don't try to source the system alloca.h since it will not be found
125357         and to prevent recursively including its replacement.
125358         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125359         * lib/regex.c: Likewise.
125361 2004-05-16  Derek Price  <derek@ximbiot.com>
125362             Paul Eggert  <eggert@cs.ucla.edu>
125364         getline cleanup.  This changes the getndelim2 API: both order of
125365         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125366         no delimiter).
125368         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125369         interface does that.
125370         (getline): Always use getdelim, so that we don't have two
125371         copies of this code.
125372         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125373         if available.
125374         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125375         (GETNDELIM2_MAXIMUM): New macro.
125376         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125377         instead of the old practice of delim2==0.  All callers changed.
125378         Return -1 on overflow, instead of returning junk.
125379         Do not set *linesize unless allocation succeeds.
125380         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125381         that we include sys/types.h.
125382         * lib/getnline.h: Likewise.
125383         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125384         (getndelim2): Reorder arguments.
125385         * lib/getnline.c (getnline, getndelim):
125386         Don't discard the NMAX argument.
125387         (getnline): Invoke getndelim, to avoid code duplication.
125388         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125389         of (size_t) -1 by callers of the getnline family.
125391 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125393         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125394         Check for gettimeofday.
125395         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125396         Check for settimeofday, stime.
125398 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125400         * lib/nanosleep.c (suspended): Change its type from int to
125401         sig_atomic_t volatile.
125402         (first_call): Make it private to rpl_nanosleep, and have it
125403         be zero initially as that's a bit faster.
125404         (my_usleep): Round up fractional times instead of truncating them,
125405         as this is the usual meaning for 'sleep'.
125407         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125408         doesn't work.
125409         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125410         (ENOSYS): Define if not defined.
125411         (settime): Fall back on stime if it exists and settimeofday fails.
125412         But don't bother with fallbacks if a method fails with errno == EPERM.
125414 2004-05-11  Jim Meyering  <jim@meyering.net>
125416         Prior to this change, the save_cwd caller required read access to the
125417         current directory on most systems (ones with the fchdir function).
125419         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125420         fails, try write-only, and finally, resort to using xgetcwd.
125422 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125424         * lib/obstack.c, obstack.h: Import changes from libc.
125426 2004-04-28  Bruno Haible  <bruno@clisp.org>
125428         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125429         also implicitly appends .exe to executables.
125430         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125431         accepts Windows pathnames.
125432         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125433         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125434         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125435         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125436         Reported by Derek Robert Price <derek@ximbiot.com>.
125438 2004-04-21  Karl Berry  <karl@gnu.org>
125440         * config/srclist.txt (localcharset.c): break sync.
125442 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125444         * m4/host-os.m4: Add a copyright notice.
125446 2004-04-20  Jim Meyering  <jim@meyering.net>
125448         Change UTILS_ to gl_ in AC_DEFINE'd names.
125449         Change utils_- and jm_-prefixed variables, too.
125450         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125451         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125454         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125455         Don't emit trailing blanks.
125456         Also rename jm_-prefixed variables to have gl_ prefix.
125458         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125459         Also rename jm_-prefixed variables to have gl_ prefix.
125461         * m4/jm-macros.m4: Reflect the renamings.
125462         * m4/prereq.m4: Likewise.
125464 2004-04-20  Jim Meyering  <jim@meyering.net>
125466         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125467         memory.
125469 2004-04-20  Jim Meyering  <jim@meyering.net>
125470             Bruno Haible  <bruno@clisp.org>
125472         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125473         memory when realloc fails.
125475 2004-04-19  Jim Meyering  <jim@meyering.net>
125477         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125478         now that readutmp.c may call `free (0)'.
125480 2004-04-19  Bruno Haible  <bruno@clisp.org>
125482         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125483         * m4/inttypes_h.m4: Likewise.
125484         * m4/stdint_h.m4: Likewise.
125485         * m4/intmax_t.m4: Likewise.
125486         * m4/uintmax_t.m4: Likewise.
125488 2004-04-18  Jim Meyering  <jim@meyering.net>
125490         * m4/prereq.m4: Don't forbid jm_ prefix.
125492         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125493         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125494         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125495         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125496         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125497         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125498         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125499         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125500         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125501         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125502         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125503         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125504         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125505         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125506         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125507         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125508         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125509         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125510         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125512 2004-04-18  Jim Meyering  <jim@meyering.net>
125514         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125515         failure, don't leak memory and do call END_UTMP_ENT.
125517 2004-04-16  Jim Meyering  <jim@meyering.net>
125519         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125520         coreutils' stat program.
125521         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125523 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125525         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125526         C89.
125527         (CHAR_BIT): Remove, since we assume C89.
125528         Include <stdint.h> if available, as per current Autoconf CVS advice.
125530 2004-03-31  Jim Meyering  <jim@meyering.net>
125532         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125533         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125534         * m4/xalloc.m4: Likewise.
125536 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125538         Merge from coreutils.
125540         * m4/inttostr.m4: New file.
125541         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125542         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125543         Require gl_CLOCK_TIME.
125544         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125546 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125548         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125549         not bool, to be more consistent with Unix conventions.
125550         Suggested by Bruno Haible.
125552         Merge from coreutils.
125554         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125555         * lib/umaxtostr.c: New files.
125557         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125558         the usual <time.h> dance.
125559         (get_date): Change signature to support fractional time stamps.
125560         All callers changed.
125561         * lib/getdate.y: Include "getdate.h" first, as we can now
125562         assume C89 and don't need to worry about 'const'.
125563         Similarly, include "unlocked-io.h" near start, not in middle.
125564         Include <limits.h>.
125565         (textint.value): Use long int rather than int.
125566         (textint.digits): Use size_t rather than int.
125567         (BILLION, LOG10_BILLION): New constants.
125568         (parser_control): New member rel_ns.  Members day_ordinal,
125569         time_zone, month, day, hour, minutes, rel_year, rel_month,
125570         rel_day, rel_hour, rel_minutes, rel_seconds
125571         are now long int, not int.  Member seconds is now struct timespec,
125572         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125573         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125574         not int.
125575         (%union.intval): Now long int, not int.
125576         New member timespec.
125577         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125578         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125579         (spec): Now is a timespec or an item list.
125580         (timespec, items): New nonterminals.
125581         (time, rel, relunit, number, get_date):
125582         Add support for fractional seconds.
125583         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125584         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125585         (to_hour): First arg is now long int, not int.
125586         (to_year): Returns long int, not int.
125587         Don't treat year -70 like 70.
125588         (tm_diff): Returns long int, not int.
125589         (lookup_word): Use bool instead of int when appropriate.
125590         (yylex): Use size_t for count, not int.
125591         Detect overflow when parsing large integer constants.
125592         Add support for fractions.
125593         (get_date): Make pointers 'const' if possible.
125594         Use more-portable code to detect integer overflow.
125595         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125596         Don't use ctime; it's not reliable if the year has >4 digits.
125598         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125599         This is for compatibility with BSD.
125601         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125602         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125603         From coreutils' system.h.
125605         * lib/userspec.c: Don't include "posixver.h".
125606         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125607         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125608         compatible extension.  Simplify code by removing a boolean int
125609         that was always nonzero if a string was nonnull.
125611 2004-03-30  Jim Meyering  <jim@meyering.net>
125613         Merge from coreutils.
125615         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125616         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125617         on some systems one must include <grp.h> before it.
125618         Reported by Christian Krackowizer.
125620 2004-03-30  Jim Meyering  <jim@meyering.net>
125622         Merge from coreutils.
125624         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125626         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125627         an empty input stream.
125629         * lib/readtokens.c: Include <stdbool.h>.
125630         (readtoken): Use `size_t' rather than int/long.
125631         All callers adjusted.
125632         Use `bool' rather than `int' where appropriate.
125633         Use memset rather than an explicit loop.
125634         Use x2nrealloc rather than xrealloc.
125635         Allow the use of `\0' as a delimiter.
125636         (readtokens): Likewise.
125637         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125639 2004-03-30  Jim Meyering  <jim@meyering.net>
125641         * m4/realloc.m4: Remove file, since now it does no more than
125642         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125643         the `configure.ac' section of module/realloc.
125644         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125646 2004-03-30  Bruno Haible  <bruno@clisp.org>
125648         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125649         nonnull.
125651 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125653         Merge changes to getloadavg.c from coreutils and Emacs.
125655         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125656         Define to an expression, not to the empty string.
125657         Include cloexec.h and xalloc.h.
125658         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125659         Use set_cloexec_flag rather than rolling our own.
125660         * lib/cloexec.c, lib/cloexec.h: New files.
125662 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125664         * m4/cloexec.m4: New file.
125666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125668         * lib/getopt.h: Sync with libc CVS.
125670 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125671             Bruno Haible  <bruno@clisp.org>
125673         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125674         mbswidth.
125676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125677             Bruno Haible  <bruno@clisp.org>
125679         * lib/mbswidth.h: Include <wchar.h> only if
125680         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125681         <wchar.h>.
125682         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125684 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125686         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125687         Sync with libc CVS.
125688         * lib/getopt_int.h: New file, also synced from libc.
125690 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125692         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125693         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125694         Bring back getopt.c, getopt.h, getopt1.c.
125696 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125698         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125699         All uses changed.  Check for sa_sigaction member; this fixes
125700         a bug first reported by Jason Andrade in
125701         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125703 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125705         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125706         '#if' expressions.  Unlike the code it replaces, it does not
125707         depend on (defined _SC_PAGESIZE).  However, it does depend on
125708         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125709         first reported by Jason Andrade in
125710         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125712 2004-02-25  Simon Josefsson  <jas@extundo.com>
125714         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125716 2004-02-25  Simon Josefsson  <jas@extundo.com>
125718         * lib/strdup.h: New file.
125719         * lib/strdup.c: Include it.
125720         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125721         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125723 2004-02-23  Karl Berry  <karl@gnu.org>
125725         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125726         (from fencepost.gnu.org:/gd/gnuorg).
125728 2004-02-23  Karl Berry  <karl@gnu.org>
125730         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125731         * config/srclist.txt: add maintain/standards documents.
125733 2004-02-18  Bruno Haible  <bruno@clisp.org>
125735         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125736         Reported by Derek Robert Price <derek@ximbiot.com>.
125738 2004-02-16  Karl Berry  <karl@gnu.org>
125740         * config/mkinstalldirs, install-sh: update from automake.
125742 2004-02-06  Karl Berry  <karl@gnu.org>
125744         * m4/po.m4: update from gettext 0.14.1.
125746 2004-02-06  Karl Berry  <karl@gnu.org>
125748         * lib/config.charset: update from gettext 0.14.1.
125750 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125752         Add comments and code, prompted by suggestions from Bruno Haible
125753         for sh-quote.
125754         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125755         describing the enum quoting_style values.
125756         * lib/quotearg.c (quotearg_alloc): New function.
125757         (quotearg_buffer_restyled): Treat lone { and } as special.
125758         Treat = as special.  Work around bug with older shells
125759         that "see" a '\' that is really the 2nd byte of a multibyte char.
125760         Quote empty string with shell_quoting_style.
125762 2004-02-03  Bruno Haible  <bruno@clisp.org>
125764         * m4/pipe.m4: New file, from GNU gettext.
125766 2004-02-03  Bruno Haible  <bruno@clisp.org>
125768         * lib/pipe.h: New file, from GNU gettext.
125769         * lib/pipe.c: New file, from GNU gettext.
125771 2004-01-27  Bruno Haible  <bruno@clisp.org>
125773         * m4/execute.m4: New file, from GNU gettext.
125775 2004-01-27  Bruno Haible  <bruno@clisp.org>
125777         * lib/execute.h: New file, from GNU gettext.
125778         * lib/execute.c: New file, from GNU gettext.
125779         * lib/w32spawn.h: New file, from GNU gettext.
125781 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125783         Merge from diffutils.
125785         * lib/file-type.c (file_type): Add typed memory objects.
125786         * lib/file-type.h (S_TYPEISTMO): New macro.
125788         * lib/c-stack.h (c_stack_action): Remove argv argument.
125789         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125790         (die): Don't calculate message unless segv_action returns.
125791         (get_stack_location, min_address_from_argv, max_address_from_argv,
125792         volatile stack_base, volatile_stack_size): Remove.
125793         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125794         that every segmentation violation is a stack overflow.  (Ouch!)
125795         See Debian bug 136249 (still outstanding) for more info about why
125796         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125798 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125800         Exit-status fix from coreutils.
125802         Use exit_failure consistently in place of EXIT_FAILURE,
125803         so that program exit statuses are consistent on failure.
125805         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125806         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125807         * lib/argmatch.h: Comment fix to match the above.
125808         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125809         Now a macro referring to exit_failure, instead of a separate
125810         variable.  Include "exitfail.h" to get it.
125811         * lib/xstrtol.h: Include "exitfail.h".
125812         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125814         * lib/long-options.c (parse_long_options): Use prototype
125815         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125816         for clarity.
125818 2004-01-21  Jim Meyering  <jim@meyering.net>
125820         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125821         so as not to conflict with a different-sized __mktime_internal
125822         function in GNU libc.
125823         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125824         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125826 2004-01-20  Karl Berry  <karl@gnu.org>
125828         * config/config.guess: update from config.
125830         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125832 2004-01-20  Bruno Haible  <bruno@clisp.org>
125834         Safer stack allocation.
125835         * lib/setenv.c: Include allocsa.h.
125836         (alloca): Remove fallback definition.
125837         (freea): Remove macro.
125838         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125839         instead of freea.
125841 2004-01-20  Bruno Haible  <bruno@clisp.org>
125843         * m4/eealloc.m4: New file, from GNU gettext.
125845 2004-01-20  Bruno Haible  <bruno@clisp.org>
125847         * m4/allocsa.m4: New file, from GNU gettext.
125849 2004-01-20  Bruno Haible  <bruno@clisp.org>
125851         * lib/xallocsa.h: New file, from GNU gettext.
125852         * lib/xallocsa.c: New file, from GNU gettext.
125854 2004-01-20  Bruno Haible  <bruno@clisp.org>
125856         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125858 2004-01-20  Bruno Haible  <bruno@clisp.org>
125860         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125861         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125862         specially.
125864 2004-01-20  Bruno Haible  <bruno@clisp.org>
125866         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125867         patch.
125869 2004-01-20  Bruno Haible  <bruno@clisp.org>
125871         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125873 2004-01-20  Bruno Haible  <bruno@clisp.org>
125875         * lib/eealloc.h: New file.
125877 2004-01-20  Bruno Haible  <bruno@clisp.org>
125879         * lib/binary-io.h: Avoid warnings on Cygwin.
125881 2004-01-20  Bruno Haible  <bruno@clisp.org>
125883         * lib/allocsa.h: New file, from GNU gettext.
125884         * lib/allocsa.c: New file, from GNU gettext.
125886 2004-01-18  Karl Berry  <karl@gnu.org>
125888         * doc/gpl.texi, doc/lgpl.texi: new files.
125890 2004-01-18  Karl Berry  <karl@gnu.org>
125892         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125893         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125895 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125897         Merge from coreutils.
125899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125900         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125901         (gl_DEFAULT_POSIX2_VERSION): Move
125902         the documentation from 'configure' into 'config.hin',
125903         so that 'configure --help' isn't burdened by it and
125904         we don't have to worry about its formatting there.
125905         Reword the documentation so that it's more succinct
125906         and can be run together into a single paragraph.
125907         * m4/same.m4 (gl_SAME): Check for pathconf.
125909 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125911         Merge from coreutils.
125913         * lib/posixver.c: Include posixver.h.
125915         * lib/same.c: Include <stdbool.h>, <limits.h>.
125916         (_POSIX_NAME_MAX): Define if not defined.
125917         (MIN): New macro.
125918         (same_name): If file names are silently truncated, report
125919         that the file names are the same if they are the same after
125920         the silent truncation.
125922         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125923         conversion function.
125924         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125925         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125926         longer needed.
125928 2004-01-15  Jim Meyering  <jim@meyering.net>
125930         Merge from coreutils.
125932         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125933         if no library is required.
125934         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125935         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125936         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125937         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125938         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125939         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125940         value, $ac_cv_search_crypt, if it's "none required".
125941         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125942         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125943         not gl_FUNC_GETLOADAVG.
125944         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125945         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125947 2004-01-15  Jim Meyering  <jim@meyering.net>
125949         Merge from coreutils.
125951         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125952         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125953         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125955         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125956         optional configure-time default.
125958         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125960         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125962 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125964         Merge from coreutils.
125966         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125967         value, $ac_cv_search_nanosleep, if it's "none required".
125969 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125971         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125972         with like-named macro in fnmatch.c.
125973         (EXT): Use an internal constant instead.
125975         Merge fnmatch patches from glibc.
125976         * lib/fnmatch.c (mbsinit): Remove define.
125977         Add libc_hidden_ver (__fnmatch, fnmatch).
125978         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125979         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125981 2004-01-14  Karl Berry  <karl@gnu.org>
125983         * config/install-sh: update from automake.
125985 2004-01-13  Karl Berry  <karl@gnu.org>
125987         * config/install-sh: update from automake.
125989 2004-01-09  Karl Berry  <karl@gnu.org>
125991         * config/install-sh: update from automake.
125993 2004-01-05  Karl Berry  <karl@gnu.org>
125995         * config/config.{sub,guess}: update from config.
125997 2003-12-31  Karl Berry  <karl@gnu.org>
125999         * config/depcomp: update from automake.
126001 2003-12-14  Karl Berry  <karl@gnu.org>
126003         * lib/config.charset: update from gettext-runtime.
126005 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126007         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126008         Bug reported by Alfred M. Szmidt.
126010 2003-12-03  Bruno Haible  <bruno@clisp.org>
126012         * m4/gettext.m4: Upgrade from gettext-0.13.
126013         * m4/po.m4: Upgrade from gettext-0.13.
126014         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126015         * m4/intmax.m4: New file, from gettext-0.13.
126016         * m4/printf-posix.m4: New file, from gettext-0.13.
126018 2003-11-29  Karl Berry  <karl@gnu.org>
126020         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126022 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126023             Bruno Haible  <bruno@clisp.org>
126025         * lib/printf-parse.h: Don't include sys/types.h.
126026         (ARG_NONE): New macro.
126027         (char_directive): Change type of *arg_index fields to size_t.
126028         * lib/printf-parse.c: Don't include sys/types.h.
126029         (SSIZE_MAX): Remove macro.
126030         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126031         Remove unnecessary overflow check.
126032         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126033         fields.
126035 2003-11-25  Bruno Haible  <bruno@clisp.org>
126037         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126039 2003-11-25  Bruno Haible  <bruno@clisp.org>
126041         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126042         gt_TYPE_SSIZE_T.
126044 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126046         * modules/alloca: Remove dependency on xalloc.
126048 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126050         * lib/alloca.c: Remove dependency on xalloc module.
126051         (xalloc_die): Remove.
126052         (memory_full) [!defined emacs]: New macro.
126053         [!defined emacs]: Don't include xalloc.h.
126054         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126055         address arithmetic overflows.  Change datatypes a bit to avoid
126056         unnecessary casts.
126058 2003-11-22  Jim Meyering  <jim@meyering.net>
126060         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126061         s/size/size_t/.
126063 2003-11-21  Karl Berry  <karl@gnu.org>
126065         * config/config.{sub,guess}: update from config.
126067 2003-11-18  Karl Berry  <karl@gnu.org>
126069         * config/config.{sub,guess}: update from config.
126071         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126073 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126075         * README: Mention that S+T cannot overflow if S is the size of
126076         an existing object and T is sufficiently small.
126078 2003-11-17  Jim Meyering  <jim@meyering.net>
126080         On systems without utime and without a utimes function capable of
126081         dealing with a NULL struct utimbuf* argument, this utime replacement
126082         could -- in unusual circumstances -- leak a file descriptor.
126083         * lib/utime.c: Include <unistd.h> and <errno.h>.
126084         (utime_null): Be sure to close `fd' and to preserve errno.
126085         Reported by Geoff Collyer via Arnold Robbins.
126087 2003-11-17  Bruno Haible  <bruno@clisp.org>
126089         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126090         (Depends-on): Add xsize.
126092 2003-11-17  Bruno Haible  <bruno@clisp.org>
126094         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126096 2003-11-17  Bruno Haible  <bruno@clisp.org>
126098         * lib/vasnprintf.c (alloca): Remove fallback definition.
126099         (freea): Remove definition.
126100         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126101         Reported by Paul Eggert.
126103 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126104             Bruno Haible  <bruno@clisp.org>
126106         Protect against address arithmetic overflow.
126107         * lib/printf-args.h: Include stddef.h.
126108         (arguments): Change type of field 'count' to size_t.
126109         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126110         'unsigned int' where appropriate.
126111         * lib/printf-parse.h: Include sys/types.h.
126112         (char_directive): Change type of *arg_index fields to ssize_t.
126113         (char_directives): Change type of fields 'count', max_*_length to
126114         size_t.
126115         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126116         (SSIZE_MAX): Define fallback value.
126117         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126118         instead of 'int' where appropriate. Check a_allocated, d_allocated
126119         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126120         * lib/vasnprintf.c: Include xsize.h.
126121         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126122         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126123         overflow. Avoid wraparound when converting a width or precision from
126124         decimal to binary.
126126 2003-11-16  Bruno Haible  <bruno@clisp.org>
126128         Update from GNU gettext.
126129         * lib/printf-parse.c: Generalize to it can be compiled for wide
126130         strings.
126131         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126132         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126133         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126134         SNPRINTF): New macros.
126135         Don't include <alloca.h> if the file is used inside libintl.
126136         (local_wcslen): New function, for Solaris 2.5.1.
126137         (VASNPRINTF): Use it instead of wcslen.
126139 2003-11-16  Bruno Haible  <bruno@clisp.org>
126141         * lib/xsize.h (xmax): New function.
126142         (xsum, xsum3, xsum4): Declare as "pure" functions.
126144 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126146         * modules/xalloc (Files): Undo latest change, since xalloc.h
126147         no longer needs SIZE_MAX or PTRDIFF_MAX.
126149 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126151         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126152         gl_PTRDIFF_MAX.
126154 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126156         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126157         "return", to pacify some unknown compiler.  Problem reported
126158         by Joerg Schilling.
126160 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126162         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126163         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126164         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126165         heuristic is just as accurate as far as we know, and it removes a
126166         dependency on size_max.m4 and ptrdiff_max.m4.
126168 2003-11-11  Bruno Haible  <bruno@clisp.org>
126170         * modules/xsize (Files): Add m4/size_max.m4.
126171         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126173 2003-11-11  Bruno Haible  <bruno@clisp.org>
126175         * m4/size_max.m4: New file.
126176         * m4/ptrdiff_max.m4: New file.
126177         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126178         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126179         (gl_XALLOC): Invoke it.
126181 2003-11-11  Bruno Haible  <bruno@clisp.org>
126183         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126184         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126185         defined.
126187 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126189         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126190         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126191         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126192         From Bruno Haible.
126193         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126194         not (size_t) -1, since it's defined here.
126196 2003-11-09  Karl Berry  <karl@gnu.org>
126198         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126200 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126202         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126203         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126204         Reject sizes of exactly SIZE_MAX bytes.
126205         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126206         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126208 2003-11-05  Bruno Haible  <bruno@clisp.org>
126210         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126211         SIZE_MAX defined in <limits.h> on Solaris.
126213 2003-11-04  Jim Meyering  <jim@meyering.net>
126215         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126216         variable names, rather than @VAR@.
126217         * modules/poll: Likewise.
126219 2003-11-04  Bruno Haible  <bruno@clisp.org>
126221         * modules/xsize: New file.
126222         * modules/linebreak: Depend on xsize.
126223         * MODULES.html.sh (func_all_modules): Add xsize.
126225 2003-11-04  Bruno Haible  <bruno@clisp.org>
126227         * m4/xsize.m4: New file.
126229 2003-11-04  Bruno Haible  <bruno@clisp.org>
126231         * lib/xsize.h: New file.
126232         * lib/linebreak.c: Include xsize.h.
126233         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126234         argument for overflow.
126235         Suggested by Paul Eggert.
126237 2003-11-03  Karl Berry  <karl@gnu.org>
126239         * config/config.{guess,sub}: update from config.
126241 2003-11-03  Jim Meyering  <jim@meyering.net>
126243         * modules/userspec (lib_SOURCES): Add userspec.h.
126244         (Include): Add "userspec.h".
126245         Improve description.
126247 2003-11-03  Jim Meyering  <jim@meyering.net>
126249         * lib/userspec.c: Include "userspec.h".
126250         * lib/userspec.h: New file.
126252 2003-11-03  Bruno Haible  <bruno@clisp.org>
126254         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126256 2003-11-03  Bruno Haible  <bruno@clisp.org>
126258         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126259         available, to avoid (extremely rare) race condition.
126260         Suggested by Paul Eggert.
126262 2003-11-02  Karl Berry  <karl@gnu.org>
126264         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126266 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126268         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126269         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126270         (read_filesystem_list): Set and use me_type_malloced.
126271         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126272         whatever the type happens to be), for brevity and consistency.
126273         Check for size calculation overflow on Alphas running OSF/1.
126275 2003-10-31  Jim Meyering  <jim@meyering.net>
126277         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126279         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126281 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126282             Bruno Haible  <bruno@clisp.org>
126284         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126285         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126287 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126289         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126290         netbsd*-gnu*.  Suggested by Robert Millan.
126292 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126294         * modules/group-member: Depend on stdbool.
126296 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126298         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126300 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126302         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126303         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126304         after the 'gnu' in these cases.  This fixes some bugs in the
126305         previous change, and is based on suggestions by Robert Millan.
126307 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126309         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126310         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126311         no longer needed.
126312         * lib/quotearg.c (quotearg_n_options): Use it.
126313         * lib/group-member.c: Include <stdbool.h>.
126314         (free_group_info): Arg is now const *; don't free arg.
126315         (get_group_info): Now returns bool and accepts struct group_info *,
126316         rather than returning a malloc'ed struct group_info *.
126317         All uses changed.  Check for overflow in internal size calculation.
126319         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126320         rather than xmalloc/xrealloc.
126321         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126322         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126323         conformance bug: the old code used a pointer after freeing the
126324         storage that it addressed.
126325         * lib/hash.c (hash_initialize): Simplify the code by using
126326         xalloc_oversized rather than doing it by hand.
126327         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126328         the buffer preserved.  Use free and xmalloc instead.
126329         * lib/quotearg.c (quotearg_n_options): Likewise.
126330         Use a simpler test for size overflow.  Don't use xalloc_oversized
126331         because unsigned int might be wider than size_t (!); this suggests
126332         that we should switch from unsigned int to size_t for slot numbers.
126334 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126336         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126337         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126338         NetBSD kernels.  Requested by Richard Stallman.
126340 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126342         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126343         to allocate the returned structure.  Do not allocate a subarray,
126344         as x2nrealloc will do that.
126345         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126346         instead of xnrealloc.
126347         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126349 2003-10-27  Bruno Haible  <bruno@clisp.org>
126351         * lib/stdbool_.h: Better support for BeOS.
126353 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126355         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126356         now uses inline.
126358 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126360         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126361         callers that want to do their own size-overflow checking.  Include
126362         <stdbool.h>, since xalloc_oversized returns bool.
126363         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126364         to use xalloc_oversized.
126366         Add two functions x2realloc, x2nrealloc, for programs that grow
126367         arrays dynamically by doubling their sizes.
126368         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126369         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126370         New functions.
126372         Port to C99 semantics for 'inline' of external functions.
126373         Bug reported by Bruno Haible.
126374         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126375         with the old contents of xnmalloc.
126376         (xnmalloc, xmalloc): Use it.
126377         (xnrealloc_inline): New static inline function,
126378         with the old contents of xnrealloc.
126379         (xnrealloc, xrealloc): Use it.
126381         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126382         that.
126384 2003-10-26  Karl Berry  <karl@gnu.org>
126386         * config/srclist.txt (COPYING.DOC): no longer available from
126387         /gd/gnuorg; don't know where the ultimate source is.
126389 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126391         Fix several address-calculation bugs in the hash modules,
126392         plus some minor code cleanup.
126394         * lib/hash.h: Include <stdbool.h>, for bool.
126395         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126396         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126397         hash_get_n_entries, hash_get_max_bucket_length,
126398         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126399         hash_rehash): Use size_t rather than unsigned.
126400         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126401         hash_get_n_buckets_used, hash_get_n_entries,
126402         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126403         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126404         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126405         Likewise.
126406         (SIZE_MAX): Define if not defined.
126407         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126408         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126409         hash_print):
126410         Use const * when possible.
126411         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126412         (check_tuning): Fix bug: if tuning parameters were very close to
126413         0 or 1, rounding errors could have caused subscript violations.
126414         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126415         (hash_initialize): Add 'fail:' label
126416         to free table and return NULL, and use it to simplify code.
126417         Use calloc rather than clearing the storage ourself.
126418         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126419         buffer size calculations.
126420         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126421         Include <stddef.h>, for size_t.
126422         * lib/hash-pjw.c (hash_pjw): Likewise.
126423         Switch to method described by Bruno Haible.
126424         Include <limits.h>, for CHAR_BIT.
126425         (SIZE_BITS): New macro.
126427 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126429         * m4/getline.m4 (AM_FUNC_GETLINE):
126430         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126431         hosts.  Problem reported by Derek Robert Price in
126432         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126433         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126434         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126436 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126438         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126439         ceiling the allocation at NMAX bytes rather than silently
126440         discarding input bytes before NMAX is reached.  This makes
126441         a difference only if NMAX exceeds SIZE_MAX / 2.
126443         * lib/obstack.c: Merge from glibc.
126444         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126445         Add libc_hidden_def (_obstack_newchunk).
126446         (_obstack_free) [! defined _LIBC]: Remove.
126447         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126448         a clone of the function body.
126449         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126450         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126452         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126453         glibc.
126454         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126455         arg to memcpy.
126457         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126458         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126459         Don't use lvalue casts, as GCC plans to remove support for them
126460         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126461         was also present in the non-GCC version, indicating that this
126462         code had always been buggy and had never been widely used.
126463         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126464         Use the fast variant of each macro, rather than copying the
126465         definiens of the fast variant; that way, we'll be more likely to
126466         catch future bugs in the fast variants.
126468 2003-10-20  Bruno Haible  <bruno@clisp.org>
126470         * modules/wait-process: New file.
126471         * MODULES.html.sh (func_all_modules): Add wait-process.
126473 2003-10-20  Bruno Haible  <bruno@clisp.org>
126475         * m4/wait-process.m4: New file.
126477 2003-10-20  Bruno Haible  <bruno@clisp.org>
126479         * lib/wait-process.h: New file, from GNU gettext.
126480         * lib/wait-process.c: New file, from GNU gettext.
126482 2003-10-19  Jim Meyering  <jim@meyering.net>
126484         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126485         HPUX 10.20.
126487 2003-10-18  Karl Berry  <karl@gnu.org>
126489         * config/config.guess: update from config.
126491 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126493         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126494         (getgroups): First arg is int, not size_t.
126495         Don't let 'free' mangle errno.
126497 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126499         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126501 2003-10-16  Karl Berry  <karl@gnu.org>
126503         * config/config.{guess,sub}: update from config.
126505 2003-10-16  Jim Meyering  <jim@meyering.net>
126507         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126508         memcpy.
126510 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126512         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126513         (SIZE_MAX): Remove.
126514         (new_exclude, add_exclude_file): Initial size no longer needs to
126515         be a power of 2.
126516         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126517         our own address arithmetic overflow checking.
126519         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126520         (fnmatch): Do not alloca more than 2000 wide characters;
126521         instead, use malloc for large buffers.
126522         Check for address arithmetic overflow, and return -1
126523         with errno set to ENOMEM in that case.
126524         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126525         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126526         instead, return -1.  Check for address arithmetic overflow.
126528 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126530         Handle invalid suffixes and overflow independently, so that
126531         callers can treat them independently as needed.  Fix some bugs in
126532         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126533         suffix for a human-readable blocksize.  The major caller-visible
126534         change is the addition of a new
126535         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126536         that both overflow and suffix chars were found.
126538         * lib/human.c (humblock): Don't check separately for invalid suffix
126539         char; that is xstrtoumax's job (now that its bug is fixed).
126540         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126541         INTMAX_MAX]: New macros.
126542         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126543         TYPE_MAXIMUM): New macros.
126544         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126545         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126546         if overflow occurs, as it's what __strtol does and it's more useful
126547         in practice.
126548         (__xstrtol): If __strtol reports some error other than ERANGE,
126549         reflect it to the caller as LONGINT_INVALID.  If it reports
126550         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126551         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126552         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126553         value.
126554         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126555         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126556         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126557         [defined UINTMAX_MAX]: New macros.
126559 2003-10-14  Bruno Haible  <bruno@clisp.org>
126561         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126563 2003-10-14  Bruno Haible  <bruno@clisp.org>
126565         * m4/sig_atomic_t: New file, from GNU gettext.
126566         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126568 2003-10-14  Bruno Haible  <bruno@clisp.org>
126570         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126571         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126572         Also use volatile where needed.
126574 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126576         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126577         Change maintainer from Bruno Haible to 'all'.
126579 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126581         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126583 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126585         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126586         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126587         and define in terms of the other primitives.
126588         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126589         (SIZE_MAX): Define if not already defined.
126590         (array_size_overflow): New function.
126591         (xalloc_die): Abort instead of exiting if 'error' returns.
126592         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126593         (xmalloc, xrealloc): Use them.
126594         (xcalloc): Check for address arithmetic overflow.
126595         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126596         a bit faster than strcpy.
126598 2003-10-10  Simon Josefsson  <jas@extundo.com>
126600         * modules/argp (Depends-on): Add restrict and strcase.
126602 2003-10-10  Simon Josefsson  <jas@extundo.com>
126604         * m4/argp.m4: Add AC_C_INLINE.
126606 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126608         Merge getpass from libc, plus a few fixes.
126610         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126611         Include <stdbool.h>.
126612         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126613         __fsetlocking to empty.
126614         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126615         do include <bits/libc-lock.h>.
126616         Do not include <fcntl.h>; not needed.
126617         [_LIBC]: Include <wchar.h>.
126618         (NOTCANCEL_MODE): New macro.
126619         (flockfile, funlockfile) [_LIBC]: New macros.
126620         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126621         [!_LIBC]: New macros.
126622         (call_fclose): New function.
126623         (getpass): Use it.  Save tty stream separately; this simplifies the
126624         code and makes it more reliable if stdin happens to equal stdout.
126625         Invoke __fsetlocking on tty.
126626         Handle thread cancellation if needed.
126627         Namespace cleanup (use __tcgetattr, __getline).
126628         Use bool for Booleans.
126629         [USE_IN_LIBIO]: Handle wide streams.
126630         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126631         stream might go where.
126633         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126634         doesn't have to include <stdio.h> before us.
126635         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126636         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126637         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126638         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126639         if not declared, so that we can use getpass.c code from libc without
126640         rewriting it.
126641         (flockfile, ftrylockfile, funlockfile): New macros.
126643 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126645         * modules/getpass: Depend on stdbool.
126647 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126649         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126651 2003-10-07  Karl Berry  <karl@gnu.org>
126653         * config/config.{guess,sub}: update from config.
126655 2003-10-06  Jim Meyering  <jim@meyering.net>
126656             Bruno Haible  <bruno@clisp.org>
126658         This lets translators provide better translations for the
126659         "Written by ..." part of --version output.
126660         * lib/version-etc.h: Include stdarg.h.
126661         (version_etc_copyright): Declare as readonly.
126662         (version_etc): Make this function variadic with a NULL-terminated list
126663         of author name strings.
126664         (version_etc_va): New declaration.
126665         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126666         (version_etc_copyright): Declare as readonly.
126667         (version_etc_va): New function. Provide a different translatable string
126668         for each possible number of authors < 10. Abbreviate when there are 10
126669         authors or more.
126670         (version_etc): Make this function variadic. Call version_etc_va.
126671         Suggestion from Gary V. Vaughan.
126673         * lib/long-options.h (parse_long_options): Change prototype: the
126674         authors string is moved to the end and becomes variadic.
126675         * lib/long-options.c: Include stdarg.h.
126676         (parse_long_options): Make this function variadic, too.
126677         Call version_etc_va, not version_etc.
126679 2003-10-06  Bruno Haible  <bruno@clisp.org>
126681         * modules/version-etc-2: Remove file.
126682         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126684 2003-10-06  Bruno Haible  <bruno@clisp.org>
126686         * modules/fatal-signal: New file.
126687         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126689 2003-10-06  Bruno Haible  <bruno@clisp.org>
126691         * m4/fatal-signal.m4: New file.
126692         * m4/signalblocking.m4: New file, from GNU gettext.
126694 2003-10-06  Bruno Haible  <bruno@clisp.org>
126696         * lib/version-etc-2.h: Remove file.
126697         * lib/version-etc-2.c: Remove file.
126699 2003-10-06  Bruno Haible  <bruno@clisp.org>
126701         * lib/fatal-signal.h: New file, from GNU gettext.
126702         * lib/fatal-signal.c: New file, from GNU gettext.
126704 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126706         * README: Rework advice for preventing empty .o files.
126707         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126708         not <sys/types.h>.
126710 2003-10-04  Karl Berry  <karl@gnu.org>
126712         * lib/argp*: update from libc.
126714 2003-10-04  Karl Berry  <karl@gnu.org>
126716         * config/config.{guess,sub}: update from config.
126718 2003-10-02  Bruno Haible  <bruno@clisp.org>
126720         * modules/lchown (Include): Add lchown.h.
126721         * modules/time_r (Include): Use "..." syntax.
126722         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126724 2003-10-01  Simon Josefsson  <jas@extundo.com>
126726         * MODULES.html.sh (func_all_modules): Move gethostname from section
126727         'based on' to section 'lacking' POSIX:2001.
126729 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126731         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126732         to output mode on the same stream.
126734 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126736         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126737         Fix arg typo in previous patch.
126739 2003-09-28  Jim Meyering  <jim@meyering.net>
126741         * lib/error.c: Correct cpp indentation.
126743 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126745         * modules/free: New file.
126747 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126749         * m4/free.m4: New file.
126751 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126753         * lib/minmax.h (MIN, MAX)
126754         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126755         Omit the special code that used __typeof__, since we worry that
126756         it could be more trouble than it's worth.  See:
126757         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126758         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126760         * lib/free.c: New file.
126762 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126764         Trivial fixes to Makefile.am parts of module listings.
126765         * modules/strstr: Append strstr.h to lib_SOURCES.
126766         * modules/strcase: Likewise, for strcase.h.
126768 2003-09-27  Karl Berry  <karl@gnu.org>
126770         * config/mkinstalldirs: update from automake.
126772 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126774         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126775         (error_tail): Do not loop, reallocating temporary buffer, since
126776         the output cannot contain more wide characters than the input
126777         contains bytes, the size must be big enough already.  This avoids
126778         one potential size overflow calculation.  Check for size overflow
126779         when calculating temporary buffer size.  Free temporary buffer
126780         when done, if it was allocated with malloc; this plugs a memory
126781         leak.  Remove casts from void * to pointers, that are no longer
126782         needed now that we're assuming C89 or better.
126784         Merge error changes from glibc.
126786         * lib/error.c, error.h: Update copyright notice header to match glibc.
126787         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126788         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126789         Disable cancellation while printing error.
126790         * lib/error.h: Prepend __ to parameter names.
126792 2003-09-26  Jim Meyering  <jim@meyering.net>
126794         * lib/error.c (error_tail): Move some declarations
126795         into inner scope where the local variables are used.
126797 2003-09-26  Bruno Haible  <bruno@clisp.org>
126799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126800         stpncpy().
126801         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126803 2003-09-26  Bruno Haible  <bruno@clisp.org>
126805         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126806         (stpncpy): Define as alias for gnu_stpncpy.
126807         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126809 2003-09-25  Simon Josefsson  <jas@extundo.com>
126811         * lib/xgetdomainname.h: New file.
126812         * lib/xgetdomainname.c: New file.
126814 2003-09-25  Simon Josefsson  <jas@extundo.com>
126815             Bruno Haible  <bruno@clisp.org>
126817         * modules/getdomainname: New file.
126818         * modules/xgetdomainname: New file.
126819         * MODULES.html.sh (func_all_modules): Add getdomainname,
126820         xgetdomainname.
126822 2003-09-25  Simon Josefsson  <jas@extundo.com>
126823             Bruno Haible  <bruno@clisp.org>
126825         * m4/getdomainname.m4: New file.
126827 2003-09-25  Simon Josefsson  <jas@extundo.com>
126828             Bruno Haible  <bruno@clisp.org>
126830         * lib/getdomainname.h: New file.
126831         * lib/getdomainname.c: New file.
126833 2003-09-25  Karl Berry  <karl@gnu.org>
126835         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126837 2003-09-25  Karl Berry  <karl@gnu.org>
126839         * config/install-sh: update from automake.
126841 2003-09-25  Bruno Haible  <bruno@clisp.org>
126843         * modules/version-etc-2: New file, from modules/version-etc with
126844         modifications.
126845         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126847 2003-09-25  Bruno Haible  <bruno@clisp.org>
126849         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126850         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126852 2003-09-24  Simon Josefsson  <jas@extundo.com>
126854         * modules/xgethostname: Add xgethostname.h.
126856 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126858         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126859         the buffer associated with the argument.  Bug reported by
126860         Simon Josefsson.
126862 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126864         * README: Document assumptions that 'int' is at least 32 bits
126865         wide, that integer arithmetic is 2's complement without overflow,
126866         that there are no holes in integer values, that adding sizes of
126867         two nonoverlapping objects can't overflow, and that all-bits-zero
126868         yields scalar zero.  Fix spelling and capitalization typos.
126870 2003-09-19  Karl Berry  <karl@gnu.org>
126872         * lib/argp.h: update from libc.
126874 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126876         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126877         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126878         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126880 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126882         * gnulib-tool: Use "test -h", not "test -L", for portability
126883         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126884         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126885         (sed_extract_prog): Issue s commands one-by-one, rather than
126886         using \| in one s command.
126888 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126890         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126891         input error, instead of returning NULL the next time we are called
126892         (and therefore losing track of errno).
126894 2003-09-16  Bruno Haible  <bruno@clisp.org>
126896         * gnulib-tool (func_create_testdir): Warn about duplicated
126897         dependencies.
126899 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126901         * modules/argmatch, modules/fatal, modules/obstack,
126902         modules/xalloc, modules/xgethostname: Sort dependencies by
126903         importance, not alphabetically.
126905 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126907         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126908         fails, so that the caller gets the proper errno.
126910         * lib/readutmp.c (read_utmp): Likewise.
126911         Check for fstat error.  Close stream and free storage
126912         when failing.
126914 2003-09-14  Karl Berry  <karl@gnu.org>
126916         * config/srclist.txt (strdup.c): disable for c89 changes.
126918 2003-09-14  Jim Meyering  <jim@meyering.net>
126920         * lib/getloadavg.c: Correct cpp indentation.
126921         * lib/strdup.c: Likewise.
126922         * lib/vasnprintf.c: Likewise.
126924 2003-09-14  Bruno Haible  <bruno@clisp.org>
126926         * modules/fwriteerror: New file.
126927         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126929 2003-09-14  Bruno Haible  <bruno@clisp.org>
126931         * lib/fwriteerror.h: New file.
126932         * lib/fwriteerror.c: New file.
126934 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126936         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126937         modules/xgethostname, modules/xalloc: Depend on exit.
126939 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126941         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126944         and AC_MINIX, too, so that their extensions are available.
126946         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126947         This macro has been superseded by gl_BACKUPFILE.
126949         More patches to assume C89 or better.
126951         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126953         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126954         unconditionally.
126955         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126956         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126957         Include <string.h>, <stdlib.h> unconditionally.
126958         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126959         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126960         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126961         headers or for string.h.
126962         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126963         or strtoul.
126965         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126966         headers.
126967         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126968         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126969         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126970         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126972         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126973         memcpy, memset.
126974         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126975         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126976         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126977         strtol.
126978         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126979         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126980         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126981         strtoul.
126983 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126985         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126986         * lib/obstack.c [!defined _LIBC]: Likewise.
126987         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126988         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126989         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126991         More changes to assume C89 or better.
126993         * lib/error.c (error_tail): Assume vprintf.
126995         * lib/argmatch.c (getenv): Remove decl.
126996         * lib/progreloc.c (get_full_program_name): Define via prototype.
126997         * lib/setenv.c (clearenv): Likewise.
126998         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126999         needed.
127000         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127001         (malloc, memcpy): Remove decls.
127002         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127003         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127004         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127005         (memcpy): Remove macro.
127006         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127007         (__P): Remove.  All uses removed.
127008         (PTR): Remove.  All uses changed to void *.
127009         (CHAR_BIT, NULL): Remove.
127010         (spaces, zeros, memset_space, memset_zero)
127011         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127012         Remove.
127013         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127014         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127015         Define with prototype.
127016         Remove now-unnecessary prototype decl.
127017         (extra_args_spec): Assume ANSI C.  All uses changed.
127018         (extra_args_spec_iso): Remove.
127019         (my_strftime, emacs_strftimeu): Define via prototype.
127020         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127021         unconditionally.
127022         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127023         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127024         (strtoul, strtol): Remove decls.
127025         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127026         LONG_MAX): Remove.
127027         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127028         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127029         (LOCALE_PARAM_PROTO): New macro.
127030         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127031         (INTERNAL (strtol), strtol): Define with a prototype.
127032         (PARAMS): Remove.  All uses removed.
127033         * lib/tempname.c: Include <string.h> unconditionally.
127034         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127035         * lib/xgethostname.c (main): Define with a prototype.
127036         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127037         Include <stdlib.h> unconditionally.
127038         (calloc, malloc, realloc, free): Remove decls.
127039         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127040         Include <stdlib.h> unconditionally.  Sort include file names.
127041         (strtod): Remove.
127042         (xstrtod): Define with a prototype.
127043         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127044         (strtol, strtoul): Remove decls.
127046 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127048         More patches to assume C89 or better.
127049         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127050         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127051         string.h, memchr, STDC_HEADERS.
127053 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127055         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127056         Include <stdlib.h>, <string.h> unconditionally.
127057         Remove now-unnecessary cast to char *.
127058         * lib/strnlen.c: Include <string.h> unconditionally.
127059         * lib/yesno.c (yesno): Define with a prototype.
127061 2003-09-11  Bruno Haible  <bruno@clisp.org>
127063         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127065 2003-09-10  Jim Meyering  <jim@meyering.net>
127067         * lib/error.c: Correct indentation of cpp directives.
127069 2003-09-10  Bruno Haible  <bruno@clisp.org>
127071         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127072         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127073         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127074         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127075         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127076         <stdlib.h> and <string.h> checks.
127077         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127078         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127080 2003-09-10  Bruno Haible  <bruno@clisp.org>
127082         * lib/strcspn.c: Include <string.h> unconditionally.
127083         * lib/strpbrk.c: Include <string.h> unconditionally.
127084         * lib/strstr.c: Include <string.h> unconditionally.
127085         * lib/unicodeio.c: Include <string.h> unconditionally.
127086         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127087         * lib/unsetenv.c: Likewise.
127088         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127089         * lib/yesno.c: Include <stdlib.h> unconditionally.
127090         (rpmatch): Add prototype.
127092 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127094         More patches to assume C89 or better.
127095         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127096         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127097         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127098         or for string.h.
127099         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127100         stdlib.h.
127101         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127102         C headers.
127103         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127104         string.h.
127105         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127106         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127107         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127108         or for string.h.
127109         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127110         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127111         C headers.
127112         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127113         memcpy.
127114         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127115         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127116         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127117         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127118         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127119         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127120         string.h, free.
127121         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127122         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127123         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127124         C headers, or for string.h.
127125         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127126         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127127         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127128         headers, memory.h, stdlib.h, string.h, strings.h.
127129         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127130         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127131         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127132         strchr.
127133         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127134         headers, memory.h, string.h.
127135         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127136         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127137         free.
127138         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127139         headers.
127140         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127141         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127142         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127143         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127144         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127146 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127148         More K&R removal.
127150         * lib/acosl.c (main): Use a prototype.
127151         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127152         tanl.c: Likewise.
127154         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127156         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127157         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127158         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127159         with a prototype.
127160         * lib/getopt.c (const): Remove macro.
127161         Include <string.h> unconditionally.
127162         (my_index): Remove; all uses changed to strchr.
127163         (strlen): Remove decl.
127164         (exchange): Remove forward decl; no longer needed.
127165         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127166         Define with prototype.
127167         * lib/getopt1.c (const): Remove macro.
127168         (getopt_long, getopt_long_only, main): Define with prototype.
127170         * lib/getugroups.c: Include <string.h> unconditionally.
127172         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127173         (getusershell, setusershell, endusershell, readname, main):
127174         Define with prototypes.
127176         * lib/group-member.c: Include group-member.h first.
127177         Include <stdlib.h> unconditionally.
127179         * lib/hard-locale.c: Include hard-locale.h first.
127180         Include <stdlib.h>, <string.h> unconditionally.
127182         * lib/hash.c (free, malloc): Remove decls.
127183         Include <stdlib.h> unconditionally.
127185         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127186         (getenv): Do not declare.
127188         * lib/idcache.c: Include <string.h> unconditionally.
127190         * lib/long-options.c: Include long-options.h first, to test interface.
127191         Include <stdlib.h> unconditionally.
127193         * lib/makepath.c: Include makepath.h first, to test interface.
127194         Include <stdlib.h> and <string.h> unconditionally.
127196         * lib/linebuffer.c: Include <stdlib.h>.
127197         (free): Remove decl.
127199         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127200         stddef.h. rpl_malloc returns void *, not char *.
127201         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127202         prototype.
127204         * lib/md5.h: Include <limits.h> unconditionally.
127205         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127206         (__P): Remove; all uses removed.
127207         * lib/md5.c: Include "md5.h" first.
127208         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127209         md5_buffer, md5_process_bytes, md5_process_block):
127210         Define with prototypes.
127211         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127212         * lib/sha.c: Include "sha.h" first.
127213         Include <stdlib.h>, <string.h> unconditionally.
127215         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127216         * lib/memcmp.c (__ptr_t): Likewise.
127217         * lib/memrchr.c (__ptr_t): Likewise.
127218         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127219         Include <string.h> unconditionally.
127220         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127221         * lib/memchr.c: Include <stdlib.h> unconditionally.
127222         * lib/memchr.c (LONG_MAX): Remove.
127223         * lib/memrchr.c (LONG_MAX): Likewise.
127224         * lib/memchr.c (__memchr): Define via a prototype.
127225         * lib/memrchr.c (__memrchr): Likewise.
127226         * lib/memcmp.c (__P): Remove, and remove all uses.
127227         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127228         Remove forward decls; no longer needed.
127229         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127230         Use types required by C89 in prototype.
127232         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127233         * lib/savedir.c: Likewise.
127234         * lib/mkdir.c (free): Remove decl.
127235         * lib/rmdir.c (rmdir): Define with a prototype.
127236         * lib/savedir.c: Include savedir.h first, to test interface.
127238         * lib/mktime.c (STDC_HEADERS): Remove.
127239         Include <stdlib.h>, <string.h> unconditionally.
127241         * lib/modechange.c: Include <stdlib.h> unconditionally.
127242         (malloc): Remove decl.
127244         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127245         (free): Remove decl.
127247         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127248         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127249         (This type really should be intptr_t, but that's a C99ism.)
127250         (_obstack_memcpy): Remove: all uses changed to memcpy.
127251         Include <string.h> unconditionally.
127252         (struct obstack): Assume __STDC__ for types of members
127253         chunkfun, freefun, extra_arg.
127254         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127255         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127256         obstack_begin, obstack_specify_allocation,
127257         obstack_specify_allocation_with_arg, obstack_chunkfun,
127258         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127259         Remove unprototyped decls and the macros that use them.
127260         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127261         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127262         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127263         (defined __STDC__ && __STDC__)]:
127264         Remove nonprototyped code.
127265         Include <stdlib.h> unconditionally.
127266         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127267         _obstack_allocated_p, _obstack_free, obstack_free,
127268         _obstack_memory_used, print_and_abort):
127269         Define using prototypes.
127270         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127271         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127272         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127273         obstack_next_free, obstack_object_size, obstack_room) [0]:
127274         Remove unused, unprototyped code.
127276         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127278         * lib/physmem.c (physmem_total, physmem_available, main): Define
127279         with prototypes.
127281         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127282         (main): Define with a prototype.
127284         * lib/posixver.c (getenv): Remove decl.
127286         * lib/putenv.c (malloc): Returns void *, not char *.
127287         Include <string.h> unconditionally.
127288         (strchr, memcpy, NULL): Do not define.
127290         * lib/readtokens.c: Include readtokens.h first, to test interface.
127291         Include <stdlib.h>, <string.h> unconditionally.
127292         (init_tokenbuffer): Define with a prototype.
127294         * lib/regex.c (PARAMS): Remove.  All uses removed.
127295         All uses of _RE_ARGS removed, too.
127296         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127297         unconditionally.
127298         (bzero): Assume memset exists.
127299         (memcmp, memcpy, NULL): Remove.
127300         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127301         char, or assignments to local vars of type signed char.
127302         (init_syntax_once, PREFIX(extract_number_and_incr),
127303         PREFIX(print_partial_compiled_pattern),
127304         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127305         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127306         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127307         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127308         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127309         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127310         wcs_compile_range, byte_compile_range, truncate_wchar,
127311         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127312         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127313         count_mbs_length, wcs_re_match_2_internal,
127314         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127315         PREFIX(alt_match_null_string_p),
127316         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127317         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127318         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127319         now-unnecessary declaration, if any.
127320         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127321         regcomp, regexec):
127322         Remove now-unnecessary casts among pointer types.
127323         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127325         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127326         (free): Remove decl.
127328         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127330         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127331         (free): Remove decl.
127333         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127334         * lib/xgetcwd.c: Likewise.
127336         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127337         (free): Remove decl.
127339         * lib/strchrnul.c (strchrnul): Define with a prototype.
127340         Fix bug: c_in was not converted to char before searching.
127342         The following changes are not K&R related:
127344         * lib/group-member.h: Include <sys/types.h>, so that this file is
127345         self-contained.
127346         * lib/makepath.h: Likewise.
127348         * lib/getusershell.c (readname, default_index, line_size, readname):
127349         Use size_t, not int, for sizes.
127350         (readname): If the size overflows, report an error instead of
127351         looping forever.
127353 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127355         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127356         libc.
127358 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127360         * README: New section: portability guidelines.
127362 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127364         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127365         C89 spec.
127367 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127369         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127371 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127373         Assume C89 or better; remove K&R cruft.
127374         A few of these changes were first proposed by Derek Robert Price
127375         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127377         * lib/addext.c: Include <string.h> unconditionally.
127378         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127379         Don't declare getenv or malloc.
127381         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127382         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127383         (NULL): Remove.
127384         (find_stack_direction, alloca): Use prototypes.
127386         * lib/atexit.c (atexit): Define using a prototype.
127388         * lib/basename.c, dirname.c, stripslash.c:
127389         Include <string.h> unconditionally.
127391         * lib/bcopy.c: Include <stddef.h>.
127392         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127394         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127396         * lib/error.h (error, error_at_line, error_print_progname)
127397         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127398         * lib/error.c: Include error.h first, to check interface.
127399         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127400         (VA_START): Remove; all uses changeed to va_start.
127401         (exit, strerror): Remove decls.
127402         (error_print_progname): Prototype uncondionally.
127403         Don't include <errno.h>; no longer needed.
127404         (private_strerror): Remove.
127405         (error_tail): Always define.
127406         (error, error_at_line): Assume C89 or better; always use prototypes.
127407         * lib/fatal.c: Include "fatal.h" first, to test interface.
127408         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127409         (VA_START): Remove; all uses changed to va_start.
127410         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127411         this case.
127412         (exit): Remove decl.
127413         (fatal): Prototype unconditionally.  Assume va_start works.
127414         Abort at end, to pacify gcc.
127416         * lib/euidaccess.c (main): Define with a prototype.
127418         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127420         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127422         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127423         prototypes.
127424         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127425         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127426         (getenv): Remove decl.
127427         (fnmatch): Define using a prototype.
127428         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127429         (FCT): Define using a prototype.
127431         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127433         * lib/gethostname.c: Include <stddef.h>.
127434         (gethostname): Define with prototype.  Length is size_t, not int.
127436 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127438         Assume C89 or better; remove K&R cruft.
127439         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127440         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127441         string.h, getenv, malloc.
127442         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127443         headers.
127444         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127445         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127446         do not check for strerror.
127447         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127448         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127449         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127450         do not check for doprnt or vprintf.
127451         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127452         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127454 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127456         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127457         getversion.c should have been removed then, but was accidentally
127458         preserved.
127460         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127461         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127463 2003-09-08  Karl Berry  <karl@gnu.org>
127465         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127466                 config, forget about prep.
127468         * config/depcomp, missing: update from automake.
127470 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127472         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127473         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127475 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127477         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127478         copy_tm_result.  Bug reported by Simon Josefsson in
127479         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127481 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127483         * m4/time_r.m4: New file.
127484         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127485         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127486         is. Check for timegm declaration.
127487         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127488         Do not check for gmtime_r.
127489         Replace mktime if __mktime_internal does not exist and if mktime
127490         hasn't been replaced already.
127492 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127494         * lib/time_r.c, lib/time_r.h: New files.
127496         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127497         __localtime_r.
127498         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127499         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127501         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127502         __gmtime_r.
127503         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127504         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127505         Include <time_r.h>.
127507         * lib/timegm.c: Switch to glibc implementation, with the following
127508         changes:
127509         [defined HAVE_CONFIG_H]: Include <config.h>.
127510         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127511         (__mktime_internal) [!defined _LIBC]: New decl.
127512         (__gmtime_r) [!defined _LIBC]: New macro and function.
127513         (timegm): Use a prototype, since gnulib assumes C89.
127514         Do not bother declaring tmp to be const, as it's not really usefu.
127515         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127516         (timegm): Declare only if HAVE_DECL_TIMEGM.
127518 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127520         * MODULES.html.sh (func_all_modules): Add time_r.
127521         * modules/time_r: New file.
127522         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127523         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127525 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127527         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127528         Bug reported by Lute Kamstra in
127529         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127531         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127532         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127533         course with correspondingly smaller numbers for tomorrow and
127534         yesterday.  From Tadayoshi Funaba.  Originally installed into
127535         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127536         coreutils merge?).
127538 2003-08-31  Simon Josefsson  <jas@extundo.com>
127540         * modules/timegm: New file.
127541         * MODULES.html.sh (func_all_modules): Add timegm.
127543 2003-08-31  Simon Josefsson  <jas@extundo.com>
127545         * m4/timegm.m4: New file.
127547 2003-08-31  Simon Josefsson  <jas@extundo.com>
127549         * lib/timegm.h: New file.
127550         * lib/timegm.c: New file.  Based on
127551         wget-1.8.2/src/http.c:mktime_from_utc.
127553 2003-08-31  Karl Berry  <karl@gnu.org>
127555         * lib/argp.h: update from libc.
127557 2003-08-28  Bruno Haible  <bruno@clisp.org>
127559         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127560         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127561         followed by '#define fnmatch fnmatch_posix' gives an error.
127563 2003-08-28  Bruno Haible  <bruno@clisp.org>
127565         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127566         warning on QNX, which defines O_BINARY to 000000.
127568 2003-08-27  Jim Meyering  <jim@meyering.net>
127570         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127571         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127572         would fail after 32.  Reported by Danny Levinson.  Details here:
127573         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127575 2003-08-24  Bruno Haible  <bruno@clisp.org>
127577         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127578         MSVC7 <stdio.h> is included later.
127580 2003-08-22  Simon Josefsson  <jas@extundo.com>
127582         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127584 2003-08-20  Karl Berry  <karl@gnu.org>
127586         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127588 2003-08-20  Bruno Haible  <bruno@clisp.org>
127590         * modules/progname: New file.
127591         * MODULES.html.sh (func_all_modules): Add progname.
127593 2003-08-20  Bruno Haible  <bruno@clisp.org>
127595         * lib/progname.h: New file, from GNU gettext.
127596         * lib/progname.c: New file, from GNU gettext.
127597         * lib/progreloc.c: New file, from GNU gettext.
127599 2003-08-19  Jim Meyering  <jim@meyering.net>
127601         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127602         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127604 2003-08-19  Bruno Haible  <bruno@clisp.org>
127606         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127607         more.
127609 2003-08-19  Bruno Haible  <bruno@clisp.org>
127611         * lib/xstrdup.c: Assume <string.h> exists.
127613 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127615         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127616         in makefile rules.
127618 2003-08-18  Jim Meyering  <jim@meyering.net>
127620         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127621         * m4/lib-ld.m4: Likewise.
127623 2003-08-18  Jim Meyering  <jim@meyering.net>
127625         * lib/setenv.h: Indent nested cpp directive.
127626         * lib/vasnprintf.c: Remove trailing blanks.
127628 2003-08-17  Simon Josefsson  <jas@extundo.com>
127630         * modules/xstrndup: New file.
127631         * MODULES.html.sh (func_all_modules): Add xstrndup.
127633 2003-08-17  Simon Josefsson  <jas@extundo.com>
127635         * modules/argp: Fix autoconf macro name. Add more dependencies.
127637 2003-08-17  Simon Josefsson  <jas@extundo.com>
127639         * m4/xstrndup.m4: New file.
127641 2003-08-17  Simon Josefsson  <jas@extundo.com>
127643         * m4/argp.m4: New file.
127645 2003-08-17  Simon Josefsson  <jas@extundo.com>
127646             Bruno Haible  <bruno@clisp.org>
127648         * lib/xstrndup.h: New file.
127649         * lib/xstrndup.c: New file.
127651 2003-08-17  Bruno Haible  <bruno@clisp.org>
127653         * modules/strndup (Files, Include): Add lib/strndup.h.
127655 2003-08-17  Bruno Haible  <bruno@clisp.org>
127657         * modules/euidaccess (Files): Add lib/euidaccess.h.
127659 2003-08-17  Bruno Haible  <bruno@clisp.org>
127661         * lib/strndup.h: New file.
127663 2003-08-17  Bruno Haible  <bruno@clisp.org>
127665         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127666         like AC_GNU_SOURCE.
127667         * modules/extensions (configure.ac): Comment out the invocation of
127668         gl_USE_SYSTEM_EXTENSIONS.
127670 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127672         Merges from coreutils, etc.
127673         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127674         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127675         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127676         fixing a typo.
127677         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127678         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127680 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127682         Document merge from coreutils.
127683         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127684         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127685         * modules/utime: Add m4/utimes-null.m4.
127687 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127689         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127690         space, undoing this 2003-08-12 change:
127691         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127693 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127695         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127696         strtoul.c from libc, undoing this 2003-08-12 change:
127697         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127699 2003-08-16  Jim Meyering  <jim@meyering.net>
127701         Merges from coreutils.
127702         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127703         prefix.  Adjust cache variables similarly.  Create 500 rather than
127704         just 300 files, to exercise bug on Darwin6.5, too.
127705         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127706         $missing_dir.
127707         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127708         AM_SYS_POSIX_TERMIOS.
127709         Reported by mkc@mathdogs.com.
127710         Also change use of $am_cv_sys_posix_termios
127711         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127712         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127713         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127714         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127715         in /proc/mounts until it finds one with matching device number.  This
127716         is unnecessary when the FILE argument *is* a mount point.  No stat call
127717         is necessary in that case.  So, disable the statvfs-testing code on
127718         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127719         as RedHat bug# 84846.
127720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127721         to 1MB, so as not to render systems with no stack size limit (e.g.,
127722         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127723         Include <unistd.h>.  On some systems,
127724         it is required for the definition of _SC_PAGESIZE.
127726 2003-08-16  Jim Meyering  <jim@meyering.net>
127728         Merge from coreutils.
127729         * lib/xstrtoimax.c: #else #if -> #elif.
127730         * lib/xstrtoumax.c: Likewise.
127732 2003-08-16  Jim Meyering  <jim@meyering.net>
127734         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127735         * m4/utimes.m4: Removed.
127736         * m4/utimes-null.m4: Renamed from utimes.m4.
127738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127739         to 1MB, so as not to render systems with no stack size limit (e.g.,
127740         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127741         Include <unistd.h>.  On some systems,
127742         it is required for the definition of _SC_PAGESIZE.
127744 2003-08-16  Jim Meyering  <jim@meyering.net>
127745         and Paul Eggert  <eggert@cs.ucla.edu>
127747         Merges from coreutils, etc.
127749         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127750         using the latest version from cvs.  This avoids problems with #line
127751         directives using a vendor (Sun) compiler.
127752         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127753         Don't set GETGROUPS_LIB here; now it's
127754         done via getgroups.m4's wrapper function.
127755         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127756         rather than just in sh-util/configure.in, so that the
127757         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127758         same.
127759         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127760         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127761         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127762         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127763         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127764         Remove code that is now done by the newly-required macros.
127765         Append $(EXEEXT) to DF_PROG.
127766         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127767         Do not invoke or require the following here,
127768         since prereq.m4 or some gnulib .m4 now does this for us:
127769         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127770         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127771         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127772         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127773         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127774         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127775         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127776         AC_FUNC_OBSTACK.
127777         Do not replace the following functions, as this is now the job
127778         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127779         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127780         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127781         atexit getpass, strdup, getpagesize.
127782         Replace 'raise'.
127783         Do not check for the following functions, as this is now the job
127784         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127785         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127786         setregid.
127787         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127788         Check for sys/sysctl.h.
127789         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127790         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127791         of checking for ssize_t ourselves.
127793         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127794         Require every macro that gnulib/modules/* suggests for us.
127795         (jm_PREREQ_ADDEXT): New macro.
127796         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127797         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127799         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127800         (gl_PHYSMEM): Use it.
127801         Also check for `table' function.
127802         Check for new headers and functions.
127803         Add check for sys/sysmp.h.
127804         With suggestions from Kaveh Ghazi.
127805         Ignore headers that are present but cannot be compiled.  This
127806         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127807         C 5.4.
127809 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127811         Document merge from coreutils.
127812         * modules/userspec: Depend on posixver.
127813         * modules/strftime: Depend on tzset.
127815 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127817         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127818         rather than tab, after '#' in shell-script copyright notices.
127819         Suggested by Bruno Haible.
127821 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127823         * config/srclist-update: Use three spaces, rather than tab, after '#'
127824         in shell-script copyright notices.  Suggested by Bruno Haible.
127825         Remove unnecessary parenthesization in regular expression.
127827 2003-08-15  Jim Meyering  <jim@meyering.net>
127829         Merge from coreutils.
127830         * lib/xgethostname.c: Include <stdlib.h>.
127831         (xghostname): Don't exit for anything other than memory-related
127832         failure; just return NULL.
127833         * lib/userspec.c: Include "posixver.h".
127834         (parse_user_spec): Accept `.' as a separator only
127835         in pre-POSIX-200112 mode.
127836         * lib/strtoimax.c: Use #elif rather than #else #if.
127837         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127838         Remove function, now that we can rely on a working tzset function.
127839         [!_LIBC]: Ensure that the required autoconf test has been run.
127840         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127841         Use underlying_strftime for %r.
127842         * lib/sha.c: Merge in some clean-up and optimization changes from
127843         glibc.
127844         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127845         Ensure that it is a multiple of 64.
127846         Rearrange loop exit tests so as to avoid performing an
127847         additional fread after encountering an error or EOF.
127848         * lib/realloc.c: Update copyright date.
127850 2003-08-15  Jim Meyering  <jim@meyering.net>
127851         and Paul Eggert  <eggert@twinsun.com>
127853         Merge from coreutils.
127854         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127855         member but strut utmpx does not.  Needed for AIX 4.3.3.
127856         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127858 2003-08-15  Jim Meyering  <jim@meyering.net>
127859         and Paul Eggert  <eggert@cs.ucla.edu>
127861         Merges from coreutils, etc.
127862         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127863         Require gl_FUNC_TZSET_CLOBBER.
127864         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127865         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127866         members.
127868 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127870         Help the merge from coreutils.
127871         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127872         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127873         * m4/tzset.m4: Use it too.
127875 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127877         * modules/tzset: New file.
127879 2003-08-14  Jim Meyering  <jim@meyering.net>
127881         Merges from coreutils.
127882         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127883         variable names, rather than @FNMATCH_H@.
127884         * modules/alloca: Likewise for $(ALLOCA_H).
127886         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127887         the three copies of the literal target, `fnmatch.h'.
127888         * modules/alloca (alloca.h): Likewise.
127890 2003-08-14  Jim Meyering  <jim@meyering.net>
127892         Merge from coreutils.
127893         * m4/tzset.m4: New file.
127894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127895         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127896         otherwise, AIX 5.1 systems would end up using the latter.
127897         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127898         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127899         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127900         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127902 2003-08-14  Jim Meyering  <jim@meyering.net>
127904         Merge from coreutils.
127905         * lib/obstack.h: Whitespace changes.
127906         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127907         and xcalloc return values.
127908         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127909         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127910         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127911         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127912         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127913         error from mntctl.
127914         Use mntctl's return value to drive the entry-processing loop, since
127915         we can't rely on the value of the vmt_length member in the last
127916         entry.  On some systems doing so could result in exhausting
127917         virtual memory.  Based in part on a patch from Mike Jetzer.
127919 2003-08-14  Jim Meyering  <jim@meyering.net>
127920         and Paul Eggert  <eggert@twinsun.com>
127922         Merges from coreutils, plus other fixes.
127923         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127924         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127925         for credits and details.  Thanks to Kaveh Ghazi for helping
127926         to keep these files in sync.
127927         (ARRAY_SIZE): Define it.
127928         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127929         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127930         (memcasecmp): Don't assume size_t fits in unsigned int.
127931         Remove casts and duplicate code.
127932         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127933         (memcpy): Remove definition.
127934         Merge in some clean-up and optimization changes from glibc.
127935         [BLOCKSIZE]: Move definition to top of file.
127936         Ensure that it is a multiple of 64.
127937         Rearrange loop exit tests so as to avoid performing an
127938         additional fread after encountering an error or EOF.
127939         * lib/md5.h (md5_uintptr): Define.
127940         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127941         return to the initial working directory.  Preserve errno
127942         for caller.
127943         * lib/idcache.c: Include "xalloc.h".
127944         (xmalloc, xrealloc): Remove decls.
127945         (getuser): Remove casts no longer required in C89.
127946         * lib/human.c: Include stdio.h, for sprintf.
127947         * lib/group-member.c: Include "xalloc.h".
127948         (xmalloc, xrealloc): Remove decls.
127949         (get_group_info): Remove casts no longer required in C89.
127950         * lib/getusershell.c (readname): Remove casts no longer required in
127951         C89.
127952         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127953         * lib/getline.c: Whitespace fix, from coreutils.
127955 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127957         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127958         Check for isascii.
127960         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127961         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127962         Undo previous (whitespace-only) change.
127964 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127966         * lib/exclude.c: Include <ctype.h>
127967         (IN_CTYPE_DOMAIN): New macro.
127968         (is_space): New fn.
127969         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127970         and empty lines.
127972         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127973         Undo previous (whitespace-only) change.
127975 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127977         * config/srclist-update: Change update back to the old behavior,
127978         leaving whitespace alone.  Use one 'sed' command rather than a
127979         pipeline.
127980         (fixlicense): Now a variable, not a function.
127981         (remove_trailing_blanks): Remove.
127982         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127983         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127984         Undo previous (whitespace-only) change.
127986 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127988         Merge from coreutils.
127989         * modules/euidaccess: Add lib_SOURCES, include for new
127990         file euidaccess.h
127992 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127994         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127995         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127996         Normalize leading white space and remove trailing white space.
127998         Merge from coreutils
127999         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128001         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128002         0.12.1.  These files are now being upgraded automatically by
128003         ../config/srclist-update.
128005 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128007         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128008         Normalize leading white space and remove trailing white space.
128009         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128010         notice, as per ../config/srclist-update.
128012         Merge from coreutils.
128013         * lib/euidaccess.h: New file.
128014         * lib/euidaccess.c: Include it.
128015         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128016         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128017         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128019 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128021         * config/srclist-update: Add copyright notice.
128022         (remove_id_lines, remove_trailing_blanks): New constants.
128023         (fixfile): Use them to normalize spacing a bit in copied files.
128024         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128025         Normalize leading white space and remove trailing white space.
128027         * config/texinfo.tex: Sync with texinfo.
128029         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128030         strtoul.c from libc, to merge coreutils whitespace changes.
128032         * config/srclist.txt: Get the following m4 files from gettext:
128033         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128034         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128035         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128036         wint_t.m4.
128038 2003-08-12  Karl Berry  <karl@gnu.org>
128040         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128041         been made.
128043 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128045         * modules/gnu-source, m4/gnu-source.m4:
128046         Remove; we're assuming Autoconf 2.54 or later now.
128047         Suggested by Bruno Haible.
128048         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128050 2003-08-11  Bruno Haible  <bruno@clisp.org>
128052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128054 2003-08-11  Bruno Haible  <bruno@clisp.org>
128056         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128057         (vasnprintf): Use it instead of wcslen.
128059 2003-08-11  Bruno Haible  <bruno@clisp.org>
128061         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128062         value to ensure that _Bool promotes to int. Use #define for _Bool when
128063         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128065 2003-08-10  Karl Berry  <karl@gnu.org>
128067         * lib/regex.h: update from libc (whitespace fix).
128069 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128071         Merge some files from coreutils.  These changes were
128072         originally made by Jim Meyering.
128073         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128074         many older Unixes require this.
128075         * lib/alloca.c (alloca): Remove cast to argument of free;
128076         no longer needed in C89.
128077         * lib/alloca_.h, regex.h: Fix white space to match
128078         what GNU indent does.
128080 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128082         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128083         apparently Emacs's Unicode mode got confused before my 2003-08-05
128084         checkin.
128086 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128088         * m4/extensions.m4: New file.
128089         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128090         Require gl_USE_SYSTEM_EXTENSIONS.
128091         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128092         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128094 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128096         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128097         * modules/extensions, modules/gnu-source: New files.
128098         * modules/timespec, modules/unlocked-io: Depend on extensions.
128100 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128102         * modules/restrict: New file.
128103         * MODULES.html.sh (func_all_modules): Add restrict.
128104         * modules/regex: Depend on restrict.
128106 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128108         * m4/restrict.m4: New file.
128109         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128111 2003-08-07  Bruno Haible  <bruno@clisp.org>
128113         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128114         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128116 2003-08-07  Bruno Haible  <bruno@clisp.org>
128118         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128119         makes the module 'getndelim2' compatible with the module 'getline'.
128121 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128123         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128124         byte with "\201" to avoid glitches when editing that source file
128125         with multi-gnome-terminal.
128127 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128129         * lib/bumpalloc.h: Remove.
128131 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128133         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128134         * modules/bumpalloc: Remove.
128136 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128138         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128139         GNU coding style.
128141         Merge from coreutils.
128142         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128143         1. From glibc.
128144         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128145         from Karl Berry, implemented by Jim Meyering.
128146         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128147         from Dmitry V. Levin.
128148         Remove anachronistic cast of xrealloc.
128149         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128150         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128151         type. Otherwise, it wouldn't compile with at least /bin/cc on
128152         ymp-cray-unicos9.0.2.X.
128153         Combine two mostly-identical uses of alloca into one.
128154         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128156 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128158         [From Emacs.]
128160         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128161         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128162         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128163         obsolete NLIST_NAME_UNION.
128164         [__GNU__]: Undef BSD and FSCALE.
128165         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128167 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128169         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128170         an enum type, so that it's guaranteed to promote to int.  See:
128171         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128173 2003-08-03  Karl Berry  <karl@gnu.org>
128175         * config/depcomp: update from automake.
128177 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128179         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128180         (strerror): Don't assume that a printable int fits in 14 bytes.
128182 2003-07-31  Bruno Haible  <bruno@clisp.org>
128184         * modules/getpass-gnu: New file.
128185         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128187 2003-07-31  Bruno Haible  <bruno@clisp.org>
128189         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128191 2003-07-24  Karl Berry  <karl@gnu.org>
128193         * config/missing: update from automake.
128195 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128196             Bruno Haible  <bruno@clisp.org>
128198         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128199         * lib/getline.c (getline, getdelim): Likewise.
128200         Remove _GNU_SOURCE define; now it's defined in config.h through
128201         m4/getline.m4.
128203 2003-07-23  Karl Berry  <karl@gnu.org>
128205         * config/config.sub: update from prep.
128207 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128209         * modules/xalloc (Depends-on): Add exitfail.
128210         * modules/xmemcoll: Likewise.
128212 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128214         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128215         over-parenthesization in macros.
128217         Sync with coreutils.
128219         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128220         required by C99.
128222         Use `exit_failure' for xalloc and xmemcoll instead of their own
128223         private exit-failure variables.
128224         * lib/xalloc.h (xalloc_exit_failure): Remove.
128225         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128226         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128227         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128228         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128229         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128231 2003-07-20  Jim Meyering  <jim@meyering.net>
128233         * modules/closeout (Depends-on): Add exitfail.
128234         Suggestion from Bruno Haible.
128236 2003-07-19  Karl Berry  <karl@gnu.org>
128238         * config/config.sub: update from prep.
128240 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128242         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128243         Remove.
128244         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128245         to test that it can stand by itself.  Include "exitfail.h".
128246         Clients should set exit_failure instead.
128247         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128249 2003-07-18  Bruno Haible  <bruno@clisp.org>
128251         * modules/getndelim2: New file.
128252         * modules/getline: Share files with module getndelim2.
128253         * modules/getnline: Depend on getndelim2 instead of sharing files with
128254         it. Add getnline.c to lib_SOURCES.
128255         * MODULES.html.sh (func_all_modules): Add getndelim2.
128257 2003-07-18  Bruno Haible  <bruno@clisp.org>
128259         * m4/getndelim2.m4: New file.
128260         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128261         invoke gl_PREREQ_GETNDELIM2.
128262         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128263         gl_PREREQ_GETNDELIM2.
128264         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128265         gl_GETNDELIM2.
128267 2003-07-18  Bruno Haible  <bruno@clisp.org>
128269         * lib/getndelim2.h: New file.
128270         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128271         getndelim2.h.
128272         (getndelim2): Make non-static. Change return type to ssize_t.
128273         * lib/getline.h: Change argument names.
128274         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128275         * lib/getnline.c: Include getndelim2.h.
128277 2003-07-18  Andreas Schwab  <schwab@suse.de>
128279         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128281 2003-07-17  Karl Berry  <karl@gnu.org>
128283         * config/config.sub: update from prep.
128285 2003-07-17  Bruno Haible  <bruno@clisp.org>
128287         * modules/getnline: New file.
128288         * modules/getline: Add lib/getndelim2.c to source file list.
128289         * MODULES.html.sh (func_all_modules): Add getnline.
128291 2003-07-17  Bruno Haible  <bruno@clisp.org>
128293         * m4/getnline.m4: New file.
128295 2003-07-17  Bruno Haible  <bruno@clisp.org>
128297         * m4/Makefile.am.in: Remove file.
128298         * m4/Makefile.am: Remove file.
128299         * m4/Makefile.in: Remove file.
128301 2003-07-17  Bruno Haible  <bruno@clisp.org>
128303         * lib/getnline.h: New file.
128304         * lib/getnline.c: New file.
128305         * lib/getndelim2.c: New file, extracted from getline.c.
128306         (getndelim2): Renamed from getdelim2, with added nmax argument.
128307         * lib/getline.c: Include getndelim2.c.
128308         (getdelim2): Moved out to getndelim2.c.
128309         (getline, getdelim): Update.
128311 2003-07-17  Bruno Haible  <bruno@clisp.org>
128313         * lib/Makefile.am: Remove file.
128314         * lib/Makefile.in: Remove file.
128316 2003-07-17  Bruno Haible  <bruno@clisp.org>
128318         * configure.in: Remove file.
128319         * Makefile.in: Remove file.
128321 2003-07-17  Bruno Haible  <bruno@clisp.org>
128323         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128325 2003-07-16  Karl Berry  <karl@gnu.org>
128327         * config/srclist-update: was running fixlicense twice, which caused
128328                 texinfo.tex to be nullified for some reason.  Simplify,
128329                 $gplsrc is no longer needed as far as I can see?
128331 2003-07-16  Jim Meyering  <jim@meyering.net>
128333         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128335 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128337         * config/srclist.txt: Get the following files from gettext-runtime/intl
128338         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128339         ref-del.sin.  From Bruno Haible.
128340         * config/srclist-update (fixfile): Change grep pattern again, since the
128341         previous fix didn't work (there was another trailing $).  Use
128342         '[$]' to escape the $s.
128344 2003-07-15  Karl Berry  <karl@gnu.org>
128346         * lib/vasnprintf.c: update from gettext.
128348 2003-07-15  Karl Berry  <karl@gnu.org>
128350         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128351         gets expanded when surrounded by '$'.
128353 2003-07-15  Jim Meyering  <jim@meyering.net>
128355         * modules/save-cwd: Don't depend on error.  From Derek Price.
128357 2003-07-15  Jim Meyering  <jim@meyering.net>
128359         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128361 2003-07-14  Simon Josefsson  <jas@extundo.com>
128363         * modules/mempcpy: New file.
128364         * MODULES.html.sh (func_all_modules): Add mempcpy.
128366 2003-07-14  Simon Josefsson  <jas@extundo.com>
128368         * m4/mempcpy.m4: New file.
128370 2003-07-14  Simon Josefsson  <jas@extundo.com>
128372         * lib/mempcpy.h: New file.
128373         * lib/mempcpy.c: New file.
128375 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128377         * modules/getdate, modules/posixtm: Depend on mktime.
128379 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128381         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128382         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128383         unicodeio.c, unicodeio.h, unlocked-io.h:
128384         Switch from LGPL to GPL.
128386 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128388         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128389         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128390         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128391         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128392         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128393         updated automatically by ../config/srclist-update.  This changes
128394         their license from LPGL to GPL.
128396 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128398         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128399         assumed to refer to the root of the most recent stable gettext version.
128400         * config/srclistvars.sh: Add defaults for eggert.
128401         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128402         Match "This program" as well as "The program".  This is needed
128403         for gettext.
128405 2003-07-14  Jim Meyering  <jim@meyering.net>
128407         Don't emit diagnostics.  Let callers do that.
128408         * lib/save-cwd.c: Don't include "error.h".
128409         (save_cwd): Don't call error.  Ensure that errno is valid
128410         when returning nonzero.
128412         * lib/save-cwd.h (restore_cwd): Update prototype.
128413         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128414         Simplify.  Don't call error upon failure.  Let callers do that.
128415         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128416         when auditing is enabled.  But don't bother updating the #if.
128418 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128420         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128421         it breaks C++ compilation.
128422         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128424 2003-07-10  Simon Josefsson  <jas@extundo.com>
128426         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128428 2003-07-10  Jim Meyering  <jim@meyering.net>
128430         * m4/clock_time.m4: Remove trailing blank.
128431         * m4/intmax_t.m4: Likewise.
128433 2003-07-10  Jim Meyering  <jim@meyering.net>
128435         * lib/vasnprintf.c: Remove trailing blanks.
128436         Make cpp indentation consistent.
128438 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128440         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128441         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128442         Switch from LGPL to GPL.
128444 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128446         * config/srclist.txt: Sort sublists.  Add
128447         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128448         that differ from gnulib for one reason or another; we'd like this list
128449         to be smaller but for now let's document what we have.
128451 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128453         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128454         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128455         and sweeter "eval x=$x".
128456         * config/srclist.txt: Get lib/argp* from glibc.
128458 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128460         * lib/mktime.c: Fix some boundary cases and remove need for floating
128461         point.
128463         Issue a compile-time diagnostic if time_t is floating point, or if
128464         two's complement arithmetic is not in effect, or if arithmetic
128465         right shift does not propagate the sign.  These assumptions were
128466         all in the original code but they weren't checked.
128468         (TIME_T_MIDPOINT, verify): New macros.
128469         (__isleap): Remove; it has integer overflow problems.
128470         (leapyear): New function, without those problems.
128471         (ydhms_tm_diff): Remove; splitting into two parts.
128472         (ydhms_diff): New function, containing the arithmetic part of
128473         the old ydhms_tm_diff function.  Issue a compile-time
128474         diagnostic if we are not using C99 integer division.
128475         Avoid casts when possible.
128476         (guess_time_tm): New function, containing the checking part of
128477         the old ydhms_tm_diff function.  Return the new value, rather than
128478         the difference between it and the old.  Accept a new argument T
128479         so that *T specifies the old value.  Check for overflow in the result.
128481         (__mktime_internal): Use a time_t offset, not a long int offset.
128482         This undoes the 2003-06-04 change, which is no longer needed now
128483         that we have better overflow checking.
128484         (localtime_offset): Likewise.
128486         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128487         and long are 64-bit but int is only 32-bit.
128488         (ydhms_diff): Use long int to store year1 and yday1.
128489         Issue a compile-time diagnostic if long int is not wide enough.
128491         (__mktime_internal): Use long int to store adjusted year and yday.
128492         Use plain C rather than preprocessor commands, if that doesn't
128493         affect efficiency.
128494         Check for overflow (and try to repair) after each probe
128495         rather than checking only at the very end.  This avoids some bugs
128496         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128497         does not equal GMT offset at maximum time).
128498         Use integer to check for overflow rather than floating point; this
128499         is more portable to non-IEEE hosts, and is a tad faster.
128500         When we detect that we are oscillating between two values,
128501         don't check whether tm_isdst has the requested value, since
128502         we already know the answer.  When tm_isdst has the wrong value,
128503         use a different heuristic to find the right one, based on the
128504         extreme values actually observed in practice in tz2003a,
128505         rather than the (overly optimistic) "previous 3 calendar quarters".
128507         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128508         "T const" to accommodate glibc style.
128509         (check_result): Use less-confusing report format.  "long" -> "long int.
128510         (main): Likewise.
128511         Don't loop if the iteration overflows time_t.
128512         Allow a negative step in the iteration.
128514 2003-07-06  Karl Berry  <karl@gnu.org>
128516         * config/depcomp: update from automake.
128517         * config/config.sub: update from prep.
128519 2003-07-03  Karl Berry  <karl@gnu.org>
128521         * config/config.guess: update from prep.
128523 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128525         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128526         xreadlink.c now includes it unconditionally.
128528 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128530         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128531         having it depend on HAVE_SYS_TYPES_H.
128533 2003-07-01  Bruno Haible  <bruno@clisp.org>
128535         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128536         <sys/types.h> should be sufficient.
128537         Reported by Paul Eggert.
128539 2003-06-26  Karl Berry  <karl@gnu.org>
128541         * config/depcomp: update from automake.
128543 2003-06-26  Bruno Haible  <bruno@clisp.org>
128545         * modules/human: Depend on module stdbool.
128547 2003-06-25  Bruno Haible  <bruno@clisp.org>
128549         * modules/readlink: New file.
128550         * modules/xreadlink: Depend on it.
128551         * MODULES.html.sh (func_all_modules): Add readlink.
128553 2003-06-25  Bruno Haible  <bruno@clisp.org>
128555         * m4/readlink.m4: New file.
128557 2003-06-25  Bruno Haible  <bruno@clisp.org>
128559         * lib/readlink.c: New file.
128561 2003-06-22  Karl Berry  <karl@gnu.org>
128563         * config/srclist.txt: update mkinstalldirs from automake.
128564         * config/mkinstalldirs: update.
128566 2003-06-22  Bruno Haible  <bruno@clisp.org>
128568         Portability to mingw32.
128569         * m4/ssize_t.m4: New file, from GNU gettext.
128570         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128571         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128573 2003-06-22  Bruno Haible  <bruno@clisp.org>
128575         * modules/safe-read: Add m4/ssize_t.m4.
128576         * modules/xreadlink: Add m4/ssize_t.m4.
128578 2003-06-20  Bruno Haible  <bruno@clisp.org>
128580         Assume C89, so PARAMS isn't needed.
128581         * lib/unicodeio.h (PARAMS): Remove.
128582         * lib/unicodeio.c: Don't use PARAMS.
128584 2003-06-18  Karl Berry  <karl@gnu.org>
128586         * config/config.{guess,sub}: update from prep.
128588 2003-06-18  Jim Meyering  <jim@meyering.net>
128590         Merge changes from coreutils.
128591         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128592         Remove explicit declarations of xmalloc and realloc.
128593         Include xalloc.h.
128594         (read_utmp): Remove anachronistic cast of xmalloc.
128596 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128598         Assume C89, so PARAMS isn't needed.
128599         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128600         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128601         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128602         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128603         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128604         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128605         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128606         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128607         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128608         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128609         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128610         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128611         no longer needed. Anyway, config.h should always be included before any
128612         other file.
128614 2003-06-11  Simon Josefsson  <jas@extundo.com>
128616         * modules/sysexits: New file.
128617         * MODULES.html.sh (func_all_modules): Add sysexits.
128619 2003-06-11  Simon Josefsson  <jas@extundo.com>
128621         * lib/sysexit_.h: New file.
128623 2003-06-11  Derek Price  <derek@ximbiot.com>
128625         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128626         necessary.
128628 2003-06-11  Bruno Haible  <bruno@clisp.org>
128630         * m4/sysexits.m4: New file.
128632 2003-06-10  Simon Josefsson  <jas@extundo.com>
128634         * lib/argp.h: New file, from glibc.
128635         * lib/argp-ba.c: New file, from glibc.
128636         * lib/argp-eexst.c: New file, from glibc.
128637         * lib/argp-fmtstream.c: New file, from glibc.
128638         * lib/argp-fmtstream.h: New file, from glibc.
128639         * lib/argp-fs-xinl.c: New file, from glibc.
128640         * lib/argp-help.c: New file, from glibc.
128641         * lib/argp-namefrob.h: New file, from glibc.
128642         * lib/argp-parse.c: New file, from glibc.
128643         * lib/argp-pv.c: New file, from glibc.
128644         * lib/argp-pvh.c: New file, from glibc.
128645         * lib/argp-xinl.c: New file, from glibc.
128647 2003-06-10  Simon Josefsson  <jas@extundo.com>
128649         * modules/strchrnul: New file.
128651 2003-06-10  Simon Josefsson  <jas@extundo.com>
128653         * modules/argp: New file.
128655 2003-06-10  Simon Josefsson  <jas@extundo.com>
128657         * m4/strchrnul.m4: New file.
128659 2003-06-10  Simon Josefsson  <jas@extundo.com>
128661         * lib/strchrnul.h: New file.
128662         * lib/strchrnul.c: New file.
128664 2003-06-10  Bruno Haible  <bruno@clisp.org>
128666         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128668 2003-06-07  Karl Berry  <karl@gnu.org>
128670         * config/config.{guess,sub}: update from prep.
128672 2003-06-07  Jim Meyering  <jim@meyering.net>
128674         * modules/strtod: Use $(...) notation, not @...@ for
128675         AC_REPLACE'd variables.
128676         * modules/localcharset: Likewise.
128678 2003-06-07  Jim Meyering  <jim@meyering.net>
128680         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128681         in place of my name in the copyright comment.
128682         Remove definition and uses of __P.
128684         From coreutils.
128685         * lib/stat.c: Don't declare xmalloc explicitly.
128686         Instead, include "xalloc.h".
128687         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128688         xrealloc, and xcalloc return values.
128689         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128690         Improve comment.
128691         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128693 2003-06-07  Bruno Haible  <bruno@clisp.org>
128695         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128696         avoid AC_CONFIG_LINKS.
128697         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128698         fnmatch.h, to avoid AC_CONFIG_LINKS.
128699         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128701 2003-06-07  Bruno Haible  <bruno@clisp.org>
128703         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128704         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128705         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128706         directory.
128707         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128708         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128709         directory.
128711 2003-06-06  Jim Meyering  <jim@meyering.net>
128713         Merge from coreutils.
128714         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128715         Consolidate declarations and initializations of *_base* locals.
128717         Merge from coreutils.
128718         This avoids a core dump on systems without GNU putenv,
128719         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128720         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128721         (unsetenv): New static function, from GNU libc.
128722         (rpl_putenv): Use it.
128724         * lib/modechange.c: Remove trailing blanks.
128726         Merge from coreutils.
128727         * lib/fsusage.c: Remove declaration of statfs.
128728         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128730         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128732 2003-06-06  Jim Meyering  <jim@meyering.net>
128734         * lib/stdbool_.h: Renamed from stdbool.h.in.
128736 2003-06-06  Jim Meyering  <jim@meyering.net>
128737             Bruno Haible  <bruno@clisp.org>
128739         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128740         Adjust Makefile.am snippet not to redirect directly to target.
128741         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128743 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128745         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128746         mismatch, look in future quarters as well as past.  This fixes a
128747         bug when processing fall-backwards gaps immediately after a long
128748         period of daylight-saving time.
128750         * lib/mktime.c: Assume freestanding C89 or better.
128751         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128752         (__P): Remove; not used.
128753         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128754         (mktime, not_equal_tm, print_tm, check_result,
128755         main): Use prototypes.  Use const * where appropriate.
128756         (main): Fix typo in testing code that uncovered by above changes.
128757         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128759 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128761         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128762         locale.h, localeconv.  This merges changes from coreutils.
128764         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128765         It can be removed after the next Autoconf is released.
128766         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128767         needed.
128769 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128771         * lib/mktime.c: Fix Debian bug 177940
128772         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128773         (localtime_offset): Now long int, not time_t, because we want it
128774         to be guaranteed to be signed.  All uses changed.
128775         (__mktime_internal): If overflow would occur when adding offset,
128776         don't add it.
128778         Merge 'human' changes from coreutils.  Rewrite to support
128779         locale-specific notations like thousands separators.
128780         * lib/human.c: Simplify authorship notice.
128781         Include human.h immediately after config.h.
128782         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128783         <limits.h>: Do not include, since human.h does.
128784         (SIZE_MAX, UINTMAX_MAX): New macros.
128785         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128786         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128787         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128788         (power_letter): Renamed from suffixes.
128789         (generate_suffix_backwards): Remove.
128790         (adjust_value): Now takes int style (because of human.h changes)
128791         and long double value (for greater precision on some platforms).
128792         (group_number): New function.
128793         (human_readable): Use it.  Use integer options, not enum.
128794         Put the options before the sizes in the arg list.
128795         Support all the new options.
128796         The old human_readable function has been removed;
128797         use inttostr.h instead.
128798         (human_readable, default_block_size, humblock):
128799         Use uintmax_t, not int, for block sizes.
128800         (human_readable_inexact, block_size_types): Remove.
128801         (block_size_opts): New constant.
128802         (human_options): Renamed from human_block_size, with new signature
128803         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128804         * lib/human.h: Add copyright and authorship notice.
128805         Include <limits.h> and <stdbool.h> unconditionally.
128806         (PARAMS): Remove.  All uses removed.
128807         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128808         (enum human_inexact_style): Remove tag; now a nameless enum.
128809         (human_floor, human_ceiling, human_round_to_even): Now have
128810         values 2, 0, 1 rather than -1, 1, 0.
128811         (human_group_digits, human_suppress_point_zero, human_autoscale,
128812         human_base_1024, human_SI, human_B): New constants.
128813         (human_readable_inexact, human_block_size): Remove.
128814         (human_readable): Size args are now uintmax_t, not int.
128815         (human_options): New decl.
128817         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128818         unnecessary now that we assume C89 or better.  This change
128819         imported from coreutils.
128821         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128822         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128823         in the 2003-05-30 sync from glibc.
128825         .h files should stand alone, but we shouldn't include <sys/types.h>
128826         if we can get away with just <stddef.h>.
128828         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128829         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128830         rather than <sys/types.h>, as we merely need size_t.
128831         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128832         to get size_t.
128833         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128834         Include <stdio.h>, to get FILE.
128835         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128836         memcasecmp.h has included <stddef.h> and all we need is size_t.
128837         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128838         our interface, instead of including <sys/types.h>
128840 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128842         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128843         now, as glibc mktime is buggy on non-glibc systems.
128845 2003-06-03  Karl Berry  <karl@gnu.org>
128847         * config/config.sub: update from prep.
128849 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128851         [from coreutils]
128852         Fix some minor time-related bugs with POSIX time arguments.
128853         Some valid time stamps were being rejected (notably -1, and
128854         time stamps before 1900 on 64-bit hosts).  And some invalid
128855         time stamps were being accepted, e.g. September 31.
128857         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128858         that we can return (time_t) -1 successfully.
128859         * lib/posixtm.c: Likewise.
128860         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128861         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128862         (t): Remove static var.
128863         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128864         of static var.  All uses changed.
128865         (year): Do not reject years before 1900; they can occur with
128866         64-bit time_t.
128867         (posix_time_parse): Do not check for out-of-range components;
128868         that is now the caller's responsibility, since our checks were
128869         only approximations.
128870         (posixtime): Use mktime to check for out-of-range components,
128871         since it knows them exactly.
128872         If mktime returns (time_t) -1, check whether an error actually occurred
128873         by invoking localtime on -1.
128874         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128875         posixtime failures better.
128876         Improve the test data (in comments only).
128878 2003-06-02  Karl Berry  <karl@gnu.org>
128880         * config/mkinstalldirs (version): new variable.
128881         (--version): new option.
128882         (usage): improve message.
128884 2003-05-30  Karl Berry  <karl@gnu.org>
128886         * lib/mktime.c: update from libc.
128888 2003-05-30  Bruno Haible  <bruno@clisp.org>
128890         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128891         * config/config.rpath: Upgrade to gettext-0.12.1.
128893 2003-05-30  Bruno Haible  <bruno@clisp.org>
128895         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128896         * m4/nls.m4: New file, from gettext-0.12.1.
128897         * m4/po.m4: New file, from gettext-0.12.1.
128898         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128900 2003-05-30  Bruno Haible  <bruno@clisp.org>
128902         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128903         * lib/localcharset.h: Likewise.
128904         * lib/localcharset.c: Likewise.
128906 2003-05-29  Karl Berry  <karl@gnu.org>
128908         * config/config.rpath: update from gettext.
128910 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128912         Assume the headers required for C89 freestanding compilers.
128913         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128914         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128915         * m4/human.m4 (gl_HUMAN): Likewise.
128916         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128917         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128918         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128919         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128920         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128921         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128923 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128925         Assume the headers required for C89 freestanding compilers.
128926         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128927         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128928         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128929         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128930         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128931         define, since <limits.h> is guaranteed to do that.
128932         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128933         * lib/exclude.c: Include <stdbool.h> unconditionally.
128934         * lib/tempname.c: Include <stddef.h> unconditionally.
128935         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128936         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128937         <stddef.h> does that.
128938         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128939         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128940         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128941         needed.
128942         * lib/xstrtol.c: Likewise.
128943         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128944         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128946         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128947         warnings on some platforms.
128949         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128950         arbitrarily.
128952 2003-05-26  Jim Meyering  <jim@meyering.net>
128954         Merge in a change from coreutils:
128955         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128956         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128957         that condition, rather than `-1' which is slightly misleading.
128958         Change the name of the cache variable to have the gl_ prefix.
128959         Prompted by a patch from Richard Dawe for DJGPP.
128961 2003-05-24  Karl Berry  <karl@gnu.org>
128963         * config/config.guess: update from prep.
128965 2003-05-22  Karl Berry  <karl@gnu.org>
128967         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128969 2003-05-20  Karl Berry  <karl@gnu.org>
128971         * config/config.guess: update from prep.
128973 2003-05-18  Karl Berry  <karl@gnu.org>
128975         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128976         might actually be set by the user.
128978         * config/depcomp, install-sh, mdate-sh: update from automake.
128980 2003-05-17  Bruno Haible  <bruno@clisp.org>
128982         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128983         invalid expansion for AC_EGREP_CPP.
128984         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128985         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128986         Suggested by Akim Demaille <akim@epita.fr> in
128987         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128989 2003-05-12  Jim Meyering  <jim@meyering.net>
128991         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128992         the space-padded-by-default conversion specifiers, %e, %k, %l.
128994 2003-05-12  Bruno Haible  <bruno@clisp.org>
128996         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128997         the string is longer than 4 KB.
128999 2003-05-11  Karl Berry  <karl@gnu.org>
129001         * config/config.{guess,sub}: update from prep.
129003 2003-05-09  Bruno Haible  <bruno@clisp.org>
129005         * modules/error: Add m4/strerror_r.m4 to file list.
129007 2003-05-03  Bruno Haible  <bruno@clisp.org>
129009         Upgrade to Unicode-4.0.
129010         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129011         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129012         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129013         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129014         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129015         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129016         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129017         Change width of U+E0100..U+E01EF from 1 to 0.
129019 2003-04-25  Jim Meyering  <jim@meyering.net>
129021         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129022         of type size_t, not int.
129024 2003-04-25  Bruno Haible  <bruno@clisp.org>
129026         * lib/copy-file.c: Include <stddef.h>, for size_t.
129028 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129030         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129031         code which expansion is under static control.  Patch imported from
129032         Akim Demaille's patch to Bison; see
129033         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129035 2003-04-14  Bruno Haible  <bruno@clisp.org>
129037         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129039 2003-04-11  Jim Meyering  <jim@meyering.net>
129041         Merge changes from Coreutils.
129043         2003-03-22  Jim Meyering  <jim@meyering.net>
129045         * lib/strftime.c (widen): Cast alloca return value to proper type.
129047         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129049         From GNU libc.
129050         * lib/strftime.c (my_strftime): Handle very large width
129051         specifications for numeric values correctly.  Improve checks for
129052         overflow.
129054         2003-01-19  Jim Meyering  <jim@meyering.net>
129056         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129057         definitions.
129058         (nl_get_alt_digit) [! defined my_strftime]: Define.
129059         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129060         _nl_get_alt_digit and _nl_get_walt_digit.
129062         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129063         libc. These changes have no effect outside of _LIBC.
129065 2003-04-10  Bruno Haible  <bruno@clisp.org>
129067         * modules/findprog: New file.
129068         * MODULES.html.sh (func_all_modules): Add it.
129070 2003-04-10  Bruno Haible  <bruno@clisp.org>
129072         * m4/findprog.m4: New file.
129073         * m4/eaccess.m4: New file.
129075 2003-04-10  Bruno Haible  <bruno@clisp.org>
129077         * lib/findprog.h: New file, from GNU gettext.
129078         * lib/findprog.c: New file, from GNU gettext.
129080 2003-04-05  Jim Meyering  <jim@meyering.net>
129082         Merge changes from Coreutils.
129084         * lib/exclude.h (PARAMS): Remove definition and uses.
129085         * lib/exclude.c: Remove uses of `PARAMS'.
129087         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129088         Add test-cases for DOS filenames. Declare program_name.
129089         (main): Set up program_name.  Patch by Rich Dawe.
129091         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129092         error from mntctl.
129093         Use mntctl's return value to drive the entry-processing loop, since
129094         we can't rely on the value of the vmt_length member in the last
129095         entry.  On some systems doing so could result in exhausting
129096         virtual memory.  Based in part on a patch from Mike Jetzer.
129098 2003-04-04  Bruno Haible  <bruno@clisp.org>
129100         * modules/linebreak: New file.
129101         * MODULES.html.sh (func_all_modules): Add it.
129103 2003-04-04  Bruno Haible  <bruno@clisp.org>
129105         * m4/linebreak.m4: New file.
129107 2003-04-04  Bruno Haible  <bruno@clisp.org>
129109         * lib/linebreak.h: New file, from GNU gettext.
129110         * lib/linebreak.c: New file, from GNU gettext with slight
129111         modifications.
129112         * lib/lbrkprop.h: New file, from GNU gettext.
129114 2003-04-03  Bruno Haible  <bruno@clisp.org>
129116         * modules/utf8-ucs4: New file.
129117         * modules/utf16-ucs4: New file.
129118         * modules/ucs4-utf8: New file.
129119         * modules/ucs4-utf16: New file.
129120         * MODULES.html.sh (func_all_modules): Add them.
129122 2003-04-03  Bruno Haible  <bruno@clisp.org>
129124         * m4/utf-ucs4.m4: New file.
129125         * m4/ucs4-utf.m4: New file.
129127 2003-04-03  Bruno Haible  <bruno@clisp.org>
129129         * lib/utf8-ucs4.h: New file, from GNU gettext.
129130         * lib/utf16-ucs4.h: New file, from GNU gettext.
129131         * lib/ucs4-utf8.h: New file, from GNU gettext.
129132         * lib/ucs4-utf16.h: New file, from GNU gettext.
129134 2003-04-02  Bruno Haible  <bruno@clisp.org>
129136         * modules/binary-io: New file.
129137         * MODULES.html.sh (func_all_modules): Add it.
129139 2003-04-02  Bruno Haible  <bruno@clisp.org>
129141         * lib/binary-io.h: New file, from GNU gettext.
129143 2003-04-01  Bruno Haible  <bruno@clisp.org>
129145         * modules/pathname: New file.
129146         * MODULES.html.sh (func_all_modules): Add it.
129148 2003-04-01  Bruno Haible  <bruno@clisp.org>
129150         * lib/pathname.h: New file, from GNU gettext.
129151         * lib/concatpath.c: New file, from GNU gettext.
129153 2003-03-30  Bruno Haible  <bruno@clisp.org>
129155         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129157 2003-03-30  Bruno Haible  <bruno@clisp.org>
129159         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129160         function chown() doesn't exist.
129162 2003-03-28  Bruno Haible  <bruno@clisp.org>
129164         * modules/copy-file: New file.
129165         * MODULES.html.sh (func_all_modules): Add it.
129167 2003-03-28  Bruno Haible  <bruno@clisp.org>
129169         * m4/copy-file.m4: New file.
129171 2003-03-28  Bruno Haible  <bruno@clisp.org>
129173         * lib/copy-file.h: New file, from GNU gettext.
129174         * lib/copy-file.c: New file, from GNU gettext.
129176 2003-03-18  Jim Meyering  <jim@meyering.net>
129178         * lib/quote.c (quote_n): Fix typo in comment.
129180 2003-03-18  Bruno Haible  <bruno@clisp.org>
129182         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129183         checking.
129184         * m4/onceonly_2_57.m4: Likewise.
129186 2003-03-17  Bruno Haible  <bruno@clisp.org>
129188         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129189         (m4_quote): Remove macro.
129190         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129192 2003-03-14  Jim Meyering  <jim@meyering.net>
129194         Merge changes from Coreutils.
129195         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129196         to be const, in order to avoid warnings.
129197         (obstack_room): Likewise.
129198         (obstack_empty_p): Likewise.
129200 2003-03-14  Bruno Haible  <bruno@clisp.org>
129202         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129203         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129205 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129207         Merge changes from Bison.
129208         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129209         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129210         when compiling Bison 1.875's `bitset bset = obstack_alloc
129211         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129212         * lib/hash.c: Include <stdbool.h> unconditionally.
129214 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129216         * m4/onceonly.m4 (m4_quote): New macro.
129217         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129218         Quote AC_FOREACH variable-expansions properly.
129220 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129222         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129224 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129226         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129227         Reported by Bruce Becker; see:
129228         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129230 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129231             Bruno Haible  <bruno@clisp.org>
129233         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129234         Reported by John Hughes, see
129235         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129237 2003-02-20  Bruno Haible  <bruno@clisp.org>
129239         * MODULES.html.sh (func_all_modules): Add poll.
129241 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129243         * modules/poll: New file.
129245 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129247         * lib/poll_.h: New file.
129248         * lib/poll.c: New file.
129250 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129252         * m4/poll.m4: New file.
129254 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129256         * modules/mathl: New file.
129258 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129260         * lib/mathl.h: New file.
129261         * lib/acosl.c: New file.
129262         * lib/asinl.c: New file.
129263         * lib/atanl.c: New file.
129264         * lib/ceill.c: New file.
129265         * lib/cosl.c: New file.
129266         * lib/expl.c: New file.
129267         * lib/floorl.c: New file.
129268         * lib/frexpl.c: New file.
129269         * lib/ldexpl.c: New file.
129270         * lib/logl.c: New file.
129271         * lib/sincosl.c: New file.
129272         * lib/sinl.c: New file.
129273         * lib/sqrtl.c: New file.
129274         * lib/tanl.c: New file.
129275         * lib/trigl.c: New file.
129276         * lib/trigl.h: New file.
129278 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129280         * m4/mathl.m4: New file.
129282 2003-02-18  Bruno Haible  <bruno@clisp.org>
129284         * MODULES.html.sh (func_all_modules): Add mathl.
129286 2003-02-17  Bruno Haible  <bruno@clisp.org>
129288         * modules/mkdtemp: New module.
129289         * MODULES.html.sh (func_all_modules): Add it.
129291 2003-02-17  Bruno Haible  <bruno@clisp.org>
129293         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129295 2003-02-17  Bruno Haible  <bruno@clisp.org>
129297         * lib/mkdtemp.h: New file, from GNU gettext.
129298         * lib/mkdtemp.c: New file, from GNU gettext.
129300 2003-02-02  Jim Meyering  <jim@meyering.net>
129302         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129303         e.g. glibc-2.2.93.
129305 2003-01-31  Bruno Haible  <bruno@clisp.org>
129307         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129308         'rpl_rename'.
129309         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129310         'rpl_strnlen'.
129311         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129312         'rpl_strtod'.
129313         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129314         'rpl_utime'.
129316 2003-01-31  Bruno Haible  <bruno@clisp.org>
129318         * lib/rename.c: #undef rename before defining rpl_rename.
129319         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129321 2003-01-30  Bruno Haible  <bruno@clisp.org>
129323         * modules/vasnprintf, modules/vasprintf: New modules.
129324         * MODULES.html.sh (func_all_modules): Add them.
129326 2003-01-30  Bruno Haible  <bruno@clisp.org>
129328         * m4/signed.m4: New file, from GNU gettext.
129329         * m4/longdouble.m4: New file, from GNU gettext.
129330         * m4/wchar_t.m4: New file, from GNU gettext.
129331         * m4/wint_t.m4: New file, from GNU gettext.
129332         * m4/vasnprintf.m4: New file.
129333         * m4/vasprintf.m4: New file.
129335 2003-01-30  Bruno Haible  <bruno@clisp.org>
129337         * lib/printf-args.h: New file, from GNU gettext.
129338         * lib/printf-args.c: New file, from GNU gettext.
129339         * lib/printf-parse.h: New file, from GNU gettext.
129340         * lib/printf-parse.c: New file, from GNU gettext.
129341         * lib/vasnprintf.h: New file, from GNU gettext.
129342         * lib/vasnprintf.c: New file, from GNU gettext.
129343         * lib/asnprintf.c: New file, from GNU gettext.
129344         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129345         * lib/vasprintf.c: New file, from GNU gettext.
129346         * lib/asprintf.c: New file, from GNU gettext.
129348 2003-01-29  Bruno Haible  <bruno@clisp.org>
129350         * modules/stpncpy: New module.
129351         * MODULES.html.sh (func_all_modules): Add it.
129353 2003-01-29  Bruno Haible  <bruno@clisp.org>
129355         * m4/stpncpy.m4: New file.
129357 2003-01-29  Bruno Haible  <bruno@clisp.org>
129359         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129360         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129362 2003-01-28  Bruno Haible  <bruno@clisp.org>
129364         * modules/c-ctype: New module.
129365         * MODULES.html.sh (func_all_modules): Add it.
129367 2003-01-28  Bruno Haible  <bruno@clisp.org>
129369         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129370         Paul Eggert.
129371         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129372         Paul Eggert.
129374 2003-01-27  Bruno Haible  <bruno@clisp.org>
129376         * modules/xsetenv: New module.
129377         * MODULES.html.sh (func_all_modules): Add it.
129379 2003-01-27  Bruno Haible  <bruno@clisp.org>
129381         * lib/xsetenv.h: New file, from GNU gettext.
129382         * lib/xsetenv.c: New file, from GNU gettext.
129384 2003-01-23  Jim Meyering  <jim@meyering.net>
129386         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129387         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129389 2003-01-23  Bruno Haible  <bruno@clisp.org>
129391         * modules/minmax: New module.
129392         * MODULES.html.sh (func_all_modules): Add it.
129394 2003-01-23  Bruno Haible  <bruno@clisp.org>
129396         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129397         Eggert.
129399 2003-01-22  Bruno Haible  <bruno@clisp.org>
129401         * modules/exit: New module.
129402         * MODULES.html.sh (func_all_modules): Add it.
129404 2003-01-22  Bruno Haible  <bruno@clisp.org>
129406         * lib/exit.h: New file, from GNU gettext.
129408 2003-01-19  Bruno Haible  <bruno@clisp.org>
129410         * gnulib-tool: Recognize option --extract-maintainer.
129411         (func_get_maintainer): New function.
129412         * modules/*: Add Maintainer entry.
129414 2003-01-16  Jim Meyering  <jim@meyering.net>
129416         * m4/regex.m4: The `regex' struct is both input and output.
129417         Initialize it before each use.  Patch by Tim Waugh.
129419 2003-01-16  Bruno Haible  <bruno@clisp.org>
129421         * MODULES.html.sh: Add a table of contents. Add the module name as
129422         leftmost column. Add hyperlinks.
129424 2003-01-15  Bruno Haible  <bruno@clisp.org>
129426         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129428 2003-01-15  Bruno Haible  <bruno@clisp.org>
129430         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129431         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129432         suffix.
129434 2003-01-15  Bruno Haible  <bruno@clisp.org>
129436         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129438 2003-01-15  Bruno Haible  <bruno@clisp.org>
129440         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129441         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129443 2003-01-14  Jim Meyering  <jim@meyering.net>
129445         * lib/same.c (same_name): Tweak a comment.
129447 2003-01-14  Bruno Haible  <bruno@clisp.org>
129449         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129450         when a string comparison is sufficient.
129452 2003-01-14  Bruno Haible  <bruno@clisp.org>
129454         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129455         'unsigned int'.
129457 2003-01-14  Bruno Haible  <bruno@clisp.org>
129459         * lib/hash-pjw.c: Add comment about low quality of this function.
129461 2003-01-13  Bruno Haible  <bruno@clisp.org>
129463         * modules/stpcpy: Distribute lib/stpcpy.h.
129464         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129466 2003-01-13  Bruno Haible  <bruno@clisp.org>
129468         * modules/*: Add a description.
129469         * modules/strpbrk: Fix Makefile.am snippet.
129470         * modules/strtoimax: Fix dependencies.
129471         * modules/strtoumax: Likewise.
129473 2003-01-13  Bruno Haible  <bruno@clisp.org>
129475         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129476         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129477         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129479 2003-01-13  Bruno Haible  <bruno@clisp.org>
129481         * gnulib-tool (func_create_testdir): Store config/* files in the main
129482         directory.
129483         * config.rpath: Move to ...
129484         * config/config.rpath: ... here.
129485         * modules/gettext: Contains config/config.rpath, not config.rpath.
129486         * modules/iconv: Likewise.
129488 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129490         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129491         to avoid collisions with libcurses and libreadline.
129493         * m4/getstr.m4: Remove.
129494         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129496 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129498         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129499         to avoid collisions with libcurses and libreadline.
129501         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129502         * lib/getstr.h, getstr.c: Remove.
129503         * lib/getline.c: Include "getline.h", to check interface.
129504         Move body of old getstr.c here: this defines MIN_CHUNK and
129505         declares getdelim2, which is renamed from getstr.
129506         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129508         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129509         All uses changed.
129510         * lib/linebuffer.h: Likewise.
129511         (readline): Remove backward-compatibility macro.
129513 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129515         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129516         to avoid collisions with libcurses and libreadline.
129517         * getstr: Remove.
129518         * MODULES.html.sh: Remove getstr.
129519         * modules/getline: Depend on unlocked-io, not getstr.
129521 2003-01-12  Jim Meyering  <jim@meyering.net>
129523         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129525 2003-01-10  Bruno Haible  <bruno@clisp.org>
129527         * modules/alloca: Change Makefile.am requirements. Simplify Include
129528         requirements. Add lib/alloca_.h to file list.
129530 2003-01-10  Bruno Haible  <bruno@clisp.org>
129532         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129534 2003-01-10  Bruno Haible  <bruno@clisp.org>
129536         * lib/alloca_.h: New file.
129537         * lib/getdate.y: Unconditionally include alloca.h.
129538         * lib/makepath.c: Likewise.
129539         * lib/setenv.c: Likewise.
129540         * lib/userspec.c: Likewise.
129542 2003-01-09  Karl Berry  <karl@gnu.org>
129544         * MODULES.html.sh: include `dirname $0` in PATH, to find
129545         gnulib-tool.
129547 2003-01-09  Bruno Haible  <bruno@clisp.org>
129549         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129550         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129552 2003-01-09  Bruno Haible  <bruno@clisp.org>
129554         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129556 2003-01-09  Bruno Haible  <bruno@clisp.org>
129558         * lib/stdbool.h.in: New file.
129560 2003-01-09  Bruno Haible  <bruno@clisp.org>
129562         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129563         * MODULES.html.sh: Likewise.
129565 2003-01-08  Jim Meyering  <jim@meyering.net>
129567         * lib/full-write.c: Undefine and define-away `const' after inclusion
129568         of errno.h, not before.  Suggestion from Bruno Haible.
129570 2003-01-08  Bruno Haible  <bruno@clisp.org>
129572         * modules/full-read: Depend on full-write.
129574 2003-01-08  Bruno Haible  <bruno@clisp.org>
129576         * lib/safe-read.c: Include specification header first, to ensure its
129577         selfcontainedness.
129578         * lib/full-write.c: Likewise.
129580 2003-01-07  Jim Meyering  <jim@meyering.net>
129582         * lib/full-write.c: Rework so that it may serve to define full_read,
129583         too.
129584         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129586 2003-01-07  Bruno Haible  <bruno@clisp.org>
129588         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129589         <inttypes.h>.
129590         * lib/xstrtol.h: Likewise.
129591         * lib/xstrtoimax.c: Likewise.
129592         * lib/xstrtoumax.c: Likewise.
129593         * lib/human.h: Likewise.
129595         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129596         on systems that have <inttypes.h> but not <stdint.h>.
129598 2003-01-07  Bruno Haible  <bruno@clisp.org>
129600         * MODULES.html.sh: Add copyright notice.
129601         (missed_files): Omit CVS directory entries.
129602         (func_module): Make it work with sed-3.02.
129603         * MODULES.txt: Remove file.
129605 2003-01-06  Jim Meyering  <jim@meyering.net>
129607         * lib/version-etc.c: Update year in translatable copyright string.
129609 2003-01-03  Karl Berry  <karl@gnu.org>
129611         * config/config.{guess,sub}: update from prep.
129613 2003-01-02  Karl Berry  <karl@gnu.org>
129615         * doc/COPYING.DOC: belatedly updated to 1.2.
129617 2003-01-01  Karl Berry  <karl@gnu.org>
129619         * gnulib-tool (func_verify_module): report module name $module in
129620         error message, not $1.
129621         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129622         be created, only if it doesn't exist.
129623         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129625 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129627         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129629 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129631         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129632         memcmp if strcoll doesn't work.
129634 2002-12-31  Bruno Haible  <bruno@clisp.org>
129636         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129637         nonempty.
129639 2002-12-31  Bruno Haible  <bruno@clisp.org>
129641         * lib/memcoll.c (STRCOLL): New macro.
129642         (memcoll): Use it.
129644 2002-12-31  Bruno Haible  <bruno@clisp.org>
129646         * lib/localcharset.h: New file.
129647         * lib/localcharset.c: Include it.
129648         * lib/unicodeio.c: Likewise.
129650 2002-12-31  Bruno Haible  <bruno@clisp.org>
129652         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129653         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129655 2002-12-31  Bruno Haible  <bruno@clisp.org>
129657         * lib/getline.h: Include <stddef.h>, for size_t.
129659         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129660         * lib/unicodeio.c: Don't include <stddef.h>.
129662 2002-12-31  Bruno Haible  <bruno@clisp.org>
129664         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129665         HAVE_TM_ZONE.
129667 2002-12-24  Karl Berry  <karl@gnu.org>
129669         * config/config.guess: update from prep.
129671 2002-12-24  Bruno Haible  <bruno@clisp.org>
129673         General infrasructure.
129674         * m4/README: Rewritten.
129675         * m4/onceonly.m4: New file.
129676         * m4/onceonly_2_57.m4: New file.
129678         Module atexit.
129679         * m4/atexit.m4: New file.
129681         Module strtod.
129682         * m4/strtod.m4: New file.
129684         Module strtol.
129685         * m4/strtol.m4: New file.
129687         Module strtoul.
129688         * m4/strtoul.m4: New file.
129690         Module memchr.
129691         * m4/memchr.m4: New file.
129693         Module memcmp.
129694         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129695         (jm_FUNC_MEMCMP): Invoke it.
129697         Module memcpy.
129698         * m4/memcpy.m4: New file.
129700         Module memmove.
129701         * m4/memmove.m4: New file.
129703         Module memset.
129704         * m4/memset.m4: New file.
129706         Module strcspn.
129707         * m4/strcspn.m4: New file.
129709         Module strpbrk.
129710         * m4/strpbrk.m4: New file.
129712         Module strstr.
129713         * m4/strstr.m4: New file.
129715         Module strerror.
129716         * m4/strerror.m4: New file.
129718         Module mktime.
129719         * m4/mktime.m4: Renamed from jm-mktime.m4.
129720         (gl_PREREQ_MKTIME): New macro.
129721         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129723         Module malloc.
129724         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129725         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129726         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129728         Module realloc.
129729         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129730         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129731         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129733         Module strftime.
129734         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129736         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129737         gl_TM_GMTOFF.
129738         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129740         Module xalloc.
129741         * m4/xalloc.m4: New file.
129743         Module alloca.
129744         * m4/alloca.m4: New file.
129746         Module putenv.
129747         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129748         (jm_FUNC_PUTENV): Invoke it.
129750         Module setenv.
129751         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129752         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129753         when invoked twice.
129754         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129755         gt_FUNC_SETENV.
129757         Module memrchr.
129758         * m4/memrchr.m4: New file.
129760         Module stpcpy.
129761         * m4/stpcpy.m4: New file.
129763         Module strcase.
129764         * m4/strcase.m4: New file.
129766         Module strdup.
129767         * m4/strdup.m4: New file.
129769         Module strnlen.
129770         * m4/strnlen.m4: New file.
129772         Module strndup.
129773         * m4/strndup.m4: New file.
129775         Module xstrtod.
129776         * m4/xstrtod.m4: New file.
129778         Module xstrtol.
129779         * m4/xstrtol.m4: New file.
129781         Module getdate.
129782         * m4/getdate.m4: New file.
129784         Module unlocked-io.
129785         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129786         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129787         * m4/jm-glibc-io.m4n: Remove file.
129789         Module long-options.
129790         * m4/long-options.m4: New file.
129792         Module md5.
129793         * m4/md5.m4: New file.
129795         Module sha.
129796         * m4/sha.m4: New file.
129798         Module getstr.
129799         * m4/getstr.m4: New file.
129801         Module getline.
129802         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129803         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129804         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129805         simply getline. Infoke gl_PREREQ_GETLINE.
129807         Module obstack.
129808         * m4/obstack.m4: New file.
129810         Module hash.
129811         * m4/hash.m4: New file.
129813         Module readtokens.
129814         * m4/readtokens.m4: New file.
129816         Module strverscmp.
129817         * m4/strverscmp.m4: New file.
129819         Module stdbool.
129820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129821         OSF/1.
129823         Module strtoll.
129824         * m4/strtoll.m4: New file.
129826         Module strtoull.
129827         * m4/strtoull.m4: New file.
129829         Module strtoimax.
129830         * m4/strtoimax.m4: New file.
129832         Module strtoumax.
129833         * m4/strtoumax.m4: New file.
129835         Module xstrtoimax.
129836         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129837         jm_AC_PREREQ_XSTRTOIMAX.
129838         Moved the strtol prerequisites to strtol.m4.
129839         Moved the strtoll prerequisites to strtoll.m4.
129840         Moved the strtoimax prerequisites to strtoimax.m4.
129842         Module xstrtoumax.
129843         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129844         jm_AC_PREREQ_XSTRTOUMAX.
129845         Moved the strtoul prerequisites to strtoul.m4.
129846         Moved the strtoull prerequisites to strtoull.m4.
129847         Moved the strtoumax prerequisites to strtoumax.m4.
129849         Module chown.
129850         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129851         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129853         Module dup2.
129854         * m4/dup2.m4: New file.
129856         Module ftruncate.
129857         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129858         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129860         Module getgroups.
129861         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129862         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129864         Module gettimeofday.
129865         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129866         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129867         gl_PREREQ_GETTIMEOFDAY.
129869         Module mkdir.
129870         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129871         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129873         Module mkstemp.
129874         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129875         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129876         jm_AC_TYPE_UINTMAX_T.
129877         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129879         Module stat.
129880         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129881         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129883         Module lstat.
129884         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129885         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129887         Module timespec.
129888         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129889         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129890         * m4/st_mtim.m4: Indentation.
129892         Module nanosleep.
129893         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129894         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129895         gl_PREREQ_NANOSLEEP.
129897         Module regex.
129898         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129899         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129900         (gl_REGEX): New macro.
129902         Module rename.
129903         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129904         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129906         Module rmdir.
129907         * m4/rmdir.m4: New file.
129909         Module utime.
129910         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129911         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129912         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129914         Module dirname.
129915         * m4/dirname.m4: New file.
129917         Module getopt.
129918         * m4/getopt.m4: New file.
129920         Module unistd-safer.
129921         * m4/unistd-safer.m4: New file.
129923         Module fnmatch.
129924         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129925         declaration.
129926         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129927         (gl_FUNC_FNMATCH_POSIX): New macro.
129928         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129929         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129930         simply fnmatch.
129932         Module exclude.
129933         * m4/exclude.m4: New file.
129935         Module human.
129936         * m4/human.m4: New file.
129938         Module acl.
129939         * m4/acl.m4: Nop.
129941         Module backupfile.
129942         * m4/backupfile.m4: New file.
129943         * m4/d-ino.m4: Indentation.
129945         Module fsusage.
129946         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129947         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129948         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129950         Module dirfd.
129951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129952         requirements.
129954         Module euidaccess.
129955         * m4/euidaccess.m4: New file.
129957         Module file-type.
129958         * m4/file-type.m4: New file.
129960         Module fileblocks.
129961         * m4/fileblocks.m4: New file.
129963         Module filemode.
129964         * m4/filemode.m4: New file.
129966         Module isdir.
129967         * m4/isdir.m4: New file.
129969         Module lchown.
129970         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129971         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129973         Module makepath.
129974         * m4/makepath.m4: New file.
129976         Module modechange.
129977         * m4/modechange.m4: New file.
129979         Module mountlist.
129980         * m4/mountlist.m4: New file.
129981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129982         Indentation.
129984         Module path-concat.
129985         * m4/path-concat.m4: New file.
129987         Module pathmax.
129988         * m4/pathmax.m4: New file.
129990         Module same.
129991         * m4/same.m4: New file.
129993         Module save-cwd.
129994         * m4/save-cwd.m4: New file.
129996         Module savedir.
129997         * m4/savedir.m4: New file.
129999         Module xgetcwd.
130000         * m4/xgetcwd.m4: New file.
130001         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130003         Module xreadlink.
130004         * m4/xreadlink.m4: New file.
130006         Module safe-read.
130007         * m4/safe-read.m4: New file.
130009         Module safe-write.
130010         * m4/safe-write.m4: New file.
130012         Module closeout.
130013         * m4/closeout.m4: New file.
130015         Module stdio-safer.
130016         * m4/stdio-safer.m4: New file.
130018         Module getpass.
130019         * m4/getpass.m4: New file.
130021         Module getugroups.
130022         * m4/getugroups.m4: New file.
130024         Module group-member.
130025         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130026         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130028         Module idcache.
130029         * m4/idcache.m4: New file.
130031         Module userspec.
130032         * m4/userspec.m4: New file.
130034         Module gettime.
130035         * m4/clock_time.m4: New file.
130036         * m4/gettime.m4: New file.
130038         Module settime.
130039         * m4/settime.m4: New file.
130041         Module posixtm.
130042         * m4/posixtm.m4: New file.
130044         Module gethostname.
130045         * m4/gethostname.m4: New file.
130047         Module canon-host.
130048         * m4/canon-host.m4: New file.
130050         Module gettext.
130051         * m4/codeset.m4: New file, from gettext-0.11.5.
130052         * m4/gettext.m4: New file, from gettext-0.11.5.
130053         * m4/glibc21.m4: New file, from gettext-0.11.5.
130054         * m4/iconv.m4: New file, from gettext-0.11.5.
130055         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130056         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130057         * m4/inttypes.m4: New file, from gettext-0.11.5.
130058         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130059         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130060         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130061         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130062         * m4/lib-link.m4: New file, from gettext-0.11.5.
130063         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130064         * m4/progtest.m4: New file, from gettext-0.11.5.
130065         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130066         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130067         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130069         Module localcharset.
130070         * m4/localcharset.m4: New file.
130072         Module hard-locale.
130073         * m4/hard-locale.m4: New file.
130075         Module mbswidth.
130076         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130077         onceonly macros.
130078         * m4/mbrtowc.m4: Add comment.
130080         Module memcasecmp.
130081         * m4/memcasecmp.m4: New file.
130083         Module memcoll.
130084         * m4/memcoll.m4: New file.
130086         Module unicodeio.
130087         * m4/unicodeio.m4: New file.
130089         Module rpmatch.
130090         * m4/rpmatch.m4: New file.
130092         Module yesno.
130093         * m4/yesno.m4: New file.
130095         Module exitfail.
130096         * m4/exitfail.m4: New file.
130098         Module c-stack.
130099         * m4/c-stack.m4 (gl_C_STACK): New macro.
130100         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130102         Module error.
130103         * m4/error.m4 (gl_ERROR): New macro.
130104         (jm_PREREQ_ERROR): Use onceonly macros.
130106         Module fatal.
130107         * m4/fatal.m4: New file.
130109         Module getloadavg.
130110         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130111         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130113         Module getpagesize.
130114         * m4/getpagesize.m4: New file.
130116         Module getusershell.
130117         * m4/getusershell.m4: New file.
130119         Module physmem.
130120         * m4/physmem.m4: New file.
130122         Module posixver.
130123         * m4/posixver.m4: New file.
130125         Module quotearg.
130126         * m4/quotearg.m4: New file.
130128         Module quote.
130129         * m4/quote.m4: New file.
130131         Module readutmp.
130132         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130134         Module sig2str.
130135         * m4/sig2str.m4: New file.
130137         Other.
130138         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130139         ulonglong.m4.
130140         * m4/intmax_t.m4: New file.
130141         * m4/d-type.m4: Indentation.
130142         * m4/jm-macros.m4: Update.
130143         * m4/prereq.m4 (jm_PREREQ): Update.
130144         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130145         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130146         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130147         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130148         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130149         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130150         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130151         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130152         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130153         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130154         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130155         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130156         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130157         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130158         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130159         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130160         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130161         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130162         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130164 2002-12-24  Bruno Haible  <bruno@clisp.org>
130166         * MODULES.txt: Update according to m4/ changes.
130168         Module gettext.
130169         * config.rpath: New file, from gettext-0.11.5.
130171         * modules/*: New module descriptions.
130172         * gnulib-tool: New file.
130173         * MODULES.html.sh: New file.
130175 2002-12-21  Karl Berry  <karl@gnu.org>
130177         * doc/fdl.texi: update to version 1.2.
130179 2002-12-19  Karl Berry  <karl@gnu.org>
130181         * config/config.guess: update from prep.
130183 2002-12-18  Bruno Haible  <bruno@clisp.org>
130185         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130186         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130188 2002-12-17  Bruno Haible  <bruno@clisp.org>
130190         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130191         stdlib.h, string.h.
130193 2002-12-17  Bruno Haible  <bruno@clisp.org>
130195         * lib/canon-host.c (strdup): Remove unused declaration.
130197         * lib/fsusage.c: Include full_read.h.
130198         (get_fs_usage): Use full_read instead of safe_read.
130200         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130202 2002-12-12  Karl Berry  <karl@gnu.org>
130204         * config/config.guess: update from prep.
130206 2002-12-11  Bruno Haible  <bruno@clisp.org>
130208         * m4/setenv.m4: New file, from gettext-0.11.5.
130210 2002-12-11  Bruno Haible  <bruno@clisp.org>
130212         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130213         not unsetenv().
130214         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130215         modifications:
130217         2002-12-11  Bruno Haible  <bruno@clisp.org>
130219                 * setenv.c (alloca): Fall back to malloc.
130220                 (freea): New macro.
130221                 (setenv): Use freea() to free memory allocated with alloca().
130223         2002-11-13  Bruno Haible  <bruno@clisp.org>
130225                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130226                 function declarations.
130227                 * unsetenv.c (unsetenv): Likewise.
130229         2002-03-04  Bruno Haible  <bruno@clisp.org>
130231                 Portability to AIX 4.3.3.
130232                 * unsetenv.c: New file, extracted from setenv.c.
130233                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130235         2001-12-20  Bruno Haible  <bruno@clisp.org>
130237                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130238                 use malloc instead. For SunOS 4.
130240         2001-12-11  Bruno Haible  <bruno@clisp.org>
130242                 * setenv.c: Declare alloca.
130243                 (compar_fn_t): New typedef.
130244                 (KNOWN_VALUE, STORE_VALUE): Use it.
130246         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130247         setenv.h.
130249 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130251         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130252         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130253         Choose values that are less likely to collide with system fnmatch
130254         options.
130255         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130256         defined (e.g., a pure POSIX system).
130257         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130258         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130260 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130262         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130263         a pain in practice to deal with generated m4 files.  This change
130264         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130266         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130267         and jm-glibc-io.m4, as they are no longer a special case.
130268         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130269         kludge and the auto-generation stuff.  Check only whether the
130270         functions are declared, not whether they exist, since older hosts
130271         that don't declare the functions can't use the optimization anyway.
130273 2002-12-06  Jim Meyering  <jim@meyering.net>
130275         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130277         Merge in changes from libc's misc/error.c, in preparation
130278         for the merge of gnulib's changes back into libc.
130280         * lib/error.c (_): Define only if not already defined.
130281         Move definition to follow all #include directives.
130282         Include unlocked-io.h only if !_LIBC.
130283         [_LIBC]: Include <libio/libioP.h>.
130284         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130285         (fflush): Tweak definition to use INTUSE.
130286         (putc): Define.
130288 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130290         * lib/alloca.c [defined emacs]: Include "lisp.h".
130291         (xalloc_die) [defined emacs]: New macro.
130292         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130293         [! defined emacs]: Include <xalloc.h>.
130294         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130295         (pointer): Typedef to POINTER_TYPE *.
130296         (malloc): Remove decl; we now always use xmalloc.
130297         (alloca): Use old-style definition, since Emacs needs this.
130298         Check for arithmetic overflow when computing combined size.
130300 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130302         Do not generate unlocked-io.h automatically, since it's easier to
130303         maintain it by hand.
130305         * lib/unlocked-io.h: New file, from GNU diffutils,
130306         but with proper copyright notice and attribution.
130307         * lib/gen-uio: Remove.
130308         * lib/Makefile.am: Add copyright notice.
130309         (libfetish_a_SOURCES): Add unlocked-io.h.
130310         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130311         (DISTCLEANFILES, io_functions): Remove macros.
130312         (EXTRA_DIST): Remove gen_uio.
130313         (unlocked-io.h): Remove rule.
130315 2002-12-04  Jim Meyering  <jim@meyering.net>
130317         Reflect the fact that stat.c and lstat.c are no longer generated.
130318         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130319         (DISTCLEANFILES): Likewise.
130320         (EXTRA_DIST): Likewise.
130321         (all_local): Don't depend on stat.c or lstat.c.
130322         (stat.c, lstat.c): Remove rules.
130323         (EXTRA_DIST): Remove xstat.in.
130325         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130326         * lib/stat.c: New file.  Contents mostly from xstat.in.
130327         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130328         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130330         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130331         too.
130332         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130334 2002-12-03  Jim Meyering  <jim@meyering.net>
130336         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130337         but not semantics, to minimize the differences between these two files.
130338         (safe_read): Change comment to mention SAFE_READ_ERROR.
130340         * lib/safe-read.c (IS_EINTR): Define.
130341         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130343 2002-12-02  Jim Meyering  <jim@meyering.net>
130345         * lib/safe-read.c (EINTR): Define.
130346         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130347         (INT_MAX): Provide fallback.
130348         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130350         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130352 2002-12-02  Bruno Haible  <bruno@clisp.org>
130354         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130355         Define, taken from safe-read.c.
130356         (INT_MAX): Provide fallback.
130357         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130358         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130360         * lib/safe-read.c (EINTR): Remove definition.
130361         (safe_read): Don't use EINTR if it is absent.
130363 2002-12-01  Jim Meyering  <jim@meyering.net>
130365         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130366         zero.
130367         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130369 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130371         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130372         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130373         with `if (! (value < limit)) abort ();', for readability.
130375 2002-11-26  Karl Berry  <karl@gnu.org>
130377         * lib/strdup.c: copy from libc again, with jim's ok.
130378         * lib/.cppi-disable: re-add strdup.c
130380 2002-11-25  Karl Berry  <karl@gnu.org>
130382         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130383         instead of "strtol.c".
130385 2002-11-25  Karl Berry  <karl@gnu.org>
130387         * config/install-sh: update from automake for variable quoting, $0 in
130388         error msgs, etc.
130390         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130391         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130392         entry.
130394 2002-11-25  Jim Meyering  <jim@meyering.net>
130396         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130398 2002-11-24  Karl Berry  <karl@gnu.org>
130400         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130401         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130403 2002-11-24  Jim Meyering  <jim@meyering.net>
130405         Update from coreutils:
130407         * lib/mktime.c: Merge in changes from libc.
130409         Avoid a link-time failure on some Linux systems.
130410         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130411         (otherwise).
130412         (__mon_yday): Declare with the STATIC attribute.
130413         (__mktime_internal): Likewise.
130414         Based on a report from Greg Schafer.
130416 2002-11-23  Jim Meyering  <jim@meyering.net>
130418         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130419         Use `unsigned', not `int', as type of index.
130421         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130423         * lib/fsusage.c: Remove unneeded parentheses around operands of
130424         `defined'.
130426 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130428         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130429         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130430         so that we can be included first.
130431         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130432         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130433         No need to include stddef.h or sys/types.h any more.
130434         Surround local include files with "", not "<>".
130435         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130436         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130437         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130438         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130439         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130440         (ISPRINT): Remove; no longer needed now that we assume C89.
130442         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130443         Preserve errno.
130445         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130446         quotearg_char): Use SIZE_MAX rather than
130447         (size_t) -1 when we are talking about "infinity".
130449         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130451 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130453         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130454         hint that one should use `if (! x) abort ();' rather than `assert
130455         (x);', and anyway it's one less thing to worry about configuring.
130456         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130457         hash_rehash, hash_insert): Use abort rather than assert.
130459 2002-11-22  Bruno Haible  <bruno@clisp.org>
130461         * lib/safe-read.h: Assume C89. Add comments.
130462         (safe_read): Change return type to size_t.
130463         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130464         byte counts > SSIZE_MAX correctly.
130465         * lib/safe-write.h: New file.
130466         * lib/safe-write.c: New file.
130467         * lib/full-read.h: New file.
130468         * lib/full-read.c: New file.
130469         * lib/full-write.h: Assume C89. Add comments.
130470         * lib/full-write.c: Include safe-write.h.
130471         (full_write): Rewritten to use safe_write.
130472         Suggested by Jim Meyering and Paul Eggert.
130474 2002-11-21  Jim Meyering  <jim@meyering.net>
130476         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130478         Merge in changes from the coreutils.
130480         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130481         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130482         <stdint.h>.
130483         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130484         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130485         int.  Work more efficiently if X is the same width as uintmax_t.
130486         Do not compare X to -1, to avoid bogus compiler warning.
130487         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130488         Don't assume that f_frsize and f_bsize are the same type.
130490         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130491         warning on FreeBSD.
130493         * lib/makepath.c (make_path): Restore umask *before* creating the final
130494         component.
130495         (make_path): Minor reformatting.
130497         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130498         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130499         HAVE_MALLOC/HAVE_REALLOC.
130501         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130502         dummy ones.  At least on GNU/Linux systems, `auto' means something
130503         else.
130504         From Michael Stone.
130506 2002-11-21  Bruno Haible  <bruno@clisp.org>
130508         Remove case insensitive option matching.
130509         * lib/argmatch.h (argcasematch): Remove declaration.
130510         (ARGCASEMATCH): Remove macro.
130511         (__xargmatch_internal): Remove case_sensitive argument.
130512         (XARGMATCH): Update.
130513         (XARGCASEMATCH): Remove macro.
130514         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130515         case_sensitive argument.
130516         (argcasematch): Remove function.
130517         (__xargmatch_internal): Remove case_sensitive argument.
130518         (main): Use XARGMATCH instead of XARGCASEMATCH.
130520         * lib/xmalloc.c: Change compile-time error message. Add comment about
130521         required autoconf version.
130523 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130525         Merge argmatch cleanups from Bison.  Assume C89.
130527         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130528         Include stdlib.h, for EXIT_FAILURE.
130529         Always include <string.h>, since we assume C89.
130530         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130531         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130532         Include <stddef.h> instead, since it's all we need for size_t.
130533         (PARAMS): Remove.  All uses removed.
130534         (ARRAY_CARDINALITY): Do not bother to #undef.
130535         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130536         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130537         Remove unnecessary parentheses.
130538         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130539         Insert necessary parentheses.
130540         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130541         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130543 2002-11-19  Bruno Haible  <bruno@clisp.org>
130545         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130546         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130548         * lib/mbswidth.h (PARAMS): Remove macro.
130549         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130550         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130552         * lib/gcd.h (PARAMS): Remove macro.
130553         (gcd): Use ANSI C function declarations.
130554         * lib/gcd.c (gcd): Likewise.
130556 2002-11-15  Bruno Haible  <bruno@clisp.org>
130558         * lib/strcspn.c: Include <stddef.h>.
130559         (strcspn): Use ANSI C function declaration. Change return type to
130560         size_t. Use NULL.
130561         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130562         (strpbrk): Use NULL.
130563         * lib/strpbrk.h (PARAMS): Remove macro.
130564         (strpbrk): Use ANSI C function declaration.
130565         * lib/strstr.c: Don't include <sys/types.h>.
130566         * lib/strstr.h (PARAMS): Remove macro.
130567         (strstr): Use ANSI C function declarations.
130569 2002-11-14  Karl Berry  <karl@gnu.org>
130571         * config/mkinstalldirs: `do' on separate line, instead of
130572         `for var; do'.
130574 2002-11-06  Bruno Haible  <bruno@clisp.org>
130576         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130577         * lib/gcd.c (gcd): Likewise.
130579 2002-11-05  Bruno Haible  <bruno@clisp.org>
130581         * lib/gcd.h: New file, from gettext-0.11.5.
130582         * lib/gcd.c: New file, from gettext-0.11.5.
130584 2002-11-05  Bruno Haible  <bruno@clisp.org>
130586         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130587         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130588         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130589         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130591         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130592         <libintl.h>.
130593         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130594         <libintl.h>.
130596         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130597         * lib/human.c: Include gettext.h instead of <libintl.h>.
130598         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130599         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130600         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130601         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130602         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130603         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130604         (textdomain): Remove definition.
130605         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130607         * lib/long-options.c: Remove include of <libintl.h> and definition of
130608         _.
130609         * lib/same.c: Remove include of <libintl.h> and definition of _.
130611 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130613         * lib/config.charset: A few additions for Solaris.
130615 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130617         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130618         * lib/localcharset.c (locale_charset): Declare as extern "C".
130620 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130622         * lib/config.charset: msdos in uk_UA uses CP1125.
130624 2002-11-04  Bruno Haible  <bruno@clisp.org>
130626         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130627         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130628         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130629         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130630         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130632 2002-11-04  Bruno Haible  <bruno@clisp.org>
130634         * lib/localcharset.c (locale_charset): Don't return an empty string.
130636 2002-11-04  Bruno Haible  <bruno@clisp.org>
130638         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130639         aliases.
130641 2002-11-04  Bruno Haible  <bruno@clisp.org>
130643         * lib/config.charset: Update for newest glibc. Add canonical names
130644         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130646 2002-11-04  Bruno Haible  <bruno@clisp.org>
130648         * lib/config.charset: Add support for NetBSD.
130650 2002-11-04  Bruno Haible  <bruno@clisp.org>
130652         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130654 2002-11-01  Bruno Haible  <bruno@clisp.org>
130656         * configure.in: Add AC_CONFIG_AUX_DIR call.
130657         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130658         test/Makefile.
130659         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130661 2002-09-28  Karl Berry  <karl@gnu.org>
130663         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130664         installed automake until the next release, since changes have been
130665         made.
130667 2002-09-25  Karl Berry  <karl@gnu.org>
130669         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130670         * lib/getopt*: copy from libc/posix.
130671         * lib/gettext.h: copy from gettext.
130672         * lib/.cppi-disable: add strdup.c, gettext.h.
130674 2002-09-25  Karl Berry  <karl@gnu.org>
130676         * config/srclist.txt: enable gettext.h check.
130677         * config/config.{guess,sub}: update from prep.
130678         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130679                 from automake 1.6.3.
130680         See srclist*.
130682 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130684         * regex.c (PATFETCH): Remove the translating fetch.
130685         (PATFETCH_RAW): Rename to PATFETCH.
130686         (set_image_of_range): New fun.
130687         (SET_RANGE_TABLE_WORK_AREA): Use it.
130688         (regex_compile): Don't translate the pattern chars so eagerly.
130689         Only do it when inserting an `exactn' bytecode or when handling
130690         a char-range.
130691         (mutually_exclusive_p): Avoid empty statement.
130693 2002-07-06  Jim Meyering  <meyering@lucent.com>
130695         * m4/README: Don't mention Makefile.am.in.
130696         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130698 2002-07-01  Jim Meyering  <meyering@lucent.com>
130700         * lib/c-stack.c: Include sys/time.h.
130701         From Volker Borchert.
130703 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130705         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130707 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130709         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130710         New macro.  Use it uniformly instead of
130711         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130712         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130713         reported by Vin Shelton.
130715 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130717         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130718         Do not assume SA_SIGINFO behavior.
130719         Bug reported by Jim Meyering on NetBSD 1.5.2.
130721 2002-06-22  Jim Meyering  <meyering@lucent.com>
130723         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130724         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130727         now that configure.ac uses AC_GNU_SOURCE.
130728         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130729         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130731         Update to latest tools.  Suggestions from Paul Eggert.
130732         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130733         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130734         * m4/fnmatch.m4: Likewise.
130735         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130736         to AC_HEADER_STDBOOL
130738 2002-06-22  Jim Meyering  <meyering@lucent.com>
130740         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130741         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130743 2002-06-22  Jim Meyering  <meyering@lucent.com>
130745         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130747         * lib/exitfail.c, exitfail.h: Likewise.
130748         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130750         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130751         of fnmatch.h.
130752         (EXTRA_DIST): Add fnmatch_loop.c.
130753         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130755         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130756         * lib/fnmatch.c: Update from diffutils-2.8.2.
130757         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130758         * lib/fnmatch.h: Remove file.
130760 2002-06-21  Jim Meyering  <meyering@lucent.com>
130762         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130763         * m4/mbrtowc.m4: Likewise.
130765         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130766         * m4/mbswidth.m4: Reflect name change:
130767         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130768         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130770         * m4/lib-link.m4: Update from gettext-0.11.2.
130771         * m4/gettext.m4: Likewise.
130773         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130774         From Alfred M. Szmidt.
130776 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130778         * lib/file-type.h: Report an error if neither S_ISREG nor
130779         S_IFREG is defined, instead of using a test specific to glibc
130780         2.2.  This should be safe, since POSIX requires S_ISREG and
130781         Unix Version 7 had S_IFREG.  We don't need to check for
130782         <sys/types.h> since we don't use any symbols that it defines.
130784 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130786         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130787         $@-t, so that each temporary file name is unique and valid in the first
130788         8 characters, for operation under DOS.
130790 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130794 2002-06-15  Jim Meyering  <meyering@lucent.com>
130796         Work even with DJGPP 2.03, which lacks support for symlinks.
130797         From Richard Dawe.
130798         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130799         is defined.
130800         * lib/lchown.c (S_ISLNK): Likewise.
130802 2002-06-15  Jim Meyering  <meyering@lucent.com>
130804         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130805         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130806         have been included before this file.
130808 2002-06-14  Jim Meyering  <meyering@lucent.com>
130810         * lib/file-type.h: Use the version from diffutils-2.8.2.
130811         * lib/file-type.c: Likewise.
130813 2002-06-07  Jim Meyering  <meyering@lucent.com>
130815         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130816         They're needed at least for NetBSD 1.5.2.
130817         ($statxfs_includes): Include those same headers.
130818         ($statxfs_includes): Include sys/vfs.h if available.
130819         ($statxfs_includes): Likewise for sys/statvfs.h.
130820         Check for the following members in both structs statfs and statvfs:
130821         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130823 2002-06-01  Jim Meyering  <meyering@lucent.com>
130825         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130826         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130828 2002-05-28  Jim Meyering  <meyering@lucent.com>
130830         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130831         Reported by Volker Borchert.
130833 2002-05-27  Jim Meyering  <meyering@lucent.com>
130835         Fix a problem seen only on nonconforming systems whereby ls.c's
130836         use of localtime, and then of gettimeofday would cause trouble:
130837         the localtime call used to initialize rpl_gettimeofday's save
130838         mechanism would clobber ls's current local time information so
130839         that in any long listing the first file would always be listed
130840         with date 1970-01-01.  Analysis by Volker Borchert.
130842         * lib/gettimeofday.c (localtime): Undefine.
130843         (rpl_localtime): New function.
130845 2002-05-27  Jim Meyering  <meyering@lucent.com>
130847         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130848         localtime.
130850         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130851         use the replacement function; it wouldn't resolve at link time.
130852         Reported by Volker Borchert.
130854 2002-05-22  Jim Meyering  <meyering@lucent.com>
130856         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130857         file-type.h.
130858         * lib/file-type.h: New file.
130859         * lib/file-type.c (file_type): New file/function.  Extracted from
130860         diffutils.
130862 2002-04-30  Jim Meyering  <meyering@lucent.com>
130864         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130868         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130870 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130872         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130873         Do not check for alloca.h (no longer used) or stdbool.h (was never
130874         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130878         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130880 2002-04-29  Jim Meyering  <meyering@lucent.com>
130882         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130883         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130884         Use AC_FUNC_STRNLEN here instead.
130886         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130887         With autoconf-2.53a, it's part of AC_PROG_CC.
130889 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130891         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130894 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130896         * lib/sig2str.h, lib/sig2str.c: New files.
130897         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130899 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130901         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130902         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130903         of 127, since 64 is the largest conceivable number for ancient
130904         nonstandard hosts.
130905         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130907 2002-04-28  Jim Meyering  <meyering@lucent.com>
130909         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130911 2002-04-24  Jim Meyering  <meyering@lucent.com>
130913         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130914         (jm_PREREQ): Use it.
130916         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130917         mach/mach.h fcntl.h.
130918         Check for this function: setlocale.
130920 2002-04-24  Jim Meyering  <meyering@lucent.com>
130922         * lib/gettext.h: New file, from Gettext.
130923         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130924         (libfetish_a_SOURCES): Add gettext.h.
130926 2002-04-16  Jim Meyering  <meyering@lucent.com>
130928         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130929         ut_pid, ut_id, ut_exit.
130931 2002-04-16  Jim Meyering  <meyering@lucent.com>
130933         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130934         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130935         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130937 2002-04-12  Jim Meyering  <meyering@lucent.com>
130939         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130940         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130941         existence of the getmntinfo function.  Needed for Darwin 5.3.
130943         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130944         This is necessary at least on Darwin 5.3.
130946         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130947         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130948         strnlen.o in the library, and that makes some versions of ranlib
130949         object.
130951 2002-04-12  Jim Meyering  <meyering@lucent.com>
130953         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130955 2002-04-09  Jim Meyering  <meyering@lucent.com>
130957         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130958         to be more precise.  Rather than saying we're checking whether the
130959         function `works', say what we're testing.
130960         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130961         Reported by Bruno Haible.
130963 2002-03-10  Jim Meyering  <meyering@lucent.com>
130965         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130966         Suggestion from Santiago Vila.
130968 2002-03-08  Jim Meyering  <meyering@lucent.com>
130970         * lib/rename.c: Mention that this wrapper is needed also on
130971         mips-dec-ultrix4.4 systems.
130973 2002-03-02  Jim Meyering  <meyering@lucent.com>
130975         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130976         not HAVE_CLOCK_SETTIME.
130978 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130980         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130981         Check for clock_settime.
130983 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130985         * lib/nanosleep.h: Rename to....
130986         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130988         * lib/gettime.c: New file.
130989         * lib/settime.c: New file.
130990         * lib/stime.c: Remove.
130992         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130993         timespec.h.  Remove nanosleep.h.
130995 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130997         * m4/acl.m4: New file.
130998         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130999         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131001 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131003         * lib/acl.c, lib/acl.h: New files.
131004         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131006 2002-02-24  Jim Meyering  <meyering@lucent.com>
131008         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131009         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131010         cause trouble.  Reported by Nelson Beebe.
131012 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131014         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131015         compilers that don't know that xalloc_die never returns.
131017 2002-02-20  Jim Meyering  <meyering@lucent.com>
131019         * lib/getdate.c: Regenerate using bison-1.33.
131021 2002-02-17  Jim Meyering  <meyering@lucent.com>
131023         * config/config.guess (main): Don't use `head -1'; it's no longer
131024         portable. Use `sed 1q' instead.
131026 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131028         * m4/codeset.m4: Upgrade to gettext-0.11.
131029         * m4/gettext.m4: Upgrade to gettext-0.11.
131030         * m4/glibc21.m4: Upgrade to gettext-0.11.
131031         * m4/iconv.m4: Upgrade to gettext-0.11.
131032         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131033         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131034         * m4/lib-ld.m4: New file, from gettext-0.11.
131035         * m4/lib-link.m4: New file, from gettext-0.11.
131036         * m4/lib-prefix.m4: New file, from gettext-0.11.
131037         * m4/progtest.m4: Upgrade to gettext-0.11.
131039 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131041         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131042         (jm_PREREQ): Use it.
131044 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131046         * lib/posixver.c, lib/posixver.h: New files.
131047         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131049 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131050             Bruno Haible  <bruno@clisp.org>
131052         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131053         (fwrite_success_callback): New declaration.
131054         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131055         print_unicode_char. Call failure callback instead of error.
131056         (fwrite_success_callback): New function.
131057         (exit_failure_callback): New function.
131058         (fallback_failure_callback): New function.
131059         (print_unicode_char): Call unicode_to_mb.
131061 2002-01-26  Jim Meyering  <meyering@lucent.com>
131063         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131064         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131066 2002-01-26  Jim Meyering  <meyering@lucent.com>
131068         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131070 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131072         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131074 2002-01-22  Jim Meyering  <meyering@lucent.com>
131076         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131077         Otherwise, some versions of automake would omit the rule that makes
131078         Makefile from Makefile.in.
131080 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131082         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131083         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131084         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131085         (memcoll): Set errno to zero if there is no error.
131087         * lib/quotearg.c (quotearg_buffer_restyled):
131088         Fix bug with quoting buffers containing NUL when backslashing escapes.
131089         This bug was exposed by the other changes in this patch.
131090         (quotearg_n_options): New arg ARGSIZE.
131091         All callers changed.
131092         (quoting_options_from_style): New function.
131093         (quotearg_n_style): Use it.
131094         (quotearg_n_style_mem): New function.
131096         * lib/quotearg.h (quotearg_n_style_mem): New function.
131098 2002-01-19  Jim Meyering  <meyering@lucent.com>
131100         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131101         Remove useless quotes: DF_PROG="df".
131102         * m4/strnlen.m4: New file.
131104 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131106         * lib/backupfile.c (ISDIGIT): Comment fix.
131107         * lib/getdate.y (ISDIGIT): Likewise.
131108         * lib/posixtm.c (ISDIGIT, year): Likewise.
131109         * lib/strverscmp.c (ISDIGIT): Likewise.
131110         * lib/userspec.c (ISDIGIT): Likewise.
131112 2002-01-16  Jim Meyering  <meyering@lucent.com>
131114         * lib/getdate.y: Add three semicolons, each just before a closing
131115         brace. Bison (as of version 1.31) no longer papers over that mistake.
131117 2002-01-05  Jim Meyering  <meyering@lucent.com>
131119         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131121 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131123         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131124         not silently exit merely because the output buffer happens to
131125         have nothing pending.
131127 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131129         See the big note in ../ChangeLog.
131130         * lib/human.c (suffixes): Prefer K to k for 1024.
131131         (generate_suffix_backwards): New function.
131132         (human_readable_inexact): Use it.
131133         * lib/xstrtol.c (__xstrtol): If there is no number but there
131134         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131135         Accept 'K' as well as 'k'.
131137 2001-12-15  Jim Meyering  <meyering@lucent.com>
131139         * lib/regex.h (__restrict_arr): Update from libc.
131141         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131142         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131143         (STREQ): Define.
131145 2001-12-14  Jim Meyering  <meyering@lucent.com>
131147         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131148         Suggestion from Bruno Haible.
131150 2001-12-10  Jim Meyering  <meyering@lucent.com>
131152         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131153         xrealloc, Instead, include "xalloc.h".
131154         (initbuffer): Don't cast xmalloc return value to char*.
131155         (readline): Reword comment.
131156         Don't cast xrealloc return value to char*
131157         Return NULL, not 0.
131159 2001-12-09  Jim Meyering  <meyering@lucent.com>
131161         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131162         about `signed and unsigned type in conditional expression'.
131163         * lib/posixtm.c (posix_time_parse): Likewise.
131165         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131167         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131168         to avoid a pedantic warning.
131170         * lib/getstr.c: Don't include assert.h.
131171         (getstr): Remove warning-evoking assertions.
131172         Return -1 if offset parameter is out of bounds.
131173         Change the type of a local from int to size_t.
131175         * lib/strftime.c (my_strftime_localtime_r): Include this function
131176         definition in the `#if ! HAVE_TM_GMTOFF' block.
131178         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131179         Include xalloc.h instead.
131181 2001-12-02  Jim Meyering  <meyering@lucent.com>
131183         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131184         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131185         included.
131187         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131188         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131190 2001-11-30  Akim Demaille  <akim@epita.fr>
131192         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131193         before being defined.
131195 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131197         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131198         First arg is int, not unsigned.
131199         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131200         (SIZE_MAX, UINT_MAX): New macros.
131201         (quotearg_n_options): Abort if N is negative.
131202         Avoid overflow check on hosts where size_t is 64 bits and int
131203         is 32 bits, as overflow is impossible there.
131204         Fix off-by-one typo that caused unnecessary reallocation.
131206 2001-11-27  Jim Meyering  <meyering@lucent.com>
131208         * lib/tempname.c: Merge with version from libc.
131209         * lib/regex.c: Likewise.
131211         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131212         systems for which STDC_HEADERS is 0, it was not included, resulting in
131213         a warning about an integer-to-pointer conversion problem with getenv.
131214         Reported by Volker Borchert.
131216 2001-11-26  Jim Meyering  <meyering@lucent.com>
131218         * lib/gtod.h: Remove file.
131219         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131220         * lib/gettimeofday.c: Don't include gtod.h.
131221         (GTOD_init): Remove function.
131222         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131223         Suggestion from Volker Borchert.
131225 2001-11-23  Jim Meyering  <meyering@lucent.com>
131227         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131228         it.
131229         * lib/hash.c (struct hash_table): Define it here instead.
131231 2001-11-22  Jim Meyering  <meyering@lucent.com>
131233         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131235 2001-11-20  Jim Meyering  <meyering@lucent.com>
131237         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131238         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131240 2001-11-19  Jim Meyering  <meyering@lucent.com>
131242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131243         directory.  Use "conftestXXXXXX" as the template.
131244         Suggestion from Paul Eggert.
131246         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131247         immediately, so the test doesn't mistakenly hit the max-open-files
131248         limit.
131250 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131252         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131253         (TEMPORARIES): New macro.
131254         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131255         removes an artificial limitation (e.g. HP-UX 10.20, where
131256         TMP_MAX is 17576).
131258 2001-11-18  Jim Meyering  <meyering@lucent.com>
131260         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131262 2001-11-18  Jim Meyering  <meyering@lucent.com>
131264         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131265         on SunOS 4.
131267         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131268         files will be created before anything else.
131270 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131272         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131273         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131275 2001-11-17  Jim Meyering  <meyering@lucent.com>
131277         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131278         Prompted by a report from Bob Proulx.
131280         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131281         Instead, require UTILS_FUNC_MKSTEMP.
131283 2001-11-17  Jim Meyering  <meyering@lucent.com>
131285         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131286         Now, that's done as part of AC_FUNC_STRTOD.
131288 2001-11-17  Jim Meyering  <meyering@lucent.com>
131290         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131291         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131292         rather than group writable.  Patch by Juan F. Codagnone.
131294         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131295         xrealloc, Instead, include "xalloc.h".
131297         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131298         Remove explicit declarations of xmalloc, xrealloc,
131299         and xstrdup.  Instead, include "xalloc.h".
131301         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131302         unlocked-io.h.
131303         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131304         Likewise.
131305         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131307         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131308         Reported by Padraig Brady.
131310         * lib/mkstemp.c: #undef mkstemp.
131311         Include config.h.
131312         (rpl_mkstemp): Rename from mkstemp.
131313         Protoize.
131315 2001-11-16  Jim Meyering  <meyering@lucent.com>
131317         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131318         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131319         determine the amount of total physical memory, use pstat_getstatic.
131320         HPUX-11 doesn't define _SC_PHYS_PAGES.
131321         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131322         If sysconf couldn't be used to determine the amount of available
131323         physical memory, use both pstat_getstatic and pstat_getdynamic.
131324         Based on a patch from Bob Proulx.
131326 2001-11-10  Jim Meyering  <meyering@lucent.com>
131328         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131329         (jm_PREREQ): Use it.
131331 2001-11-09  Jim Meyering  <meyering@lucent.com>
131333         * m4/jm-macros.m4: Require autoconf-2.52f.
131334         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131335         Use these AC_-prefixed names, not the AM_-prefixed ones.
131337         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131339 2001-11-05  Jim Meyering  <meyering@lucent.com>
131341         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131343 2001-11-04  Jim Meyering  <meyering@lucent.com>
131345         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131346         $DEFS.
131348 2001-11-03  Jim Meyering  <meyering@lucent.com>
131350         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131351         of AC_DEFUN.
131353         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131354         know the name of the variable in the macro definition.
131356 2001-11-03  Jim Meyering  <meyering@lucent.com>
131358         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131359         in argmatch_to_argument call.
131361         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131362         argument.
131364         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131365         e.g., a fault due to an attempt to free a NULL pointer.
131367 2001-11-01  Jim Meyering  <meyering@lucent.com>
131369         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131370         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131372 2001-11-01  Jim Meyering  <meyering@lucent.com>
131374         * lib/dirfd.c, lib/dirfd.h: New files.
131375         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131377         * lib/hash.c (hash_print) [TESTING]: Clean up.
131379 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131381         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131382         to avoid a warning if -Wall.
131384 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131386         * README: New file
131387         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131388         (per RMS's instructions, this is now the canonical source)
131389         * lgpl/, gpl/: New directories.
131391 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131393         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131395 2001-10-21  Jim Meyering  <meyering@lucent.com>
131397         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131398         this code would end up calling gettext even in packages built
131399         with --disable-nls.
131400         * lib/getopt.c (_): Likewise.
131401         * lib/regex.c (_): Likewise.
131403 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131405         * m4/error.m4 (jm_PREREQ_ERROR):
131406         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131407         AC_FUNC_STRERROR_R does that.
131408         Check for strerror declaration.
131410         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131411         are supposed to have them these days.
131412         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131413         Merge changes from latest Autoconf CVS.
131414         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131415         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131416         POSIX decided to standardize on the int flavor of strerror_r.
131418 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131420         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131421         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131422         Use strerror_r that is only a macro, even if it is not a function.
131423         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131424         (private_strerror): Use prototypes, not old-style function definition.
131425         (print_errno_message): New function.
131426         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131427         char*-flavored one.
131428         (error_tail, error, error_at_line): Use it.
131430 2001-10-11  Jim Meyering  <meyering@lucent.com>
131432         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131433         and quote_n (1, ... to avoid clobbering a buffer.
131435 2001-10-05  Jim Meyering  <meyering@lucent.com>
131437         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131438         hash-pjw.h.
131439         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131440         * lib/hash-pjw.h: New file.
131442 2001-09-30  Jim Meyering  <meyering@lucent.com>
131444         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131445         `struct fsstat' has the `f_fstypename' member.
131446         Use that to define FS_TYPE, which is now used to make
131447         the getfsstat link test tighter.
131449 2001-09-30  Jim Meyering  <meyering@lucent.com>
131451         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131452         Include <sys/ucred.h>, for Apple Darwin.
131453         Include sys/mount.h and sys/fs_types.h only if available.
131454         (FS_TYPE): Define.
131455         (read_filesystem_list): Use FS_TYPE.
131457 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131459         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131460         a boolean context.
131462 2001-09-29  Jim Meyering  <meyering@lucent.com>
131464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131465         [one-argument getmntent function]): Include stdio.h before mntent.h.
131466         SunOS 4.1.x needs it for the declaration of `FILE'.
131467         Patch by Volker Borchert.
131469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131470         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131471         sys/fs_types.h, and make the link-test for getfsstat guard #include
131472         directives with appropriate #if HAVE_*_H tests so that we can
131473         detect getfsstat on Apple Darwin1.3.7 systems.
131474         Reported by Nelson Beebe.
131475         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131477 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131479         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131480         #defines strtoimax.  Also treat the other strto* functions
131481         like strtoimax.
131483         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131484         Check for strtoul and strtoumax,
131485         as those declarations are made even in the signed case.
131486         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131487         Likewise, for strtol and strtoimax.
131489 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131491         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131492         #defines strtoimax.  Also treat the other strto* functions
131493         like strtoimax.
131495         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131496         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131497         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131499 2001-09-26  Jim Meyering  <meyering@lucent.com>
131501         Most macros in unlocked-io.h had the wrong number of arguments.
131502         * lib/gen-uio: New script.
131503         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131504         * lib/unlocked-io.hin: Remove file.
131505         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131506         rather than trying to embed it here.
131507         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131508         Reported by Padraig Brady.
131510 2001-09-25  Volker Borchert  <bt@teknon.de>
131512         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131513         `result'.
131515 2001-09-24  Jim Meyering  <meyering@lucent.com>
131517         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131519 2001-09-23  Jim Meyering  <meyering@lucent.com>
131521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131522         instead of the mere test for existence of mntent.h.  The latter
131523         would get a false-positive on AIX 3.4 systems.
131524         In the outer getmntent if-block, don't die if neither of the getmntent
131525         tests succeeds.  Instead, just fall through and continue with the
131526         remaining tests.
131528 2001-09-23  Jim Meyering  <meyering@lucent.com>
131530         * lib/mountlist.c: Remove useless parentheses in #if directives.
131531         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131532         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131534 2001-09-22  Jim Meyering  <meyering@lucent.com>
131536         * m4/gettext.m4: New file.  From gettext.
131537         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131538         * m4/progtest.m4: Likewise
131539         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131540         * m4/glibc21.m4: Likewise.
131542         * m4/libintl.m4: Remove.  No longer used.
131544 2001-09-22  Jim Meyering  <meyering@lucent.com>
131546         * lib/localcharset.c: Update from latest gettext.
131547         * lib/config.charset: Likewise.
131549 2001-09-20  Jim Meyering  <meyering@lucent.com>
131551         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131552         strtoimax.
131553         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131554         strtoumax.
131556 2001-09-20  Jim Meyering  <meyering@lucent.com>
131558         * lib/xstrtol.c (strtoimax): Guard declaration with
131559         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131560         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131561         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131562         (strtoumax): Likewise, for completeness (it wasn't necessary).
131564 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131566         * lib/strtoimax.c (HAVE_LONG_LONG):
131567         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131568         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131569         to work around bug in IBM C compiler.
131571 2001-09-17  Jim Meyering  <meyering@lucent.com>
131573         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131574         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131575         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131576         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131577         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131578         whenever the right hand side need not be expanded by the shell.
131580 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131582         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131583         library.  It's not correct, as some older glibcs are buggy.
131584         fnmatch wasn't fixed until glibc 2.2.
131586         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131587         special shell magic here.
131589 2001-09-16  Jim Meyering  <meyering@lucent.com>
131591         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131592         * m4/jm-macros.m4: Require it.
131594 2001-09-16  Jim Meyering  <meyering@lucent.com>
131596         * lib/mkdir.c: New file.
131598 2001-09-15  Jim Meyering  <meyering@lucent.com>
131600         * m4/jm-macros.m4: Check for help2man.
131602 2001-09-11  Jim Meyering  <meyering@lucent.com>
131604         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131605         The body, by Paul Eggert, was moved here from configure.in.
131606         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131608 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131610         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131611         (jm_PREREQ): Use it.
131613 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131615         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131616         Use ssize_t, not int, to store result of readlink.
131617         Check for ssize_t overflow as well as size_t overflow,
131618         as POSIX says the result of readlink is implementation-defined
131619         when ssize_t overflows.
131620         Remove unnecessary cast to char*.
131621         Use free+malloc instead of realloc, as the storage doesn't need
131622         to be preserved and it's clearer and can be more efficient that way.
131623         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131624         * lib/xreadlink.h (xreadlink): Update prototype.
131626 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131628         * lib/xgetcwd.c: Revert some of the previous change; intead,
131629         fix the HAVE_GETCWD_NULL code to behave more like the
131630         !HAVE_GETCWD_NULL code used to.
131632         Include "xalloc.h".
131633         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131634         invoke xalloc_die.
131636 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131638         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131639         sys/param.h, as pathmax.h includes them.
131641 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131643         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131644         (jm_PREREQ_XGETCWD): New macro.
131646         * m4/getcwd.m4: New file.
131648 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131650         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131651         like the HAVE_GETCWD_NULL code.
131652         Include pathmax.h if not HAVE_GETCWD.
131653         Do not include xalloc.h.
131654         (INITIAL_BUFFER_SIZE): New symbol.
131655         Do not use xmalloc / xrealloc, since the caller is responsible for
131656         handling errors.  Preserve errno around `free' during failure.
131657         Do not overrun buffer when using getwd.
131659 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131661         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131662         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131663         getcwd (NULL, 0).
131665 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131667         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131668         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131669         spotted by Jim Meyering.
131671 2001-09-03  Jim Meyering  <meyering@lucent.com>
131673         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131674         failure.
131676 2001-09-02  Jim Meyering  <meyering@lucent.com>
131678         * lib/error.c: Update from GNU libc.
131680 2001-09-01  Jim Meyering  <meyering@lucent.com>
131682         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131683         Used by df.
131685 2001-09-01  Jim Meyering  <meyering@lucent.com>
131687         * lib/xreadlink.c: New file.
131688         * lib/xreadlink.h: New file.
131689         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131690         xreadlink.h.
131692         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131693         doesn't conflict with sparc Solaris 7's definition in
131694         /usr/include/sys/int_types.h.
131696         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131697         files.
131698         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131699         and strncasecmp as r-values.  Unixware didn't have declarations.
131701 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131703         * lib/xstrtol.h: Add copyright notice.
131704         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131705         LONGINT_INVALID_SUFFIX_CHAR.
131707 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131709         * lib/xstrtol.c (strtoimax): New decl.
131711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131713         * lib/xgetcwd.c: Don't include pathmax.h.
131714         Include stdlib.h and unistd.h if available.
131715         Include xalloc.h.
131716         (xmalloc, xstrdup, free): Remove decls.
131717         (xgetcwd): Don't assume sizes fit in unsigned.
131718         Check for overflow when computing sizes.
131719         Simplify reallocation code.
131721 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131723         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131724         a directory's st_size can have an arbitrary value, so the old
131725         usage could waste an arbitrary amount of memory.  All uses
131726         changed.
131727         * lib/savedir.h: Update prototype.
131729 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131731         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131733         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131734         old strtoimax.c.
131736         Also, make the following further changes to make this file's
131737         configuration more similar to that of strtol.c:
131738         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131739         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131740         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131741         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131742         changed to signed values.
131744         And make the following changes as well:
131745         Fix copyright notice, as 1999 was missing.
131746         (verify): New macro.
131747         (strtoimax): Check sizes at compile-time, not run-time.
131748         Prefer strtol to strtoll if both work.
131749         (main): Remove; it was not that useful and was a pain to maintain.
131751         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131753 2001-08-31  Jim Meyering  <meyering@lucent.com>
131755         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131756         Use an initial, malloc'd, buffer of length 128 rather than
131757         a statically allocated one of length 1024.
131759 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131761         Simplify code, partly by assuming autoconf 2.52 semantics.
131763         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131765         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131766         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131767         All uses removed.
131768         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131769         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131770         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131771         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131772         jm_AC_HEADER_INTTYPES_H.
131773         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131775         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131777         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131778         Quote first arg of AC_DEFUN.
131779         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131780         since they are needed to parse the include file even if we need
131781         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131783         but with opposite signedness.
131785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131787         Merge 'exclude' changes from tar 1.13.22.
131788         This fixes one or two unlikely storage allocation overflow bugs,
131789         but doesn't change user-visible behavior otherwise.
131791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131793         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131794         (jm_PREREQ_EXCLUDE): New macro.
131796 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131798         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131799         tm to be declared.
131801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131803         * lib/hash.c: Remove '2001' from copyright notice.
131805 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131807         * lib/full-write.h: New file.
131808         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131809         * lib/full-write.c: Correct credits, as cccp.c no longer
131810         exists and anyway it was so heavily changed from the old cccp
131811         code as to be unrecognizable.  Include full-write.h.
131812         (full_write): Return size_t, with short writes meaning failure.
131813         All callers changed.  This fixes a bug with large buffers
131814         on 64-bit hosts.
131815         * lib/utime.c: Include full-write.h.
131817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131819         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131820         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131821         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131822         Include if available.
131823         (<xalloc.h>): Include
131824         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131825         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131826         collide with FNM macros.
131827         (struct patopts): New struct.
131828         (struct exclude): Use it, as exclude patterns now come with options.
131829         (new_exclude): Support above changes.
131830         (new_exclude, add_exclude_file):
131831         Initial size must now be a power of two to simplify overflow checking.
131832         (free_exclude, fnmatch_no_wildcards): New function.
131833         (excluded_filename): No longer requires options arg, as the options
131834         are determined by add_exclude.  Now returns bool, not int.
131835         (excluded_filename, add_exclude):
131836         Add support for the fancy new exclusion options.
131837         (add_exclude, add_exclude_file): Now takes int options arg.
131838         Check for arithmetic overflow when computing sizes.
131839         (add_exclude_file): xrealloc might modify errno, so don't
131840         realloc until after errno might be used.
131842         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131843         New macros.
131844         (free_exclude): New decl.
131845         (add_exclude, add_exclude_file): Now takes int options arg.
131846         (excluded_filename): No longer requires options arg, as the options
131847         are determined by add_exclude.  Now returns bool, not int.
131849 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131851         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131853 2001-08-27  Jim Meyering  <meyering@lucent.com>
131855         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131857         * lib/version-etc.c (N_): Remove definition.
131858         Revert most of last change.
131859         Instead, simply don't mark the `Copyright...' string for translation.
131860         Based on advice from Paul Eggert.
131862         * lib/strtoxmax.c: Tweak comment.
131864 2001-08-26  Jim Meyering  <meyering@lucent.com>
131866         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131868         * m4/xstrtoimax.m4: New file.
131869         * m4/xstrtoumax.m4: Add comments explaining why we
131870         AC_REPLACE_FUNCS(strtol).
131872 2001-08-26  Jim Meyering  <meyering@lucent.com>
131874         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131875         of copyright with `%s' so translators don't get an untranslated
131876         message in 2002.
131877         (COPYRIGHT_YEAR): Define.
131878         (version_etc): Use fprintf rather than fputs.
131879         Suggestion from Ulrich Drepper.
131881         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131883         * lib/strtoll.c: New file, from GNU libc.
131884         * lib/xstrtoimax.c: New file.
131886         * lib/xstrtol.h: Add xstrtoimax.
131887         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131888         * lib/strtoimax.c: New file.  Likewise, but first define
131889         STRTOUXMAX_SIGNED.
131891         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131892         ...
131893         * lib/strtoxmax.c: ... then renamed to this.
131895 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131897         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131898         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131899         (jm_AC_TYPE_INTMAX_T): New macro.
131900         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131902         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131904         * m4/longlong.m4: Renamed from ulonglong.m4.
131905         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131906         * m4/uintmax_t.m4: Removed.
131908 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131910         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131911         Port to Solaris 8, where 'sed' requires a space after the 'r'
131912         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131913         Redirect output to $tmp just once.
131915 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131917         * lib/addext.c (<errno.h>): Include.
131918         (errno): Declare if not defined.
131919         (addext): Work correctly when pathconf returns -1 and leaves
131920         errno alone because there is no limit.  Also, work even if
131921         pathconf returns a value greater than SIZE_MAX.
131923 2001-08-12  Jim Meyering  <meyering@lucent.com>
131925         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131926         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131927         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131928         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131929         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131930         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131931         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131932         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131933         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131934         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131935         utime.m4, utimes.m4, xstrtoumax.m4:
131936         Quote the first argument in each use of AC_DEFUN.
131938 2001-08-12  Jim Meyering  <meyering@lucent.com>
131940         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131941         Simply `return getcwd (NULL, 0);'.
131942         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131943         Use 1300 as initial value for length, not PATH_MAX.
131945         * lib/pathmax.h: Clean up cpp syntax.
131947 2001-08-12  Jim Meyering  <meyering@lucent.com>
131949         * lib/gettimeofday.c: New file.
131950         * lib/gtod.h: New file.
131951         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131953 2001-08-05  Jim Meyering  <meyering@lucent.com>
131955         * m4/jm-macros.m4: Require autoconf-2.52.
131957 2001-08-04  Jim Meyering  <meyering@lucent.com>
131959         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131960         stmt, to get in sync with glibc.
131962 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131964         The following changes are from gettext 0.10.39 as maintained by
131965         Bruno Haible.
131967         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131968         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131969         with inverted sense.  All uses changed.
131971         * lib/mbswidth.c: Don't include <limits.h>.
131972         Include <stdlib.h> and <string.h> unconditionally.
131973         (iswcntrl, mbsinit, ISCNTRL): New macros.
131974         (mbsnwidth): Use K&R style function declarations.
131975         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131976         can optimize it when MB_CUR_MAX == 1.
131977         The width of control characters is zero, not 1.
131979 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131981         The following changes are from gettext 0.10.39 as maintained by
131982         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131984         * m4/codeset.m4: Upgrade to serial AM1.
131985         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131986         all uses changed.  Quote first arg of AC_DEFUN.
131987         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131989         * m4/iconv.m4: Upgrade to serial AM2.
131990         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131991         Add --with-libconv-prefix.
131992         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131993         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131994         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131995         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131996         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131998         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131999         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132000         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132001         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132002         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132003         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132004         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132005         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132006         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132008         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132009         string.h any more.
132011         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132012         not the default value.
132014         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132015         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132016         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132017         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132018         Also check for iswcntrl, used for wcwidth fallback.
132019         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132020         to Autoconf 2.13.
132022 2001-08-03  Jim Meyering  <meyering@lucent.com>
132024         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132025         as it was in the original.  Reported by Paul Eggert.
132027 2001-07-16  Jim Meyering  <meyering@lucent.com>
132029         * m4/gettimeofday.m4: New file.
132030         Prompted by a report from Bernhard Baehr.
132032 2001-07-15  Jim Meyering  <meyering@lucent.com>
132034         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132035         stuff. Now it's in ../Makefile.cfg.
132037 2001-07-15  Jim Meyering  <meyering@lucent.com>
132039         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132040         (BUILT_SOURCES): Add unlocked-io.h.
132041         (io_functions): Define.
132042         (unlocked-io.h): New rule.
132043         (DISTCLEANFILES): Add unlocked-io.h.
132044         (all-local): Depend on unlocked-io.h, to ensure it is created.
132046         * lib/unlocked-io.hin: New file
132048         * lib/regex.c: Update from glibc.
132050 2001-07-05  Jim Meyering  <meyering@lucent.com>
132052         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132053         recommendation.
132054         (libfetish_a_SOURCES): Put all .h files here instead.
132055         Remove a thus-exposed (better checks in automake) duplicate and
132056         two unnecessary .h files.
132058 2001-07-04  Jim Meyering  <meyering@lucent.com>
132060         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132061         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132062         distcheck failure.
132064 2001-07-02  Jim Meyering  <meyering@lucent.com>
132066         The following changes were prompted by suggestions from Bruno Haible.
132068         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132069         is now generated.
132070         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132071         definition of EXTRA_DIST.
132072         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132073         ensure that the generated file is created/updated whenever the list
132074         of $(unlocked_functions) is changed.
132075         (jm-glibc-io.m4): New rule.
132076         (unlocked-io.h): New rule -- currently unused.
132078 2001-06-24  Jim Meyering  <meyering@lucent.com>
132080         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132081         unmatched right bracket, rather than kludging it with an extra,
132082         falsely-matching quote in a comment.  Patch by Akim Demaille.
132084 2001-06-11  Jim Meyering  <meyering@lucent.com>
132086         * lib/regex.c: Update from GNU libc.
132088 2001-05-27  Jim Meyering  <meyering@lucent.com>
132090         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132091         Check for ut_type in struct utmp.
132093 2001-05-27  Jim Meyering  <meyering@lucent.com>
132095         * lib/readutmp.h (UT_TYPE): Define.
132097 2001-05-24  Jim Meyering  <meyering@lucent.com>
132099         * lib/argmatch.c: Include "quote.h".
132100         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132101         quote function.  Reported by Göran Uddeborg.
132103 2001-05-22  Jim Meyering  <meyering@lucent.com>
132105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132106         now that we use the package-supplied version unconditionally.
132107         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132109 2001-05-21  Jim Meyering  <meyering@lucent.com>
132111         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132112         shell syntax errors.
132114 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132116         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132118 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132120         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132121         Don't bother to check library strftime, since
132122         we'll be using our own my_strftime function anyway.
132123         Define my_strftime instead of strftime.
132125 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132127         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132128         which is not yet declared.
132130 2001-05-15  Jim Meyering  <meyering@lucent.com>
132132         * m4/regex.m4: Use proper quoting so brackets appear in the test
132133         program.
132134         Reported by, and with help from, Bruno Haible.
132136 2001-05-13  Jim Meyering  <meyering@lucent.com>
132138         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132139         undefined.
132141 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132143         dirname code cleanup.  base_name now behaves more compatibly
132144         with POSIX basename when given file names that have trailing
132145         slashes, and similarly for dir_name.  Add new primitives
132146         base_len and dir_len.  Put the directory-name-related decls
132147         into dirname.h.
132149         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132150         * lib/backupfile.c (base_name): Likewise.
132151         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132152         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132153         * lib/makepath.c (strip_trailing_slashes): Likewise.
132154         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132155         ISSLASH): Likewise.
132156         * lib/rename.c (strip_trailing_slashes): Likewise.
132157         * lib/same.c (base_name): Likewise.
132158         * lib/stripslash.c (ISSLASH): Likewise.
132160         * lib/addext.c: Include <dirname.h> after size_t is defined.
132161         * lib/backupfile.c: Likewise.
132163         * lib/addext.c (addext): Use base_len to trim redundant
132164         trailing slashes instead of doing it ourselves.
132165         But do not trim the last slash if it is not redundant.
132167         * lib/backupfile.c (find_backup_file_name,
132168         max_backup_version): Use base_len instead of rolling it ourselves.
132169         Handle the case of "" and (on DOS) "C:" correctly.
132171         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132172         needed. Include <string.h>, <dirname.h>.
132173         (base_name): Allow file names ending in slashes, other than names
132174         that are all slashes.  In this case, return the basename followed
132175         by the slashes.  This is more general, and can be used in places
132176         where the original base_name purposely had an assertion failure.
132177         (base_len): New function.
132179         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132180         Do not include <assert.h>; no longer needed.
132181         Include xalloc.h.
132182         (memrchr): Remove decl.
132183         (dir_name_r): Remove.
132184         (dir_len): Renamed from dirlen.  All callers changed.
132185         Rewrite in terms of base_name, for simplicity and consistency.
132186         (dir_name): Never return NULL.  All callers changed.
132187         Do not include <stdlib.h> in test program; no longer needed.
132188         return 0; is fine for test program.
132190         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132191         New macros.
132192         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132194         * lib/path-concat.c (path_concat): Use base_len to compute
132195         base length, not strlen; this means we cannot rely on memcpy
132196         to null-terminate.
132198         * lib/same.c (STREQ): Remove.
132199         (same_name): Handle the case where the basename ends in trailing '/'.
132201         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132202         a slash was stripped.  Do not strip the last slash after a
132203         file system prefix.
132205 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132207         * lib/Makefile.am (libfetish_a_SOURCES):
132208         Add strftime.c, since we now compile it on all hosts.
132210         * lib/strftime.c (my_strftime):
132211         Define to nstrftime if emacs, but only if my_strftime is not defined.
132212         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132213         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132214         Add one more extra argument: a nanoseconds value.
132215         All uses changed.
132216         (ns): New macro.
132217         (my_strftime function): Add %N format.
132218         (emacs_strftimeu): Renamed from emacs_strftime,
132219         with extra ut argument.
132221 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132223         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132225 2001-04-21  Jim Meyering  <meyering@lucent.com>
132227         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132228         doesn't interfere.
132230 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132232         * m4/ftruncate.m4: Check for chsize.
132233         Link with ftruncate.o unconditionally if ftruncate is missing.
132234         This was required when cross-compiling to i586-mingw32msvc.
132236 2001-04-08  Jim Meyering  <meyering@lucent.com>
132238         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132239         recomputed; that's necessary when the offset spans a DST transition.
132240         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132242 2001-04-02  Jim Meyering  <meyering@lucent.com>
132244         * lib/regex.h, regex.c: Update from GNU libc.
132246 2001-03-24  Jim Meyering  <meyering@lucent.com>
132248         * m4/jm-macros.m4: Require autoconf-2.49d.
132250 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132252         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132254 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132256         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132258 2001-03-17  Jim Meyering  <meyering@lucent.com>
132260         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132261         now that the version in autoconf is equivalent.
132262         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132264         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132265         Suggestion from Akim Demaille.
132267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132268         (jm_PREREQ_TEMPNAME): New function.
132270 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132272         * lib/tempname.c (uint64_t): Define to uintmax_t if
132273         not defined, and if UINT64_MAX is not defined.
132274         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132275         Reported by John David Anglin.
132277 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132279         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132280         resolve alias if codeset is empty.
132281         * lib/config.charset (BeOS): Use wildcard syntax.
132283 2001-03-13  Jim Meyering  <meyering@lucent.com>
132285         * lib/path-concat.c (path_concat)
132286         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132287         concatenating e.g., `C:' and `foo'.
132288         From Bruno Haible.
132290 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132292         * lib/localcharset.c (locale_charset): Don't use
132293         setlocale(LC_CTYPE,NULL). Don't return NULL.
132294         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132296 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132298         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132299         support for DOS/DJGPP.
132301 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132303         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132304         lacks mkstemp.  Compile our own tempname.c if we compile our own
132305         mkstemp.c, as mkstemp relies on tempname.
132307 2001-03-01  Jim Meyering  <meyering@lucent.com>
132309         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132310         AH_VERBATIM really does output its argument verbatim.
132312 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132314         * lib/Makefile.am (libfetish_a_SOURCES):
132315         Add dup-safer.c, fopen-safer.c.
132316         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132318         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132319         * lib/unistd-safer.h: New files.
132321 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132323         The mkstemp replacement is taken from glibc 2.2.2, with some
132324         portability fixes for use outside glibc, as follows:
132326         * lib/tempname.c (struct_stat64): New macro.
132327         (direxists, __gen_tempname): Use it.
132328         This avoids a portability problem with Solaris 8.
132330         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132331         (<stddef.h>, <stdint.h>, <string.h>):
132332         Include only if STDC_HEADERS || _LIBC.
132333         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132334         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132335         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132336         (__set_errno): Define this macro if <errno.h> doesn't.
132337         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132338         Define these macros if <stdio.h> doesn't.
132339         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132340         Define these macros if <sys/stat.h>
132341         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132342         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132343         __xstat64): Define if not _LIBC.
132344         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132345         (__gen_tempname): Invoke gettimeofday only if
132346         HAVE_GETTIMEOFDAY || _LIBC;
132347         otherwise, fall back on plain "time".
132348         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132350         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132352         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132354 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132356         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132358 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132360         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132361         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132362         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132363         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132365 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132367         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132368         Remove workaround macros for hosts that have mbrtowc but not
132369         mbstate_t, as we now insist on proper declarations for both
132370         before using mbrtowc.
132372 2001-02-17  Jim Meyering  <meyering@lucent.com>
132374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132375         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132376         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132377         UnixWare 7.1.1.
132379         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132380         rather than AC_CACHE_VAL.
132382 2001-02-17  Jim Meyering  <meyering@lucent.com>
132384         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132385         around included file name.
132387         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132389         * lib/strftime.c: Update from GNU libc (the only changes were to
132390         comments).
132392 2001-02-17  Jim Meyering  <meyering@lucent.com>
132394         * lib/regex.c: Update from libc.
132396 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132398         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132399         clash.
132401 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132403         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132404         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132405         Reported by Mark Hounschell via Paul Eggert.
132407 2001-02-07  Jim Meyering  <meyering@lucent.com>
132409         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132411 2001-02-05  Jim Meyering  <meyering@lucent.com>
132413         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132414         it includes the patch required for `large file' support with at least
132415         HP-UX's 10.20 /bin/cc.
132417 2001-02-03  Jim Meyering  <meyering@lucent.com>
132419         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132420         AS_IF, now that it works once again (mysteriously).
132421         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132423 2001-01-30  Jim Meyering  <meyering@lucent.com>
132425         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132426         * m4/chown.m4: Rename conftestchown to conftest.chown.
132427         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132428         s/conftestdir2/conftest.d2/.
132429         * m4/utimes.m4: s/conftestdata/conftest.data/
132430         Inspired by Pavel Roskin's change in autoconf.
132432 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132434         * lib/config.charset: Update for FreeBSD 4.2.
132436 2001-01-27  Jim Meyering  <meyering@lucent.com>
132438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132439         a use of AS_IF.
132440         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132442 2001-01-26  Jim Meyering  <meyering@lucent.com>
132444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132445         quotearg.c includes it.
132447 2001-01-26  Jim Meyering  <meyering@lucent.com>
132449         * lib/quotearg.c: Include stddef.h.
132450         * lib/quote.c: Include stddef.h.
132451         Reported by Axel Kittenberger.
132453         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132454         line in double quotes so that it evokes a better diagnostic.
132455         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132456         Reported by Axel Kittenberger.
132458 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132460         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132461         as if it was a `charset'.
132463 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132465         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132466         has const.
132468 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132470         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132471         to avoid a warning.  Add back 'const' to inptr.
132473 2001-01-20  Jim Meyering  <meyering@lucent.com>
132475         Be sure that headers are checked before used in code compiled
132476         for the type checks.
132477         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132478         In place of that, invoke jm_CHECK_ALL_TYPES.
132479         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132480         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132481         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132482         The check for ssize_t was mistakenly run before the test for unistd.h.
132484         The configure-time check for stdbool.h was missing.
132485         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132486         (jm_PREREQ_HASH): New function.
132488 2001-01-17  Jim Meyering  <meyering@lucent.com>
132490         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132491         for autoconf-2.49c.
132492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132494 2001-01-16  Jim Meyering  <meyering@lucent.com>
132496         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132497         From Bruno Haible.
132499 2001-01-14  Jim Meyering  <meyering@lucent.com>
132501         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132502         foo and bar.  Create conftestdir/ in the script, not in the C code.
132503         Remove directories in the script, not in the C code.
132504         Remove conftestdir{,2} before trying to create the directory.
132505         Make the entire configure script fail if the mkdir fails.
132507 2001-01-14  Jim Meyering  <meyering@lucent.com>
132509         * lib/rename.c: New file.  From Volker Borchert.
132510         Include stdlib.h, string.h or strings.h, and xalloc.h.
132511         Use strip_trailing_slashes rather than open-coding it.
132513 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132515         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132517 2001-01-03  Jim Meyering  <meyering@lucent.com>
132519         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132520         of local `inptr' to avoid warning with some system declarations of
132521         iconv.
132523 2001-01-02  Volker Borchert  <bt@teknon.de>
132525         * m4/rename.m4: New file.
132526         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132528 2001-01-01  Jim Meyering  <meyering@lucent.com>
132530         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132531         even on systems with utmpx.h.  It's necessary for the declaration of
132532         utmp's ut_user member.  Reported by Andreas Jaeger.
132534         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132535         available. They are required for the declarations of getgrgid and
132536         getpwuid resp.
132537         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132538         Reported by Andreas Jaeger.
132540 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132542         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132543         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132544         so `make install' also works in VPATH builds.
132546 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132548         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132549         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132550         can be used in subdirectories.
132552 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132554         * lib/modechange.c: Do not assume that mode_t uses the
132555         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132556         the other-execute bit of FOO even if S_IXOTH != 1.
132558         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132559         WOTH, XOTH, ALLM): New macros.
132560         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132561          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132562         Use them.
132563         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132564         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132565         (mode_compile):
132566         No need to use uintmax_t; unsigned long is long enough.
132567         Don't bother to get suffix since we don't use it.
132569 2000-12-26  Jim Meyering  <meyering@lucent.com>
132571         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132572         better with autoheader.
132574 2000-12-24  Jim Meyering  <meyering@lucent.com>
132576         * lib/hash.c (is_prime): Return explicit boolean values.
132577         (hash_get_first): Return NULL to appease Irix5.6's 89.
132578         Reported by Nelson Beebe.
132580 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132582         * lib/localcharset.c (locale_charset): Add support for Win32.
132584 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132586         * lib/physmem.h, lib/physmem.c: New files.
132588         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132589         (noinst_HEADERS): Add physmem.h.
132591         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132592         't' for compatibility with Solaris 8 sort.
132594 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132596         * lib/config.charset: Add support for BeOS.
132598 2000-12-17  Jim Meyering  <meyering@lucent.com>
132600         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132601         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132603 2000-12-16  Jim Meyering  <meyering@lucent.com>
132605         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132606         N and M) would have treated it like `chown N:N FILE'.
132608         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132610 2000-12-16  Jim Meyering  <meyering@lucent.com>
132612         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132613         SHELLS_FILE to a file name that's useful on djgpp systems.
132614         Include stdlib.h.
132615         (ADDITIONAL_DEFAULT_SHELLS): Define.
132616         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132617         Based mostly on a patch from Prashant TR.
132619 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132621         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132622         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132623         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132625 2000-12-08  Andreas Schwab  <schwab@suse.de>
132627         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132628         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132630 2000-12-07  Jim Meyering  <meyering@lucent.com>
132632         * lib/stripslash.c (ISSLASH): Define.
132633         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132634         `/'.
132635         From Prashant TR.
132637         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132638         (dir_name_r): Declare this function as static.
132639         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132640         manifest itself on a name containing a mix of slashes and
132641         backslashes.
132642         Make this function work with names starting with a DOS-style
132643         drive letter and colon prefix.
132644         (dir_name): Append `.' if necessary.
132645         Based mostly on patches from Prashant TR and Eli Zaretskii.
132647         * lib/dirname.h (dir_name_r): Remove prototype.
132649 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132651         * m4/off_t-format.m4: Remove this file.
132652         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132654 2000-12-06  Jim Meyering  <meyering@lucent.com>
132656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132657         replacement strtoull, we may well need the replacement strtoul, too.
132658         Check for declarations of strtoul and strtoull.
132659         Check for strtol.  Mainly as a cue to cause automake to include
132660         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132661         Check for limits.h -- strtol.c needs it.
132663 2000-12-05  Jim Meyering  <meyering@lucent.com>
132665         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132667 2000-12-04  Jim Meyering  <meyering@lucent.com>
132669         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132670         Also include memory.h, stdlib.h, unistd.h if appropriate.
132671         Reported by Andreas Jaeger (conflicting declaration of malloc).
132673 2000-12-02  Jim Meyering  <meyering@lucent.com>
132675         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132676         * m4/jm-macros.m4 (jm_MACROS): require it.
132678 2000-12-02  Jim Meyering  <meyering@lucent.com>
132680         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132682 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132684         * lib/memrchr.c: Include <config.h> before any system include file.
132686 2000-11-30  Jim Meyering  <meyering@lucent.com>
132688         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132690 2000-11-30  Jim Meyering  <meyering@lucent.com>
132692         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132694 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132696         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132698 2000-11-26  Jim Meyering  <meyering@lucent.com>
132700         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132702 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132704         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132705         size of (size_t) -1; it's not portable.
132707 2000-11-17  Jim Meyering  <meyering@lucent.com>
132709         * lib/strstr.c: Update from GNU libc.
132711 2000-11-17  Akim Demaille  <akim@epita.fr>
132713         * lib/obstack.h: Formatting changes.
132714         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132715         prevent type checking.
132716         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132717         cast the value to (void *): assigning a `foo *' to a `void *'
132718         variable is valid.
132719         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132721 2000-11-16  Jim Meyering  <meyering@lucent.com>
132723         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132725 2000-11-11  Jim Meyering  <meyering@lucent.com>
132727         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132729 2000-11-10  Jim Meyering  <meyering@lucent.com>
132731         * lib/obstack.h: Update from GNU libc.
132732         * lib/obstack.c: Likewise.
132734 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132736         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132738 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132740         * lib/getusershell.c (setusershell): Use rewind rather than
132741         fseek/fseeko, to avoid configuration hassles with fseeko.
132742         Don't bother opening SHELLS_FILE if shellstream is NULL;
132743         it's not necessary.
132745 2000-11-05  Jim Meyering  <meyering@lucent.com>
132747         * lib/makepath.h (make_dir): Declare.
132748         * lib/makepath.c (make_dir): Remove `static' attribute.
132749         Tweak a comment.
132751 2000-11-04  Jim Meyering  <meyering@lucent.com>
132753         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132755 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132757         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132758         last one in a bucket, advance to the next bucket.
132760 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132762         * lib/fnmatch.c: Do not comment out all the code if we are using
132763         the GNU C library, because in some cases we are replacing buggy
132764         code in the GNU C library itself.
132766 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132768         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132769         (regex_compile): Catch bogus \(\1\).
132771 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132773         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132774         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132775         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132777 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132779         * lib/error.h, getline.h, modechange.h:
132780         Remove "2000" from Copyright line, as the file hasn't been
132781         changed this year other than in the copyright notice.
132783         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132784         was changed this year.
132786 2000-10-29  Jim Meyering  <meyering@lucent.com>
132788         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132789         renaming.
132790         * m4/ls-mntd-fs.m4: Likewise
132792 2000-10-29  Jim Meyering  <meyering@lucent.com>
132794         * lib/xstat.in: Fix grammar in comment.
132796 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132798         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132799         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132800         doesn't define __restrict_arr.
132802 2000-10-28  Jim Meyering  <meyering@lucent.com>
132804         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132805         (jm_PREREQ_MEMCHR): New function.
132807 2000-10-28  Jim Meyering  <meyering@lucent.com>
132809         * lib/memchr.c: Update from libc.
132810         Adjust for portability:
132811         [HAVE_STDLIB_H]: Include stdlib.h.
132812         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132813         Undef __memchr, too.
132814         [!weak_alias]: Define __memchr to memchr.
132816         * lib/regex.c: Update from libc.
132817         * lib/regex.h: Likewise.
132818         * lib/getopt1.c: Likewise.
132819         * lib/memcmp.c: Likewise.
132821         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132822         Avoid using fseek, when possible -- it's broken by design.
132823         Patch by Ulrich Drepper.
132825 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132827         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132828         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132829         Giving in to popular pressure to shut up the compiler with casts.
132831 2000-10-26  Jim Meyering  <meyering@lucent.com>
132833         * lib/strftime.c: Update from libc.
132835 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132837         * regex.c: More `unsigned char' -> `re_char' changes.
132838         Also change several `int' into `re_wchar_t'.
132839         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132840         (PUSH_FAILURE_POINTER): Don't cast any more.
132841         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132842         We want GCC to complain, since this piece of code makes
132843         re_match non-reentrant, which *should* be fixed.
132844         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132845         (EXTEND_BUFFER): Use RETALLOC.
132846         (SET_LIST_BIT): Don't cast.
132847         (re_wchar_t): New type.
132848         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132849         that those two functions will always properly return.
132850         (IMMEDIATE_QUIT_CHECK): Cast to void.
132851         (analyse_first): Use recursion rather than an explicit stack.
132852         (re_compile_fastmap): Can't fail anymore.
132853         (re_search_2): Don't check re_compile_fastmap for failure.
132854         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132855         Now also sets the new value (passed in a new argument).
132856         (re_match_2_internal): Use it.
132857         Also, use a new var `reg' of type size_t when looping through regs
132858         rather than reuse the inappropriate `mcnt'.
132860 2000-10-25  Jim Meyering  <meyering@lucent.com>
132862         * lib/obstack.c: Update from libc.
132864 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132866         * regex.c (regex_compile): Change the way of handling a range from
132867         a char less than 256 to a char not less than 256.
132869 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132871         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132872         NT-Emacs only.
132873         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132874         so that re_search functions only quit when callers expect them to.
132876 2000-10-23  Jim Meyering  <meyering@lucent.com>
132878         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132879         wrong.  That set_locale call must not have any side effects.
132880         From Paul Eggert.
132882 2000-10-22  Jim Meyering  <meyering@lucent.com>
132884         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132885         [CYCLIC]: Remove now-unused definition.
132887         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132888         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132889         Suggestion from Ulrich Drepper.
132891 2000-10-21  Jim Meyering  <meyering@lucent.com>
132893         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132894         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132895         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132897 2000-10-21  Jim Meyering  <meyering@lucent.com>
132899         * lib/dirname.c (memrchr): Declare if necessary.
132900         (dir_name): Remove the restriction that there be no
132901         trailing slashes.  Now, this code skips past them, effectively
132902         ignoring them.
132903         [TEST_DIRNAME] (main): New unit tests.
132905         * lib/memrchr.c: New file from GNU libc.
132906         Undef __memrchr, too.
132907         [!weak_alias]: Define __memrchr to memrchr.
132908         Guard weak_alias use with `#ifdef weak_alias'.
132910 2000-10-21  Jim Meyering  <meyering@lucent.com>
132912         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132913         (dir_name): Use dir_name_r.
132914         * lib/dirname.h (dir_name_r): Declare it.
132916 2000-10-17  Jim Meyering  <meyering@lucent.com>
132918         * lib/quote.h (PARAMS): Define and use.
132919         Reported by Akim Demaille.
132921         * lib/getopt.c: Update from libc.
132923 2000-10-16  Jim Meyering  <meyering@lucent.com>
132925         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132926         setlocale.
132927         From Jan Fedak.
132929 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132931         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132933 2000-09-25  Jim Meyering  <meyering@lucent.com>
132935         * lib/md5.h (rol): Define (from GnuPG).
132937         * lib/sha.c: Give credit (GnuPG) where due.
132938         (M): Use rol rather than open-coding it.
132939         Add a FIXME comment.
132941 2000-09-21  Jim Meyering  <meyering@lucent.com>
132943         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132944         Reported by Michael Stone.
132946 2000-09-20  Jim Meyering  <meyering@lucent.com>
132948         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132949         (noinst_HEADERS): Add sha.h.
132950         Based on code from Scott G. Miller and from GnuPG.
132952 2000-09-18  Jim Meyering  <meyering@lucent.com>
132954         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132955         LIBS. Otherwise, everyone ends up linking with -lelf for some
132956         configurations.
132957         Reported by Mike Stone.
132959 2000-09-15  Jim Meyering  <meyering@lucent.com>
132961         * lib/regex.c: Update from libc.
132963 2000-09-10  Jim Meyering  <meyering@lucent.com>
132965         * lib/getopt.c (_getopt_internal): Update from glibc.
132967 2000-09-09  Jim Meyering  <meyering@lucent.com>
132969         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132970         think it should be used as a general replacement for isascii.
132971         * lib/fnmatch.c: Likewise.
132972         * lib/mbswidth.c: Likewise
132973         * lib/regex.c: Likewise.
132975         Don't use atoi.
132976         * lib/userspec.c: Include sys/param.h and limits.h.
132977         Include xstrtol.h.
132978         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132979         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132980         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132981         UID, GID.  Check range.
132983 2000-09-06  Jim Meyering  <meyering@lucent.com>
132985         * lib/getopt.c (_getopt_internal): Update from glibc.
132987 2000-08-30  Jim Meyering  <meyering@lucent.com>
132989         * lib/strftime.c: Merge in changes from GNU libc.
132991 2000-08-26  Jim Meyering  <meyering@lucent.com>
132993         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132994         * m4/fpending.m4: New file.
132996 2000-08-26  Jim Meyering  <meyering@lucent.com>
132998         * lib/closeout.c: Include "__fpending.h".
132999         (close_stdout_status): Return right away if there's nothing to flush.
133001         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133002         * lib/__fpending.c: New file.
133003         * lib/__fpending.h: New file.
133005 2000-08-20  Jim Meyering  <meyering@lucent.com>
133007         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133008         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133009         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133011 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133013         Improve fileutils installation on systems where running
133014         programs (like install) can't be unlinked.
133015         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133016         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133018 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133020         Standardize on "memory exhausted" instead of "Memory exhausted"
133021         or "virtual memory exhausted".
133022         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133023         "virtual memory exhausted".
133024         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133025         our own message.
133026         * lib/userspec.c (parse_user_spec): Likewise.
133027         * lib/bumpalloc.h: comment fix
133028         * lib/same.c, userspec.c: Include xalloc.h.
133030         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133031         not char *const and pointing to a constant array.
133032         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133033         (xrealloc): Comment fix.
133035         * lib/userspec.c (parse_user_spec):
133036         Don't translate a message until just before returning,
133037         to avoid unnecessary translation.
133039 2000-08-07  Jim Meyering  <meyering@lucent.com>
133041         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133042         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133043         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133044         getgroups.c, gethostname.c, getopt.h, group-member.c,
133045         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133046         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133047         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133048         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133049         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133050         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133051         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133052         yesno.c: Back out Copyright date changes for each file with no change
133053         this year.  This eases coordination with other programs using the same
133054         source code modules.  From Paul Eggert.
133056 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133058         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133059         not char, for compatibility with glibc 2.1.3 strftime.c.
133061 2000-08-03  Greg McGary  <greg@mcgary.org>
133063         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133064         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133065         (EXTEND_BUFFER): Use them.
133067 2000-08-01  Jim Meyering  <meyering@lucent.com>
133069         * lib/dirname.c (ISSLASH): Define.
133070         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133071         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133072         both `\' and `/' may be use as path separators.
133073         Based on a patch from Prashant TR.
133075 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133077         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133078         slot vector a constant, since it might get modified.
133080 2000-07-31  Jim Meyering  <meyering@lucent.com>
133082         * lib/xmalloc.c: Use `virtual memory exhausted', not
133083         `Memory exhausted'.
133084         * lib/obstack.c (print_and_abort): Likewise.
133086 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133088         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133089         buffer, so that the caller can always quote one small
133090         component of a "memory exhausted" message in slot 0.
133091         From a suggestion by Jim Meyering.
133093 2000-07-30  Jim Meyering  <meyering@lucent.com>
133095         * lib/makepath.c (make_path): Quote the other instance, too.
133097         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133098         (STATIC_BUF_SIZE): Define.
133099         (quotearg_n_options): Use only statically allocated storage when
133100         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133101         than STATIC_BUF_SIZE.
133103 2000-07-29  Jim Meyering  <meyering@lucent.com>
133105         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133106         * lib/dirname.c (dir_name): Likewise.
133108         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133109         `/'.
133111         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133112         (dir_name): Assert that there are no trailing slashes.
133114 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133116         * lib/mbswidth.h (mbswidth): Add a flags argument.
133117         (mbswidth): New declaration.
133118         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133119         * lib/mbswidth.c (mbswidth): Add a flags argument.
133120         (mbsnwidth): New function.
133122 2000-07-24  Jim Meyering  <meyering@lucent.com>
133124         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133126 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133128         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133130 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133132         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133133         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133134         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133135         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133136         invoke multibyte primitives.
133138 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133140         * lib/quotearg.c:
133141         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133142         so that mbstate_t is always defined.
133144         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133145         be 1 in at least one GCC installation, and this configuration
133146         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133147         performance on hosts that have mbrtowc but have only unibyte
133148         locales, but I assume these hosts are rare.
133150 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133152         * lib/mbswidth.c (_XOPEN_SOURCE):
133153         Don't define; this causes problems on Solaris 7.
133154         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133156 2000-07-23  Jim Meyering  <meyering@lucent.com>
133158         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133159         too: getgrgid, getpwuid, getuid.
133161 2000-07-23  Jim Meyering  <meyering@lucent.com>
133163         * lib/basename.c (base_name): Add an assertion.
133165 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133167         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133168         shadow its mbsinit function.
133170 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133172         * lib/mbswidth.h: New file.
133173         * lib/mbswidth.c: New file.
133174         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133175         (noinst_HEADERS): Add mbswidth.h.
133177 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133179         * lib/config.charset: Add support for FreeBSD. Improve support for
133180         HP-UX and IRIX 6.
133182 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133184         * m4/mbswidth.m4: New file.
133185         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133187 2000-07-15  Jim Meyering  <meyering@lucent.com>
133189         * lib/makepath.c: Include quote.h.
133190         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133191         corresponding argument in a `quote (...)' call.
133192         Give better diagnostics.
133194         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133195         (noinst_HEADERS): Add quote.h.
133197         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133198         from tar's src/misc.c.
133199         * lib/quote.h: New file.  Prototypes for same.
133201 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133203         From a suggestion by Bruno Haible.
133204         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133205         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133206         to decide whether to define the BeOS workaround macro;
133207         this adjusts to the change to AC_MBSTATE_T.
133209 2000-07-14  Jim Meyering  <meyering@lucent.com>
133211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133212         jm_AC_TYPE_UINTMAX_T.
133214 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133216         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133218         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133219         quotearg_buffer_restyled): Add support for
133220         clocale_quoting_style.  Undo previous change to
133221         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133222         and "{RIGHT QUOTATION MARK}" msgids.
133224 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133226         From a suggestion by Bruno Haible.
133227         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133228         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133229         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133230         and mbstate_t, to a single-part test that simply defines mbstate_t.
133231         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133232         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133234 2000-07-10  Jim Meyering  <meyering@lucent.com>
133236         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133238         * m4/gnu-source.m4: Output to confdefs.h directly.
133239         Suggestion from Akim Demaille.
133241 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133243         The old behavior of quoting `like this' doesn't look good with
133244         newer, ISO-style fonts.  See:
133245         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133247         Instead, quote "like this" by default.  Let the translator
133248         tailor the locale-specific quoting behavior by providing
133249         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133251         * lib/quotearg.c (N_): New macro.
133252         (gettext_default): New function.
133253         (quotearg_buffer_restyled): Use
133254         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133255         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133257 2000-07-09  Jim Meyering  <meyering@lucent.com>
133259         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133260         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133262         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133265 2000-07-09  Jim Meyering  <meyering@lucent.com>
133267         * lib/Most files: Update copyright dates to include 2000.
133269 2000-07-08  Jim Meyering  <meyering@lucent.com>
133271         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133272         if not defined.
133273         (xgethostname): Remove now-unnecessary #ifdef.
133274         Move declaration of `err' into loop where it's used.
133276 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133277         and Bruno Haible  <haible@clisp.cons.org>
133279         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133280         only if the test for an object-type mbstate_t fails.  This
133281         prevents us from mistakenly reporting that mbstate_t is a
133282         system object type after we "#define mbstate_t int" to work
133283         around its lack.
133285 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133286         and Bruno Haible  <haible@clisp.cons.org>
133288         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133290 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133292         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133293         to strerror_r.
133294         Include <ctype.h> for use of isalpha.
133296 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133298         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133299         by allocating a larger buffer. Test the gethostname return value for
133300         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133301         returns an error and ENAMETOOLONG isn't defined.
133303 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133305         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133306         dimension.
133308 2000-07-04  Jim Meyering  <meyering@lucent.com>
133310         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133311         of the deprecated AC_CHECKING.
133313 2000-07-04  Jim Meyering  <meyering@lucent.com>
133315         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133316         Reported by Bruno Haible.
133318 2000-07-04  Jim Meyering  <meyering@lucent.com>
133320         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133321         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133322         lacks mbrtowc.
133324 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133326         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133327         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133329 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133330         and Bruno Haible  <haible@clisp.cons.org>
133332         * lib/quotearg.c (mbrtowc):
133333         Assign to *pwc, and return 1 only if result is nonzero.
133334         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133336 2000-07-03  Jim Meyering  <meyering@lucent.com>
133338         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133340 2000-07-03  Jim Meyering  <meyering@lucent.com>
133342         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133343         This is necessary to get a definition of e.g., UTMP_FILE on
133344         HP-UX 10.20.
133345         From Bob Proulx.
133347 2000-07-02  Jim Meyering  <meyering@lucent.com>
133349         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133351         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133352         AC_LIBOBJ(function_name).
133353         * m4/chown.m4: Likewise.
133354         * m4/fnmatch.m4: Likewise.
133355         * m4/ftruncate.m4: Likewise.
133356         * m4/getgroups.m4: Likewise.
133357         * m4/getline.m4: Likewise.
133358         * m4/group-member.m4: Likewise.
133359         * m4/jm-macros.m4: Likewise.
133360         * m4/lstat.m4: Likewise.
133361         * m4/malloc.m4: Likewise.
133362         * m4/memcmp.m4: Likewise.
133363         * m4/nanosleep.m4: Likewise.
133364         * m4/putenv.m4: Likewise.
133365         * m4/realloc.m4: Likewise.
133366         * m4/regex.m4: Likewise.
133367         * m4/stat.m4: Likewise.
133368         * m4/strftime.m4: Likewise.
133370 2000-07-02  Jim Meyering  <meyering@lucent.com>
133372         * lib/quotearg.c (mbstate_t): Don't define here.
133374 2000-07-02  Jim Meyering  <meyering@lucent.com>
133376         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133378 2000-07-01  Jim Meyering  <meyering@lucent.com>
133380         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133382 2000-07-01  Jim Meyering  <meyering@lucent.com>
133384         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133385         problem.
133387 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133389         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133390         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133392 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133394         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133395         per change in ../m4/ls-mntd-fs.m4.
133396         (read_filesystem_list): Ignore symbolic links.
133398 2000-06-29  Jim Meyering  <meyering@lucent.com>
133400         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133401         for declaration of strcmp.
133403         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133405         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133406         Avoid warning by casting result to `char *' to remove `const'.
133408 2000-06-28  Jim Meyering  <meyering@lucent.com>
133410         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133411         included by quotearg.c, for which we perform this test.  From
133412         Bruno Haible.
133414 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133416         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133417         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133418         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133420 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133422         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133424 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133426         savedir now sets errno on failure and invokes xmalloc to get memory.
133427         Fix a couple of other minor bugs while we're at it.
133429         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133430         (NAMLEN): Remove macro.
133431         (malloc, realloc): Remove decls.
133432         (stpcpy): Likewise.
133433         ("xalloc.h"): Include.
133434         (NAME_SIZE_DEFAULT): New macro.
133435         (savedir): Use xmalloc / xrealloc to allocate memory.
133436         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133437         Skip "" directory entries.
133438         Use strlen to calculate directory entry length, since the old method
133439         is rarely used these days and isn't worth supporting.
133440         Don't use a pointer after freeing it.
133441         Check for integer overflow when calculating allocation size.
133442         Use memcpy to copy entries, instead of stpcpy.
133443         Set errno properly when returning NULL.
133444         Check for readdir error.
133446 2000-06-26  Jim Meyering  <meyering@lucent.com>
133448         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133450 2000-06-25  Jim Meyering  <meyering@lucent.com>
133452         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133453         Linux header bug when _XOPEN_SOURCE is defined to 500.
133455 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133457         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133458         deficiency.
133460 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133462         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133463         Include xalloc.h.
133464         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133466 2000-06-24  Jim Meyering  <meyering@lucent.com>
133468         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133469         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133470         for which strerror does return char*, but which lacks a conveniently
133471         accessible declaration of the function.  If the compile-test says
133472         strerror_r doesn't work, then resort to a `run'-test that works on
133473         BeOS and segfaults on DEC Unix.
133475 2000-06-24  Jim Meyering  <meyering@lucent.com>
133477         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133479 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133481         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133482         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133484 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133486         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133487         (mbrtowc, mbstate_t): Define substitutes if
133488         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133489         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133490         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133492 2000-06-23  Jim Meyering  <meyering@lucent.com>
133494         * m4/afs.m4: Add missing AC_MSG_RESULT.
133495         Reported by Bruno Haible.
133497         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133498         Suggestion from Bruno Haible.
133500 2000-06-23  Jim Meyering  <meyering@lucent.com>
133502         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133504 2000-06-21  Jim Meyering  <meyering@lucent.com>
133506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133508 2000-06-21  Jim Meyering  <meyering@lucent.com>
133510         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133511         (noinst_HEADERS): Add getstr.h.
133513         * lib/getline.c (getstr): Move into a separate file.
133514         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133515         the following changes: new parameter, delim2; both delim[12]
133516         parameters have type `int', not `char'.  The latter would lose
133517         with 8-bit delimiters.
133518         * lib/getstr.h: New file.
133520 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133522         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133523         than 1024, return a memory chunk of least possible size, instead
133524         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133525         Use free/xmalloc instead of xrealloc to avoid copying for very long
133526         paths.
133528 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133530         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133531         the empty string.
133533 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133535         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133536         address, not strdup.  Include <stdlib.h> and don't declare free().
133538 2000-06-19  Jim Meyering  <meyering@lucent.com>
133540         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133542 2000-06-18  Jim Meyering  <meyering@lucent.com>
133544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133546         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133547         `checking whether...' message to be consistent with that of the
133548         lstat test.
133550 2000-06-18  Jim Meyering  <meyering@lucent.com>
133552         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133553         Besides, these days every porting target provides a mkdir function.
133555         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133556         needed. (this snippet comes from src/system.h).
133558 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133560         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133562 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133564         * lib/human.c (adjust_value): New function.
133565         (human_readable_inexact): Apply rounding style even when
133566         printing approximate values.
133568 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133570         * lib/human.c (human_readable_inexact): Allow an input block
133571         size that is not a multiple of the output block size, and vice versa.
133572         Reported by Piergiorgio Sartor.
133574 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133576         * lib/getdate.y (get_date): Apply relative times after time
133577         zone indicator, not before.  Reported by Todd A. Jacobs.
133579 2000-06-13  Jim Meyering  <meyering@lucent.com>
133581         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133583         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133585 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133587         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133589 2000-06-12  Jim Meyering  <meyering@lucent.com>
133591         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133592         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133593         optional argument.
133594         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133595         the optional argument, `lib'.
133597 2000-06-08  Jim Meyering  <meyering@lucent.com>
133599         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133601 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133603         Rewrite largefile configuration so that we don't need to run
133604         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133605         AC_CANONICAL_HOST in configure.in -- jmm]
133607         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133608         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133609         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133610         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133611         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133612         All uses changed.
133613         Instead of inspecting the output of getconf, try to compile the
133614         test program without and with the macro definition.
133615         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133616         for getconf.  Instead, check for the needed flags by compiling
133617         test programs.
133619 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133621         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133623 2000-06-04  Jim Meyering  <meyering@lucent.com>
133625         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133626         SunOS 4.1.4 for which gid_t is an unsigned type.
133628 2000-06-03  Jim Meyering  <meyering@lucent.com>
133630         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133631         now that autoconf requires that.
133633         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133634         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133635         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133637 2000-06-03  Jim Meyering  <meyering@lucent.com>
133639         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133641 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133643         * m4/glibc21.m4: New file.
133644         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133646 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133648         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133649         newer, don't install charset.alias.
133650         * lib/config.charset: Change the Linux/glibc rules so they become empty
133651         on glibc-2.1 or newer.
133653 2000-06-02  Jim Meyering  <meyering@lucent.com>
133655         * lib/mountlist.c: Back out last change.  Instead, do this...
133656         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133657         me_dummy member using the same `ignore'-testing code.
133658         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133659         fs_type strings.
133660         From Mark D. Roth.
133662 2000-05-29  Jim Meyering  <meyering@lucent.com>
133664         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133665         mounts with the `ignore' attribute.  Based on a patch from
133666         Mark D. Roth.
133668 2000-05-28  Jim Meyering  <meyering@lucent.com>
133670         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133671         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133672         * m4/stat.m4: Likewise.
133673         * m4/lstat.m4: Likewise.
133674         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133676         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133677         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133679 2000-05-26  Jim Meyering  <meyering@lucent.com>
133681         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133683 2000-05-24  Jim Meyering  <meyering@lucent.com>
133685         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133686         autoconf requires that.
133687         * m4/lib-check.m4: Likewise.
133688         * m4/jm-macros.m4: Likewise.
133689         * m4/strftime.m4: Likewise.
133691         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133692         AC_CHECK_DECLS, now that autoconf requires that.
133694 2000-05-22  Jim Meyering  <meyering@lucent.com>
133696         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133697         * m4/lstat.m4: Likewise.
133699 2000-05-22  Jim Meyering  <meyering@lucent.com>
133701         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133703 2000-05-20  Jim Meyering  <meyering@lucent.com>
133705         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133706         (jm_PREREQ): Use it.
133708 2000-05-18  Jim Meyering  <meyering@lucent.com>
133710         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133711         back, too, since it may have been modified by allocate_entry.
133712         (hash_delete): Rewrite to use neither the assignment operator
133713         nor the comma operator in an if-expression.
133715 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133717         * lib/closeout.c:
133718         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133719         Remove; no longer needed.
133720         "quotearg.h": Add include.
133721         (file_name): Do not bother to explicitly initialize to NULL; it's less
133722         efficient on some hosts.
133723         (close_stdout_status): Remove test as to whether stdout was already
133724         closed; it breaks for the case "echo x | sort >&-".
133725         Quote file name colons.
133726         Do not assume that _("write error") lacks format strings.
133728 2000-05-15  Jim Meyering  <meyering@lucent.com>
133730         * lib/version-etc.c (version_etc_copyright): Update the copyright
133731         string used in all --version output.
133733 2000-05-14  Jim Meyering  <meyering@lucent.com>
133735         * lib/closeout.c (close_stdout_set_file_name): New function.
133736         (close_stdout_status): Use new file-scoped global.
133737         Return right away if fstat says the stdout file descriptor is invalid.
133738         * lib/closeout.h (close_stdout_set_file_name): Declare.
133740 2000-05-10  Jim Meyering  <meyering@lucent.com>
133742         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133743         (close_stdout_set_status): New function.
133744         * lib/closeout.h (close_stdout_set_status): Declare.
133746 2000-05-09  Jim Meyering  <meyering@lucent.com>
133748         * m4/gettext.m4: Rename this...
133749         * m4/libintl.m4: ...to this.
133751 2000-05-08  Jim Meyering  <meyering@lucent.com>
133753         * lib/long-options.c: Don't include closeout.h.
133754         (parse_long_options): Don't call close_stdout for --version.
133756 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133758         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133759         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133760         2.1.3 bug.  This avoids a clash when files like regex.c define
133761         _GNU_SOURCE.
133763 2000-05-06  Jim Meyering  <meyering@lucent.com>
133765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133766         (AC_REPLACE_FUNCS): Add strnlen.
133768         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133769         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133772         AC_SEARCH_LIBS call for nanosleep.
133773         (LIB_NANOSLEEP): Set and AC_SUBST.
133775 2000-05-06  Jim Meyering  <meyering@lucent.com>
133777         * lib/strnlen.c: Undefine __strnlen and strnlen.
133778         [!weak_alias]: Define __strnlen to strnlen.
133780         * lib/atexit.c: New file, from libiberty.
133782 2000-05-06  Jim Meyering  <meyering@lucent.com>
133784         * lib/closeout.c (close_stdout_status): Also check for errors on the
133785         stderr stream.
133787 2000-05-05  Jim Meyering  <meyering@lucent.com>
133789         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133790         AC_SEARCH_LIBS call for clock_gettime.
133791         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133793         * m4/search-libs.m4: Update from autoconf.
133795         su doesn't work on Solaris 2.6.
133796         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133797         <shadow.h>.  Reported by Dragos Harabor.
133799 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133801         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133802         memcpy instead of xmalloc, xrealloc, path_concat.
133803         (locale_charset): Treat empty environment variables as absent.
133804         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133806 2000-05-04  Jim Meyering  <meyering@lucent.com>
133808         * lib/getopt.c: Update from glibc.
133809         * lib/obstack.c: Likewise.
133810         * lib/obstack.h: Likewise.
133811         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133812         file
133814         * lib/regex.h: Likewise.
133815         * lib/strndup.c: Likewise.
133816         * lib/strnlen.c: New file, from glibc.
133818 2000-05-03  Jim Meyering  <meyering@lucent.com>
133820         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133822 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133824         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133825         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133826         compile-time test, rather than inspecting host and OS, to
133827         decide whether to define _LARGEFILE_SOURCE.
133829 2000-05-01  Jim Meyering  <meyering@lucent.com>
133831         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133833         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133834         Based on a patch from Bruno Haible.
133836 2000-05-01  Jim Meyering  <meyering@lucent.com>
133838         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133840 2000-04-29  Jim Meyering  <meyering@lucent.com>
133842         * lib/path-concat.c: Declare strdup only if it's not defined.
133843         * lib/canon-host.c: Likewise.
133845 2000-04-28  Jim Meyering  <meyering@lucent.com>
133847         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133848         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133849         is included first, then limits.h is included by locale.h by libintl.h.
133850         From John David Anglin.
133852 2000-04-25  Jim Meyering  <meyering@lucent.com>
133854         * lib/makepath.c (S_IRWXUGO): Define.
133855         (make_path): Always perform explicit chmod if MODE specifies any
133856         of the `special' permission bits.  Prompted by a bug report against
133857         install from Mate Wierdl and Joost van Baal.
133859 2000-04-18  Jim Meyering  <meyering@lucent.com>
133861         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133862         (jm_PREREQ): Use it.
133864 2000-04-18  Jim Meyering  <meyering@lucent.com>
133866         * lib/README: New file.
133868         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133869         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133871 2000-04-17  Jim Meyering  <meyering@lucent.com>
133873         Get it right :-)
133874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133875         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133876         Suggestion from Akim Demaille.
133878 2000-04-17  Jim Meyering  <meyering@lucent.com>
133880         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133881         the definition of it to rpl_strftime also defined-away the system's
133882         declaration.
133884 2000-04-15  Jim Meyering  <meyering@lucent.com>
133886         Use `C' to denote so-called `contiguous' files, the same way
133887         that tar does.
133888         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133889         (ftypelet): Use S_ISCTG.
133890         From Michael Deutschmann.
133892 2000-04-14  Jim Meyering  <meyering@lucent.com>
133894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133895         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133896         clobbered.
133898 2000-04-14  Jim Meyering  <meyering@lucent.com>
133900         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133902 2000-04-13  Jim Meyering  <meyering@lucent.com>
133904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133905         AH_VERBATIM to insert required #ifndef into config.h.in.
133906         Suggestion from Akim Demaille.
133908 2000-04-12  Jim Meyering  <meyering@lucent.com>
133910         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133911         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133912         Christian Krackowizer.
133914         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133915         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133916         (AC_SYS_LARGEFILE): Require.
133917         (AM_C_PROTOTYPES): Require.
133919 2000-04-08  Jim Meyering  <meyering@lucent.com>
133921         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133922         names don't conflict.  Reported by Eli Zaretskii.
133924 2000-04-07  Jim Meyering  <meyering@lucent.com>
133926         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133927         sys/types.h, to work around system header problems on AIX 3.2.5.
133928         From Bruno Haible.
133930 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133932         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133933         bug.  Deal with the different error behavior of Irix iconv.
133935 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133937         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133938         IRIX if the installer said otherwise.
133940 2000-04-05  Jim Meyering  <meyering@lucent.com>
133942         Portability tweaks required for ultrix4.3.
133943         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133944         (jm_CHECK_DECLS): Add getutent to the list of functions.
133945         (_jm_DECL_HEADERS): Add utmpx.h.
133946         From John David Anglin.
133948         * m4/strftime.m4: Back out the 2000-04-02 change.
133949         Instead of that change, simply undefine putenv in the test program.
133951 2000-04-05  Jim Meyering  <meyering@lucent.com>
133953         Portability tweaks required for ultrix4.3.
133954         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133955         getutent.
133956         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133957         * lib/canon-host.c: Declare strdup.
133958         * lib/path-concat.c: Likewise.
133959         From John David Anglin.
133961 2000-04-04  Jim Meyering  <meyering@lucent.com>
133963         Be more DOS 8.3-friendly.
133964         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133965         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133966         * lib/Makefile.am: Reflect renaming.
133967         Reported by Eli Zaretskii.
133969         Use a temporary file name that won't clash with `charset.alias'
133970         in the DOS 8.3 name space.
133971         * lib/Makefile.am (charset_tmp): Define.
133972         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133973         (uninstall-local): Likewise.
133974         Reported by Eli Zaretskii.
133976 2000-04-03  Jim Meyering  <meyering@lucent.com>
133978         * m4/gettext.m4: Fix typo in comment.
133980         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133981         textutils/configure.in).  Suggestion from Paul Eggert.
133982         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133984 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133986         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133987         variable in the shell rather than using putenv, which isn't
133988         portable.  This avoids the configure-time inter-test dependency
133989         on the potentially-renamed putenv function.
133991 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133994         before checking struct stat.st_blksize, so that
133995         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133997 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133999         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134000         since strftime.c uses HAVE_STRFTIME to decide whether to use
134001         the underlying strftime.
134003 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134005         * lib/time/strftime.c (my_strftime): Make sure we call the system
134006         strftime, not ourselves, when invoking the underlying strftime.
134008 2000-03-24  Jim Meyering  <meyering@lucent.com>
134010         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134011         (charset_alias): Define.
134012         (install-exec-local): Factor out common code.
134013         (uninstall-local): Split lines longer than 80.
134014         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134015         (SUFFIXES): Define.
134016         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134017         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134019 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134021         * lib/config.charset: Output a line containing "Packages using this
134022         file".
134023         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134024         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134025         ref-del.sed): New rules.
134027 2000-03-17  Jim Meyering  <meyering@lucent.com>
134029         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134030         Otherwise, include <strings.h>
134032 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134034         * lib/unicodeio.c (utf8_wctomb): New function.
134035         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134036         format instead of in UCS-4 with platform dependent endianness.
134038 2000-03-10  Jim Meyering  <meyering@lucent.com>
134040         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134041         From Marco Franzen.
134043 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134045         * lib/savedir.c (savedir): Work even if directory size is
134046         negative; this can happen with some screwy NFS configurations.
134048 2000-03-06  Jim Meyering  <meyering@lucent.com>
134050         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134051         if it's NULL (because we ran out of memory).  From Bruno Haible.
134053 2000-03-05  Jim Meyering  <meyering@lucent.com>
134055         * lib/localcharset.c ("path-concat.h"): Include.
134056         (get_charset_aliases): Use path_concat instead of ANSI string
134057         concatenation.
134059         * lib/unicodeio.h (PARAMS): Define.
134060         Use it to guard prototype.
134062 2000-03-04  Jim Meyering  <meyering@lucent.com>
134064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134065         for lib/localcharset.c.
134067 2000-03-04  Jim Meyering  <meyering@lucent.com>
134069         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134070         installing into it.
134071         (uninstall-local): Uncomment this rule so `make distcheck' works
134072         once again.
134074         * lib/unicodeio.c (<errno.h>): Include it.
134075         (errno): Declare if not defined.
134077         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134079         * lib/config.charset: New version, incorporating remarks from a linux
134080         i18n mailing list.  From Bruno Haible.
134082 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134084         * m4/codeset.m4: New file.
134085         * m4/iconv.m4: New file.
134086         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134088 2000-03-03  Jim Meyering  <meyering@lucent.com>
134090         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134092 2000-03-02  Jim Meyering  <meyering@lucent.com>
134094         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134095         the messages come out on separate lines.
134097         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134098         rather than jm_CHECK_DECLARATIONS.
134099         * m4/decl.m4: Remove now-unused file.
134101         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134102         geteuid.
134104 2000-03-02  Jim Meyering  <meyering@lucent.com>
134106         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134108 2000-03-01  Jim Meyering  <meyering@lucent.com>
134110         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134111         * lib/unicodeio.c: Likewise.
134113 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134115         * lib/config.charset: New file.
134116         * lib/localcharset.c: New file.
134117         * lib/unicodeio.h, lib/unicodeio.c: New files.
134118         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134119         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134120         (noinst_HEADERS): Add unicodeio.h.
134121         (all-local, install-exec-local, charset.alias): New targets.
134123 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134125         * lib/quotearg.c (ALERT_CHAR): New macro.
134126         (quotearg_buffer_restyled): Use it.
134128 2000-02-27  Jim Meyering  <meyering@lucent.com>
134130         * m4/check-decl.m4: Add getenv to the list.
134132 2000-02-27  Jim Meyering  <meyering@lucent.com>
134134         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134135         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134137         * lib/backupfile.c: Guard inclusion of stdlib.h with
134138         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134139         Declare malloc if needed.
134141         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134142         `#ifndef HAVE_DECL..'
134143         now that autoconf always defines the HAVE_DECL_ symbols.
134144         * lib/human.c: Likewise.
134145         * lib/same.c: Likewise.
134146         * lib/strtoumax.c: Likewise.
134148         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134149         declaration check was not run.
134150         * lib/hash.c: Likewise.
134151         * lib/human.c: Likewise.
134152         * lib/same.c: Likewise.
134153         * lib/strtoumax.c: Likewise.
134155         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134156         `.', then first look up the entire `.'-containing string as a login
134157         name.
134159 2000-02-23  Jim Meyering  <meyering@lucent.com>
134161         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134162         in place of my hack.
134164 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134166         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134167         (textint): New typedef.
134168         (parser_control): Member year changed from int to textint.
134169         All uses changed.
134170         (YYSTYPE): Removed; replaced by %union with int and textint members.
134171         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134172         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134173         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134174         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134175         (date, number, to_year): Use width of number in digits, not its value,
134176         to determine whether it's a 2-digit year, or a 2-digit time.
134177         (yylex): Store number of digits of numeric tokens.
134178         Reported by John Kendall.
134180         (parser_control): Changed from struct parser_control to typedef (for
134181         consistency).  All uses changed.
134183         (tID): Removed; not used.
134184         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134186 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134188         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134189         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134191 2000-02-12  Jim Meyering  <meyering@lucent.com>
134193         * lib/userspec.c (ISDIGIT): Define it.
134194         (isdigit): Remove definition.
134195         (is_number): Use ISDIGIT, not isdigit.
134196         <libintl.h>: Include.
134197         (_ and N_): Define.
134198         (parse_user_spec): Mark translatable strings.
134200 2000-02-10  Jim Meyering  <meyering@lucent.com>
134202         With these changes, nanosleep.[ch] are finally enough like the other
134203         lib/* replacement files to compile on a few more losing systems.
134205         * lib/nanosleep.h: Don't include config.h.
134206         Remove prototype from declaration of nanosleep.
134207         (PARAMS): Remove now-unneeded definition.
134208         * lib/nanosleep.c: #undef nanosleep.
134209         (rpl_nanosleep): Rename from nanosleep.
134211 2000-02-10  Jim Meyering  <meyering@lucent.com>
134213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134214         gnu_nanosleep to rpl_nanosleep.
134216 2000-02-09  Jim Meyering  <meyering@lucent.com>
134218         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134219         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134221 2000-02-08  Akim Demaille  <akim@epita.fr>
134223         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134224         `[' and `]' and remove uses of `changequote'.
134225         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134226         (AC_SYS_LARGEFILE): Likewise.
134227         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134228         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134229         of changequote.
134230         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134231         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134232         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134233         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134235 2000-02-05  Jim Meyering  <meyering@lucent.com>
134237         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134238         Remove explicit use of AC_HEADER_TIME.  It is required by
134239         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134240         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134241         in autoconf whereby the expansion of the latter ended up preceding
134242         the expansion of its prerequisite, AC_HEADER_TIME.
134243         Reported by Volker Borchert.
134245 2000-02-03  Jim Meyering  <meyering@lucent.com>
134247         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134249 2000-02-03  Jim Meyering  <meyering@lucent.com>
134251         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134252         rather than with `#if HAVE_UTMPNAME'.
134254 2000-02-02  Jim Meyering  <meyering@lucent.com>
134256         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134257         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134258         Reported by Eli Zaretskii.
134260 2000-02-01  Jim Meyering  <meyering@lucent.com>
134262         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134264 2000-01-31  Jim Meyering  <meyering@lucent.com>
134266         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134267         functions.  Add the time.h and sys/time.h headers along with the
134268         AC_REQUIRE'ment of AC_HEADER_TIME.
134270 2000-01-31  Jim Meyering  <meyering@lucent.com>
134272         * lib/nanosleep.h (nanosleep): Guard declaration with
134273         `#if ! HAVE_DECL_NANOSLEEP'.
134274         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134275         the declaration in that vendor's sys/timers.h.
134276         Reported by Christian Krackowizer.
134278         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134279         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134280         (ISPRINT): Likewise.
134281         Reported by Tom Tromey.
134283 2000-01-30  Jim Meyering  <meyering@lucent.com>
134285         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134287         * m4/prereq.m4 (utmp_includes): Define.
134288         Check for ut_user and ut_name members in both struct utmpx
134289         and struct utmp.
134291 2000-01-30  Jim Meyering  <meyering@lucent.com>
134293         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134294         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134295         header files where only utmpx.ut_user is declared.
134297         * lib/readutmp.h (UT_USER): Define.
134299 2000-01-29  Jim Meyering  <meyering@lucent.com>
134301         * m4/lib-check.m4: New file containing library-related checks from
134302         fileutils and sh-utils (textutils had none).
134304 2000-01-28  Jim Meyering  <meyering@lucent.com>
134306         * m4/perl.m4: Change format of warning message to look more like that
134307         from the missing script.  Suggestion from François Pinard.
134309 2000-01-25  Jim Meyering  <meyering@lucent.com>
134311         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134312         well as time.h in the compile check.
134313         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134314         Fix typo in cross-compiling case: s/yes/no/.
134316 2000-01-23  Jim Meyering  <meyering@lucent.com>
134318         * m4/jm-macros.m4: Move df-related tests here from
134319         fileutils/configure.in
134321         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134322         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134324         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134325         s/space/ac_fsusage_space/.
134326         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134328         * m4/ftruncate.m4: New file (derived from part of
134329         fileutils/configure.in).
134330         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134331         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134333         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134334         AC_SUBST these here, rather than just in sh-util/configure.in, so
134335         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134336         all the same.
134337         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134338         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134339         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134340         (AC_SUBST(POW_LIBM)): Likewise.
134341         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134343 2000-01-23  Jim Meyering  <meyering@lucent.com>
134345         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134346         obstack.c.
134348 2000-01-22  Jim Meyering  <meyering@lucent.com>
134350         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134352         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134354         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134355         configure.in
134356         (AC_CHECK_HEADERS): Likewise for sh-utils.
134357         (AC_CHECK_HEADERS): Likewise for textutils.
134358         Merge the three lists of headers.
134360         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134361         from fileutils' configure.in.
134363         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134364         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134365         check-decl.m4.
134367         * m4/check-decl.m4: Use #if rather than #ifdef.
134368         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134369         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134370         (_jm_DECL_HEADERS): Define new function.
134371         (jm_CHECK_DECLARATIONS): Require it.
134373 2000-01-22  Jim Meyering  <meyering@lucent.com>
134375         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134376         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134377         Required for some AIX systems.  Reported by Christian Krackowizer.
134378         [TESTING] (main): New function.
134380         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134381         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134382         letters.
134384         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134385         iswprint.
134387         * lib/strverscmp.c (ISDIGIT): Define.
134388         (strverscmp): Use ISDIGIT, not isdigit.
134390 2000-01-19  Jim Meyering  <meyering@lucent.com>
134392         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134393         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134394         defines `struct timespec' in <sys/time.h>
134396         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134397         Thanks to Akim for explaining.
134399 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134401         * lib/nanosleep.c (nanosleep):
134402         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134403         POSIX.1 doesn't require SA_INTERRUPT and some systems
134404         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134405         it's been part of POSIX.1 since day 1 (in 1988).
134407 2000-01-17  Jim Meyering  <meyering@lucent.com>
134409         * lib/interlock: Remove unused file.  Reported by François Pinard.
134411 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134413         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134414         alert, backslash, formfeed, and vertical tab unnecessarily in
134415         shell quoting style.
134417 2000-01-16  Jim Meyering  <meyering@lucent.com>
134419         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134420         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134421         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134422         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134424 2000-01-16  Jim Meyering  <meyering@lucent.com>
134426         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134427         because the latter didn't work.
134429 2000-01-15  Jim Meyering  <meyering@lucent.com>
134431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134432         (AC_REPLACE_FUNCS): Add memcpy and memset.
134433         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134434         Add strpbrk.
134435         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134437 2000-01-12  Jim Meyering  <meyering@lucent.com>
134439         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134440         (jm_PREREQ): Use it.
134441         (jm_PREREQ_READUTMP): New macro.
134442         (jm_PREREQ): Use it.
134444 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134446         Quote multibyte characters correctly.
134447         * m4/c-bs-a.m4: New file.
134448         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134449         (jm_PREREQ): Use it.
134451 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134453         * m4/uintmax_t.m4: Port to autoconf 2.13.
134455 2000-01-08  Jim Meyering  <meyering@ascend.com>
134457         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134458         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134460 2000-01-04  Jim Meyering  <meyering@ascend.com>
134462         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134463         jm_STRUCT_DIRENT_D_TYPE.
134464         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134465         jm_STRUCT_DIRENT_D_INO.
134466         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134467         jm_STRUCT_UTIMBUF.
134468         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134469         renamings.
134470         * m4/utime.m4: Likewise.
134472         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134473         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134475 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134477         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134478         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134480 2000-01-02  Jim Meyering  <meyering@ascend.com>
134482         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134483         remember if this is necessary.
134485 1999-12-26  Jim Meyering  <meyering@ascend.com>
134487         * m4/jm-macros.m4: Use it here.
134488         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134490 1999-12-23  Jim Meyering  <meyering@ascend.com>
134492         * m4/jm-macros.m4: Check for clock_gettime (moved from
134493         fileutils/configure.in)
134494         Check for gettimeofday.
134496 1999-12-20  Jim Meyering  <meyering@ascend.com>
134498         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134499         autoconf-2.14a-1999-12-20.
134501 1999-12-19  Jim Meyering  <meyering@ascend.com>
134503         * m4/lstat-slash.m4: New file.
134504         * m4/jm-macros.m4: Use the new macro:
134505         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134507 1999-12-07  Jim Meyering  <meyering@ascend.com>
134509         * m4/perl.m4: Require that File::Compare be available, too.
134510         Too many systems seem to lack it.
134512         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134513         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134515 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134517         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134518         problem with the QNX 4.25 shell, which doesn't propagate exit
134519         status of failed commands inside shell assignments.
134521 1999-11-17  Jim Meyering  <meyering@ascend.com>
134523         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134525 1999-11-07  Jim Meyering  <meyering@ascend.com>
134527         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134529 1999-11-06  Jim Meyering  <meyering@ascend.com>
134531         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134532         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134534 1999-11-05  Jim Meyering  <meyering@ascend.com>
134536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134537         configure.in of textutils, fileutils, and sh-utils into this one
134538         (shared between those packages) file.
134539         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134540         AC_STRUCT_ST_BLKSIZE.
134542 1999-11-03  Jim Meyering  <meyering@ascend.com>
134544         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134545         of AC_CHECK_TYPE checks includes unistd.h.
134546         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134547         Suggestion from Akim Demaille.
134549 1999-10-30  Jim Meyering  <meyering@ascend.com>
134551         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134552         m4-quoted string.
134553         * m4/ls-mntd-fs.m4: Likewise.
134554         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134555         * m4/jm-winsz1.m4: Likewise.
134557         * m4/const.m4: Remove file, since the fix made it into the experimental
134558         version of autoconf.
134559         * m4/mktime.m4: Likewise.
134561         * m4/check-type.m4: Remove file, now that the latest version of
134562         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134564         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134565         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134566         AC_CHECK_TYPE.
134568 1999-10-04  Jim Meyering  <meyering@ascend.com>
134570         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134572 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134574         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134575         2.95.1 bug with HP-UX 10.20.
134577 1999-09-17  Jim Meyering  <meyering@ascend.com>
134579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134580         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134581         due to missing strdup (against sh-utils-2.0).
134583 1999-08-29  Jim Meyering  <meyering@ascend.com>
134585         * m4/jm-macros.m4: Require jm_BISON.
134586         * m4/bison.m4: New file.
134588 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134590         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134591         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134593 1999-08-05  Jim Meyering  <meyering@ascend.com>
134595         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134596         to avoid conflicts with `conftest' on 8+3 filesystems.
134597         Suggestion from Eli Zaretskii.
134599 1999-08-04  Jim Meyering  <meyering@ascend.com>
134601         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134602         fileutils and sh-utils (textutils's getline test was inadequate).
134603         (AM_FUNC_GETLINE): Run this test.
134604         (AC_CHECK_FUNCS): Check for getdelim.
134605         Reported by Bob Proulx.
134607 1999-08-02  Jim Meyering  <meyering@ascend.com>
134609         * m4/jm-macros.m4: Add a comment.
134611 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134613         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134614         <inttypes.h> defines strtoumax as a macro (and not as a
134615         function).
134617 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134619         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134620         that we can shift, multiply and divide unsigned long long
134621         values; Ultrix cc can't do it.
134623 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134625         * m4/mktime.m4: New file, which is a preview of what should appear
134626         in the next public autoconf release.
134628 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134630         * m4/lfs.m4: Remove this file.
134631         * m4/largefile.m4: New file.  It contains the old contents of
134632         lfs.m4, except that all names with prefix AC_LFS have been
134633         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134634         compatible with future autoconf versions.  Also, some minor m4
134635         quoting problems have been fixed.
134637 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134639         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134640         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134641         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134642         and simplify the shell code.
134644 1999-08-01  Jim Meyering  <meyering@ascend.com>
134646         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134647         m4.
134649 1999-07-20  Jim Meyering  <meyering@ascend.com>
134651         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134653 1999-07-15  Jim Meyering  <meyering@ascend.com>
134655         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134657 1999-05-22  Jim Meyering  <meyering@ascend.com>
134659         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134661 1999-05-20  Jim Meyering  <meyering@ascend.com>
134663         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134664         Add a colon after each `then' in case $4 is empty.
134666 1999-05-16  Jim Meyering  <meyering@ascend.com>
134668         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134670 1999-05-10  Jim Meyering  <meyering@ascend.com>
134672         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134674         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134675         AC_FUNC_MKTIME.
134677 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134679         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134681 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134683         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134684         not CPPFLAGS, so that linking works correctly in IRIX.
134686 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134688         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134690 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134692         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134693         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134695         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134696         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134698         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134700 1999-04-20  Jim Meyering  <meyering@ascend.com>
134702         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134703         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134704         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134706 1999-04-18  Jim Meyering  <meyering@ascend.com>
134708         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134709         * m4/jm-macros.m4: Use it.
134711 1999-04-06  Jim Meyering  <meyering@ascend.com>
134713         * m4/strftime.m4: Remove test for %f.
134715 1999-03-29  Jim Meyering  <meyering@ascend.com>
134717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134718         superset of the AC_TYPE_* checks in the textutils, fileutils,
134719         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134720         AC_TYPE_PID_T.
134722 1999-03-28  Jim Meyering  <meyering@ascend.com>
134724         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134725         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134726         replaced e.g., in the *.sh files of the sh-utils.
134728 1999-03-20  Jim Meyering  <meyering@ascend.com>
134730         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134731         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134732         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134734 1999-03-19  Jim Meyering  <meyering@ascend.com>
134736         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134738 1999-03-12  Jim Meyering  <meyering@ascend.com>
134740         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134742 1999-03-07  Jim Meyering  <meyering@ascend.com>
134744         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134745         declared.
134747 1999-02-17  Jim Meyering  <meyering@ascend.com>
134749         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134750         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134752 1999-02-07  Jim Meyering  <meyering@ascend.com>
134754         * m4/group-member.m4: New file -- extracted from sh-utils'
134755         configure.in.
134757         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134758         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134760 1999-02-06  Jim Meyering  <meyering@ascend.com>
134762         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134763         * m4/fnmatch.m4: Likewise.
134764         * m4/getgroups.m4: Likewise.
134765         * m4/lstat.m4: Likewise.
134766         * m4/malloc.m4: Likewise.
134767         * m4/putenv.m4: Likewise.
134768         * m4/realloc.m4: Likewise.
134769         * m4/regex.m4: Likewise.
134770         * m4/stat.m4: Likewise.
134771         * m4/strftime.m4: Likewise.
134772         Suggestion from Alain Magloire.
134774         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134775         * m4/fnmatch.m4: Likewise.
134776         * m4/getgroups.m4: Likewise.
134777         * m4/getline.m4: Likewise.
134778         * m4/lstat.m4: Likewise.
134779         * m4/malloc.m4: Likewise.
134780         * m4/memcmp.m4: Likewise.
134781         * m4/putenv.m4: Likewise.
134782         * m4/realloc.m4: Likewise.
134783         * m4/regex.m4: Likewise.
134784         * m4/stat.m4: Likewise.
134785         * m4/strftime.m4: Likewise.
134786         Suggestion from Alain Magloire.
134788         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134789         an argument.
134791         * m4/regex.m4: Add a run-time Test for proper operation of
134792         re_compile_pattern.
134794 1999-01-31  Jim Meyering  <meyering@ascend.com>
134796         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134798 1999-01-30  Jim Meyering  <meyering@ascend.com>
134800         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134802         * m4/jm-mktime.m4: Make this a wrapper around the official
134803         AM_FUNC_MKTIME rather than my private copy, now that the official one
134804         is up to date.
134805         * m4/mktime.m4: Remove file.
134807         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134808         * m4/uptime.m4: Likewise.
134809         * m4/uintmax_t.m4: Likewise.
134811 1999-01-28  Jim Meyering  <meyering@ascend.com>
134813         * m4/jm-macros.m4: Use jm_AFS.
134814         * m4/afs.m4: New file (from fileutils' configure.in).
134816         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134817         * m4/chown.m4: Likewise.
134818         * m4/d-ino.m4: Likewise.
134819         * m4/d-type.m4: Likewise.
134820         * m4/fnmatch.m4: Likewise.
134821         * m4/getgroups.m4: Likewise.
134822         * m4/gettext.m4: Likewise.
134823         * m4/jm-mktime.m4: Likewise.
134824         * m4/jm-winsz2.m4: Likewise.
134825         * m4/lcmessage.m4: Likewise.
134826         * m4/ls-mntd-fs.m4: Likewise.
134827         * m4/malloc.m4: Likewise.
134828         * m4/memcmp.m4: Likewise.
134829         * m4/putenv.m4: Likewise.
134830         * m4/realloc.m4: Likewise.
134831         * m4/st_mtim.m4: Likewise.
134832         * m4/strftime.m4: Likewise.
134834 1999-01-16  Jim Meyering  <meyering@ascend.com>
134836         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134837         (ARGMATCH_DIE_DECL): Define.
134839 1999-01-12  Jim Meyering  <meyering@ascend.com>
134841         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134842         Reported by Lars Hecking.
134844 1999-01-10  Jim Meyering  <meyering@ascend.com>
134846         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134847         gross kludge.
134848         * m4/inttypes_h.m4: Likewise.
134849         * m4/lstat.m4: Likewise.
134850         * m4/malloc.m4: Likewise.
134851         * m4/readdir.m4: Likewise.
134852         * m4/realloc.m4: Likewise.
134853         * m4/st_dm_mode.m4: Likewise.
134854         * m4/stat.m4: Likewise.
134855         * m4/utimbuf.m4: Likewise.
134856         * m4/utimes.m4: Likewise.
134858         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134859         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134860         comments in config.h.in are meaningful.
134862         * m4/jm-macros.m4: Require autoconf-2.13 here.
134864         * m4/regex.m4: By default, don't use the included regex.c on systems
134865         with glibc 2.  Suggestion from Uli Drepper.
134867 1999-01-02  Jim Meyering  <meyering@ascend.com>
134869         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134871 1998-12-18  Jim Meyering  <meyering@ascend.com>
134873         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134874         Based on a suggestion from Lars Hecking.
134876 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134878         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134880 1998-11-16  Jim Meyering  <meyering@ascend.com>
134882         * m4/lfs.m4: Double-quote the `uname...` expression.
134884 1998-11-14  Jim Meyering  <meyering@ascend.com>
134886         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134887         * m4/stat.m4: Likewise.
134889 1998-11-03  Jim Meyering  <meyering@ascend.com>
134891         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134892         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134894 1998-10-18  Jim Meyering  <meyering@ascend.com>
134896         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134898 1998-10-17  Jim Meyering  <meyering@ascend.com>
134900         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134901         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134902         calls for those previously hard-coded headers.  Instead, take a new
134903         parameter.
134904         (jm_CHECK_DECLARATIONS): Reflect interface change.
134905         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134906         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134908         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134910 1998-10-14  Jim Meyering  <meyering@ascend.com>
134912         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134913         instead of "TZ=America/Vancouver".  From Paul Eggert.
134915 1998-10-11  Jim Meyering  <meyering@ascend.com>
134917         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134918         This adds a test for a recently added compatibility fix for mktime.c.
134919         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134921 1998-09-27  Jim Meyering  <meyering@ascend.com>
134923         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134925         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134926         ../configure.in, including a change from Gordon Matzigkeit to allow
134927         cross-compiling for the Hurd.
134929         * m4/glibc.m4: New file/macro to test for the GNU C Library
134930         versions 1 and 2.  From Gordon Matzigkeit.
134931         Indent.
134933 1998-09-21  Jim Meyering  <meyering@ascend.com>
134935         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134937 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134939         Port nanosecond-resolution times to UnixWare 2.1.2 and
134940         pedantic Solaris 2.6.
134942         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134943         AC_STRUCT_ST_MTIM.
134944         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134945         Generate name of ns member, instead of just 1 or undef.
134946         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134948 1998-08-15  Jim Meyering  <meyering@ascend.com>
134950         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134951         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134952         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134953         instead of jm_TYPE_SSIZE_T.
134955 1998-08-12  Jim Meyering  <meyering@ascend.com>
134957         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134959 1998-08-02  Jim Meyering  <meyering@ascend.com>
134961         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134962         in acconfig.h manually.
134964 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134966         * m4/st_mtim.m4: New file.
134968 1998-07-28  Jim Meyering  <meyering@ascend.com>
134970         * m4/utimes.m4: Undef stat.
134972 1998-07-25  Jim Meyering  <meyering@ascend.com>
134974         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134975         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134977 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134979         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134980         uid and gid actually remain unchanged.
134982 1998-07-07  Jim Meyering  <meyering@ascend.com>
134984         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134986 1998-07-04  Jim Meyering  <meyering@ascend.com>
134988         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134989         to prove that this macro can be used in packages without regex.c.
134991 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134993         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134994         is to be used.
134996 1998-07-03  Jim Meyering  <meyering@ascend.com>
134998         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135000         * m4/gettext.m4: New file -- from gettext-0.10.35.
135001         * m4/lcmessage.m4: Likewise.
135002         * m4/progtest.m4: Likewise.
135004         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135005         * m4/jm-macros.m4: Require the new macro.
135007 1998-06-29  Jim Meyering  <meyering@ascend.com>
135009         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135010         for the definition of NGROUPS (used in a system header included
135011         by sys/mount.h).
135013 1998-06-28  Jim Meyering  <meyering@ascend.com>
135015         * m4/ls-mntd-fs.m4: New file.
135016         * m4/fstypename.m4: New file.
135018         * m4/jm-macros.m4: Require the new macro.
135019         * m4/jm-glibc-io.m4: New file.
135021 1998-05-19  Jim Meyering  <meyering@ascend.com>
135023         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135024         * m4/lchown.m4: New file.
135026         * m4/Makefile.am.in: New file.
135027         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135029 1998-05-14  Jim Meyering  <meyering@ascend.com>
135031         * m4/Makefile.am (EXTRA_DIST): Add them.
135032         * m4/jm-macros.m4: New file.
135033         * m4/utimbuf.m4: New file.
135035 1998-05-12  Jim Meyering  <meyering@ascend.com>
135037         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135039 1998-05-11  Jim Meyering  <meyering@ascend.com>
135041         * m4/isc-posix.m4: New file.
135043 1998-05-10  Jim Meyering  <meyering@ascend.com>
135045         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135047 1998-05-09  Jim Meyering  <meyering@ascend.com>
135049         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135050         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135051         with automake.
135053         * m4/ssize_t.m4: New file.
135054         * m4/mktime.m4: Remove file -- the new automake has this now.
135056 1998-04-26  Jim Meyering  <meyering@ascend.com>
135058         * m4/assert.m4: New file.
135059         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135061 1998-04-05  Jim Meyering  <meyering@ascend.com>
135063         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135064         (jm_PREREQ): Use it here.
135066 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135068         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135069         in acconfig.h.
135071 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135073         * m4/prereq.m4: New file.
135074         * m4/error.m4: New file.
135075         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135077 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135079         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135080         cache-check for the same variable -- that defeated the purpose of
135081         the test; the test program was never run.  This was a problem only
135082         on systems with losing getline functions -- HP-UX 10.20 is one.
135083         Reported by Bjorn Helgaas.
135085 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135087         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135089 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135091         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135093         * m4/const.m4: New file.  Use an initializer in this declaration
135094         typedef int charset[2]; const charset x;
135095         Reported by Bob Glickstein.
135097 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135099         * m4/chown.m4: Fix reversed types on -1 args to chown.
135100         From Kaveh Ghazi.
135102 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135104         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135105         Add lseek and memchr.
135107         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135108         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135109         have a 20-character limit on names.
135111 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135113         * m4/inttypes_h.m4: New file.
135114         * m4/uintmax_t.m4: New file.
135115         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135118         -----
135120         Local Variables:
135121         coding: utf-8
135122         End:
135124         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135126         Copying and distribution of this file, with or without
135127         modification, are permitted provided the copyright notice
135128         and this notice are preserved.